@e-llm-studio/citation 0.0.145 → 0.0.147
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/README.md +2 -1
- package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js +1 -1
- package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js +1 -1
- package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js +1 -1
- package/dist/features/ScannedDocCitation/ScannedDocCitation.js +1 -1
- package/dist/types/src/RequirementAICitationTest.d.ts.map +1 -1
- package/dist/types/src/ScannedDocCitationTest.d.ts.map +1 -1
- package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts +1 -1
- package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts +4 -3
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts +20 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts.map +1 -1
- package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts +0 -4
- package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -800,7 +800,8 @@ import { WebCitationWithImageContent } from '@e-llm-studio/citation/WebCitationW
|
|
|
800
800
|
|
|
801
801
|
| Prop Name | Type | Required | Description |
|
|
802
802
|
|-----------|------|----------|-------------|
|
|
803
|
-
| `title` | `string` |
|
|
803
|
+
| `title` | `string` | ❌ | Title on the main pill |
|
|
804
|
+
| `citationIcon` | `ReactNode` | ❌ | Icon on the main Pill |
|
|
804
805
|
| `aiReason` | `TAIReasoning` | ✅ | Contains `id`, `reason`, `gap`, `relevance_score` |
|
|
805
806
|
| `citationList` | `Citations` | ✅ | Lookup object for all referenced files/images/web |
|
|
806
807
|
| `aiReasoningAccordionProps` | `Object` | ✅ | Must contain `icons: { chevronUp, chevronDown }` |
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),i=require("./CitationRenderer.module.css.js");exports.default=function(o){var a=o.inLineCitation,s=o.citationTitle,r=o.citationIcon,l=o.chevronUpComponent,c=o.chevronDownComponent,u=o.additionalCallbackForPillButton,d=o.citationComponent,p=o.styles,v=void 0===p?{}:p,f=o.isOpen,_=o.onToggle,m=n.useState(!1),C=m[0],g=m[1],j=void 0!==f?f:C;return e.jsxs(e.Fragment,{children:[e.jsxs("span",t.__assign({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),u&&u(),_?_():void 0===f&&g(function(t){return!t})}(t)},className:i.default.pillButton,style:v.pillButton},{children:[r
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),i=require("./CitationRenderer.module.css.js");exports.default=function(o){var a=o.inLineCitation,s=o.citationTitle,r=o.citationIcon,l=o.chevronUpComponent,c=o.chevronDownComponent,u=o.additionalCallbackForPillButton,d=o.citationComponent,p=o.styles,v=void 0===p?{}:p,f=o.isOpen,_=o.onToggle,m=n.useState(!1),C=m[0],g=m[1],j=void 0!==f?f:C;return e.jsxs(e.Fragment,{children:[e.jsxs("span",t.__assign({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),u&&u(),_?_():void 0===f&&g(function(t){return!t})}(t)},className:i.default.pillButton,style:v.pillButton},{children:[r||(s?e.jsx("span",t.__assign({style:v.citationTitle},{children:s})):null),a&&(j?l:c)]})),a&&j&&e.jsx("div",t.__assign({className:i.default.citationWrapper,style:v.citationWrapper},{children:e.jsx("div",t.__assign({className:i.default.citationContent,style:v.citationContent},{children:d}))}))]})};
|
|
2
2
|
//# sourceMappingURL=CitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("react/jsx-runtime"),t=require("../../CitationRenderer/CitationRenderer.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("react/jsx-runtime"),t=require("../../CitationRenderer/CitationRenderer.js"),o=require("./components/AiReasoningCitationContent.js");exports.default=function(e){var i=e.title,r=e.aiReason,s=e.citationList,a=e.citationIcon,c=e.aiReasoningAccordionProps,p=e.projectDetails,l=e.cachingConfig,f=e.titleConfig,u=e.iconConfig,C=e.styles,m=e.citationStyles,g=e.renderCustomComponent,d=e.CustomComponentIcon,x=e.isCustomComponent;return n.jsx(t.default,{inLineCitation:!0,citationTitle:i,citationIcon:a,citationComponent:n.jsx(o.default,{renderCustomComponent:g,CustomComponentIcon:d,isCustomComponent:x,aiReason:r,citationsList:s,projectDetails:p,aiReasoningAccordionProps:c,cachingConfig:l,titleConfig:f,iconConfig:u,styles:C,citationStyles:m}),chevronDownComponent:n.jsx(function(){return n.jsx("i",{className:"pi pi-angle-down",style:{color:"#4B5563"}})},{}),chevronUpComponent:n.jsx(function(){return n.jsx("i",{className:"pi pi-angle-up",style:{color:"#4B5563"}})},{}),styles:{pillButton:{margin:"0px",padding:"2px 6px",fontSize:"15px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"#ffffffff",fontWeight:"700",border:"none"},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
|
|
2
2
|
//# sourceMappingURL=AiReasoningCitation.js.map
|
package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),a=require("rehype-raw"),o=require("./AiReasonMarkdownWrapper.module.css.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),a=require("rehype-raw"),o=require("./AiReasonMarkdownWrapper.module.css.js"),l=require("./citationRenderers/ImageCitation.js"),s=require("./citationRenderers/FileCitation.js"),r=require("./citationRenderers/WebCitationWithImage.js"),c=require("../../../Bookemon/BookemonCitationLayer.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(t),_=d(a);exports.AiReasonMarkdownWrapper=function(t){var a=t.message,d=t.gap,p=t.setOpenCitationType,f=t.setOpenCitationDetails,v=t.citationsList,m=t.projectDetails,h=t.citationIconConfig,g=t.setSelectedIdFromReason;t.isCustomComponent;var x=t.relevance_score,j=t.CustomComponentIcon,y=i.useRef(null),b=function(e,n){return e<100?"The relevance score is ".concat(e,"% because:\n").concat(n):n},C=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:o.default.h1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:o.default.h2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:o.default.h3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:o.default.bold},{children:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:o.default.paragraph},{children:t.children}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:o.default.orderedList},{children:t.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:o.default.unorderedList},{children:t.children}))},a:function(t){var a,o,d,u,_,m,x,y,b,C;t.inline;var k=t.children;t.node;var M=e.__rest(t,["inline","children","node"]);if(!M.href)return n.jsx(n.Fragment,{children:k});var I="".concat(null==M?void 0:M.href),N=null===(a=I.split("$"))||void 0===a?void 0:a[0],T=null===(o=I.split("$"))||void 0===o?void 0:o[1],q=("appmode_citation"===N?(null==v?void 0:v.appmod_citations)||[]:"image_citation"===N?(null==v?void 0:v.image_citations)||[]:"audio_citation"===N?(null==v?void 0:v.audio_citations)||[]:"document_citation"===N?(null==v?void 0:v.file_citations)||[]:"rca_citation"===N?(null==v?void 0:v.rca_citations)||[]:"web_citation"===N?(null==v?void 0:v.web_citations)||[]:"bookemon_citation"===N?(null==v?void 0:v.bookemon_citations)||[]:"custom_citations"===N?(null==v?void 0:v.custom_citations)||[]:"scanned_doc_citation"===N&&(null==v?void 0:v.scanned_doc_citations)||[]).find(function(e){return e.citation_number===T});if("image_citation"===(null==q?void 0:q.customMetadata.type))return n.jsx(i.Suspense,e.__assign({fallback:n.jsx(n.Fragment,{})},{children:n.jsx(l.default,{title:"".concat(k),citation:q,setOpenCitationType:p,setOpenCitationDetails:f,citationIcon:null==h?void 0:h.imageIcon})}));if("book_citation_doc"===(null===(d=null==q?void 0:q.customMetadata)||void 0===d?void 0:d.type)||"book_citation_pdf"===(null==q?void 0:q.customMetadata.type))return n.jsx(i.Suspense,e.__assign({fallback:n.jsx(n.Fragment,{})},{children:n.jsx(s.default,{title:"".concat(k),citation:q,setOpenCitationType:p,setOpenCitationDetails:f,citationIcon:null==h?void 0:h.fileIcon})}));if("web_citation"===(null===(u=null==q?void 0:q.customMetadata)||void 0===u?void 0:u.type)){if(null===(_=q.customMetadata)||void 0===_?void 0:_.screenshot_url)return n.jsx(r.default,{title:k,citation:q,setOpenCitationDetails:f,setOpenCitationType:p,citationIcon:null==h?void 0:h.webIcon})}else{if("bookemon_citation"===(null===(m=null==q?void 0:q.customMetadata)||void 0===m?void 0:m.type))return n.jsx(i.Suspense,e.__assign({fallback:n.jsx(n.Fragment,{})},{children:n.jsx(c.default,{title:k,bookemonPayload:e.__assign(e.__assign({},q.customMetadata.bookemonPayload),{highlightTerms:(null===(x=q.customMetadata)||void 0===x?void 0:x.highlighted_text)?[null===(y=q.customMetadata)||void 0===y?void 0:y.highlighted_text]:q.customMetadata.bookemonPayload.highlightTerms})})}));if("custom_citations"===(null===(b=null==q?void 0:q.customMetadata)||void 0===b?void 0:b.type))return n.jsxs("a",e.__assign({style:{textDecoration:"none",color:"#526eff",display:"inline-flex",alignItems:"center",gap:"4px"},href:M.href.startsWith("javascript:")?"#":M.href,onClick:function(e){e.preventDefault(),null==g||g(M.href),null==p||p("custom"),null==f||f(q)}},{children:[k,j&&n.jsx(j,{})]}));if("scanned_doc_citation"===(null===(C=null==q?void 0:q.customMetadata)||void 0===C?void 0:C.type))return n.jsx("a",e.__assign({style:{textDecoration:"none",color:"#526eff",display:"inline-flex",alignItems:"center",gap:"4px"},href:"#",onClick:function(e){var n;e.preventDefault(),null==p||p("scanned_doc"),null==f||f({citation:q,allScannedDocCitations:null!==(n=v.scanned_doc_citations)&&void 0!==n?n:[]})}},{children:k}))}return n.jsx(n.Fragment,{})},code:function(i){i.inline;var t=i.children,a=i.className;return/language-(\w+)/.exec(a||"")||(null==a?void 0:a.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:o.default.blockCode},{children:t}))}):n.jsx("code",e.__assign({className:o.default.inlineCode},{children:t}))}}},[m,v]);return n.jsxs("div",e.__assign({ref:y,className:o.default.wrapper},{children:[null==a?void 0:a.map(function(i,t){var a,l;return n.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",alignItems:"flex-start",marginTop:2}},{children:[n.jsxs("span",e.__assign({style:{fontWeight:400,color:null!==(l=null===(a=o.default.paragraph)||void 0===a?void 0:a.color)&&void 0!==l?l:"black",marginTop:"2px",fontSize:"0.9rem"}},{children:[t+1,"."]})),n.jsx(u.default,e.__assign({components:C,rehypePlugins:[_.default]},{children:i}))]}),t)}),d&&d.map(function(i,t){var a,l;return n.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",alignItems:"flex-start",marginTop:"16px"}},{children:[n.jsxs("span",e.__assign({style:{fontWeight:400,color:null!==(l=null===(a=o.default.paragraph)||void 0===a?void 0:a.color)&&void 0!==l?l:"black",marginTop:"2px",fontSize:"0.9rem"}},{children:[t+1,"."]})),n.jsx("div",{children:n.jsx("p",e.__assign({className:o.default.paragraph},{children:b(x||0,i)}))})]}),t)})]}))};
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("react/jsx-runtime"),e=require("../../FileCitation/FileCitationContent.js"),o=require("../../ImageCitation/ImageCitationContent.js"),a=require("../../WebCitation/WebCitationWithImageContent.js"),n=require("./icons/CloseIcon.js"),l=require("./AiReasoningCitationPreview.module.css.js"),c=require("../../VideoCitation/VideoCitationContent.js");exports.default=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("react/jsx-runtime"),e=require("../../FileCitation/FileCitationContent.js"),o=require("../../ImageCitation/ImageCitationContent.js"),a=require("../../WebCitation/WebCitationWithImageContent.js"),n=require("./icons/CloseIcon.js"),l=require("./AiReasoningCitationPreview.module.css.js"),c=require("../../VideoCitation/VideoCitationContent.js"),s=require("../../../ScannedDocCitation/ScannedDocCitation.js");exports.default=function(d){var u,r,v,C,m,g,f,_,h,p,M,j,y,x=d.openCitationType,b=d.openCitationDetails,I=d.handleCloseCitationPreview,S=d.cachingConfig,P=d.styles,w=d.citationStyles,q=d.renderCustomComponent,D=d.selectedIdFromReason;return d.isCustomComponent,i.jsx("div",t.__assign({className:l.default.container,style:null==P?void 0:P.container},{children:"file"===x?i.jsx(e.default,{title:"book_citation_doc"===b.citation.customMetadata.type||"book_citation_pdf"===b.citation.customMetadata.type?"".concat(null===(u=b.citation.customMetadata)||void 0===u?void 0:u.file_name):"",gsUtilPath:"book_citation_doc"===b.citation.customMetadata.type||"book_citation_pdf"===b.citation.customMetadata.type?(null===(r=b.citation.customMetadata)||void 0===r?void 0:r.gcs_upload_url)||(null===(v=b.citation.customMetadata)||void 0===v?void 0:v.highlighted_pdf_gsutil_url):"",relevanceScore:null===(C=b.citation.customMetadata)||void 0===C?void 0:C.relevance_score,cachingConfig:S,closeCitationConfig:{handleCloseCitationPreview:I,CloseIcon:function(){return i.jsx(n.default,{})}},styles:null==w?void 0:w.fileCitationStyles}):"image"===x?i.jsx(o.default,{gsUtilPath:"image_citation"===b.citation.customMetadata.type?b.citation.customMetadata.gs_util_url||b.citation.customMetadata.highlighted_image_gsutil_url:"",relevanceScore:null===(m=b.citation.customMetadata)||void 0===m?void 0:m.relevance_score,cachingConfig:S,closeCitationConfig:{handleCloseCitationPreview:I,CloseIcon:function(){return i.jsx(n.default,{})}},styles:null==w?void 0:w.imageCitationStyles}):"video"===x?i.jsx(c.default,{videoUrl:"video_citation"===b.citation.customMetadata.type?b.citation.customMetadata.video_url:"",gsUtilPath:"video_citation"===b.citation.customMetadata.type?b.citation.customMetadata.gs_util_url||b.citation.customMetadata.video_gsutil_url:"",citationTitle:(null===(g=b.citation.customMetadata)||void 0===g?void 0:g.file_name)||(null===(f=b.citation.customMetadata)||void 0===f?void 0:f.title)||"Video Reference",relevanceScore:null===(_=b.citation.customMetadata)||void 0===_?void 0:_.relevance_score,cachingConfig:S,closeCitationConfig:{handleCloseCitationPreview:I,CloseIcon:function(){return i.jsx(n.default,{})}},playerConfig:{controls:!0,playing:!1,loop:!1,muted:!1,volume:.8,width:"100%",height:"400px"},styles:null==w?void 0:w.videoCitationStyles}):"web"===x?i.jsx(a.default,{gsUtilPath:(null===(h=b.citation.customMetadata)||void 0===h?void 0:h.screenshot_url)||"",relevanceScore:(null===(p=b.citation.customMetadata)||void 0===p?void 0:p.relevance_score)||0,closeCitationConfig:{handleCloseCitationPreview:I,CloseIcon:function(){return i.jsx(n.default,{})}},url:(null===(M=b.citation.customMetadata)||void 0===M?void 0:M.link)||"",label:null==b?void 0:b.title,cachingConfig:S,visitIcon:function(){return i.jsx(i.Fragment,{})},PreviewDialogCloseIcon:function(){return i.jsx(n.default,{})},styles:null==w?void 0:w.webCitationStyles}):"scanned_doc"===x?i.jsx(s.default,{images:(null!==(j=b.allScannedDocCitations)&&void 0!==j?j:[b.citation]).map(function(t){return t.customMetadata.gs_url}),highlights:(null!==(y=b.allScannedDocCitations)&&void 0!==y?y:[b.citation]).flatMap(function(t,i){return t.customMetadata.highlighted_coordinates.map(function(t){return{pageIndex:i,bboxes:[t]}})})}):"custom"===x?i.jsx("div",t.__assign({className:l.default.container,style:null==P?void 0:P.container},{children:q&&(null==q?void 0:q({close:I,selectedIdFromReason:D}))})):i.jsx(i.Fragment,{})}))};
|
|
2
2
|
//# sourceMappingURL=AiReasoningCitationPreview.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),t=require("lucide-react");exports.default=function(r){var o=r.images,s=r.highlights,a=r.highlightColor,l=void 0===a?"rgba(255, 220, 0, 0.15)":a,d=r.highlightActiveColor,c=void 0===d?"rgba(255, 220, 0, 0.35)":d,x=r.highlightBorderColor,u=void 0===x?"rgba(200, 160, 0, 0.4)":x,g=r.height,p=void 0===g?"700px":g,h=s.flatMap(function(e,i){return e.bboxes.map(function(n,t){return{bbox:n,pageIndex:e.pageIndex,key:"".concat(i,"-").concat(t)}})}).length,b=n.useState(0),f=b[0],_=b[1],y=n.useState(!1),v=y[0],m=y[1],j=n.useRef(null),k=n.useRef(null),w=n.useRef([]),C=n.useCallback(function(e,i){void 0===i&&(i=!1);var n=Math.max(0,Math.min(h-1,e));_(n);var t=i?k.current:j.current,r=w.current[n];if(t&&r){var o=t.getBoundingClientRect().top,s=r.getBoundingClientRect().top-o+t.scrollTop-t.clientHeight/2+r.clientHeight/2;t.scrollTo({top:s,behavior:"smooth"})}},[h]),z=function(n){return void 0===n&&(n=!1),h>0&&i.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",marginBottom:"6px"}},{children:i.jsxs("div",e.__assign({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"4px"}},{children:[i.jsxs("span",e.__assign({style:{fontSize:"12px",color:"#888"}},{children:[f+1," / ",h]})),i.jsx("button",e.__assign({onClick:function(){return C(f-1,n)},disabled:f<=0,style:{padding:"2px 8px",fontSize:"12px",cursor:f<=0?"not-allowed":"pointer",opacity:f<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↑"})),i.jsx("button",e.__assign({onClick:function(){return C(f+1,n)},disabled:f>=h-1,style:{padding:"2px 8px",fontSize:"12px",cursor:f>=h-1?"not-allowed":"pointer",opacity:f>=h-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↓"})),i.jsx("span",{style:{width:"1px",height:"16px",background:"#e2e8f0",margin:"0 2px"}}),n?i.jsx(t.X,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return m(!1)}}):i.jsx(t.Maximize2,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return m(!0)}})]}))}))},I=function(){var n=-1;return o.map(function(t,r){var o=s.filter(function(e){return e.pageIndex===r}).flatMap(function(e,i){return e.bboxes.map(function(e,t){return n++,{bbox:e,key:"".concat(r,"-").concat(i,"-").concat(t),globalIndex:n}})});return i.jsxs("div",{children:[i.jsxs("div",e.__assign({style:{fontSize:"12px",color:"#888",marginBottom:"4px"}},{children:["Page ",r+1]})),i.jsx("div",e.__assign({style:{position:"relative",width:"100%",paddingTop:"129%",flexShrink:0}},{children:i.jsxs("div",e.__assign({style:{position:"absolute",inset:0}},{children:[i.jsx("img",{src:t,alt:"Page ".concat(r+1),style:{display:"block",width:"100%",height:"100%",objectFit:"fill"},draggable:!1}),o.map(function(e){var n=e.bbox,t=e.key,r=e.globalIndex,o=f===r;return i.jsx("div",{ref:function(e){w.current[r]=e},style:{position:"absolute",left:"".concat(100*n.xmin,"%"),top:"".concat(100*n.ymin,"%"),width:"".concat(100*(n.xmax-n.xmin),"%"),height:"".concat(100*(n.ymax-n.ymin),"%"),background:o?c:l,border:o?"1.5px solid ".concat(u):"none",borderRadius:"2px",zIndex:2}},t)})]}))}))]},r)})},R={overflowY:"auto",border:"1px solid #ddd",borderRadius:"4px",padding:"8px",display:"flex",flexDirection:"column",gap:"8px",boxSizing:"border-box"};return i.jsxs(i.Fragment,{children:[i.jsxs("div",e.__assign({style:{width:"100%",maxWidth:"600px",fontFamily:"inherit"}},{children:[z(!1),i.jsx("div",e.__assign({ref:j,style:e.__assign(e.__assign({},R),{height:p})},{children:I()}))]})),v&&i.jsx("div",e.__assign({style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"}},{children:i.jsxs("div",e.__assign({style:{background:"white",borderRadius:"8px",padding:"16px",width:"90vw",maxWidth:"800px",height:"90vh",display:"flex",flexDirection:"column"}},{children:[z(!0),i.jsx("div",e.__assign({ref:k,style:e.__assign(e.__assign({},R),{flex:1})},{children:I()}))]}))}))]})};
|
|
2
2
|
//# sourceMappingURL=ScannedDocCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as n,Fragment as i,jsx as o}from"react/jsx-runtime";import{useState as e}from"react";import r from"./CitationRenderer.module.css.js";var a=function(a){var l=a.inLineCitation,c=a.citationTitle,s=a.citationIcon,p=a.chevronUpComponent,m=a.chevronDownComponent,d=a.additionalCallbackForPillButton,u=a.citationComponent,f=a.styles,v=void 0===f?{}:f,C=a.isOpen,h=a.onToggle,y=e(!1),g=y[0],B=y[1],N=void 0!==C?C:g;return n(i,{children:[n("span",t({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),d&&d(),h?h():void 0===C&&B(function(t){return!t})}(t)},className:r.pillButton,style:v.pillButton},{children:[s
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as n,Fragment as i,jsx as o}from"react/jsx-runtime";import{useState as e}from"react";import r from"./CitationRenderer.module.css.js";var a=function(a){var l=a.inLineCitation,c=a.citationTitle,s=a.citationIcon,p=a.chevronUpComponent,m=a.chevronDownComponent,d=a.additionalCallbackForPillButton,u=a.citationComponent,f=a.styles,v=void 0===f?{}:f,C=a.isOpen,h=a.onToggle,y=e(!1),g=y[0],B=y[1],N=void 0!==C?C:g;return n(i,{children:[n("span",t({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),d&&d(),h?h():void 0===C&&B(function(t){return!t})}(t)},className:r.pillButton,style:v.pillButton},{children:[s||(c?o("span",t({style:v.citationTitle},{children:c})):null),l&&(N?p:m)]})),l&&N&&o("div",t({className:r.citationWrapper,style:v.citationWrapper},{children:o("div",t({className:r.citationContent,style:v.citationContent},{children:u}))}))]})};export{a as default};
|
|
2
2
|
//# sourceMappingURL=CitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as n
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import o from"../../CitationRenderer/CitationRenderer.js";import t from"./components/AiReasoningCitationContent.js";var i=function(i){var e=i.title,r=i.aiReason,a=i.citationList,c=i.citationIcon,s=i.aiReasoningAccordionProps,p=i.projectDetails,l=i.cachingConfig,m=i.titleConfig,f=i.iconConfig,C=i.styles,g=i.citationStyles,u=i.renderCustomComponent,d=i.CustomComponentIcon,h=i.isCustomComponent;return n(o,{inLineCitation:!0,citationTitle:e,citationIcon:c,citationComponent:n(t,{renderCustomComponent:u,CustomComponentIcon:d,isCustomComponent:h,aiReason:r,citationsList:a,projectDetails:p,aiReasoningAccordionProps:s,cachingConfig:l,titleConfig:m,iconConfig:f,styles:C,citationStyles:g}),chevronDownComponent:n(function(){return n("i",{className:"pi pi-angle-down",style:{color:"#4B5563"}})},{}),chevronUpComponent:n(function(){return n("i",{className:"pi pi-angle-up",style:{color:"#4B5563"}})},{}),styles:{pillButton:{margin:"0px",padding:"2px 6px",fontSize:"15px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"#ffffffff",fontWeight:"700",border:"none"},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{i as default};
|
|
2
2
|
//# sourceMappingURL=AiReasoningCitation.js.map
|
package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as n,__assign as i}from"tslib";import{jsx as t,Fragment as e,jsxs as o}from"react/jsx-runtime";import{useRef as a,useMemo as l,Suspense as r}from"react";import c from"react-markdown";import d from"rehype-raw";import s from"./AiReasonMarkdownWrapper.module.css.js";import u from"./citationRenderers/ImageCitation.js";import m from"./citationRenderers/FileCitation.js";import p from"./citationRenderers/WebCitationWithImage.js";import v from"../../../Bookemon/BookemonCitationLayer.js";var h=function(h){var f=h.message,g=h.gap,_=h.setOpenCitationType,y=h.setOpenCitationDetails,b=h.citationsList,C=h.projectDetails,k=h.citationIconConfig,x=h.setSelectedIdFromReason;h.isCustomComponent;var I=h.relevance_score,M=h.CustomComponentIcon,N=a(null),T=function(n,i){return n<100?"The relevance score is ".concat(n,"% because:\n").concat(i):i},D=l(function(){return{h1:function(e){e.node;var o=n(e,["node"]);return t("h1",i({className:s.h1},{children:o.children}))},h2:function(e){e.node;var o=n(e,["node"]);return t("h2",i({className:s.h2},{children:o.children}))},h3:function(e){e.node;var o=n(e,["node"]);return t("h3",i({className:s.h3},{children:o.children}))},b:function(e){e.node;var o=n(e,["node"]);return t("b",i({className:s.bold},{children:o.children}))},p:function(e){e.node;var o=n(e,["node"]);return t("p",i({},o,{className:s.paragraph},{children:o.children}))},ol:function(e){e.node;var o=n(e,["node"]);return t("ol",i({className:s.orderedList},{children:o.children}))},ul:function(e){e.node;var o=n(e,["node"]);return t("ul",i({className:s.unorderedList},{children:o.children}))},a:function(a){var l,c,d,s,h,f,g,C,I,N;a.inline;var T=a.children;a.node;var D=n(a,["inline","children","node"]);if(!D.href)return t(e,{children:T});var w="".concat(null==D?void 0:D.href),j=null===(l=w.split("$"))||void 0===l?void 0:l[0],O=null===(c=w.split("$"))||void 0===c?void 0:c[1],W=("appmode_citation"===j?(null==b?void 0:b.appmod_citations)||[]:"image_citation"===j?(null==b?void 0:b.image_citations)||[]:"audio_citation"===j?(null==b?void 0:b.audio_citations)||[]:"document_citation"===j?(null==b?void 0:b.file_citations)||[]:"rca_citation"===j?(null==b?void 0:b.rca_citations)||[]:"web_citation"===j?(null==b?void 0:b.web_citations)||[]:"bookemon_citation"===j?(null==b?void 0:b.bookemon_citations)||[]:"custom_citations"===j?(null==b?void 0:b.custom_citations)||[]:"scanned_doc_citation"===j&&(null==b?void 0:b.scanned_doc_citations)||[]).find(function(n){return n.citation_number===O});if("image_citation"===(null==W?void 0:W.customMetadata.type))return t(r,i({fallback:t(e,{})},{children:t(u,{title:"".concat(T),citation:W,setOpenCitationType:_,setOpenCitationDetails:y,citationIcon:null==k?void 0:k.imageIcon})}));if("book_citation_doc"===(null===(d=null==W?void 0:W.customMetadata)||void 0===d?void 0:d.type)||"book_citation_pdf"===(null==W?void 0:W.customMetadata.type))return t(r,i({fallback:t(e,{})},{children:t(m,{title:"".concat(T),citation:W,setOpenCitationType:_,setOpenCitationDetails:y,citationIcon:null==k?void 0:k.fileIcon})}));if("web_citation"===(null===(s=null==W?void 0:W.customMetadata)||void 0===s?void 0:s.type)){if(null===(h=W.customMetadata)||void 0===h?void 0:h.screenshot_url)return t(p,{title:T,citation:W,setOpenCitationDetails:y,setOpenCitationType:_,citationIcon:null==k?void 0:k.webIcon})}else{if("bookemon_citation"===(null===(f=null==W?void 0:W.customMetadata)||void 0===f?void 0:f.type))return t(r,i({fallback:t(e,{})},{children:t(v,{title:T,bookemonPayload:i(i({},W.customMetadata.bookemonPayload),{highlightTerms:(null===(g=W.customMetadata)||void 0===g?void 0:g.highlighted_text)?[null===(C=W.customMetadata)||void 0===C?void 0:C.highlighted_text]:W.customMetadata.bookemonPayload.highlightTerms})})}));if("custom_citations"===(null===(I=null==W?void 0:W.customMetadata)||void 0===I?void 0:I.type))return o("a",i({style:{textDecoration:"none",color:"#526eff",display:"inline-flex",alignItems:"center",gap:"4px"},href:D.href.startsWith("javascript:")?"#":D.href,onClick:function(n){n.preventDefault(),null==x||x(D.href),null==_||_("custom"),null==y||y(W)}},{children:[T,M&&t(M,{})]}));if("scanned_doc_citation"===(null===(N=null==W?void 0:W.customMetadata)||void 0===N?void 0:N.type))return t("a",i({style:{textDecoration:"none",color:"#526eff",display:"inline-flex",alignItems:"center",gap:"4px"},href:"#",onClick:function(n){var i;n.preventDefault(),null==_||_("scanned_doc"),null==y||y({citation:W,allScannedDocCitations:null!==(i=b.scanned_doc_citations)&&void 0!==i?i:[]})}},{children:T}))}return t(e,{})},code:function(n){n.inline;var e=n.children,o=n.className;return/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?t("div",{children:t("code",i({className:s.blockCode},{children:e}))}):t("code",i({className:s.inlineCode},{children:e}))}}},[C,b]);return o("div",i({ref:N,className:s.wrapper},{children:[null==f?void 0:f.map(function(n,e){var a,l;return o("div",i({style:{display:"flex",gap:"8px",alignItems:"flex-start",marginTop:2}},{children:[o("span",i({style:{fontWeight:400,color:null!==(l=null===(a=s.paragraph)||void 0===a?void 0:a.color)&&void 0!==l?l:"black",marginTop:"2px",fontSize:"0.9rem"}},{children:[e+1,"."]})),t(c,i({components:D,rehypePlugins:[d]},{children:n}))]}),e)}),g&&g.map(function(n,e){var a,l;return o("div",i({style:{display:"flex",gap:"8px",alignItems:"flex-start",marginTop:"16px"}},{children:[o("span",i({style:{fontWeight:400,color:null!==(l=null===(a=s.paragraph)||void 0===a?void 0:a.color)&&void 0!==l?l:"black",marginTop:"2px",fontSize:"0.9rem"}},{children:[e+1,"."]})),t("div",{children:t("p",i({className:s.paragraph},{children:T(I||0,n)}))})]}),e)})]}))};export{h as AiReasonMarkdownWrapper};
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as i,Fragment as o}from"react/jsx-runtime";import e from"../../FileCitation/FileCitationContent.js";import a from"../../ImageCitation/ImageCitationContent.js";import n from"../../WebCitation/WebCitationWithImageContent.js";import l from"./icons/CloseIcon.js";import c from"./AiReasoningCitationPreview.module.css.js";import s from"../../VideoCitation/VideoCitationContent.js";var
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as i,Fragment as o}from"react/jsx-runtime";import e from"../../FileCitation/FileCitationContent.js";import a from"../../ImageCitation/ImageCitationContent.js";import n from"../../WebCitation/WebCitationWithImageContent.js";import l from"./icons/CloseIcon.js";import c from"./AiReasoningCitationPreview.module.css.js";import s from"../../VideoCitation/VideoCitationContent.js";import d from"../../../ScannedDocCitation/ScannedDocCitation.js";var r=function(r){var u,m,v,C,g,f,_,p,h,M,y,I,S,b=r.openCitationType,P=r.openCitationDetails,w=r.handleCloseCitationPreview,j=r.cachingConfig,D=r.styles,k=r.citationStyles,x=r.renderCustomComponent,U=r.selectedIdFromReason;return r.isCustomComponent,i("div",t({className:c.container,style:null==D?void 0:D.container},{children:"file"===b?i(e,{title:"book_citation_doc"===P.citation.customMetadata.type||"book_citation_pdf"===P.citation.customMetadata.type?"".concat(null===(u=P.citation.customMetadata)||void 0===u?void 0:u.file_name):"",gsUtilPath:"book_citation_doc"===P.citation.customMetadata.type||"book_citation_pdf"===P.citation.customMetadata.type?(null===(m=P.citation.customMetadata)||void 0===m?void 0:m.gcs_upload_url)||(null===(v=P.citation.customMetadata)||void 0===v?void 0:v.highlighted_pdf_gsutil_url):"",relevanceScore:null===(C=P.citation.customMetadata)||void 0===C?void 0:C.relevance_score,cachingConfig:j,closeCitationConfig:{handleCloseCitationPreview:w,CloseIcon:function(){return i(l,{})}},styles:null==k?void 0:k.fileCitationStyles}):"image"===b?i(a,{gsUtilPath:"image_citation"===P.citation.customMetadata.type?P.citation.customMetadata.gs_util_url||P.citation.customMetadata.highlighted_image_gsutil_url:"",relevanceScore:null===(g=P.citation.customMetadata)||void 0===g?void 0:g.relevance_score,cachingConfig:j,closeCitationConfig:{handleCloseCitationPreview:w,CloseIcon:function(){return i(l,{})}},styles:null==k?void 0:k.imageCitationStyles}):"video"===b?i(s,{videoUrl:"video_citation"===P.citation.customMetadata.type?P.citation.customMetadata.video_url:"",gsUtilPath:"video_citation"===P.citation.customMetadata.type?P.citation.customMetadata.gs_util_url||P.citation.customMetadata.video_gsutil_url:"",citationTitle:(null===(f=P.citation.customMetadata)||void 0===f?void 0:f.file_name)||(null===(_=P.citation.customMetadata)||void 0===_?void 0:_.title)||"Video Reference",relevanceScore:null===(p=P.citation.customMetadata)||void 0===p?void 0:p.relevance_score,cachingConfig:j,closeCitationConfig:{handleCloseCitationPreview:w,CloseIcon:function(){return i(l,{})}},playerConfig:{controls:!0,playing:!1,loop:!1,muted:!1,volume:.8,width:"100%",height:"400px"},styles:null==k?void 0:k.videoCitationStyles}):"web"===b?i(n,{gsUtilPath:(null===(h=P.citation.customMetadata)||void 0===h?void 0:h.screenshot_url)||"",relevanceScore:(null===(M=P.citation.customMetadata)||void 0===M?void 0:M.relevance_score)||0,closeCitationConfig:{handleCloseCitationPreview:w,CloseIcon:function(){return i(l,{})}},url:(null===(y=P.citation.customMetadata)||void 0===y?void 0:y.link)||"",label:null==P?void 0:P.title,cachingConfig:j,visitIcon:function(){return i(o,{})},PreviewDialogCloseIcon:function(){return i(l,{})},styles:null==k?void 0:k.webCitationStyles}):"scanned_doc"===b?i(d,{images:(null!==(I=P.allScannedDocCitations)&&void 0!==I?I:[P.citation]).map(function(t){return t.customMetadata.gs_url}),highlights:(null!==(S=P.allScannedDocCitations)&&void 0!==S?S:[P.citation]).flatMap(function(t,i){return t.customMetadata.highlighted_coordinates.map(function(t){return{pageIndex:i,bboxes:[t]}})})}):"custom"===b?i("div",t({className:c.container,style:null==D?void 0:D.container},{children:x&&(null==x?void 0:x({close:w,selectedIdFromReason:U}))})):i(o,{})}))};export{r as default};
|
|
2
2
|
//# sourceMappingURL=AiReasoningCitationPreview.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as i}from"tslib";import{jsxs as e,Fragment as t,jsx as n}from"react/jsx-runtime";import{useState as o,useRef as r,useCallback as
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as e,Fragment as t,jsx as n}from"react/jsx-runtime";import{useState as o,useRef as r,useCallback as l}from"react";import{X as d,Maximize2 as a}from"lucide-react";function c(c){var p=c.images,s=c.highlights,u=c.highlightColor,x=void 0===u?"rgba(255, 220, 0, 0.15)":u,h=c.highlightActiveColor,g=void 0===h?"rgba(255, 220, 0, 0.35)":h,f=c.highlightBorderColor,b=void 0===f?"rgba(200, 160, 0, 0.4)":f,m=c.height,y=void 0===m?"700px":m,v=s.flatMap(function(i,e){return i.bboxes.map(function(t,n){return{bbox:t,pageIndex:i.pageIndex,key:"".concat(e,"-").concat(n)}})}).length,k=o(0),w=k[0],C=k[1],I=o(!1),z=I[0],R=I[1],S=r(null),B=r(null),M=r([]),j=l(function(i,e){void 0===e&&(e=!1);var t=Math.max(0,Math.min(v-1,i));C(t);var n=e?B.current:S.current,o=M.current[t];if(n&&o){var r=n.getBoundingClientRect().top,l=o.getBoundingClientRect().top-r+n.scrollTop-n.clientHeight/2+o.clientHeight/2;n.scrollTo({top:l,behavior:"smooth"})}},[v]),T=function(t){return void 0===t&&(t=!1),v>0&&n("div",i({style:{display:"flex",alignItems:"center",marginBottom:"6px"}},{children:e("div",i({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"4px"}},{children:[e("span",i({style:{fontSize:"12px",color:"#888"}},{children:[w+1," / ",v]})),n("button",i({onClick:function(){return j(w-1,t)},disabled:w<=0,style:{padding:"2px 8px",fontSize:"12px",cursor:w<=0?"not-allowed":"pointer",opacity:w<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↑"})),n("button",i({onClick:function(){return j(w+1,t)},disabled:w>=v-1,style:{padding:"2px 8px",fontSize:"12px",cursor:w>=v-1?"not-allowed":"pointer",opacity:w>=v-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↓"})),n("span",{style:{width:"1px",height:"16px",background:"#e2e8f0",margin:"0 2px"}}),t?n(d,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return R(!1)}}):n(a,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return R(!0)}})]}))}))},D=function(){var t=-1;return p.map(function(o,r){var l=s.filter(function(i){return i.pageIndex===r}).flatMap(function(i,e){return i.bboxes.map(function(i,n){return t++,{bbox:i,key:"".concat(r,"-").concat(e,"-").concat(n),globalIndex:t}})});return e("div",{children:[e("div",i({style:{fontSize:"12px",color:"#888",marginBottom:"4px"}},{children:["Page ",r+1]})),n("div",i({style:{position:"relative",width:"100%",paddingTop:"129%",flexShrink:0}},{children:e("div",i({style:{position:"absolute",inset:0}},{children:[n("img",{src:o,alt:"Page ".concat(r+1),style:{display:"block",width:"100%",height:"100%",objectFit:"fill"},draggable:!1}),l.map(function(i){var e=i.bbox,t=i.key,o=i.globalIndex,r=w===o;return n("div",{ref:function(i){M.current[o]=i},style:{position:"absolute",left:"".concat(100*e.xmin,"%"),top:"".concat(100*e.ymin,"%"),width:"".concat(100*(e.xmax-e.xmin),"%"),height:"".concat(100*(e.ymax-e.ymin),"%"),background:r?g:x,border:r?"1.5px solid ".concat(b):"none",borderRadius:"2px",zIndex:2}},t)})]}))}))]},r)})},F={overflowY:"auto",border:"1px solid #ddd",borderRadius:"4px",padding:"8px",display:"flex",flexDirection:"column",gap:"8px",boxSizing:"border-box"};return e(t,{children:[e("div",i({style:{width:"100%",maxWidth:"600px",fontFamily:"inherit"}},{children:[T(!1),n("div",i({ref:S,style:i(i({},F),{height:y})},{children:D()}))]})),z&&n("div",i({style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"}},{children:e("div",i({style:{background:"white",borderRadius:"8px",padding:"16px",width:"90vw",maxWidth:"800px",height:"90vh",display:"flex",flexDirection:"column"}},{children:[T(!0),n("div",i({ref:B,style:i(i({},F),{flex:1})},{children:D()}))]}))}))]})}export{c as default};
|
|
2
2
|
//# sourceMappingURL=ScannedDocCitation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequirementAICitationTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAICitationTest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequirementAICitationTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAICitationTest.tsx"],"names":[],"mappings":"AA0BA,QAAA,MAAM,yBAAyB,+CA0c9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScannedDocCitationTest.d.ts","sourceRoot":"","sources":["../../../src/ScannedDocCitationTest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScannedDocCitationTest.d.ts","sourceRoot":"","sources":["../../../src/ScannedDocCitationTest.tsx"],"names":[],"mappings":"AA2CA,MAAM,CAAC,OAAO,UAAU,sBAAsB,4CAS7C"}
|
|
@@ -2,7 +2,7 @@ import React, { CSSProperties, ReactNode } from 'react';
|
|
|
2
2
|
interface CitationRendererProps {
|
|
3
3
|
inLineCitation: boolean;
|
|
4
4
|
citationIcon?: ReactNode;
|
|
5
|
-
citationTitle
|
|
5
|
+
citationTitle?: string;
|
|
6
6
|
chevronUpComponent?: React.ReactNode;
|
|
7
7
|
chevronDownComponent?: React.ReactNode;
|
|
8
8
|
additionalCallbackForPillButton?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CitationRenderer/CitationRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,UAAU,qBAAqB;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CitationRenderer/CitationRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,UAAU,qBAAqB;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,+BAA+B,CAAC,EAAE,GAAG,CAAC;IACtC,iBAAiB,CAAC,EAAE,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE;QACL,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6DrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { Citations, IProjectDetails, TAIReasoning } from './types/interface';
|
|
3
3
|
interface IProps {
|
|
4
|
-
title
|
|
4
|
+
title?: string;
|
|
5
5
|
aiReason: TAIReasoning;
|
|
6
|
+
citationIcon?: ReactNode;
|
|
6
7
|
citationList: Citations;
|
|
7
8
|
projectDetails: IProjectDetails[] | null;
|
|
8
9
|
aiReasoningAccordionProps: {
|
|
@@ -119,6 +120,6 @@ interface IProps {
|
|
|
119
120
|
gapIcon?: React.ElementType;
|
|
120
121
|
};
|
|
121
122
|
}
|
|
122
|
-
declare const AiReasoningCitation: ({ title, aiReason, citationList, aiReasoningAccordionProps, projectDetails, cachingConfig, titleConfig, iconConfig, styles, citationStyles, renderCustomComponent, CustomComponentIcon, isCustomComponent }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
declare const AiReasoningCitation: ({ title, aiReason, citationList, citationIcon, aiReasoningAccordionProps, projectDetails, cachingConfig, titleConfig, iconConfig, styles, citationStyles, renderCustomComponent, CustomComponentIcon, isCustomComponent }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
123
124
|
export default AiReasoningCitation;
|
|
124
125
|
//# sourceMappingURL=AiReasoningCitation.d.ts.map
|
package/dist/types/src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiReasoningCitation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AiReasoningCitation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG7E,UAAU,MAAM;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,YAAY,EAAE,SAAS,CAAC;IACxB,cAAc,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IACzC,yBAAyB,EAAE;QACzB,KAAK,EAAE;YACL,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC;YACvB,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC;SAC1B,CAAC;KACH,CAAC;IACF,iBAAiB,CAAC,EAAC,OAAO,CAAA;IAC1B,mBAAmB,CAAC,EAAC,KAAK,CAAC,WAAW,CAAC;IACvC,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE;QAC/B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;QACnB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtC,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE;QACd,WAAW,EAAE,GAAG,CAAC;QACjB,oBAAoB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,GAAG,CAAC;QACtE,uBAAuB,EAAE,CAAC,UAAU,EAAE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,QAAA,MAAM,mBAAmB,8NAA2N,MAAM,4CAyDzP,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiReasonMarkdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAA6B,MAAM,OAAO,CAAC;AAI5E,OAAO,EACL,SAAS,EACT,sBAAsB,EAGtB,eAAe,EAIhB,MAAM,oBAAoB,CAAC;AAS5B,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,mBAAmB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACvE,sBAAsB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IACvD,aAAa,EAAE,SAAS,CAAC;IACzB,cAAc,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IACzC,kBAAkB,CAAC,EAAE;QACnB,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAC7B,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;KAC7B,CAAA;IACD,uBAAuB,CAAC,EAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACjE,iBAAiB,CAAC,EAAC,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAC,KAAK,CAAC,WAAW,CAAC;IACvC,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE;QAC/B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;QACnB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtC,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,eAAe,CAAC,EAAC,MAAM,CAAC;CACzB;AAID,eAAO,MAAM,uBAAuB,uMAYjC,KAAK,
|
|
1
|
+
{"version":3,"file":"AiReasonMarkdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAA6B,MAAM,OAAO,CAAC;AAI5E,OAAO,EACL,SAAS,EACT,sBAAsB,EAGtB,eAAe,EAIhB,MAAM,oBAAoB,CAAC;AAS5B,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,mBAAmB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACvE,sBAAsB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IACvD,aAAa,EAAE,SAAS,CAAC;IACzB,cAAc,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IACzC,kBAAkB,CAAC,EAAE;QACnB,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAC7B,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;KAC7B,CAAA;IACD,uBAAuB,CAAC,EAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACjE,iBAAiB,CAAC,EAAC,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAC,KAAK,CAAC,WAAW,CAAC;IACvC,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE;QAC/B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;QACnB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtC,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,eAAe,CAAC,EAAC,MAAM,CAAC;CACzB;AAID,eAAO,MAAM,uBAAuB,uMAYjC,KAAK,4CA4PP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiReasoningCitationPreview.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAG5D,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AiReasoningCitationPreview.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAG5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,0BAA0B;;;sBAaZ,sBAAsB;yBACnB,GAAG;gCACI,MAAM,IAAI;;qBAEvB,GAAG;2CACmB,MAAM,YAAY,MAAM,EAAE,KAAK,GAAG;8CAC/B,MAAM,KAAK,GAAG;;;eAG7C,MAAM,IAAI;;UAEb,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CA0RtB,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -7,7 +7,7 @@ export type TAIReasoning = {
|
|
|
7
7
|
reasonSource?: string;
|
|
8
8
|
gapSource?: string;
|
|
9
9
|
};
|
|
10
|
-
export type CitationSelectionState = "document" | "stormee" | "rca" | "video" | "image" | "file" | "searchwave" | "noCitation" | "web" | "custom";
|
|
10
|
+
export type CitationSelectionState = "document" | "stormee" | "rca" | "video" | "image" | "file" | "searchwave" | "noCitation" | "web" | "custom" | "scanned_doc";
|
|
11
11
|
export type Citations = {
|
|
12
12
|
image_citations?: TImageCitation[];
|
|
13
13
|
appmod_citations?: TTextCitation[];
|
|
@@ -19,6 +19,7 @@ export type Citations = {
|
|
|
19
19
|
code_generated?: TGeneratedCodeCitation[];
|
|
20
20
|
bookemon_citations?: BookemonCitation[];
|
|
21
21
|
custom_citations?: TCustomCitation[];
|
|
22
|
+
scanned_doc_citations?: TScannedDocCitation[];
|
|
22
23
|
};
|
|
23
24
|
export type TImageCitation = CommonCitation & {
|
|
24
25
|
customMetadata: {
|
|
@@ -99,6 +100,24 @@ export type TFileCitation = CommonCitation & {
|
|
|
99
100
|
gcs_upload_url: string;
|
|
100
101
|
};
|
|
101
102
|
};
|
|
103
|
+
export type TScannedDocCitation = CommonCitation & {
|
|
104
|
+
customMetadata: {
|
|
105
|
+
type: "scanned_doc_citation";
|
|
106
|
+
gs_url: string;
|
|
107
|
+
highlighted_coordinates: {
|
|
108
|
+
xmin: number;
|
|
109
|
+
ymin: number;
|
|
110
|
+
xmax: number;
|
|
111
|
+
ymax: number;
|
|
112
|
+
}[];
|
|
113
|
+
dimensions: {
|
|
114
|
+
unit: string;
|
|
115
|
+
width: number;
|
|
116
|
+
height: number;
|
|
117
|
+
};
|
|
118
|
+
relevance_score?: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
102
121
|
interface ImageCitationsForFile {
|
|
103
122
|
[key: string]: FileImageData;
|
|
104
123
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,GAAI,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,KAAK,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,GAAI,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEnK,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,gBAAgB,CAAC,EAAE,aAAa,EAAE,CAAC;IACnC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,cAAc,CAAC,EAAE,sBAAsB,EAAE,CAAA;IACzC,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACxC,gBAAgB,CAAC,EAA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AM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,YAAY,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,YAAY;IACpB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScannedDocCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/ScannedDocCitation/ScannedDocCitation.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"ScannedDocCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/ScannedDocCitation/ScannedDocCitation.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,IAAI,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,MAAM,EACN,UAAU,EACV,cAA0C,EAC1C,oBAAgD,EAChD,oBAA+C,EAC/C,MAAgB,GACjB,EAAE,uBAAuB,2CA2IzB"}
|