@e-llm-studio/citation 0.0.165 → 0.0.167
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 +67 -0
- package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js +2 -0
- package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js.map +1 -0
- package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.module.css.js +2 -0
- package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.module.css.js.map +1 -0
- package/dist/cjs/features/TableCitation/TableCitationContent.js +2 -0
- package/dist/cjs/features/TableCitation/TableCitationContent.js.map +1 -0
- package/dist/cjs/features/TableCitation/TableCitationContent.module.css.js +2 -0
- package/dist/cjs/features/TableCitation/TableCitationContent.module.css.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js +2 -0
- package/dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js.map +1 -0
- package/dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.module.css.js +2 -0
- package/dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.module.css.js.map +1 -0
- package/dist/features/TableCitation/TableCitationContent.js +2 -0
- package/dist/features/TableCitation/TableCitationContent.js.map +1 -0
- package/dist/features/TableCitation/TableCitationContent.module.css.js +2 -0
- package/dist/features/TableCitation/TableCitationContent.module.css.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/types/src/MarkdownWithImageCitationTest.d.ts +3 -0
- package/dist/types/src/MarkdownWithImageCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts +37 -0
- package/dist/types/src/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
- [PdfEditorCitation](#pdfeditorcitation) [<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" width="18" height="18">](https://github.com/Techolution/e-llm-studio-lib/blob/dev/citation/src/features/PdfEditorCitation/README.md)
|
|
20
20
|
- [RequirementAICitation](#requirementaicitation) [<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" width="18" height="18">](https://github.com/Techolution/e-llm-studio-lib/blob/dev/citation/src/features/RequirementAiCitations/RequirementAiCitationsReadme.md)
|
|
21
21
|
- [VideoCitationContent](#videocitationcontent) [<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" width="18" height="18">](https://github.com/Techolution/e-llm-studio-lib/blob/dev/citation/src/features/RequirementAiCitations/RequirementAiCitationsReadme.md)
|
|
22
|
+
- [MarkdownWithImageCitation](#markdownwithimagecitation) [<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" width="18" height="18">](https://github.com/Techolution/e-llm-studio-lib/blob/dev/citation/src/features/MarkdownWithImageCitation/README.md)
|
|
22
23
|
- [ScannedDocCitation](#scanneddoccitation) [<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" width="18" height="18">](https://github.com/Techolution/e-llm-studio-lib/blob/dev/citation/src/features/ScannedDocCitation/README.md)
|
|
23
24
|
- [Other Components](#other-components)
|
|
24
25
|
- [Bookemon](#bookemon) [<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" width="18" height="18">](https://github.com/Techolution/e-llm-studio-lib/blob/dev/citation/src/features/Bookemon/BookemonReadme.md)
|
|
@@ -887,6 +888,61 @@ import { WebCitationWithImageContent } from '@e-llm-studio/citation/WebCitationW
|
|
|
887
888
|
|
|
888
889
|
---
|
|
889
890
|
|
|
891
|
+
### Usage 5: Standalone Markdown With Image Citation
|
|
892
|
+
|
|
893
|
+
Use this component when the image should be rendered as part of the markdown content itself rather than as a separate prop-driven media block.
|
|
894
|
+
|
|
895
|
+
```tsx
|
|
896
|
+
import { MarkdownWithImageCitation } from '@e-llm-studio/citation/MarkdownWithImageCitation'
|
|
897
|
+
|
|
898
|
+
const markdownContent = `
|
|
899
|
+
## Product Collaboration Workspace
|
|
900
|
+
|
|
901
|
+
<img src="https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80" alt="Team collaboration workspace" />
|
|
902
|
+
|
|
903
|
+
This visual captures a clean product collaboration workspace prepared for planning, note-taking, and design review.
|
|
904
|
+
|
|
905
|
+
### Key observations
|
|
906
|
+
|
|
907
|
+
- The laptop acts as the primary working surface for product or engineering review
|
|
908
|
+
- The surrounding setup reinforces a structured, research-oriented workflow
|
|
909
|
+
- The image is rendered inline as part of the markdown citation
|
|
910
|
+
`;
|
|
911
|
+
|
|
912
|
+
<MarkdownWithImageCitation
|
|
913
|
+
citationTitle="Inline Markdown Image Reference"
|
|
914
|
+
timestamp="Apr 03, 2026 - 11:15 AM"
|
|
915
|
+
relevanceScore={98}
|
|
916
|
+
markdownContent={markdownContent}
|
|
917
|
+
closeCitationConfig={{
|
|
918
|
+
CloseIcon: () => <span>✕</span>,
|
|
919
|
+
handleCloseCitationPreview: () => console.log('Closed'),
|
|
920
|
+
}}
|
|
921
|
+
/>
|
|
922
|
+
```
|
|
923
|
+
|
|
924
|
+
**With CitationRenderer (Expandable Pill):**
|
|
925
|
+
```tsx
|
|
926
|
+
import { CitationRenderer } from '@e-llm-studio/citation/CitationRenderer'
|
|
927
|
+
import { MarkdownWithImageCitation } from '@e-llm-studio/citation/MarkdownWithImageCitation'
|
|
928
|
+
|
|
929
|
+
<CitationRenderer
|
|
930
|
+
inLineCitation={true}
|
|
931
|
+
citationTitle="Markdown Image Reference"
|
|
932
|
+
citationComponent={
|
|
933
|
+
<MarkdownWithImageCitation
|
|
934
|
+
citationTitle="Workspace Note"
|
|
935
|
+
markdownContent={markdownContent}
|
|
936
|
+
relevanceScore={98}
|
|
937
|
+
/>
|
|
938
|
+
}
|
|
939
|
+
chevronDownComponent={<span>▼</span>}
|
|
940
|
+
chevronUpComponent={<span>▲</span>}
|
|
941
|
+
/>
|
|
942
|
+
```
|
|
943
|
+
|
|
944
|
+
---
|
|
945
|
+
|
|
890
946
|
### Component Props Reference
|
|
891
947
|
|
|
892
948
|
#### AiReasoningCitation Props
|
|
@@ -949,6 +1005,17 @@ import { WebCitationWithImageContent } from '@e-llm-studio/citation/WebCitationW
|
|
|
949
1005
|
|
|
950
1006
|
*Either `signedUrl` or `gsUtilPath` must be provided
|
|
951
1007
|
|
|
1008
|
+
#### MarkdownWithImageCitation Props
|
|
1009
|
+
|
|
1010
|
+
| Prop Name | Type | Required | Description |
|
|
1011
|
+
|-----------|------|----------|-------------|
|
|
1012
|
+
| `markdownContent` | `string` | ✅ | Markdown/HTML string to render. Inline `<img />` tags are supported. |
|
|
1013
|
+
| `citationTitle` | `string` | ❌ | Title shown in the header. Defaults to `"Markdown With Image"`. |
|
|
1014
|
+
| `timestamp` | `string` | ❌ | Optional subtitle shown below the title. |
|
|
1015
|
+
| `relevanceScore` | `number` | ❌ | Confidence score to display in the header badge (0–100). |
|
|
1016
|
+
| `closeCitationConfig` | `Object` | ❌ | `{ CloseIcon, handleCloseCitationPreview }` — renders a close button in the header. |
|
|
1017
|
+
| `styles` | `Object` | ❌ | Deep style overrides for container, header, image wrapper, and markdown regions. |
|
|
1018
|
+
|
|
952
1019
|
---
|
|
953
1020
|
|
|
954
1021
|
**Required peer dependencies:**
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),l=require("react-markdown"),s=require("rehype-raw"),t=require("../RequirementAiCitations/components/CitationAIConfidenceDisplay.js"),a=require("./MarkdownWithImageCitation.module.css.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=r(n),o=r(l),u=r(s);exports.default=function(n){var l,s,r,c,v=null===(l=null==n?void 0:n.closeCitationConfig)||void 0===l?void 0:l.CloseIcon,m=n.styles,_=function(e){if(!e)return"";var i=e.replace(/\t/g," ").split("\n"),n=i.filter(function(e){return e.trim().length>0}).reduce(function(e,i){var n=i.match(/^ */),l=n?n[0].length:0;return Math.min(e,l)},Number.POSITIVE_INFINITY);return i.map(function(e){return n&&Number.isFinite(n)?e.slice(n):e}).join("\n").trim()}(n.markdownContent);return i.jsxs("div",e.__assign({className:a.default.container,style:null==m?void 0:m.container},{children:[i.jsxs("div",e.__assign({className:a.default.header,style:null==m?void 0:m.header},{children:[i.jsxs("div",e.__assign({className:a.default.titleGroup,style:null==m?void 0:m.titleGroup},{children:[i.jsx("h2",e.__assign({className:a.default.title,style:null==m?void 0:m.title},{children:(null==n?void 0:n.citationTitle)||"Markdown With Image"})),(null==n?void 0:n.timestamp)?i.jsx("span",e.__assign({className:a.default.timestamp,style:null==m?void 0:m.timestamp},{children:n.timestamp})):null]})),(null==n?void 0:n.closeCitationConfig)?i.jsxs("div",e.__assign({className:a.default.headerRight,style:null==m?void 0:m.headerRight},{children:[t.renderCitationAIConfidenceDisplay(n.relevanceScore,!1,null==m?void 0:m.aiConfidenceDisplayPill),i.jsx("div",{className:a.default.divider,style:null==m?void 0:m.divider}),v&&i.jsx("div",e.__assign({className:a.default.closeIconWrapper,style:null==m?void 0:m.closeIconWrapper,onClick:n.closeCitationConfig.handleCloseCitationPreview},{children:i.jsx(v,{className:a.default.closeIcon})}))]})):t.renderCitationAIConfidenceDisplay(n.relevanceScore,!0,null==m?void 0:m.aiConfidenceDisplayPill)]})),i.jsx("div",e.__assign({className:a.default.content,style:null==m?void 0:m.content},{children:i.jsx("div",e.__assign({style:null===(s=null==m?void 0:m.markdown)||void 0===s?void 0:s.containerWrapper},{children:i.jsx("div",e.__assign({style:null===(r=null==m?void 0:m.markdown)||void 0===r?void 0:r.mainCard},{children:i.jsx("div",e.__assign({className:a.default.markdownBody,style:null===(c=null==m?void 0:m.markdown)||void 0===c?void 0:c.scrollArea},{children:i.jsx(o.default,e.__assign({rehypePlugins:[u.default],components:{p:function(n){n.node;var l=n.children,s=e.__rest(n,["node","children"]);return i.jsx("p",e.__assign({},s,{children:d.default.Children.map(l,function(n){var l,s,t;return"string"==typeof n?(s=n,(t=null===(l=null==m?void 0:m.markdown)||void 0===l?void 0:l.customHighlight)?i.jsx("span",e.__assign({style:t},{children:s})):s):n})}))},img:function(n){n.node;var l=e.__rest(n,["node"]);return i.jsx("div",e.__assign({className:a.default.imageWrapper,style:null==m?void 0:m.imageWrapper},{children:i.jsx("img",e.__assign({},l,{className:a.default.image,style:null==m?void 0:m.image,alt:l.alt||"Citation image"}))}))},ul:function(n){var l;n.node,n.ordered;var s=e.__rest(n,["node","ordered"]);return i.jsx("ul",e.__assign({},s,{style:null===(l=null==m?void 0:m.markdown)||void 0===l?void 0:l.list}))},ol:function(n){var l;n.node,n.ordered;var s=e.__rest(n,["node","ordered"]);return i.jsx("ol",e.__assign({},s,{style:null===(l=null==m?void 0:m.markdown)||void 0===l?void 0:l.list}))}}},{children:_}))}))}))}))}))]}))};
|
|
2
|
+
//# sourceMappingURL=MarkdownWithImageCitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownWithImageCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const e=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;e&&o.setAttribute("nonce",e),o.appendChild(document.createTextNode(".MarkdownWithImageCitation-module_container__IIipw{border:1px solid #e5e7eb;display:flex;flex-direction:column;height:100%;min-height:200px;position:relative;row-gap:1rem}.MarkdownWithImageCitation-module_header__yELrX{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.MarkdownWithImageCitation-module_titleGroup__NoGZT{display:flex;flex-direction:column;overflow:hidden;row-gap:.125rem}.MarkdownWithImageCitation-module_title__2ol0g{color:#1f2937;font-family:Inter,sans-serif;font-weight:400;margin-top:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.MarkdownWithImageCitation-module_timestamp__TycMU{color:#6b7280;font-family:Inter,sans-serif;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.MarkdownWithImageCitation-module_headerRight__fKorY{align-items:center;column-gap:1rem;display:flex;flex-direction:row}.MarkdownWithImageCitation-module_divider__DBf2T{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.MarkdownWithImageCitation-module_closeIconWrapper__alT2Q{cursor:pointer}.MarkdownWithImageCitation-module_closeIcon__KvaUd{color:#6b7280;height:24px;width:24px}.MarkdownWithImageCitation-module_content__omW6T{display:flex;flex-direction:column;gap:.875rem;padding:1rem 1rem 1.25rem}.MarkdownWithImageCitation-module_imageWrapper__IuQaH{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:1rem;margin-top:1rem;overflow:hidden;width:100%}.MarkdownWithImageCitation-module_image__69FkI{display:block;height:auto;max-width:100%;object-fit:cover;vertical-align:middle;width:100%}.MarkdownWithImageCitation-module_markdownBody__Lf-gb{color:#1f2937;font-family:Inter,sans-serif;font-size:.975rem;line-height:1.65}.MarkdownWithImageCitation-module_markdownBody__Lf-gb>:first-child{margin-top:0}.MarkdownWithImageCitation-module_markdownBody__Lf-gb>:last-child{margin-bottom:0}.MarkdownWithImageCitation-module_markdownBody__Lf-gb h1,.MarkdownWithImageCitation-module_markdownBody__Lf-gb h2,.MarkdownWithImageCitation-module_markdownBody__Lf-gb h3,.MarkdownWithImageCitation-module_markdownBody__Lf-gb h4,.MarkdownWithImageCitation-module_markdownBody__Lf-gb h5,.MarkdownWithImageCitation-module_markdownBody__Lf-gb h6{color:#111827;line-height:1.2;margin:0 0 .625rem}.MarkdownWithImageCitation-module_markdownBody__Lf-gb h1{font-size:2rem}.MarkdownWithImageCitation-module_markdownBody__Lf-gb h2{font-size:1.125rem;font-weight:700}.MarkdownWithImageCitation-module_markdownBody__Lf-gb h3{font-size:1rem;font-weight:700}.MarkdownWithImageCitation-module_markdownBody__Lf-gb p{margin:0 0 .875rem}.MarkdownWithImageCitation-module_markdownBody__Lf-gb ol,.MarkdownWithImageCitation-module_markdownBody__Lf-gb ul{margin:0 0 1rem;padding-left:1.25rem}.MarkdownWithImageCitation-module_markdownBody__Lf-gb li+li{margin-top:.25rem}.MarkdownWithImageCitation-module_markdownBody__Lf-gb strong{color:#111827}.MarkdownWithImageCitation-module_markdownBody__Lf-gb blockquote{border-left:3px solid #dbe3f0;color:#4b5563;margin:0 0 1rem;padding-left:.875rem}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(o)}(),exports.default={container:"MarkdownWithImageCitation-module_container__IIipw",header:"MarkdownWithImageCitation-module_header__yELrX",titleGroup:"MarkdownWithImageCitation-module_titleGroup__NoGZT",title:"MarkdownWithImageCitation-module_title__2ol0g",timestamp:"MarkdownWithImageCitation-module_timestamp__TycMU",headerRight:"MarkdownWithImageCitation-module_headerRight__fKorY",divider:"MarkdownWithImageCitation-module_divider__DBf2T",closeIconWrapper:"MarkdownWithImageCitation-module_closeIconWrapper__alT2Q",closeIcon:"MarkdownWithImageCitation-module_closeIcon__KvaUd",content:"MarkdownWithImageCitation-module_content__omW6T",imageWrapper:"MarkdownWithImageCitation-module_imageWrapper__IuQaH",image:"MarkdownWithImageCitation-module_image__69FkI",markdownBody:"MarkdownWithImageCitation-module_markdownBody__Lf-gb"};
|
|
2
|
+
//# sourceMappingURL=MarkdownWithImageCitation.module.css.js.map
|
package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.module.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownWithImageCitation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react/jsx-runtime"),s=require("react"),l=require("clsx"),t=require("./TableCitationContent.module.css.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(l);exports.default=function(l){var i=l.title,r=l.timestamp,d=l.rows,c=void 0===d?[]:d,u=l.highlightColumns,o=void 0===u?[]:u,f=l.highlightRowIndex,h=l.onClose,m=l.CloseIcon,_=l.className,g=s.useMemo(function(){var e=new Set;return c.forEach(function(a){Object.keys(a).forEach(function(a){"markFailed"!==a&&e.add(a)})}),Array.from(e)},[c]),j=function(e){return"number"==typeof e?e.toLocaleString(void 0,{minimumFractionDigits:2}):"boolean"==typeof e?e?"✓":"✕":String(null!=e?e:"")};return a.jsxs("div",e.__assign({className:n.default(t.default.container,_)},{children:[a.jsxs("header",e.__assign({className:t.default.header},{children:[a.jsxs("div",e.__assign({className:t.default.titleGroup},{children:[a.jsx("h2",e.__assign({className:t.default.title},{children:i})),r&&a.jsx("span",e.__assign({className:t.default.timestamp},{children:r}))]})),h&&a.jsxs("div",e.__assign({className:t.default.actions},{children:[a.jsx("div",{className:t.default.divider}),a.jsx("button",e.__assign({className:t.default.closeBtn,onClick:h,"aria-label":"Close"},{children:m?a.jsx(m,{}):"×"}))]}))]})),a.jsx("div",e.__assign({className:t.default.tableScroll},{children:a.jsxs("table",e.__assign({className:t.default.table},{children:[a.jsx("thead",{children:a.jsx("tr",{children:g.map(function(s){return a.jsx("th",e.__assign({className:n.default(o.includes(s)&&t.default.highlightCell)},{children:s}),s)})})}),a.jsx("tbody",{children:c.map(function(s,l){return a.jsx("tr",e.__assign({className:n.default(f===l&&t.default.highlightCell)},{children:g.map(function(l){var i=Array.isArray(s.markFailed)&&s.markFailed.includes(l),r="boolean"==typeof s[l];return a.jsx("td",e.__assign({className:n.default(o.includes(l)&&t.default.highlightCell,i&&t.default.failedCell)},{children:r?a.jsx("span",e.__assign({className:n.default(t.default.badge,s[l]?t.default.success:t.default.error)},{children:j(s[l])})):j(s[l])}),l)})}),l)})})]}))}))]}))};
|
|
2
|
+
//# sourceMappingURL=TableCitationContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCitationContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".TableCitationContent-module_container__OfivB{background-color:var(--cite-bg-color,#fff);border:1px solid var(--cite-border-color,#e5e7eb);display:flex;flex-direction:column;font-family:var(--cite-font-family,Inter,system-ui,sans-serif);height:100%;min-height:200px;overflow:hidden;width:100%}.TableCitationContent-module_header__ANgC5{align-items:center;border-bottom:1px solid var(--cite-border-color,#e5e7eb);display:flex;justify-content:space-between;padding:.5rem 1rem}.TableCitationContent-module_title__UzB8i{color:var(--cite-text-primary,#1f2937);font-size:1.1rem;font-weight:500;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TableCitationContent-module_headerRight__GLyqb{align-items:center;display:flex;gap:1rem}.TableCitationContent-module_divider__SYxWE{align-self:stretch;background-color:var(--cite-border-color,#e5e7eb);margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.TableCitationContent-module_closeBtn__lTrT4{align-items:center;color:var(--cite-text-secondary,#6b7280);cursor:pointer;display:flex;transition:opacity .2s}.TableCitationContent-module_ccloseBtn__Gp3l5:hover{opacity:.7}.TableCitationContent-module_tableScroll__Gv2KN{flex:1;overflow:auto;padding:.75rem 1rem}.TableCitationContent-module_table__ZIHBi{border-collapse:collapse;font-size:.875rem;min-width:100%;width:max-content}.TableCitationContent-module_table__ZIHBi td,.TableCitationContent-module_table__ZIHBi th{border:1px solid var(--cite-border-color,#e5e7eb);padding:.5rem .75rem}.TableCitationContent-module_table__ZIHBi th{background-color:var(--cite-header-bg,#f9fafb);color:var(--cite-text-header,#374151);font-weight:600;position:sticky;top:0}.TableCitationContent-module_highlightCell__1RESY{background-color:var(--cite-highlight-color,#f7ef9e)!important}.TableCitationContent-module_failedCell__-Q2WX{background-color:var(--cite-error-bg,#fee2e2);color:var(--cite-error-text,#991b1b)}.TableCitationContent-module_actions__yvyTj{align-items:center;display:flex;gap:.5rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"TableCitationContent-module_container__OfivB",header:"TableCitationContent-module_header__ANgC5",title:"TableCitationContent-module_title__UzB8i",headerRight:"TableCitationContent-module_headerRight__GLyqb",divider:"TableCitationContent-module_divider__SYxWE",closeBtn:"TableCitationContent-module_closeBtn__lTrT4",ccloseBtn:"TableCitationContent-module_ccloseBtn__Gp3l5",tableScroll:"TableCitationContent-module_tableScroll__Gv2KN",table:"TableCitationContent-module_table__ZIHBi",highlightCell:"TableCitationContent-module_highlightCell__1RESY",failedCell:"TableCitationContent-module_failedCell__-Q2WX",actions:"TableCitationContent-module_actions__yvyTj"};
|
|
2
|
+
//# sourceMappingURL=TableCitationContent.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),r=require("./features/Bookemon/Bookemon.js"),o=require("./features/PdfEditorCitation/PdfEditorCitation.js"),a=require("./features/CitationRenderer/CitationRenderer.js"),n=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),d=require("./features/ChatCitation/ChatCitationRenderer.js"),f=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),r=require("./features/Bookemon/Bookemon.js"),o=require("./features/PdfEditorCitation/PdfEditorCitation.js"),a=require("./features/CitationRenderer/CitationRenderer.js"),n=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),d=require("./features/ChatCitation/ChatCitationRenderer.js"),f=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),l=require("./features/PdfViewer/PdfViewer.js"),p=require("./features/CognitiveDecisioning/FaqCitation/FaqCitation.js"),q=require("./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js"),g=require("./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js"),x=require("./features/RequirementAiCitations/FileCitation/FileCitationContent.js"),j=require("./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),c=require("./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js"),R=require("./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js"),E=require("./features/TableCitation/TableCitationContent.js"),m=require("./features/CitationViewer/CitationsViewer.js"),D=require("./features/ExcelCitation/ExcelCitations.js"),T=require("./features/ScannedDocCitation/ScannedDocCitation.js"),A=require("./features/ChatDrawer/ChatDrawer.js"),I=require("./features/ChatDrawer/constants/ChatDrawer.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=r.default,exports.PdfCitation=o.PdfEditorCitation,exports.CitationRenderer=a.default,exports.MarkdownRenderer=n.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=C.default,exports.NonWebReasoningComponent=u.default,exports.ChatCitation=d.default,exports.CognitiveDecisioningCard=f.default,exports.PdfViewer=l.default,exports.FaqCitation=p.default,exports.ImageCitationContent=q.default,exports.VideoCitationContent=g.default,exports.FileCitationContent=x.default,exports.WebCitationWithImageContent=j.default,exports.MarkdownWithImageCitation=c.default,exports.AiReasoningCitation=R.default,exports.TableCitationContent=E.default,exports.CitationsViewer=m.default,exports.ExcelCitation=D.default,exports.ScannedDocCitation=T.default,exports.ChatDrawer=A.default,exports.FILE_INGESTION_STATUS=I.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=I.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=I.TRUNCATE_THRESHOLD;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__rest as i}from"tslib";import{jsxs as l,jsx as n}from"react/jsx-runtime";import o from"react";import r from"react-markdown";import t from"rehype-raw";import{renderCitationAIConfidenceDisplay as d}from"../RequirementAiCitations/components/CitationAIConfidenceDisplay.js";import a from"./MarkdownWithImageCitation.module.css.js";var s=function(s){var c,m,u,v,p=null===(c=null==s?void 0:s.closeCitationConfig)||void 0===c?void 0:c.CloseIcon,h=s.styles,f=function(e){if(!e)return"";var i=e.replace(/\t/g," ").split("\n"),l=i.filter(function(e){return e.trim().length>0}).reduce(function(e,i){var l=i.match(/^ */),n=l?l[0].length:0;return Math.min(e,n)},Number.POSITIVE_INFINITY);return i.map(function(e){return l&&Number.isFinite(l)?e.slice(l):e}).join("\n").trim()}(s.markdownContent);return l("div",e({className:a.container,style:null==h?void 0:h.container},{children:[l("div",e({className:a.header,style:null==h?void 0:h.header},{children:[l("div",e({className:a.titleGroup,style:null==h?void 0:h.titleGroup},{children:[n("h2",e({className:a.title,style:null==h?void 0:h.title},{children:(null==s?void 0:s.citationTitle)||"Markdown With Image"})),(null==s?void 0:s.timestamp)?n("span",e({className:a.timestamp,style:null==h?void 0:h.timestamp},{children:s.timestamp})):null]})),(null==s?void 0:s.closeCitationConfig)?l("div",e({className:a.headerRight,style:null==h?void 0:h.headerRight},{children:[d(s.relevanceScore,!1,null==h?void 0:h.aiConfidenceDisplayPill),n("div",{className:a.divider,style:null==h?void 0:h.divider}),p&&n("div",e({className:a.closeIconWrapper,style:null==h?void 0:h.closeIconWrapper,onClick:s.closeCitationConfig.handleCloseCitationPreview},{children:n(p,{className:a.closeIcon})}))]})):d(s.relevanceScore,!0,null==h?void 0:h.aiConfidenceDisplayPill)]})),n("div",e({className:a.content,style:null==h?void 0:h.content},{children:n("div",e({style:null===(m=null==h?void 0:h.markdown)||void 0===m?void 0:m.containerWrapper},{children:n("div",e({style:null===(u=null==h?void 0:h.markdown)||void 0===u?void 0:u.mainCard},{children:n("div",e({className:a.markdownBody,style:null===(v=null==h?void 0:h.markdown)||void 0===v?void 0:v.scrollArea},{children:n(r,e({rehypePlugins:[t],components:{p:function(l){l.node;var r=l.children,t=i(l,["node","children"]);return n("p",e({},t,{children:o.Children.map(r,function(i){var l,o,r;return"string"==typeof i?(o=i,(r=null===(l=null==h?void 0:h.markdown)||void 0===l?void 0:l.customHighlight)?n("span",e({style:r},{children:o})):o):i})}))},img:function(l){l.node;var o=i(l,["node"]);return n("div",e({className:a.imageWrapper,style:null==h?void 0:h.imageWrapper},{children:n("img",e({},o,{className:a.image,style:null==h?void 0:h.image,alt:o.alt||"Citation image"}))}))},ul:function(l){var o;l.node,l.ordered;var r=i(l,["node","ordered"]);return n("ul",e({},r,{style:null===(o=null==h?void 0:h.markdown)||void 0===o?void 0:o.list}))},ol:function(l){var o;l.node,l.ordered;var r=i(l,["node","ordered"]);return n("ol",e({},r,{style:null===(o=null==h?void 0:h.markdown)||void 0===o?void 0:o.list}))}}},{children:f}))}))}))}))}))]}))};export{s as default};
|
|
2
|
+
//# sourceMappingURL=MarkdownWithImageCitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownWithImageCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var o={container:"MarkdownWithImageCitation-module_container__IIipw",header:"MarkdownWithImageCitation-module_header__yELrX",titleGroup:"MarkdownWithImageCitation-module_titleGroup__NoGZT",title:"MarkdownWithImageCitation-module_title__2ol0g",timestamp:"MarkdownWithImageCitation-module_timestamp__TycMU",headerRight:"MarkdownWithImageCitation-module_headerRight__fKorY",divider:"MarkdownWithImageCitation-module_divider__DBf2T",closeIconWrapper:"MarkdownWithImageCitation-module_closeIconWrapper__alT2Q",closeIcon:"MarkdownWithImageCitation-module_closeIcon__KvaUd",content:"MarkdownWithImageCitation-module_content__omW6T",imageWrapper:"MarkdownWithImageCitation-module_imageWrapper__IuQaH",image:"MarkdownWithImageCitation-module_image__69FkI",markdownBody:"MarkdownWithImageCitation-module_markdownBody__Lf-gb"};!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const e=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;e&&o.setAttribute("nonce",e),o.appendChild(document.createTextNode(".MarkdownWithImageCitation-module_container__IIipw{border:1px solid #e5e7eb;display:flex;flex-direction:column;height:100%;min-height:200px;position:relative;row-gap:1rem}.MarkdownWithImageCitation-module_header__yELrX{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.MarkdownWithImageCitation-module_titleGroup__NoGZT{display:flex;flex-direction:column;overflow:hidden;row-gap:.125rem}.MarkdownWithImageCitation-module_title__2ol0g{color:#1f2937;font-family:Inter,sans-serif;font-weight:400;margin-top:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.MarkdownWithImageCitation-module_timestamp__TycMU{color:#6b7280;font-family:Inter,sans-serif;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.MarkdownWithImageCitation-module_headerRight__fKorY{align-items:center;column-gap:1rem;display:flex;flex-direction:row}.MarkdownWithImageCitation-module_divider__DBf2T{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.MarkdownWithImageCitation-module_closeIconWrapper__alT2Q{cursor:pointer}.MarkdownWithImageCitation-module_closeIcon__KvaUd{color:#6b7280;height:24px;width:24px}.MarkdownWithImageCitation-module_content__omW6T{display:flex;flex-direction:column;gap:.875rem;padding:1rem 1rem 1.25rem}.MarkdownWithImageCitation-module_imageWrapper__IuQaH{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:1rem;margin-top:1rem;overflow:hidden;width:100%}.MarkdownWithImageCitation-module_image__69FkI{display:block;height:auto;max-width:100%;object-fit:cover;vertical-align:middle;width:100%}.MarkdownWithImageCitation-module_markdownBody__Lf-gb{color:#1f2937;font-family:Inter,sans-serif;font-size:.975rem;line-height:1.65}.MarkdownWithImageCitation-module_markdownBody__Lf-gb>:first-child{margin-top:0}.MarkdownWithImageCitation-module_markdownBody__Lf-gb>:last-child{margin-bottom:0}.MarkdownWithImageCitation-module_markdownBody__Lf-gb h1,.MarkdownWithImageCitation-module_markdownBody__Lf-gb h2,.MarkdownWithImageCitation-module_markdownBody__Lf-gb h3,.MarkdownWithImageCitation-module_markdownBody__Lf-gb h4,.MarkdownWithImageCitation-module_markdownBody__Lf-gb h5,.MarkdownWithImageCitation-module_markdownBody__Lf-gb h6{color:#111827;line-height:1.2;margin:0 0 .625rem}.MarkdownWithImageCitation-module_markdownBody__Lf-gb h1{font-size:2rem}.MarkdownWithImageCitation-module_markdownBody__Lf-gb h2{font-size:1.125rem;font-weight:700}.MarkdownWithImageCitation-module_markdownBody__Lf-gb h3{font-size:1rem;font-weight:700}.MarkdownWithImageCitation-module_markdownBody__Lf-gb p{margin:0 0 .875rem}.MarkdownWithImageCitation-module_markdownBody__Lf-gb ol,.MarkdownWithImageCitation-module_markdownBody__Lf-gb ul{margin:0 0 1rem;padding-left:1.25rem}.MarkdownWithImageCitation-module_markdownBody__Lf-gb li+li{margin-top:.25rem}.MarkdownWithImageCitation-module_markdownBody__Lf-gb strong{color:#111827}.MarkdownWithImageCitation-module_markdownBody__Lf-gb blockquote{border-left:3px solid #dbe3f0;color:#4b5563;margin:0 0 1rem;padding-left:.875rem}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(o)}();export{o as default};
|
|
2
|
+
//# sourceMappingURL=MarkdownWithImageCitation.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownWithImageCitation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as i,jsx as l}from"react/jsx-runtime";import{useMemo as a}from"react";import r from"clsx";import t from"./TableCitationContent.module.css.js";var n=function(n){var c=n.title,s=n.timestamp,o=n.rows,d=void 0===o?[]:o,m=n.highlightColumns,h=void 0===m?[]:m,u=n.highlightRowIndex,f=n.onClose,p=n.CloseIcon,N=n.className,g=a(function(){var e=new Set;return d.forEach(function(i){Object.keys(i).forEach(function(i){"markFailed"!==i&&e.add(i)})}),Array.from(e)},[d]),b=function(e){return"number"==typeof e?e.toLocaleString(void 0,{minimumFractionDigits:2}):"boolean"==typeof e?e?"✓":"✕":String(null!=e?e:"")};return i("div",e({className:r(t.container,N)},{children:[i("header",e({className:t.header},{children:[i("div",e({className:t.titleGroup},{children:[l("h2",e({className:t.title},{children:c})),s&&l("span",e({className:t.timestamp},{children:s}))]})),f&&i("div",e({className:t.actions},{children:[l("div",{className:t.divider}),l("button",e({className:t.closeBtn,onClick:f,"aria-label":"Close"},{children:p?l(p,{}):"×"}))]}))]})),l("div",e({className:t.tableScroll},{children:i("table",e({className:t.table},{children:[l("thead",{children:l("tr",{children:g.map(function(i){return l("th",e({className:r(h.includes(i)&&t.highlightCell)},{children:i}),i)})})}),l("tbody",{children:d.map(function(i,a){return l("tr",e({className:r(u===a&&t.highlightCell)},{children:g.map(function(a){var n=Array.isArray(i.markFailed)&&i.markFailed.includes(a),c="boolean"==typeof i[a];return l("td",e({className:r(h.includes(a)&&t.highlightCell,n&&t.failedCell)},{children:c?l("span",e({className:r(t.badge,i[a]?t.success:t.error)},{children:b(i[a])})):b(i[a])}),a)})}),a)})})]}))}))]}))};export{n as default};
|
|
2
|
+
//# sourceMappingURL=TableCitationContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCitationContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={container:"TableCitationContent-module_container__OfivB",header:"TableCitationContent-module_header__ANgC5",title:"TableCitationContent-module_title__UzB8i",headerRight:"TableCitationContent-module_headerRight__GLyqb",divider:"TableCitationContent-module_divider__SYxWE",closeBtn:"TableCitationContent-module_closeBtn__lTrT4",ccloseBtn:"TableCitationContent-module_ccloseBtn__Gp3l5",tableScroll:"TableCitationContent-module_tableScroll__Gv2KN",table:"TableCitationContent-module_table__ZIHBi",highlightCell:"TableCitationContent-module_highlightCell__1RESY",failedCell:"TableCitationContent-module_failedCell__-Q2WX",actions:"TableCitationContent-module_actions__yvyTj"};!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(".TableCitationContent-module_container__OfivB{background-color:var(--cite-bg-color,#fff);border:1px solid var(--cite-border-color,#e5e7eb);display:flex;flex-direction:column;font-family:var(--cite-font-family,Inter,system-ui,sans-serif);height:100%;min-height:200px;overflow:hidden;width:100%}.TableCitationContent-module_header__ANgC5{align-items:center;border-bottom:1px solid var(--cite-border-color,#e5e7eb);display:flex;justify-content:space-between;padding:.5rem 1rem}.TableCitationContent-module_title__UzB8i{color:var(--cite-text-primary,#1f2937);font-size:1.1rem;font-weight:500;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TableCitationContent-module_headerRight__GLyqb{align-items:center;display:flex;gap:1rem}.TableCitationContent-module_divider__SYxWE{align-self:stretch;background-color:var(--cite-border-color,#e5e7eb);margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.TableCitationContent-module_closeBtn__lTrT4{align-items:center;color:var(--cite-text-secondary,#6b7280);cursor:pointer;display:flex;transition:opacity .2s}.TableCitationContent-module_ccloseBtn__Gp3l5:hover{opacity:.7}.TableCitationContent-module_tableScroll__Gv2KN{flex:1;overflow:auto;padding:.75rem 1rem}.TableCitationContent-module_table__ZIHBi{border-collapse:collapse;font-size:.875rem;min-width:100%;width:max-content}.TableCitationContent-module_table__ZIHBi td,.TableCitationContent-module_table__ZIHBi th{border:1px solid var(--cite-border-color,#e5e7eb);padding:.5rem .75rem}.TableCitationContent-module_table__ZIHBi th{background-color:var(--cite-header-bg,#f9fafb);color:var(--cite-text-header,#374151);font-weight:600;position:sticky;top:0}.TableCitationContent-module_highlightCell__1RESY{background-color:var(--cite-highlight-color,#f7ef9e)!important}.TableCitationContent-module_failedCell__-Q2WX{background-color:var(--cite-error-bg,#fee2e2);color:var(--cite-error-text,#991b1b)}.TableCitationContent-module_actions__yvyTj{align-items:center;display:flex;gap:.5rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=TableCitationContent.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";
|
|
1
|
+
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownWithImageCitationTest.d.ts","sourceRoot":"","sources":["../../../src/MarkdownWithImageCitationTest.tsx"],"names":[],"mappings":"AAwBA,QAAA,MAAM,6BAA6B,+CA+BlC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface MarkdownWithImageCitationProps {
|
|
3
|
+
citationTitle?: string;
|
|
4
|
+
timestamp?: string;
|
|
5
|
+
relevanceScore?: number;
|
|
6
|
+
markdownContent: string;
|
|
7
|
+
closeCitationConfig?: {
|
|
8
|
+
CloseIcon: React.ElementType;
|
|
9
|
+
handleCloseCitationPreview: () => void;
|
|
10
|
+
};
|
|
11
|
+
styles?: {
|
|
12
|
+
container?: React.CSSProperties;
|
|
13
|
+
header?: React.CSSProperties;
|
|
14
|
+
titleGroup?: React.CSSProperties;
|
|
15
|
+
timestamp?: React.CSSProperties;
|
|
16
|
+
title?: React.CSSProperties;
|
|
17
|
+
headerRight?: React.CSSProperties;
|
|
18
|
+
divider?: React.CSSProperties;
|
|
19
|
+
closeIconWrapper?: React.CSSProperties;
|
|
20
|
+
content?: React.CSSProperties;
|
|
21
|
+
imageWrapper?: React.CSSProperties;
|
|
22
|
+
image?: React.CSSProperties;
|
|
23
|
+
markdown?: {
|
|
24
|
+
containerWrapper?: React.CSSProperties;
|
|
25
|
+
mainCard?: React.CSSProperties;
|
|
26
|
+
scrollArea?: React.CSSProperties;
|
|
27
|
+
customHighlight?: React.CSSProperties;
|
|
28
|
+
list?: React.CSSProperties;
|
|
29
|
+
};
|
|
30
|
+
aiConfidenceDisplayPill?: {
|
|
31
|
+
container?: React.CSSProperties;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
declare const MarkdownWithImageCitation: React.FC<MarkdownWithImageCitationProps>;
|
|
36
|
+
export default MarkdownWithImageCitation;
|
|
37
|
+
//# sourceMappingURL=MarkdownWithImageCitation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownWithImageCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/MarkdownWithImageCitation/MarkdownWithImageCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAM7C,UAAU,8BAA8B;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE;QACpB,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC;QAC7B,0BAA0B,EAAE,MAAM,IAAI,CAAC;KACxC,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,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC5B,QAAQ,CAAC,EAAE;YACT,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;YACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;YAC/B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;YACjC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;YACtC,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;SAC5B,CAAC;QACF,uBAAuB,CAAC,EAAE;YACxB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;SACjC,CAAC;KACH,CAAC;CACH;AAkCD,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAsGvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -16,7 +16,9 @@ export { default as ImageCitationContent } from "./features/RequirementAiCitatio
|
|
|
16
16
|
export { default as VideoCitationContent } from "./features/RequirementAiCitations/VideoCitation/VideoCitationContent";
|
|
17
17
|
export { default as FileCitationContent } from "./features/RequirementAiCitations/FileCitation/FileCitationContent";
|
|
18
18
|
export { default as WebCitationWithImageContent } from "./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent";
|
|
19
|
+
export { default as MarkdownWithImageCitation } from "./features/MarkdownWithImageCitation/MarkdownWithImageCitation";
|
|
19
20
|
export { default as AiReasoningCitation } from "./features/RequirementAiCitations/AiReasoning/AiReasoningCitation";
|
|
21
|
+
export { default as TableCitationContent } from "./features/TableCitation/TableCitationContent";
|
|
20
22
|
export { default as CitationsViewer } from "./features/CitationViewer/CitationsViewer";
|
|
21
23
|
export { default as ExcelCitation } from "./features/ExcelCitation/ExcelCitations";
|
|
22
24
|
export { default as ScannedDocCitation } from "./features/ScannedDocCitation/ScannedDocCitation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oEAAoE,CAAC;AACpH,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACnI,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACnH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oEAAoE,CAAC;AACpH,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACnI,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AACtH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACnH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-llm-studio/citation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.167",
|
|
4
4
|
"author": "Devesh Patel",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -97,6 +97,11 @@
|
|
|
97
97
|
"require": "./dist/cjs/features/RequirementAiCitations/ImageCitation/ImageCitationContent.js",
|
|
98
98
|
"types": "./dist/types/src/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts"
|
|
99
99
|
},
|
|
100
|
+
"./MarkdownWithImageCitation": {
|
|
101
|
+
"import": "./dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js",
|
|
102
|
+
"require": "./dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js",
|
|
103
|
+
"types": "./dist/types/src/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts"
|
|
104
|
+
},
|
|
100
105
|
"./FileCitationContent": {
|
|
101
106
|
"import": "./dist/features/RequirementAiCitations/FileCitation/FileCitationContent.js",
|
|
102
107
|
"require": "./dist/cjs/features/RequirementAiCitations/FileCitation/FileCitationContent.js",
|