@e-llm-studio/citation 0.0.158 → 0.0.159
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 +9 -0
- package/dist/cjs/features/RequirementAiCitations/VideoCitation/VideoCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/VideoCitation/VideoCitationContent.module.css.js +1 -1
- package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js +1 -1
- package/dist/features/RequirementAiCitations/VideoCitation/VideoCitationContent.js +1 -1
- package/dist/features/RequirementAiCitations/VideoCitation/VideoCitationContent.module.css.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/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts +3 -0
- package/dist/types/src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts +5 -1
- package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -893,6 +893,7 @@ import VideoCitationContent from '@e-llm-studio/citation/VideoCitationContent'
|
|
|
893
893
|
citationComponent={
|
|
894
894
|
<VideoCitationContent
|
|
895
895
|
citationTitle="Demo Video"
|
|
896
|
+
timestamp="March 23, 2026 - 10:45 AM"
|
|
896
897
|
relevanceScore={90}
|
|
897
898
|
videoUrl="https://example.com/sample.mp4"
|
|
898
899
|
playerConfig={{
|
|
@@ -918,6 +919,7 @@ import VideoCitationContent from '@e-llm-studio/citation/VideoCitationContent'
|
|
|
918
919
|
```tsx
|
|
919
920
|
<VideoCitationContent
|
|
920
921
|
citationTitle="Meeting Recording"
|
|
922
|
+
timestamp="March 23, 2026 - 10:45 AM"
|
|
921
923
|
relevanceScore={85}
|
|
922
924
|
gsUtilPath="gs://my-bucket/recordings/meeting.mp4"
|
|
923
925
|
cachingConfig={{
|
|
@@ -944,6 +946,7 @@ import VideoCitationContent from '@e-llm-studio/citation/VideoCitationContent'
|
|
|
944
946
|
|-----------|------|----------|-------------|
|
|
945
947
|
| `videoUrl` | `string` | ❌ | Direct URL to the video. Takes priority over `gsUtilPath`. |
|
|
946
948
|
| `gsUtilPath` | `string` | ❌ | GCS path to the video (requires `cachingConfig` to resolve). |
|
|
949
|
+
| `timestamp` | `string` | ❌ | Optional subtitle shown below the title (e.g. a date or time string). |
|
|
947
950
|
| `citationTitle` | `string` | ❌ | Title shown in the header. Defaults to `"Video Reference"`. |
|
|
948
951
|
| `relevanceScore` | `number` | ❌ | Confidence score to display in the header badge (0–100). |
|
|
949
952
|
| `playerConfig` | `Object` | ❌ | Playback overrides — see table below. |
|
|
@@ -971,7 +974,9 @@ import VideoCitationContent from '@e-llm-studio/citation/VideoCitationContent'
|
|
|
971
974
|
|-----|-------------|
|
|
972
975
|
| `container` | Outer component wrapper |
|
|
973
976
|
| `header` | Header bar (title + right-side actions) |
|
|
977
|
+
| `titleGroup` | Wrapper around the title and timestamp |
|
|
974
978
|
| `title` | Title text element |
|
|
979
|
+
| `timestamp` | Subtitle text shown below the title |
|
|
975
980
|
| `headerRight` | Right side of header (score + divider + close) |
|
|
976
981
|
| `divider` | Vertical divider between score and close icon |
|
|
977
982
|
| `closeIconWrapper` | Clickable wrapper around the close icon |
|
|
@@ -1156,6 +1161,10 @@ return <ScannedDocCitation images={images} highlights={highlights} />;
|
|
|
1156
1161
|
| `highlightActiveColor` | `string` | ❌ | `rgba(255, 220, 0, 0.35)` | Background color of the currently active highlight |
|
|
1157
1162
|
| `highlightBorderColor` | `string` | ❌ | `rgba(200, 160, 0, 0.4)` | Border color of the active highlight |
|
|
1158
1163
|
| `height` | `string \| number` | ❌ | `"700px"` | Maximum height of the scrollable container. Shrinks to fit content if content is shorter. |
|
|
1164
|
+
| `subHeadingTitleInsideModal` | `string` | ❌ | — | Title shown in the fullscreen modal header. Separate from `subHeadingText` which appears above the normal (non-modal) view. |
|
|
1165
|
+
| `scrollToFirstCitation` | `boolean` | ❌ | `false` | When `true`, automatically scrolls the container to the first citation/bounding box once the page image has loaded. |
|
|
1166
|
+
| `showPageSeparator` | `boolean` | ❌ | `true` | When `true`, renders a thin horizontal divider line between pages to make page breaks visually distinct. |
|
|
1167
|
+
| `pageSeparatorColor` | `string` | ❌ | `"#e2e8f0"` | CSS color value for the page separator line. Only used when `showPageSeparator` is `true`. |
|
|
1159
1168
|
|
|
1160
1169
|
### Type Definitions
|
|
1161
1170
|
```typescript
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),l=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),l=require("react"),t=require("../components/CitationAIConfidenceDisplay.js"),n=require("@mui/material"),s=require("./VideoCitationContent.module.css.js");function a(e){if(e&&e.__esModule)return e;var i=Object.create(null);return e&&Object.keys(e).forEach(function(l){if("default"!==l){var t=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(i,l,t.get?t:{enumerable:!0,get:function(){return e[l]}})}}),i.default=e,Object.freeze(i)}exports.default=function(r){var o,d,c,u,v,g,f=null===(o=null==r?void 0:r.closeCitationConfig)||void 0===o?void 0:o.CloseIcon,h=null===(d=null==r?void 0:r.cachingConfig)||void 0===d?void 0:d.queryClient,p=r.styles,m=l.useState(null),y=m[0],C=m[1],_=l.useState(null),j=_[0],x=_[1],P=["getSignedUrl",(null==r?void 0:r.gsUtilPath)||""],U=null!==(u=null===(c=r.cachingConfig)||void 0===c?void 0:c.useGetSignedUrlQuery)&&void 0!==u?u:function(e,i){return{data:void 0}},N=null!==(g=null===(v=r.cachingConfig)||void 0===v?void 0:v.useGetSignedUrlMutation)&&void 0!==g?g:function(e){return{mutate:function(){},isPending:!1}},q=U((null==r?void 0:r.gsUtilPath)||"",P).data,b=N((null==r?void 0:r.gsUtilPath)||""),S=b.mutate,D=b.isPending;l.useEffect(function(){Promise.resolve().then(function(){return a(require("react-player"))}).then(function(e){C(function(){return e.default})}).catch(function(){x("react-player is not installed. Run: npm install react-player")})},[]),l.useEffect(function(){var e;r.videoUrl||(r.gsUtilPath?(null===(e=null==h?void 0:h.getQueryData)||void 0===e?void 0:e.call(h,P))||S({gsUtilPath:r.gsUtilPath}):console.error("Error -> VideoCitationContent: gsUtilPath is required to fetch signed URL"))},[r.gsUtilPath,r.videoUrl,h,S,P]);var I=r.videoUrl||q,O=e.__assign({controls:!0,playing:!1,loop:!1,muted:!1,volume:.8,width:"100%",height:"100%"},r.playerConfig);return i.jsxs("div",e.__assign({className:s.default.container,style:null==p?void 0:p.container},{children:[i.jsxs("div",e.__assign({className:s.default.header,style:null==p?void 0:p.header},{children:[i.jsxs("div",e.__assign({className:s.default.titleGroup},{children:[i.jsx("h2",e.__assign({className:s.default.title,style:null==p?void 0:p.title},{children:(null==r?void 0:r.citationTitle)||"Video Reference"})),(null==r?void 0:r.timestamp)&&i.jsx("span",e.__assign({className:s.default.timestamp,style:null==p?void 0:p.timestamp},{children:r.timestamp}))]})),(null==r?void 0:r.closeCitationConfig)?i.jsxs("div",e.__assign({className:s.default.headerRight,style:null==p?void 0:p.headerRight},{children:[t.renderCitationAIConfidenceDisplay(r.relevanceScore,!1,null==p?void 0:p.aiConfidenceDisplayPill),i.jsx("div",{className:s.default.divider,style:null==p?void 0:p.divider}),f&&i.jsx("div",e.__assign({className:s.default.closeIconWrapper,style:null==p?void 0:p.closeIconWrapper,onClick:r.closeCitationConfig.handleCloseCitationPreview},{children:i.jsx(f,{className:s.default.closeIcon})}))]})):t.renderCitationAIConfidenceDisplay(r.relevanceScore,!0,null==p?void 0:p.aiConfidenceDisplayPill)]})),I?j?i.jsx("div",e.__assign({style:{color:"red",fontSize:"12px"}},{children:j})):y?i.jsx("div",e.__assign({className:s.default.videoWrapper,style:null==p?void 0:p.videoWrapper},{children:y&&i.jsx(y,{src:I,controls:O.controls,playing:O.playing,loop:O.loop,muted:O.muted,volume:O.volume,style:{width:O.width,height:O.height}})})):i.jsxs("div",e.__assign({className:s.default.loaderContainer,style:null==p?void 0:p.loaderContainer},{children:[i.jsx(n.CircularProgress,{size:48,thickness:4,style:{color:"#4F85FF"}}),i.jsx("span",e.__assign({className:s.default.loaderText,style:null==p?void 0:p.loaderText},{children:"Loading Player..."}))]})):D?i.jsxs("div",e.__assign({className:s.default.loaderContainer,style:null==p?void 0:p.loaderContainer},{children:[i.jsx("style",{children:".mui-circular-progress-circle { stroke-linecap: round; }"}),i.jsx(n.CircularProgress,{size:48,thickness:4,style:{color:"#4F85FF"},classes:{circle:"mui-circular-progress-circle"}}),i.jsx("span",e.__assign({className:s.default.loaderText,style:null==p?void 0:p.loaderText},{children:"Loading Video..."}))]})):null]}))};
|
|
2
2
|
//# sourceMappingURL=VideoCitationContent.js.map
|
package/dist/cjs/features/RequirementAiCitations/VideoCitation/VideoCitationContent.module.css.js
CHANGED
|
@@ -1,2 +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 t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".VideoCitationContent-module_container__OM1gg{border:1px solid #e5e7eb;display:flex;flex-direction:column;height:100%;min-height:200px;position:relative;row-gap:1rem}.VideoCitationContent-module_header__bJBnK{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.VideoCitationContent-module_title__6vfdg{color:#1f2937;font-family:Inter,sans-serif;font-weight:400;margin-top:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.VideoCitationContent-module_headerRight__hzplF{align-items:center;column-gap:1rem;display:flex;flex-direction:row}.VideoCitationContent-module_divider__h9FN4{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.VideoCitationContent-module_closeIconWrapper__IlA6u{cursor:pointer}.VideoCitationContent-module_closeIcon__i-JsU{color:#6b7280;height:24px;width:24px}.VideoCitationContent-module_videoWrapper__Gk7na{min-height:300px;padding:0 1rem 1rem;position:relative;width:100%}.VideoCitationContent-module_loaderContainer__tcLMV{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:300px}.VideoCitationContent-module_loaderText__gqI-W{color:#4b5563;font-size:.875rem;font-weight:500;margin-top:.5rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"VideoCitationContent-module_container__OM1gg",header:"VideoCitationContent-module_header__bJBnK",title:"VideoCitationContent-module_title__6vfdg",headerRight:"VideoCitationContent-module_headerRight__hzplF",divider:"VideoCitationContent-module_divider__h9FN4",closeIconWrapper:"VideoCitationContent-module_closeIconWrapper__IlA6u",closeIcon:"VideoCitationContent-module_closeIcon__i-JsU",videoWrapper:"VideoCitationContent-module_videoWrapper__Gk7na",loaderContainer:"VideoCitationContent-module_loaderContainer__tcLMV",loaderText:"VideoCitationContent-module_loaderText__gqI-W"};
|
|
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 t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".VideoCitationContent-module_container__OM1gg{border:1px solid #e5e7eb;display:flex;flex-direction:column;height:100%;min-height:200px;position:relative;row-gap:1rem}.VideoCitationContent-module_header__bJBnK{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.VideoCitationContent-module_title__6vfdg{color:#1f2937;font-family:Inter,sans-serif;font-weight:400;margin-top:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.VideoCitationContent-module_headerRight__hzplF{align-items:center;column-gap:1rem;display:flex;flex-direction:row}.VideoCitationContent-module_divider__h9FN4{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.VideoCitationContent-module_closeIconWrapper__IlA6u{cursor:pointer}.VideoCitationContent-module_closeIcon__i-JsU{color:#6b7280;height:24px;width:24px}.VideoCitationContent-module_videoWrapper__Gk7na{min-height:300px;padding:0 1rem 1rem;position:relative;width:100%}.VideoCitationContent-module_loaderContainer__tcLMV{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:300px}.VideoCitationContent-module_loaderText__gqI-W{color:#4b5563;font-size:.875rem;font-weight:500;margin-top:.5rem}.VideoCitationContent-module_titleGroup__EfsZ8{display:flex;flex-direction:column;overflow:hidden;row-gap:.125rem}.VideoCitationContent-module_timestamp__oUg8m{color:#6b7280;font-family:Inter,sans-serif;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"VideoCitationContent-module_container__OM1gg",header:"VideoCitationContent-module_header__bJBnK",title:"VideoCitationContent-module_title__6vfdg",headerRight:"VideoCitationContent-module_headerRight__hzplF",divider:"VideoCitationContent-module_divider__h9FN4",closeIconWrapper:"VideoCitationContent-module_closeIconWrapper__IlA6u",closeIcon:"VideoCitationContent-module_closeIcon__i-JsU",videoWrapper:"VideoCitationContent-module_videoWrapper__Gk7na",loaderContainer:"VideoCitationContent-module_loaderContainer__tcLMV",loaderText:"VideoCitationContent-module_loaderText__gqI-W",titleGroup:"VideoCitationContent-module_titleGroup__EfsZ8",timestamp:"VideoCitationContent-module_timestamp__oUg8m"};
|
|
2
2
|
//# sourceMappingURL=VideoCitationContent.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
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"),o=require("../ChatCitation/components/wrappers/Modal.js");exports.default=function(
|
|
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"),o=require("../ChatCitation/components/wrappers/Modal.js");exports.default=function(r){var s=r.images,a=r.highlights,l=r.pages,d=r.subHeadingText,c=void 0===d?"":d,u=r.showFullScreenMode,g=void 0===u||u,x=r.citationLabelColor,p=void 0===x?"#FFFF2E":x,h=r.showCitationLabelOnHover,f=void 0!==h&&h,_=r.highlightColor,v=void 0===_?"rgba(255, 220, 0, 0.15)":_,b=r.highlightActiveColor,m=void 0===b?"rgba(255, 220, 0, 0.35)":b,y=r.highlightBorderColor,j=void 0===y?"rgba(200, 160, 0, 0.4)":y,C=r.height,w=void 0===C?"700px":C,k=r.subHeadingTitleInsideModal,I=r.scrollToFirstCitation,S=void 0!==I&&I,z=r.showPageSeparator,M=void 0===z||z,R=r.pageSeparatorColor,F=void 0===R?"#e2e8f0":R,B=[],L=[];(null==l?void 0:l.length)?l.forEach(function(e,i){var n;e.gs_url&&B.push(e.gs_url),null===(n=e.highlighted_coordinates)||void 0===n||n.forEach(function(e){L.push({pageIndex:i,bboxes:[e]})})}):(B.push.apply(B,s||[]),L.push.apply(L,a||[]));var q=L.flatMap(function(e,i){return e.bboxes.map(function(n,t){return{bbox:n,pageIndex:e.pageIndex,key:"".concat(i,"-").concat(t)}})}),T=q.length,E=n.useState(null),H=E[0],D=E[1],P=n.useState(0),O=P[0],W=P[1],A=n.useState(!1),U=A[0],X=A[1],Y=n.useState({}),G=Y[0],J=Y[1],K=n.useRef(null),N=n.useRef(null),Q=n.useRef([]),V=n.useRef([]),Z=n.useRef(!1),$=n.useCallback(function(e,i){void 0===i&&(i=!1);var n=Math.max(0,Math.min(T-1,e));W(n),requestAnimationFrame(function(){var e=i?N.current:K.current,t=(i?V:Q).current[n];if(e&&t){var o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),s=r.top-o.top+e.scrollTop-e.clientHeight/2+r.height/2;e.scrollTo({top:s,behavior:"smooth"})}})},[T]);n.useEffect(function(){var e;if(S&&!Z.current&&0!==T){var i=null===(e=null==q?void 0:q[0])||void 0===e?void 0:e.pageIndex;G[i]&&(Z.current=!0,$(0,!1))}},[S,G,T,q,$]);var ee=function(n){return void 0===n&&(n=!1),T>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:[O+1," / ",T]})),i.jsx("button",e.__assign({onClick:function(){return $(O-1,n)},disabled:O<=0,style:{padding:"2px 4px",cursor:O<=0?"not-allowed":"pointer",opacity:O<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:i.jsx(t.ChevronUp,{size:14,color:"#64748b"})})),i.jsx("button",e.__assign({onClick:function(){return $(O+1,n)},disabled:O>=T-1,style:{padding:"2px 4px",cursor:O>=T-1?"not-allowed":"pointer",opacity:O>=T-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:i.jsx(t.ChevronDown,{size:14,color:"#64748b"})})),g&&i.jsxs(i.Fragment,{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 X(!1)}}):i.jsx(t.Maximize2,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return X(!0)}})]})]}))}))},ie=function(n){void 0===n&&(n=!1);var t=n?V:Q,o=-1;return B.map(function(n,r){var s=L.filter(function(e){return e.pageIndex===r}).flatMap(function(e,i){return e.bboxes.map(function(e,n){return o++,{bbox:e,key:"".concat(r,"-").concat(i,"-").concat(n),globalIndex:o}})});return i.jsxs("div",e.__assign({style:{marginBottom:"8px"}},{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:n,alt:"Page ".concat(r+1),style:{display:"block",width:"100%",height:"100%",objectFit:"fill"},draggable:!1,ref:function(i){i&&i.complete&&!G[r]&&J(function(i){var n;return e.__assign(e.__assign({},i),((n={})[r]=!0,n))})},onLoad:function(){return J(function(i){var n;return e.__assign(e.__assign({},i),((n={})[r]=!0,n))})}}),G[r]&&s.map(function(n){var o=n.bbox,r=n.key,s=n.globalIndex,a=O===s;return i.jsx("div",e.__assign({ref:function(e){t.current[s]=e},onMouseEnter:function(){return D(s)},onMouseLeave:function(){return D(null)},style:{position:"absolute",left:"".concat(100*o.xmin,"%"),top:"".concat(100*o.ymin,"%"),width:"".concat(100*(o.xmax-o.xmin),"%"),height:"".concat(100*(o.ymax-o.ymin),"%"),background:a?m:v,border:a?"1.5px solid ".concat(j):"none",borderRadius:"2px",zIndex:2}},{children:f&&H===s&&i.jsxs("div",e.__assign({style:{position:"absolute",top:"-18px",right:"0",fontSize:"10px",background:p,color:"black",padding:"2px 6px",borderRadius:"3px",whiteSpace:"nowrap"}},{children:["Citation ",s+1]}))}),r)})]}))})),M&&r<B.length-1&&i.jsx("div",{style:{height:"1px",background:F,margin:"0"}})]}),r)})},ne={overflowY:"auto",border:"1px solid #ddd",borderRadius:"4px",padding:"8px",paddingBottom:0,display:"flex",flexDirection:"column",boxSizing:"border-box"};return i.jsxs(i.Fragment,{children:[i.jsxs("div",e.__assign({style:{width:"100%",maxWidth:"800px",fontFamily:"inherit",display:"flex",flexDirection:"column"}},{children:[(c||T>0)&&i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",marginBottom:"6px"}},{children:[c&&i.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:500,color:"#111"}},{children:c})),i.jsx("div",e.__assign({style:{marginLeft:"auto"}},{children:ee(!1)}))]})),i.jsx("div",e.__assign({ref:K,style:e.__assign(e.__assign({},ne),{maxHeight:w})},{children:ie(!1)}))]})),i.jsx(o.Modal,e.__assign({isOpen:U,onClose:function(){return X(!1)}},{children:i.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"}},{children:[(k||T>0)&&i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",marginBottom:"6px",padding:"8px"}},{children:[k&&i.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:500,color:"#111"}},{children:k})),i.jsx("div",e.__assign({style:{marginLeft:"auto"}},{children:ee(!0)}))]})),i.jsx("div",e.__assign({ref:N,style:e.__assign(e.__assign({},ne),{flex:1})},{children:U&&ie(!0)}))]}))}))]})};
|
|
2
2
|
//# sourceMappingURL=ScannedDocCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as l}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useState as o,useEffect as n}from"react";import{renderCitationAIConfidenceDisplay as t}from"../components/CitationAIConfidenceDisplay.js";import{CircularProgress as
|
|
1
|
+
import{__assign as l}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useState as o,useEffect as n}from"react";import{renderCitationAIConfidenceDisplay as t}from"../components/CitationAIConfidenceDisplay.js";import{CircularProgress as a}from"@mui/material";import r from"./VideoCitationContent.module.css.js";var d=function(d){var s,c,u,v,m,h,p=null===(s=null==d?void 0:d.closeCitationConfig)||void 0===s?void 0:s.CloseIcon,g=null===(c=null==d?void 0:d.cachingConfig)||void 0===c?void 0:c.queryClient,y=d.styles,f=o(null),C=f[0],U=f[1],N=o(null),P=N[0],x=N[1],F=["getSignedUrl",(null==d?void 0:d.gsUtilPath)||""],S=null!==(v=null===(u=d.cachingConfig)||void 0===u?void 0:u.useGetSignedUrlQuery)&&void 0!==v?v:function(l,e){return{data:void 0}},I=null!==(h=null===(m=d.cachingConfig)||void 0===m?void 0:m.useGetSignedUrlMutation)&&void 0!==h?h:function(l){return{mutate:function(){},isPending:!1}},R=S((null==d?void 0:d.gsUtilPath)||"",F).data,T=I((null==d?void 0:d.gsUtilPath)||""),k=T.mutate,w=T.isPending;n(function(){import("react-player").then(function(l){U(function(){return l.default})}).catch(function(){x("react-player is not installed. Run: npm install react-player")})},[]),n(function(){var l;d.videoUrl||(d.gsUtilPath?(null===(l=null==g?void 0:g.getQueryData)||void 0===l?void 0:l.call(g,F))||k({gsUtilPath:d.gsUtilPath}):console.error("Error -> VideoCitationContent: gsUtilPath is required to fetch signed URL"))},[d.gsUtilPath,d.videoUrl,g,k,F]);var D=d.videoUrl||R,V=l({controls:!0,playing:!1,loop:!1,muted:!1,volume:.8,width:"100%",height:"100%"},d.playerConfig);return e("div",l({className:r.container,style:null==y?void 0:y.container},{children:[e("div",l({className:r.header,style:null==y?void 0:y.header},{children:[e("div",l({className:r.titleGroup},{children:[i("h2",l({className:r.title,style:null==y?void 0:y.title},{children:(null==d?void 0:d.citationTitle)||"Video Reference"})),(null==d?void 0:d.timestamp)&&i("span",l({className:r.timestamp,style:null==y?void 0:y.timestamp},{children:d.timestamp}))]})),(null==d?void 0:d.closeCitationConfig)?e("div",l({className:r.headerRight,style:null==y?void 0:y.headerRight},{children:[t(d.relevanceScore,!1,null==y?void 0:y.aiConfidenceDisplayPill),i("div",{className:r.divider,style:null==y?void 0:y.divider}),p&&i("div",l({className:r.closeIconWrapper,style:null==y?void 0:y.closeIconWrapper,onClick:d.closeCitationConfig.handleCloseCitationPreview},{children:i(p,{className:r.closeIcon})}))]})):t(d.relevanceScore,!0,null==y?void 0:y.aiConfidenceDisplayPill)]})),D?P?i("div",l({style:{color:"red",fontSize:"12px"}},{children:P})):C?i("div",l({className:r.videoWrapper,style:null==y?void 0:y.videoWrapper},{children:C&&i(C,{src:D,controls:V.controls,playing:V.playing,loop:V.loop,muted:V.muted,volume:V.volume,style:{width:V.width,height:V.height}})})):e("div",l({className:r.loaderContainer,style:null==y?void 0:y.loaderContainer},{children:[i(a,{size:48,thickness:4,style:{color:"#4F85FF"}}),i("span",l({className:r.loaderText,style:null==y?void 0:y.loaderText},{children:"Loading Player..."}))]})):w?e("div",l({className:r.loaderContainer,style:null==y?void 0:y.loaderContainer},{children:[i("style",{children:".mui-circular-progress-circle { stroke-linecap: round; }"}),i(a,{size:48,thickness:4,style:{color:"#4F85FF"},classes:{circle:"mui-circular-progress-circle"}}),i("span",l({className:r.loaderText,style:null==y?void 0:y.loaderText},{children:"Loading Video..."}))]})):null]}))};export{d as default};
|
|
2
2
|
//# sourceMappingURL=VideoCitationContent.js.map
|
package/dist/features/RequirementAiCitations/VideoCitation/VideoCitationContent.module.css.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={container:"VideoCitationContent-module_container__OM1gg",header:"VideoCitationContent-module_header__bJBnK",title:"VideoCitationContent-module_title__6vfdg",headerRight:"VideoCitationContent-module_headerRight__hzplF",divider:"VideoCitationContent-module_divider__h9FN4",closeIconWrapper:"VideoCitationContent-module_closeIconWrapper__IlA6u",closeIcon:"VideoCitationContent-module_closeIcon__i-JsU",videoWrapper:"VideoCitationContent-module_videoWrapper__Gk7na",loaderContainer:"VideoCitationContent-module_loaderContainer__tcLMV",loaderText:"VideoCitationContent-module_loaderText__gqI-W"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".VideoCitationContent-module_container__OM1gg{border:1px solid #e5e7eb;display:flex;flex-direction:column;height:100%;min-height:200px;position:relative;row-gap:1rem}.VideoCitationContent-module_header__bJBnK{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.VideoCitationContent-module_title__6vfdg{color:#1f2937;font-family:Inter,sans-serif;font-weight:400;margin-top:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.VideoCitationContent-module_headerRight__hzplF{align-items:center;column-gap:1rem;display:flex;flex-direction:row}.VideoCitationContent-module_divider__h9FN4{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.VideoCitationContent-module_closeIconWrapper__IlA6u{cursor:pointer}.VideoCitationContent-module_closeIcon__i-JsU{color:#6b7280;height:24px;width:24px}.VideoCitationContent-module_videoWrapper__Gk7na{min-height:300px;padding:0 1rem 1rem;position:relative;width:100%}.VideoCitationContent-module_loaderContainer__tcLMV{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:300px}.VideoCitationContent-module_loaderText__gqI-W{color:#4b5563;font-size:.875rem;font-weight:500;margin-top:.5rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
1
|
+
var e={container:"VideoCitationContent-module_container__OM1gg",header:"VideoCitationContent-module_header__bJBnK",title:"VideoCitationContent-module_title__6vfdg",headerRight:"VideoCitationContent-module_headerRight__hzplF",divider:"VideoCitationContent-module_divider__h9FN4",closeIconWrapper:"VideoCitationContent-module_closeIconWrapper__IlA6u",closeIcon:"VideoCitationContent-module_closeIcon__i-JsU",videoWrapper:"VideoCitationContent-module_videoWrapper__Gk7na",loaderContainer:"VideoCitationContent-module_loaderContainer__tcLMV",loaderText:"VideoCitationContent-module_loaderText__gqI-W",titleGroup:"VideoCitationContent-module_titleGroup__EfsZ8",timestamp:"VideoCitationContent-module_timestamp__oUg8m"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".VideoCitationContent-module_container__OM1gg{border:1px solid #e5e7eb;display:flex;flex-direction:column;height:100%;min-height:200px;position:relative;row-gap:1rem}.VideoCitationContent-module_header__bJBnK{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.VideoCitationContent-module_title__6vfdg{color:#1f2937;font-family:Inter,sans-serif;font-weight:400;margin-top:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.VideoCitationContent-module_headerRight__hzplF{align-items:center;column-gap:1rem;display:flex;flex-direction:row}.VideoCitationContent-module_divider__h9FN4{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.VideoCitationContent-module_closeIconWrapper__IlA6u{cursor:pointer}.VideoCitationContent-module_closeIcon__i-JsU{color:#6b7280;height:24px;width:24px}.VideoCitationContent-module_videoWrapper__Gk7na{min-height:300px;padding:0 1rem 1rem;position:relative;width:100%}.VideoCitationContent-module_loaderContainer__tcLMV{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:300px}.VideoCitationContent-module_loaderText__gqI-W{color:#4b5563;font-size:.875rem;font-weight:500;margin-top:.5rem}.VideoCitationContent-module_titleGroup__EfsZ8{display:flex;flex-direction:column;overflow:hidden;row-gap:.125rem}.VideoCitationContent-module_timestamp__oUg8m{color:#6b7280;font-family:Inter,sans-serif;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=VideoCitationContent.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as i,Fragment as n,jsx as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as i,Fragment as n,jsx as o}from"react/jsx-runtime";import{useState as t,useRef as r,useCallback as l,useEffect as d}from"react";import{ChevronUp as a,ChevronDown as c,X as p,Maximize2 as s}from"lucide-react";import{Modal as u}from"../ChatCitation/components/wrappers/Modal.js";function h(h){var g=h.images,x=h.highlights,f=h.pages,v=h.subHeadingText,m=void 0===v?"":v,b=h.showFullScreenMode,y=void 0===b||b,w=h.citationLabelColor,C=void 0===w?"#FFFF2E":w,k=h.showCitationLabelOnHover,I=void 0!==k&&k,z=h.highlightColor,S=void 0===z?"rgba(255, 220, 0, 0.15)":z,B=h.highlightActiveColor,F=void 0===B?"rgba(255, 220, 0, 0.35)":B,M=h.highlightBorderColor,L=void 0===M?"rgba(200, 160, 0, 0.4)":M,R=h.height,T=void 0===R?"700px":R,H=h.subHeadingTitleInsideModal,E=h.scrollToFirstCitation,j=void 0!==E&&E,D=h.showPageSeparator,P=void 0===D||D,W=h.pageSeparatorColor,_=void 0===W?"#e2e8f0":W,A=[],O=[];(null==f?void 0:f.length)?f.forEach(function(e,i){var n;e.gs_url&&A.push(e.gs_url),null===(n=e.highlighted_coordinates)||void 0===n||n.forEach(function(e){O.push({pageIndex:i,bboxes:[e]})})}):(A.push.apply(A,g||[]),O.push.apply(O,x||[]));var q=O.flatMap(function(e,i){return e.bboxes.map(function(n,o){return{bbox:n,pageIndex:e.pageIndex,key:"".concat(i,"-").concat(o)}})}),Y=q.length,G=t(null),J=G[0],K=G[1],N=t(0),Q=N[0],U=N[1],V=t(!1),X=V[0],Z=V[1],$=t({}),ee=$[0],ie=$[1],ne=r(null),oe=r(null),te=r([]),re=r([]),le=r(!1),de=l(function(e,i){void 0===i&&(i=!1);var n=Math.max(0,Math.min(Y-1,e));U(n),requestAnimationFrame(function(){var e=i?oe.current:ne.current,o=(i?re:te).current[n];if(e&&o){var t=e.getBoundingClientRect(),r=o.getBoundingClientRect(),l=r.top-t.top+e.scrollTop-e.clientHeight/2+r.height/2;e.scrollTo({top:l,behavior:"smooth"})}})},[Y]);d(function(){var e;if(j&&!le.current&&0!==Y){var i=null===(e=null==q?void 0:q[0])||void 0===e?void 0:e.pageIndex;ee[i]&&(le.current=!0,de(0,!1))}},[j,ee,Y,q,de]);var ae=function(t){return void 0===t&&(t=!1),Y>0&&o("div",e({style:{display:"flex",alignItems:"center",marginBottom:"6px"}},{children:i("div",e({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"4px"}},{children:[i("span",e({style:{fontSize:"12px",color:"#888"}},{children:[Q+1," / ",Y]})),o("button",e({onClick:function(){return de(Q-1,t)},disabled:Q<=0,style:{padding:"2px 4px",cursor:Q<=0?"not-allowed":"pointer",opacity:Q<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:o(a,{size:14,color:"#64748b"})})),o("button",e({onClick:function(){return de(Q+1,t)},disabled:Q>=Y-1,style:{padding:"2px 4px",cursor:Q>=Y-1?"not-allowed":"pointer",opacity:Q>=Y-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:o(c,{size:14,color:"#64748b"})})),y&&i(n,{children:[o("span",{style:{width:"1px",height:"16px",background:"#e2e8f0",margin:"0 2px"}}),t?o(p,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return Z(!1)}}):o(s,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return Z(!0)}})]})]}))}))},ce=function(n){void 0===n&&(n=!1);var t=n?re:te,r=-1;return A.map(function(n,l){var d=O.filter(function(e){return e.pageIndex===l}).flatMap(function(e,i){return e.bboxes.map(function(e,n){return r++,{bbox:e,key:"".concat(l,"-").concat(i,"-").concat(n),globalIndex:r}})});return i("div",e({style:{marginBottom:"8px"}},{children:[i("div",e({style:{fontSize:"12px",color:"#888",marginBottom:"4px"}},{children:["Page ",l+1]})),o("div",e({style:{position:"relative",width:"100%",paddingTop:"129%",flexShrink:0}},{children:i("div",e({style:{position:"absolute",inset:0}},{children:[o("img",{src:n,alt:"Page ".concat(l+1),style:{display:"block",width:"100%",height:"100%",objectFit:"fill"},draggable:!1,ref:function(i){i&&i.complete&&!ee[l]&&ie(function(i){var n;return e(e({},i),((n={})[l]=!0,n))})},onLoad:function(){return ie(function(i){var n;return e(e({},i),((n={})[l]=!0,n))})}}),ee[l]&&d.map(function(n){var r=n.bbox,l=n.key,d=n.globalIndex,a=Q===d;return o("div",e({ref:function(e){t.current[d]=e},onMouseEnter:function(){return K(d)},onMouseLeave:function(){return K(null)},style:{position:"absolute",left:"".concat(100*r.xmin,"%"),top:"".concat(100*r.ymin,"%"),width:"".concat(100*(r.xmax-r.xmin),"%"),height:"".concat(100*(r.ymax-r.ymin),"%"),background:a?F:S,border:a?"1.5px solid ".concat(L):"none",borderRadius:"2px",zIndex:2}},{children:I&&J===d&&i("div",e({style:{position:"absolute",top:"-18px",right:"0",fontSize:"10px",background:C,color:"black",padding:"2px 6px",borderRadius:"3px",whiteSpace:"nowrap"}},{children:["Citation ",d+1]}))}),l)})]}))})),P&&l<A.length-1&&o("div",{style:{height:"1px",background:_,margin:"0"}})]}),l)})},pe={overflowY:"auto",border:"1px solid #ddd",borderRadius:"4px",padding:"8px",paddingBottom:0,display:"flex",flexDirection:"column",boxSizing:"border-box"};return i(n,{children:[i("div",e({style:{width:"100%",maxWidth:"800px",fontFamily:"inherit",display:"flex",flexDirection:"column"}},{children:[(m||Y>0)&&i("div",e({style:{display:"flex",alignItems:"center",marginBottom:"6px"}},{children:[m&&o("div",e({style:{fontSize:"14px",fontWeight:500,color:"#111"}},{children:m})),o("div",e({style:{marginLeft:"auto"}},{children:ae(!1)}))]})),o("div",e({ref:ne,style:e(e({},pe),{maxHeight:T})},{children:ce(!1)}))]})),o(u,e({isOpen:X,onClose:function(){return Z(!1)}},{children:i("div",e({style:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"}},{children:[(H||Y>0)&&i("div",e({style:{display:"flex",alignItems:"center",marginBottom:"6px",padding:"8px"}},{children:[H&&o("div",e({style:{fontSize:"14px",fontWeight:500,color:"#111"}},{children:H})),o("div",e({style:{marginLeft:"auto"}},{children:ae(!0)}))]})),o("div",e({ref:oe,style:e(e({},pe),{flex:1})},{children:X&&ce(!0)}))]}))}))]})}export{h as default};
|
|
2
2
|
//# sourceMappingURL=ScannedDocCitation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequirementAICitationTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAICitationTest.tsx"],"names":[],"mappings":"AA0BA,QAAA,MAAM,yBAAyB,+
|
|
1
|
+
{"version":3,"file":"RequirementAICitationTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAICitationTest.tsx"],"names":[],"mappings":"AA0BA,QAAA,MAAM,yBAAyB,+CA2c9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
package/dist/types/src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
interface IProps {
|
|
3
3
|
citationTitle?: string;
|
|
4
4
|
videoUrl?: string;
|
|
5
|
+
timestamp?: string;
|
|
5
6
|
gsUtilPath?: string;
|
|
6
7
|
relevanceScore?: number;
|
|
7
8
|
closeCitationConfig?: {
|
|
@@ -25,6 +26,8 @@ interface IProps {
|
|
|
25
26
|
styles?: {
|
|
26
27
|
container?: React.CSSProperties;
|
|
27
28
|
header?: React.CSSProperties;
|
|
29
|
+
titleGroup?: React.CSSProperties;
|
|
30
|
+
timestamp?: React.CSSProperties;
|
|
28
31
|
title?: React.CSSProperties;
|
|
29
32
|
headerRight?: React.CSSProperties;
|
|
30
33
|
divider?: React.CSSProperties;
|
package/dist/types/src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE;QACpB,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC;QAC7B,0BAA0B,EAAE,MAAM,IAAI,CAAC;KACxC,CAAC;IACF,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,MAAM,KAAK,GAAG,CAAC;KACtD,CAAC;IACF,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAChC,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAClC,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACvC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACtC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACjC,uBAAuB,CAAC,EAAE;YACxB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;SACjC,CAAC;KACH,CAAC;CACH;AAED,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"VideoCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE;QACpB,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC;QAC7B,0BAA0B,EAAE,MAAM,IAAI,CAAC;KACxC,CAAC;IACF,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,MAAM,KAAK,GAAG,CAAC;KACtD,CAAC;IACF,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAChC,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC7B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACjC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAChC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAClC,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACvC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACtC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACjC,uBAAuB,CAAC,EAAE;YACxB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;SACjC,CAAC;KACH,CAAC;CACH;AAED,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CA8M1C,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -40,6 +40,10 @@ export interface ScannedDocCitationProps {
|
|
|
40
40
|
highlightActiveColor?: string;
|
|
41
41
|
highlightBorderColor?: string;
|
|
42
42
|
height?: string | number;
|
|
43
|
+
subHeadingTitleInsideModal?: string;
|
|
44
|
+
scrollToFirstCitation?: boolean;
|
|
45
|
+
showPageSeparator?: boolean;
|
|
46
|
+
pageSeparatorColor?: string;
|
|
43
47
|
}
|
|
44
|
-
export default function ScannedDocCitation({ images, highlights, pages, subHeadingText, showFullScreenMode, citationLabelColor, showCitationLabelOnHover, highlightColor, highlightActiveColor, highlightBorderColor, height, }: ScannedDocCitationProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export default function ScannedDocCitation({ images, highlights, pages, subHeadingText, showFullScreenMode, citationLabelColor, showCitationLabelOnHover, highlightColor, highlightActiveColor, highlightBorderColor, height, subHeadingTitleInsideModal, scrollToFirstCitation, showPageSeparator, pageSeparatorColor, }: ScannedDocCitationProps): import("react/jsx-runtime").JSX.Element;
|
|
45
49
|
//# sourceMappingURL=ScannedDocCitation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScannedDocCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/ScannedDocCitation/ScannedDocCitation.tsx"],"names":[],"mappings":"AAIA,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;AACD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uBAAuB,CAAC,EAAE,IAAI,EAAE,CAAC;IACjC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,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;
|
|
1
|
+
{"version":3,"file":"ScannedDocCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/ScannedDocCitation/ScannedDocCitation.tsx"],"names":[],"mappings":"AAIA,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;AACD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uBAAuB,CAAC,EAAE,IAAI,EAAE,CAAC;IACjC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,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;IACzB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,MAAM,EACN,UAAU,EACV,KAAK,EACL,cAAiB,EACjB,kBAAuB,EACvB,kBAA8B,EAC9B,wBAAgC,EAChC,cAA0C,EAC1C,oBAAgD,EAChD,oBAA+C,EAC/C,MAAgB,EAChB,0BAA0B,EAC1B,qBAA6B,EAC7B,iBAAwB,EACxB,kBAA8B,GAC/B,EAAE,uBAAuB,2CA4PzB"}
|