@e-llm-studio/citation 0.0.221 → 0.0.223

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +218 -0
  2. package/dist/cjs/features/ChatCitation/InternalChatCitationRenderer.js +1 -1
  3. package/dist/cjs/features/ChatCitation/components/ChatCitation.js +1 -1
  4. package/dist/cjs/features/IngestionStatus/useIngestionStatus.js +1 -1
  5. package/dist/cjs/features/InstantLearningCitation/SlashLoader.js +2 -0
  6. package/dist/cjs/features/InstantLearningCitation/SlashLoader.js.map +1 -0
  7. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +2 -0
  8. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js.map +1 -0
  9. package/dist/cjs/index.js +1 -1
  10. package/dist/features/ChatCitation/InternalChatCitationRenderer.js +1 -1
  11. package/dist/features/ChatCitation/components/ChatCitation.js +1 -1
  12. package/dist/features/IngestionStatus/useIngestionStatus.js +1 -1
  13. package/dist/features/InstantLearningCitation/SlashLoader.js +2 -0
  14. package/dist/features/InstantLearningCitation/SlashLoader.js.map +1 -0
  15. package/dist/features/ParentCitationComponent/ParentCitationComponent.js +2 -0
  16. package/dist/features/ParentCitationComponent/ParentCitationComponent.js.map +1 -0
  17. package/dist/index.js +1 -1
  18. package/dist/types/src/features/ChatCitation/InternalChatCitationRenderer.d.ts.map +1 -1
  19. package/dist/types/src/features/ChatCitation/components/ChatCitation.d.ts +1 -0
  20. package/dist/types/src/features/ChatCitation/components/ChatCitation.d.ts.map +1 -1
  21. package/dist/types/src/features/ChatCitation/types/citations.types.d.ts +3 -0
  22. package/dist/types/src/features/ChatCitation/types/citations.types.d.ts.map +1 -1
  23. package/dist/types/src/features/IngestionStatus/useIngestionStatus.d.ts.map +1 -1
  24. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts +2 -0
  25. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map +1 -1
  26. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +2 -0
  27. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +1 -1
  28. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +136 -0
  29. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +1 -0
  30. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +4 -0
  31. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +1 -0
  32. package/dist/types/src/index.d.ts +1 -0
  33. package/dist/types/src/index.d.ts.map +1 -1
  34. package/package.json +6 -1
package/README.md CHANGED
@@ -23,6 +23,7 @@
23
23
  - [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)
24
24
  - [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)
25
25
  - [InstantLearningCitationComponent](#instantlearningcitationcomponent)
26
+ - [CitationOrchestratorComponent](#citationorchestratorcomponent)
26
27
  - [Other Components](#other-components)
27
28
  - [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)
28
29
  - [DatagestMon](#datagestmon) [<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/DatagestMon/README.md)
@@ -2715,6 +2716,223 @@ import SplitterCitationsComponent from '@e-llm-studio/citation/SplitterCitations
2715
2716
 
2716
2717
  ---
2717
2718
 
2719
+ ## CitationOrchestratorComponent
2720
+
2721
+ ### Overview
2722
+
2723
+ `CitationOrchestratorComponent` is the top-level citation dispatcher for the `@e-llm-studio/citation` library. It receives a citation link `href` (with URL search params like `citationNumber` and `citationType`) plus an array of citation data objects, resolves the correct citation by number, and renders the appropriate citation component based on the `citation_type` field — all in a single `<a>`-like element you drop into a markdown renderer.
2724
+
2725
+ It handles **seven citation types** out of the box:
2726
+
2727
+ | `citation_type` | Renders |
2728
+ |---|---|
2729
+ | `scanned_doc_citation` | `ScannedDocCitation` (image pages + highlight boxes) |
2730
+ | `IL` | `InstantLearningCitationWrapper` (expandable Instant Learning pill) |
2731
+ | `chat_citation` | `ChatCitationRenderer` (summarized / detailed chat panels + optional rule book) |
2732
+ | `gpt_citation` | `NonWebReasoningComponent` (GPT / Gemini reasoning card) |
2733
+ | `web_citation` | `WebCitationWithImageContent` or plain `<a>` |
2734
+ | `image_citation` | `ImageCitationContent` |
2735
+ | `document_citation` / `book_citation_doc` / `book_citation_pdf` | `FileCitationContent` |
2736
+
2737
+ While streaming, every citation renders a compact spinner via `SlashLoader` instead of its full UI.
2738
+
2739
+ ### Features
2740
+
2741
+ - **Single entry point** — one component dispatches to all citation types; no per-type switch logic needed in the consumer
2742
+ - **URL-driven resolution** — `citationNumber` and `decisionStrength` are read from `href` query params
2743
+ - **Streaming-safe** — shows an inline `SlashLoader` spinner while the parent is still generating text
2744
+ - **Validation with clear errors** — throws descriptive errors for missing required fields; unknown types render nothing and log an error silently
2745
+ - **Full `ChatCitationConfig` passthrough** — granular control over layout, panels, relevance score, tab defaults, and styles for `chat_citation`
2746
+ - **Zero opinion on styling** — all visual customization lives in the leaf components or `chatCitationConfig`
2747
+
2748
+ ### Usage
2749
+
2750
+ The component is typically wired into a Markdown renderer as the custom `<a>` component:
2751
+
2752
+ ```tsx
2753
+ import CitationOrchestratorComponent from '@e-llm-studio/citation/CitationOrchestratorComponent';
2754
+
2755
+ // Inside your markdown renderer config
2756
+ const renderers = {
2757
+ a: ({ href, children }) => (
2758
+ <CitationOrchestratorComponent
2759
+ href={href}
2760
+ citations={citations}
2761
+ >
2762
+ {children}
2763
+ </CitationOrchestratorComponent>
2764
+ ),
2765
+ };
2766
+ ```
2767
+
2768
+ The citation link in the markdown source looks like:
2769
+
2770
+ ```
2771
+ [L3](doc_id=learnings_doc?citationNumber=1&citation_type=IL&citationSource=L3&decisionStrength=100%)
2772
+ ```
2773
+
2774
+ ### Props
2775
+
2776
+ | Prop | Type | Required | Description |
2777
+ |---|---|---|---|
2778
+ | `href` | `string` | Yes | Citation link URL. Must contain `citationNumber` as a query param. `decisionStrength` is also read from here for `IL` citations. |
2779
+ | `citations` | `CitationItem[]` | Yes | Array of citation objects. Each item must have a `customMetaData` object with at least `citation_type` and `citation_number`. |
2780
+ | `children` | `React.ReactNode` | No | Link text passed from the markdown renderer. Used as the display label for `IL`, `web_citation`, and `image_citation`. |
2781
+ | `isStreaming` | `boolean` | No | When `true`, renders an inline spinner instead of the resolved citation. |
2782
+ | `onCitationToggle` | `(keys: string[], adId: string, isOpen: boolean) => void` | No | Callback forwarded to `InstantLearningCitationWrapper` for toggle state tracking. |
2783
+ | `chatCitationConfig` | `ChatCitationConfig` | No | Full layout + style configuration for `chat_citation` type. See `ChatCitationConfig` below. |
2784
+
2785
+ ### `CitationItem` shape
2786
+
2787
+ ```ts
2788
+ interface CitationItem {
2789
+ customMetaData: {
2790
+ citation_type: string; // dispatcher key
2791
+ citation_number?: number | string;
2792
+
2793
+ // scanned_doc_citation
2794
+ gs_url?: string;
2795
+ highlighted_coordinates?: { xmin: number; ymin: number; xmax: number; ymax: number }[];
2796
+ value?: any[]; // pre-built page array (overrides gs_url path)
2797
+
2798
+ // IL
2799
+ il_learning?: any;
2800
+ link_text?: string;
2801
+ citation_source?: string;
2802
+ decision_strength?: string;
2803
+
2804
+ // chat_citation
2805
+ chat_data?: ChatCitationDataItem[];
2806
+ rule_book_content?: string;
2807
+ rule_book_highlights?: string[];
2808
+ relevance_score?: number;
2809
+
2810
+ // gpt_citation
2811
+ data_sources?: string[];
2812
+ training_data_title?: string[];
2813
+ paraphrase?: string[];
2814
+
2815
+ // web_citation
2816
+ link?: string;
2817
+ screenshot_url?: string;
2818
+
2819
+ // image_citation / document citations
2820
+ gs_util_path?: string;
2821
+ signed_url?: string;
2822
+
2823
+ [key: string]: any;
2824
+ };
2825
+ }
2826
+ ```
2827
+
2828
+ ### `ChatCitationConfig` prop
2829
+
2830
+ Use this to fully control the `chat_citation` rendering without modifying the component:
2831
+
2832
+ ```ts
2833
+ interface ChatCitationConfig {
2834
+ showRootContainer?: boolean;
2835
+ rootContainer?: {
2836
+ title?: string;
2837
+ relevanceTitle?: string;
2838
+ icon?: React.ReactNode;
2839
+ slotStyles?: { title?: CSSProperties; relevanceScore?: CSSProperties; container?: CSSProperties };
2840
+ };
2841
+ chatContainer?: {
2842
+ title?: string;
2843
+ chatIcon?: React.ReactNode;
2844
+ highlightColor?: string;
2845
+ summarizedTab?: { chip?: { isActive?: boolean; show?: boolean; styles?: CSSProperties }; view?: { slotStyles?: any } };
2846
+ detailedTab?: { chip?: { isActive?: boolean; onClick?: () => void; styles?: CSSProperties }; view?: any };
2847
+ slotStyles?: { title?: CSSProperties; chatDataContainer?: CSSProperties; outerContainer?: CSSProperties; container?: CSSProperties };
2848
+ additionalSecondaryActions?: React.ReactNode[];
2849
+ };
2850
+ ruleBookContainer?: {
2851
+ title?: string;
2852
+ ruleBookIcon?: React.ReactNode;
2853
+ slotStyles?: { title?: CSSProperties; dataContainer?: CSSProperties; outerContainer?: CSSProperties };
2854
+ additionalSecondaryActions?: React.ReactNode[];
2855
+ };
2856
+ reversePanels?: boolean;
2857
+ isRenderedCustomComponent?: boolean;
2858
+ modalContainerStyle?: CSSProperties;
2859
+ additionalData?: {
2860
+ RuleBookContainerRatio?: number | string;
2861
+ RuleBookDetailedViewVerticallyStacked?: boolean;
2862
+ RuleBookContainerHeight?: number | string;
2863
+ };
2864
+ closePreview?: () => void;
2865
+ selectedIdFromReason?: string | null;
2866
+ }
2867
+ ```
2868
+
2869
+ ### Examples
2870
+
2871
+ #### Scanned document with highlight boxes
2872
+
2873
+ ```tsx
2874
+ const citations = [{
2875
+ customMetaData: {
2876
+ citation_type: 'scanned_doc_citation',
2877
+ citation_number: 1,
2878
+ gs_url: 'https://storage.example.com/doc-page.png',
2879
+ highlighted_coordinates: [{ xmin: 100, ymin: 200, xmax: 400, ymax: 250 }],
2880
+ }
2881
+ }];
2882
+
2883
+ <CitationOrchestratorComponent href="?citationNumber=1" citations={citations} />
2884
+ ```
2885
+
2886
+ #### Chat citation with rule book
2887
+
2888
+ ```tsx
2889
+ const citations = [{
2890
+ customMetaData: {
2891
+ citation_type: 'chat_citation',
2892
+ citation_number: 2,
2893
+ relevance_score: 87,
2894
+ chat_data: [
2895
+ { role: 'user', message: 'What is the refund policy?', userName: 'Alice', timeStamp: '2024-01-01T10:00:00Z', highlighted_text: '' },
2896
+ { role: 'assistant', message: 'Refunds are processed within 5 business days.', userName: 'Assistant', timeStamp: '2024-01-01T10:00:05Z', highlighted_text: 'Refunds are processed within 5 business days.' },
2897
+ ],
2898
+ rule_book_content: '**Section 4.2** – Refunds must be requested within 30 days of purchase.',
2899
+ rule_book_highlights: ['Refunds must be requested within 30 days'],
2900
+ }
2901
+ }];
2902
+
2903
+ <CitationOrchestratorComponent
2904
+ href="?citationNumber=2"
2905
+ citations={citations}
2906
+ chatCitationConfig={{
2907
+ showRootContainer: true,
2908
+ chatContainer: { summarizedTab: { chip: { isActive: true, show: true } } },
2909
+ }}
2910
+ />
2911
+ ```
2912
+
2913
+ #### Streaming placeholder
2914
+
2915
+ ```tsx
2916
+ <CitationOrchestratorComponent
2917
+ href="?citationNumber=3&citation_type=IL"
2918
+ citations={citations}
2919
+ isStreaming={true}
2920
+ >
2921
+ [3]
2922
+ </CitationOrchestratorComponent>
2923
+ ```
2924
+
2925
+ Renders: `[3] ⠋` (spinner) until `isStreaming` becomes `false`.
2926
+
2927
+ ### Behavior notes
2928
+
2929
+ - Returns `null` silently when `citationNumber` is missing from `href` or no matching citation is found in the `citations` array.
2930
+ - Unknown `citation_type` values also return `null` (with a `console.error`).
2931
+ - For `web_citation` without a `screenshot_url`, the component falls back to a plain `<a>` tag.
2932
+ - `chat_citation` defaults: summarized tab active, detailed tab inactive. Override via `chatCitationConfig.chatContainer.summarizedTab` / `detailedTab`.
2933
+
2934
+ ---
2935
+
2718
2936
  ## Common Use Cases
2719
2937
 
2720
2938
  ### RAG (Retrieval Augmented Generation) Applications
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),l=require("react/jsx-runtime"),o=require("./components/ChatCitation.js"),i=require("./utils/helpers.js"),n=require("./components/Chip.js"),t=require("./assets/message-chat-square.svg.js");require("@mui/icons-material/KeyboardArrowDown"),require("@mui/icons-material/KeyboardArrowUp"),require("@mui/icons-material/Clear");var r=require("./components/InViewNavigation.js"),d=require("./components/DetailedView.js"),s=require("./components/SummarizedView.js"),a=require("./components/RuleBook.js"),u=require("react"),v=require("./constants/renderer.js"),c=require("./components/IconContainer.js"),h=require("lucide-react"),f=require("./BigQueryTable.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=g(require("@mui/icons-material/CloseOutlined"));exports.default=function(g){var p,x,m,y,_,w,C,k,j,S,q,A,D,T,R,I,V,F,z,P,B,E,H,M,N,W,Y,O,K,Q,U,G,J,L,X,Z,$,ee,le,oe,ie,ne,te,re,de,se=g.rootContainer,ae=g.chatContainer,ue=void 0===ae?{chatData:[]}:ae,ve=g.ruleBookContainer,ce=g.renderer,he=g.additionalData,fe=g.tableComponent,ge=g.closePreview,be=g.isRenderedCustomComponent,pe=void 0!==be&&be,xe=g.showRootContainer,me=void 0===xe||xe,ye=g.reversePanels,_e=void 0!==ye&&ye,we=u.useState(0),Ce=we[0],ke=we[1],je=u.useState(0),Se=je[0],qe=je[1],Ae=u.useState(0),De=Ae[0],Te=Ae[1],Re=u.useState(0),Ie=Re[0],Ve=Re[1],Fe=u.useRef(null),ze=u.useRef(null),Pe=u.useMemo(function(){return e.__assign(e.__assign({},v.defaultRenderer),ce)},[ce]),Be=u.useMemo(function(){return!!((null==fe?void 0:fe.rows)&&Object.keys(fe.rows).length>0)},[fe]),Ee=u.useMemo(function(){var e;return null!==(e=null==he?void 0:he.RuleBookDetailedViewVerticallyStacked)&&void 0!==e&&e},[null==he?void 0:he.RuleBookDetailedViewVerticallyStacked]);u.useEffect(function(){var e,l;if((null==ve?void 0:ve.show)&&Fe.current){var o=null===(e=Fe.current)||void 0===e?void 0:e.querySelectorAll(".rule-book-highlight");if(ke((null==o?void 0:o.length)||0),qe(0),o&&o.length>0)(i=o[0]).style.backgroundColor="#ffff5c",i.scrollIntoView({behavior:"smooth",block:"center"})}if((null==ue?void 0:ue.show)&&(null==ze?void 0:ze.current)){var i,n=null===(l=ze.current)||void 0===l?void 0:l.querySelectorAll(".user-chat-highlight");if(Te((null==n?void 0:n.length)||0),Ve(0),n&&n.length>0)(i=n[0]).style.backgroundColor="#ffff5c",i.scrollIntoView({behavior:"smooth",block:"center"})}},[null==ue?void 0:ue.show,null==ve?void 0:ve.show,null==ve?void 0:ve.data,null==ue?void 0:ue.chatData]);var He=u.useCallback(function(){var e;if(Se+1<Ce){var l=null===(e=Fe.current)||void 0===e?void 0:e.querySelectorAll(".rule-book-highlight");if(!l)return;l[Se].style.backgroundColor="#ffffb8";var o=Se+1;qe(o);var i=l[o];i.style.backgroundColor="#ffff5c",null==i||i.scrollIntoView({behavior:"smooth",block:"center"})}},[Se,Ce]),Me=u.useCallback(function(){var e;if(!(Se-1<0)){var l=null===(e=Fe.current)||void 0===e?void 0:e.querySelectorAll(".rule-book-highlight");if(l){l[Se].style.backgroundColor="#ffffb8";var o=Se-1,i=l[o];i.style.backgroundColor="#ffff5c",qe(o),null==i||i.scrollIntoView({behavior:"smooth",block:"center"})}}},[Se]),Ne=u.useCallback(function(){var e;if(Ie+1<De){var l=null===(e=ze.current)||void 0===e?void 0:e.querySelectorAll(".user-chat-highlight");if(!l)return;l[Ie].style.backgroundColor="#ffffb8";var o=Ie+1,i=l[o];i.style.backgroundColor="#ffff5c",Ve(o),null==i||i.scrollIntoView({behavior:"smooth",block:"center"})}},[Ie,De]),We=u.useCallback(function(){var e;if(!(Ie-1<0)){var l=null===(e=ze.current)||void 0===e?void 0:e.querySelectorAll(".user-chat-highlight");if(l){l[Ie].style.backgroundColor="#ffffb8";var o=Ie-1,i=l[o];i.style.backgroundColor="#ffff5c",Ve(o),null==i||i.scrollIntoView({behavior:"smooth",block:"center"})}}},[Ie]),Ye=i.getColorCode((null==se?void 0:se.relevanceScore)||0),Oe=u.useMemo(function(){var o,i=l.jsxs("span",e.__assign({style:e.__assign({display:"flex",border:"1px solid",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",borderColor:Ye.border,backgroundColor:Ye.background,color:Ye.text},null===(o=null==se?void 0:se.slotStyles)||void 0===o?void 0:o.relevanceScore)},{children:[(null==se?void 0:se.relevanceTitle)||"Decision Strength",":"," ",(null==se?void 0:se.relevanceScore)||0,"%"]}),"relevance-score"),n=l.jsx("span",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",backgroundColor:"white",color:"black",cursor:"pointer"},onClick:ge},{children:l.jsx(b.default,{})}),"close-preview");return pe&&!(null==he?void 0:he.isExpanded)?[i,n]:[i]},[pe,Ye.background,Ye.border,Ye.text,null==se?void 0:se.relevanceScore,null===(p=null==se?void 0:se.slotStyles)||void 0===p?void 0:p.relevanceScore,null==se?void 0:se.relevanceTitle]),Ke=u.useMemo(function(){return[Ce>0&&l.jsx(r.default,{currentItemNumber:Se+1,totalItems:Ce,disableNext:Se+1>=Ce,onNext:He,onPrevious:Me,disablePrevious:Se<=0},"rulebook-nav")]},[Se,He,Me,Ce]),Qe=u.useMemo(function(){return(null==he?void 0:he.RuleBookContainerHeight)?he.RuleBookContainerHeight:!(!Ee||(null==he?void 0:he.isExpanded))&&"600px"},[null==he?void 0:he.RuleBookContainerHeight,Ee]),Ue=u.useMemo(function(){var e,o;return[(null===(o=null===(e=null==ue?void 0:ue.detailedTab)||void 0===e?void 0:e.chip)||void 0===o?void 0:o.isActive)&&De>0&&l.jsx(r.default,{currentItemNumber:Ie+1,totalItems:De,onNext:Ne,onPrevious:We,disableNext:Ie+1>=De,disablePrevious:Ie<=0},"chat-nav")]},[null===(m=null===(x=null==ue?void 0:ue.detailedTab)||void 0===x?void 0:x.chip)||void 0===m?void 0:m.isActive,Ie,Ne,We,De]),Ge=l.jsxs("div",e.__assign({style:e.__assign({display:"flex",flexDirection:_e?Ee?"column-reverse":"row-reverse":Ee?"column":"row",gap:[(null==ue?void 0:ue.chatData)&&ue.chatData.length>0&&(ue.show||void 0===ue.show),(null==ve?void 0:ve.data)&&(ve.show||void 0===ve.show),Be].filter(Boolean).length>1?"12px":"0",height:Qe||"100%",minHeight:0},null===(y=null==se?void 0:se.slotStyles)||void 0===y?void 0:y.container)},{children:[Be&&l.jsx("span",e.__assign({style:e.__assign({flex:"1 1 0%",minWidth:0},null===(_=null==ue?void 0:ue.slotStyles)||void 0===_?void 0:_.outerContainer)},{children:l.jsx(o.default,e.__assign({title:"Invoice Data Preview",icon:l.jsx(c.default,{children:l.jsx(h.Table,{size:16})}),slotStyles:{title:{color:"#475569",fontWeight:500}},secondaryActions:[]},{children:l.jsx("div",e.__assign({style:{height:"100%",maxHeight:(null==he?void 0:he.isExpanded)?"none":"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",backgroundColor:"#FFFFFF",position:"relative",overflow:"hidden"}},{children:(null==fe?void 0:fe.rows)&&l.jsx(f.BigQueryTable,{rows:fe.rows,columns:fe.columns||[]})}))}))})),(null==ve?void 0:ve.data)&&(ve.show||void 0===ve.show)&&l.jsx("span",e.__assign({style:e.__assign({flex:"1 1 0%",minWidth:0},null===(w=null==ve?void 0:ve.slotStyles)||void 0===w?void 0:w.outerContainer)},{children:l.jsx(o.default,e.__assign({title:null!==(C=null==ve?void 0:ve.title)&&void 0!==C?C:"Rule book",icon:null==ve?void 0:ve.ruleBookIcon,slotStyles:{title:e.__assign({color:"#475569",fontWeight:500},null===(k=null==ve?void 0:ve.slotStyles)||void 0===k?void 0:k.title)},secondaryActions:(null==ve?void 0:ve.secondaryActions)?ve.secondaryActions(Ke):Ke},{children:l.jsx("div",e.__assign({style:e.__assign({height:"100%",maxHeight:"275px",minHeight:0,border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto"},null===(j=null==ve?void 0:ve.slotStyles)||void 0===j?void 0:j.dataContainer)},{children:l.jsx("div",e.__assign({style:{padding:"12px",height:"100%",overflowY:"auto"},ref:Fe},{children:l.jsx(a.default,{data:ve.data,renderers:null!==(S=null==ve?void 0:ve.renderer)&&void 0!==S?S:Pe})}))}))}))})),(null==ue?void 0:ue.chatData)&&ue.chatData.length>0&&(ue.show||void 0===ue.show)&&l.jsx("span",e.__assign({style:e.__assign({flex:"1 1 0%",minWidth:0},null===(q=null==ue?void 0:ue.slotStyles)||void 0===q?void 0:q.outerContainer)},{children:l.jsx(o.default,e.__assign({title:null!==(A=null==ue?void 0:ue.title)&&void 0!==A?A:"Chat",icon:null==ue?void 0:ue.chatIcon,containerStyles:null===(D=null==ue?void 0:ue.slotStyles)||void 0===D?void 0:D.container,slotStyles:{title:e.__assign({color:"#475569",fontWeight:500},null===(T=null==ue?void 0:ue.slotStyles)||void 0===T?void 0:T.title)},primaryActions:[((null===(I=null===(R=null==ue?void 0:ue.summarizedTab)||void 0===R?void 0:R.chip)||void 0===I?void 0:I.show)||void 0===(null===(F=null===(V=null==ue?void 0:ue.summarizedTab)||void 0===V?void 0:V.chip)||void 0===F?void 0:F.show))&&l.jsx(n.default,e.__assign({label:"Summarized"},null===(z=null==ue?void 0:ue.summarizedTab)||void 0===z?void 0:z.chip)),l.jsx(n.default,e.__assign({label:"Detailed"},null===(P=null==ue?void 0:ue.detailedTab)||void 0===P?void 0:P.chip))],secondaryActions:ue.secondaryActions?null==ue?void 0:ue.secondaryActions(Ue):Ue},{children:l.jsxs("div",e.__assign({style:e.__assign({height:"100%",maxHeight:"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto"},null===(B=null==ue?void 0:ue.slotStyles)||void 0===B?void 0:B.chatDataContainer)},{children:[(null===(H=null===(E=null==ue?void 0:ue.detailedTab)||void 0===E?void 0:E.chip)||void 0===H?void 0:H.isActive)&&l.jsx("div",e.__assign({ref:ze,style:{position:(null==he?void 0:he.isExpanded)?"absolute":"relative",inset:0,padding:"12px",overflowY:"auto"}},{children:l.jsx(d.default,{chatData:null!==(M=ue.chatData)&&void 0!==M?M:[],assistantChatProps:e.__assign(e.__assign({},null===(W=null===(N=null==ue?void 0:ue.detailedTab)||void 0===N?void 0:N.view)||void 0===W?void 0:W.assistantChatProps),{renderers:null!==(K=null===(O=null===(Y=null==ue?void 0:ue.detailedTab)||void 0===Y?void 0:Y.detailedViewRenderer)||void 0===O?void 0:O.assistantText)&&void 0!==K?K:Pe}),userChatItemProps:e.__assign(e.__assign({},null===(U=null===(Q=null==ue?void 0:ue.detailedTab)||void 0===Q?void 0:Q.view)||void 0===U?void 0:U.userChatItemProps),{renderers:null!==(L=null===(J=null===(G=null==ue?void 0:ue.detailedTab)||void 0===G?void 0:G.detailedViewRenderer)||void 0===J?void 0:J.userText)&&void 0!==L?L:Pe})})})),(null===(Z=null===(X=null==ue?void 0:ue.summarizedTab)||void 0===X?void 0:X.chip)||void 0===Z?void 0:Z.show)&&(null===(ee=null===($=null==ue?void 0:ue.summarizedTab)||void 0===$?void 0:$.chip)||void 0===ee?void 0:ee.isActive)&&l.jsx(s.default,e.__assign({chatData:null!==(le=ue.chatData)&&void 0!==le?le:[]},null===(oe=null==ue?void 0:ue.summarizedTab)||void 0===oe?void 0:oe.view,{renderer:null!==(ne=null===(ie=null==ue?void 0:ue.summarizedTab)||void 0===ie?void 0:ie.summarizedViewRenderer)&&void 0!==ne?ne:Pe}))]}))}))}))]}));return me?l.jsx(o.default,e.__assign({title:null==se?void 0:se.title,slotStyles:{title:null===(te=null==se?void 0:se.slotStyles)||void 0===te?void 0:te.title},containerStyles:null===(re=null==se?void 0:se.slotStyles)||void 0===re?void 0:re.container,icon:null!==(de=null==se?void 0:se.icon)&&void 0!==de?de:l.jsx(c.default,{children:l.jsx("img",{src:t.default,alt:"chat icon",style:{width:16,height:16}})}),secondaryActions:(null==se?void 0:se.secondaryActions)?se.secondaryActions(Oe):Oe},{children:Ge})):Ge};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),l=require("react/jsx-runtime"),i=require("./components/ChatCitation.js"),o=require("./utils/helpers.js"),n=require("./components/Chip.js"),t=require("./assets/message-chat-square.svg.js");require("@mui/icons-material/KeyboardArrowDown"),require("@mui/icons-material/KeyboardArrowUp"),require("@mui/icons-material/Clear");var r=require("./components/InViewNavigation.js"),d=require("./components/DetailedView.js"),s=require("./components/SummarizedView.js"),a=require("./components/RuleBook.js"),u=require("react"),v=require("./constants/renderer.js"),c=require("./components/IconContainer.js"),h=require("lucide-react"),f=require("./BigQueryTable.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=g(require("@mui/icons-material/CloseOutlined")),b=function(e,l,i){if(void 0===i&&(i="smooth"),l){for(var o=e.parentElement;o;){var n=window.getComputedStyle(o).overflowY;if(("auto"===n||"scroll"===n)&&o.scrollHeight>o.clientHeight)break;if(o===l){o=null;break}o=o.parentElement}var t=null!=o?o:l,r=e.getBoundingClientRect(),d=t.getBoundingClientRect(),s=t.scrollTop+r.top-d.top-(t.clientHeight-r.height)/2;t.scrollTo({top:Math.max(0,s),behavior:i})}};exports.default=function(g){var x,m,y,_,C,w,S,j,k,q,A,T,D,R,F,z,B,E,I,P,H,V,M,N,W,Y,O,K,Q,U,G,J,L,X,Z,$,ee,le,ie,oe,ne,te,re,de,se,ae,ue,ve,ce=g.rootContainer,he=g.chatContainer,fe=void 0===he?{chatData:[]}:he,ge=g.ruleBookContainer,pe=g.renderer,be=g.additionalData,xe=g.tableComponent,me=g.closePreview,ye=g.isRenderedCustomComponent,_e=void 0!==ye&&ye,Ce=g.showRootContainer,we=void 0===Ce||Ce,Se=g.reversePanels,je=void 0!==Se&&Se,ke=u.useState(0),qe=ke[0],Ae=ke[1],Te=u.useState(0),De=Te[0],Re=Te[1],Fe=u.useState(0),ze=Fe[0],Be=Fe[1],Ee=u.useState(0),Ie=Ee[0],Pe=Ee[1],He=u.useRef(null),Ve=u.useRef(null),Me=u.useRef(null),Ne=u.useMemo(function(){return e.__assign(e.__assign({},v.defaultRenderer),pe)},[pe]),We=u.useMemo(function(){return!!((null==xe?void 0:xe.rows)&&Object.keys(xe.rows).length>0)},[xe]),Ye=u.useMemo(function(){var e;return null!==(e=null==be?void 0:be.RuleBookDetailedViewVerticallyStacked)&&void 0!==e&&e},[null==be?void 0:be.RuleBookDetailedViewVerticallyStacked]);u.useEffect(function(){var e,l;if((null==ge?void 0:ge.show)&&He.current){var i=null===(e=He.current)||void 0===e?void 0:e.querySelectorAll(".rule-book-highlight");if(Ae((null==i?void 0:i.length)||0),Re(0),i&&i.length>0){var o=i[0];o.style.backgroundColor="#ffff5c",b(o,He.current)}}if((null==fe?void 0:fe.show)&&(null==Ve?void 0:Ve.current)){var n=null===(l=Ve.current)||void 0===l?void 0:l.querySelectorAll(".user-chat-highlight");if(Be((null==n?void 0:n.length)||0),Pe(0),n&&n.length>0){var t=n[0];t.style.backgroundColor="#ffff5c";var r=requestAnimationFrame(function(){b(t,Me.current)});return function(){return cancelAnimationFrame(r)}}}},[null==fe?void 0:fe.show,null==ge?void 0:ge.show,null==ge?void 0:ge.data,null==fe?void 0:fe.chatData]);var Oe=u.useCallback(function(){var e;if(De+1<qe){var l=null===(e=He.current)||void 0===e?void 0:e.querySelectorAll(".rule-book-highlight");if(!l)return;l[De].style.backgroundColor="#ffffb8";var i=De+1;Re(i);var o=l[i];o.style.backgroundColor="#ffff5c",b(o,He.current)}},[De,qe]),Ke=u.useCallback(function(){var e;if(!(De-1<0)){var l=null===(e=He.current)||void 0===e?void 0:e.querySelectorAll(".rule-book-highlight");if(l){l[De].style.backgroundColor="#ffffb8";var i=De-1,o=l[i];o.style.backgroundColor="#ffff5c",Re(i),b(o,He.current)}}},[De]),Qe=u.useCallback(function(){var e;if(Ie+1<ze){var l=null===(e=Ve.current)||void 0===e?void 0:e.querySelectorAll(".user-chat-highlight");if(!l)return;l[Ie].style.backgroundColor="#ffffb8";var i=Ie+1,o=l[i];o.style.backgroundColor="#ffff5c",Pe(i),b(o,Me.current)}},[Ie,ze]),Ue=u.useCallback(function(){var e;if(!(Ie-1<0)){var l=null===(e=Ve.current)||void 0===e?void 0:e.querySelectorAll(".user-chat-highlight");if(l){l[Ie].style.backgroundColor="#ffffb8";var i=Ie-1,o=l[i];o.style.backgroundColor="#ffff5c",Pe(i),b(o,Me.current)}}},[Ie]),Ge=o.getColorCode((null==ce?void 0:ce.relevanceScore)||0),Je=u.useMemo(function(){var i,o=l.jsxs("span",e.__assign({style:e.__assign({display:"flex",border:"1px solid",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",borderColor:Ge.border,backgroundColor:Ge.background,color:Ge.text},null===(i=null==ce?void 0:ce.slotStyles)||void 0===i?void 0:i.relevanceScore)},{children:[(null==ce?void 0:ce.relevanceTitle)||"Decision Strength",":"," ",(null==ce?void 0:ce.relevanceScore)||0,"%"]}),"relevance-score"),n=l.jsx("span",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",backgroundColor:"white",color:"black",cursor:"pointer"},onClick:me},{children:l.jsx(p.default,{})}),"close-preview");return _e&&!(null==be?void 0:be.isExpanded)?[o,n]:[o]},[_e,Ge.background,Ge.border,Ge.text,null==ce?void 0:ce.relevanceScore,null===(x=null==ce?void 0:ce.slotStyles)||void 0===x?void 0:x.relevanceScore,null==ce?void 0:ce.relevanceTitle]),Le=u.useMemo(function(){return[qe>0&&l.jsx(r.default,{currentItemNumber:De+1,totalItems:qe,disableNext:De+1>=qe,onNext:Oe,onPrevious:Ke,disablePrevious:De<=0},"rulebook-nav")]},[De,Oe,Ke,qe]),Xe=u.useMemo(function(){return(null==be?void 0:be.RuleBookContainerHeight)?be.RuleBookContainerHeight:!(!Ye||(null==be?void 0:be.isExpanded))&&"600px"},[null==be?void 0:be.RuleBookContainerHeight,Ye]),Ze=u.useMemo(function(){var e,i;return[(null===(i=null===(e=null==fe?void 0:fe.detailedTab)||void 0===e?void 0:e.chip)||void 0===i?void 0:i.isActive)&&ze>0&&l.jsx(r.default,{currentItemNumber:Ie+1,totalItems:ze,onNext:Qe,onPrevious:Ue,disableNext:Ie+1>=ze,disablePrevious:Ie<=0},"chat-nav")]},[null===(y=null===(m=null==fe?void 0:fe.detailedTab)||void 0===m?void 0:m.chip)||void 0===y?void 0:y.isActive,Ie,Qe,Ue,ze]),$e=l.jsxs("div",e.__assign({style:e.__assign({display:"flex",flexDirection:je?Ye?"column-reverse":"row-reverse":Ye?"column":"row",gap:[(null==fe?void 0:fe.chatData)&&fe.chatData.length>0&&(fe.show||void 0===fe.show),(null==ge?void 0:ge.data)&&(ge.show||void 0===ge.show),We].filter(Boolean).length>1?"12px":"0",height:Xe||"100%",minHeight:0},null===(_=null==ce?void 0:ce.slotStyles)||void 0===_?void 0:_.container)},{children:[We&&l.jsx("span",e.__assign({style:e.__assign({flex:"1 1 0%",minWidth:0},null===(C=null==fe?void 0:fe.slotStyles)||void 0===C?void 0:C.outerContainer)},{children:l.jsx(i.default,e.__assign({title:"Invoice Data Preview",icon:l.jsx(c.default,{children:l.jsx(h.Table,{size:16})}),slotStyles:{title:{color:"#475569",fontWeight:500}},secondaryActions:[]},{children:l.jsx("div",e.__assign({style:{height:"100%",maxHeight:(null==be?void 0:be.isExpanded)?"none":"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",backgroundColor:"#FFFFFF",position:"relative",overflow:"hidden"}},{children:(null==xe?void 0:xe.rows)&&l.jsx(f.BigQueryTable,{rows:xe.rows,columns:xe.columns||[]})}))}))})),(null==ge?void 0:ge.data)&&(ge.show||void 0===ge.show)&&l.jsx("span",e.__assign({style:e.__assign({flex:"1 1 0%",minWidth:0},null===(w=null==ge?void 0:ge.slotStyles)||void 0===w?void 0:w.outerContainer)},{children:l.jsx(i.default,e.__assign({title:null!==(S=null==ge?void 0:ge.title)&&void 0!==S?S:"Rule book",icon:null==ge?void 0:ge.ruleBookIcon,slotStyles:{title:e.__assign({color:"#475569",fontWeight:500},null===(j=null==ge?void 0:ge.slotStyles)||void 0===j?void 0:j.title),body:null===(k=null==ge?void 0:ge.slotStyles)||void 0===k?void 0:k.body},secondaryActions:(null==ge?void 0:ge.secondaryActions)?ge.secondaryActions(Le):Le},{children:l.jsx("div",e.__assign({style:e.__assign({height:"100%",maxHeight:"275px",minHeight:0,border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto"},null===(q=null==ge?void 0:ge.slotStyles)||void 0===q?void 0:q.dataContainer)},{children:l.jsx("div",e.__assign({style:{padding:"12px",height:"100%",overflowY:"auto"},ref:He},{children:l.jsx(a.default,{data:ge.data,renderers:null!==(A=null==ge?void 0:ge.renderer)&&void 0!==A?A:Ne})}))}))}))})),(null==fe?void 0:fe.chatData)&&fe.chatData.length>0&&(fe.show||void 0===fe.show)&&l.jsx("span",e.__assign({style:e.__assign({flex:"1 1 0%",minWidth:0},null===(T=null==fe?void 0:fe.slotStyles)||void 0===T?void 0:T.outerContainer)},{children:l.jsx(i.default,e.__assign({title:null!==(D=null==fe?void 0:fe.title)&&void 0!==D?D:"Chat",icon:null==fe?void 0:fe.chatIcon,containerStyles:null===(R=null==fe?void 0:fe.slotStyles)||void 0===R?void 0:R.container,slotStyles:{title:e.__assign({color:"#475569",fontWeight:500},null===(F=null==fe?void 0:fe.slotStyles)||void 0===F?void 0:F.title),body:null===(z=null==fe?void 0:fe.slotStyles)||void 0===z?void 0:z.body},primaryActions:[((null===(E=null===(B=null==fe?void 0:fe.summarizedTab)||void 0===B?void 0:B.chip)||void 0===E?void 0:E.show)||void 0===(null===(P=null===(I=null==fe?void 0:fe.summarizedTab)||void 0===I?void 0:I.chip)||void 0===P?void 0:P.show))&&l.jsx(n.default,e.__assign({label:"Summarized"},null===(H=null==fe?void 0:fe.summarizedTab)||void 0===H?void 0:H.chip)),l.jsx(n.default,e.__assign({label:"Detailed"},null===(V=null==fe?void 0:fe.detailedTab)||void 0===V?void 0:V.chip))],secondaryActions:fe.secondaryActions?null==fe?void 0:fe.secondaryActions(Ze):Ze},{children:l.jsxs("div",e.__assign({ref:Me,style:e.__assign({height:"100%",maxHeight:"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto"},null===(M=null==fe?void 0:fe.slotStyles)||void 0===M?void 0:M.chatDataContainer)},{children:[(null===(W=null===(N=null==fe?void 0:fe.detailedTab)||void 0===N?void 0:N.chip)||void 0===W?void 0:W.isActive)&&l.jsx("div",e.__assign({ref:Ve,style:{position:(null==be?void 0:be.isExpanded)?"absolute":"relative",inset:0,padding:"12px",overflowY:"auto"}},{children:l.jsx(d.default,{chatData:null!==(Y=fe.chatData)&&void 0!==Y?Y:[],assistantChatProps:e.__assign(e.__assign({},null===(K=null===(O=null==fe?void 0:fe.detailedTab)||void 0===O?void 0:O.view)||void 0===K?void 0:K.assistantChatProps),{renderers:null!==(G=null===(U=null===(Q=null==fe?void 0:fe.detailedTab)||void 0===Q?void 0:Q.detailedViewRenderer)||void 0===U?void 0:U.assistantText)&&void 0!==G?G:Ne}),userChatItemProps:e.__assign(e.__assign({},null===(L=null===(J=null==fe?void 0:fe.detailedTab)||void 0===J?void 0:J.view)||void 0===L?void 0:L.userChatItemProps),{renderers:null!==($=null===(Z=null===(X=null==fe?void 0:fe.detailedTab)||void 0===X?void 0:X.detailedViewRenderer)||void 0===Z?void 0:Z.userText)&&void 0!==$?$:Ne})})})),(null===(le=null===(ee=null==fe?void 0:fe.summarizedTab)||void 0===ee?void 0:ee.chip)||void 0===le?void 0:le.show)&&(null===(oe=null===(ie=null==fe?void 0:fe.summarizedTab)||void 0===ie?void 0:ie.chip)||void 0===oe?void 0:oe.isActive)&&l.jsx(s.default,e.__assign({chatData:null!==(ne=fe.chatData)&&void 0!==ne?ne:[]},null===(te=null==fe?void 0:fe.summarizedTab)||void 0===te?void 0:te.view,{renderer:null!==(de=null===(re=null==fe?void 0:fe.summarizedTab)||void 0===re?void 0:re.summarizedViewRenderer)&&void 0!==de?de:Ne}))]}))}))}))]}));return we?l.jsx(i.default,e.__assign({title:null==ce?void 0:ce.title,slotStyles:{title:null===(se=null==ce?void 0:ce.slotStyles)||void 0===se?void 0:se.title,body:null===(ae=null==ce?void 0:ce.slotStyles)||void 0===ae?void 0:ae.body},containerStyles:null===(ue=null==ce?void 0:ce.slotStyles)||void 0===ue?void 0:ue.container,icon:null!==(ve=null==ce?void 0:ce.icon)&&void 0!==ve?ve:l.jsx(c.default,{children:l.jsx("img",{src:t.default,alt:"chat icon",style:{width:16,height:16}})}),secondaryActions:(null==ce?void 0:ce.secondaryActions)?ce.secondaryActions(Je):Je},{children:$e})):$e};
2
2
  //# sourceMappingURL=InternalChatCitationRenderer.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={container:{border:"1px solid #E2E8F0",padding:12,paddingBottom:0,borderRadius:8,height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"},headerRow:{display:"flex",flexDirection:"row",gap:16,justifyContent:"space-between",alignItems:"center",height:18},leftRow:{display:"flex",flexDirection:"row",gap:12,alignItems:"center"},iconTitleRow:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"},titleText:{fontSize:14,fontWeight:700,color:"#5928ED"},actionsRow:{display:"flex",flexDirection:"row",gap:6,alignItems:"center"},body:{paddingTop:12,paddingBottom:12,flex:1}};exports.default=function(s){var t=s.title,o=void 0===t?"User Chat":t,r=s.icon,l=s.slotStyles,a=s.primaryActions,d=s.secondaryActions,c=s.children,g=s.containerStyles;return i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.container),g)},{children:[i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.headerRow),{overflowX:"auto",minHeight:"2.18rem",overflowY:"hidden",scrollbarWidth:"thin"})},{children:[i.jsxs("div",e.__assign({style:n.leftRow},{children:[i.jsxs("div",e.__assign({style:n.iconTitleRow},{children:[i.jsx("span",{children:r}),i.jsx("span",e.__assign({style:e.__assign(e.__assign({},n.titleText),null==l?void 0:l.title)},{children:o}))]})),i.jsx("div",e.__assign({style:n.actionsRow},{children:null==a?void 0:a.filter(function(e){return void 0!==e}).map(function(e,n){return i.jsx("span",{children:e},n)})}))]})),i.jsx("div",e.__assign({style:e.__assign(e.__assign({},n.actionsRow),{gap:16,alignItems:"center"})},{children:null==d?void 0:d.filter(function(e){return void 0!==e}).map(function(e,n){return i.jsx("span",{children:e},n)})}))]})),i.jsx("div",e.__assign({style:n.body,id:"body"},{children:c}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),n={container:{border:"1px solid #E2E8F0",padding:12,paddingBottom:0,borderRadius:8,height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"},headerRow:{display:"flex",flexDirection:"row",gap:16,justifyContent:"space-between",alignItems:"center",height:18},leftRow:{display:"flex",flexDirection:"row",gap:12,alignItems:"center"},iconTitleRow:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"},titleText:{fontSize:14,fontWeight:700,color:"#5928ED"},actionsRow:{display:"flex",flexDirection:"row",gap:6,alignItems:"center"},body:{paddingTop:12,paddingBottom:12,flex:1}};exports.default=function(s){var t=s.title,o=void 0===t?"User Chat":t,l=s.icon,r=s.slotStyles,a=s.primaryActions,d=s.secondaryActions,c=s.children,_=s.containerStyles;return e.jsxs("div",i.__assign({style:i.__assign(i.__assign({},n.container),_)},{children:[e.jsxs("div",i.__assign({style:i.__assign(i.__assign({},n.headerRow),{overflowX:"auto",minHeight:"2.18rem",overflowY:"hidden",scrollbarWidth:"thin"})},{children:[e.jsxs("div",i.__assign({style:n.leftRow},{children:[e.jsxs("div",i.__assign({style:n.iconTitleRow},{children:[e.jsx("span",{children:l}),e.jsx("span",i.__assign({style:i.__assign(i.__assign({},n.titleText),null==r?void 0:r.title)},{children:o}))]})),e.jsx("div",i.__assign({style:n.actionsRow},{children:null==a?void 0:a.filter(function(i){return void 0!==i}).map(function(i,n){return e.jsx("span",{children:i},n)})}))]})),e.jsx("div",i.__assign({style:i.__assign(i.__assign({},n.actionsRow),{gap:16,alignItems:"center"})},{children:null==d?void 0:d.filter(function(i){return void 0!==i}).map(function(i,n){return e.jsx("span",{children:i},n)})}))]})),e.jsx("div",i.__assign({style:i.__assign(i.__assign({},n.body),null==r?void 0:r.body),id:"body"},{children:c}))]}))};
2
2
  //# sourceMappingURL=ChatCitation.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=new Set(["DONE","COMPLETED","FAILED"]),n=new Map;exports.useIngestionWebSocket=function(r,o){var c=e.useState(null),a=c[0],u=c[1],l=e.useState(!1),s=l[0],i=l[1],S=e.useState(null),d=S[0],f=S[1],v=e.useRef(null),p=e.useCallback(function(){var e;null===(e=v.current)||void 0===e||e.close(),v.current=null,i(!1)},[]);return e.useEffect(function(){if(r){f(null),u(null);var e=n.get(r);e&&e.readyState!==WebSocket.CLOSED&&e.close();var c=new WebSocket("".concat(o,"/").concat(r));n.set(r,c),v.current=c,c.onopen=function(){return i(!0)};var a=setInterval(function(){c.readyState===WebSocket.OPEN&&c.send(JSON.stringify({type:"ping"}))},5e3);return c.onmessage=function(e){var o;try{var l=JSON.parse(e.data);u(l),t.has(null===(o=l.ingestionStatus)||void 0===o?void 0:o.toUpperCase())&&(clearInterval(a),c.close(),n.delete(r))}catch(e){f("Failed to parse WebSocket message")}},c.onerror=function(){return f("WebSocket connection error")},c.onclose=function(){return i(!1)},function(){clearInterval(a),c.close(),n.delete(r)}}},[r,o]),{data:a,connected:s,error:d,disconnect:p}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=new Set(["DONE","COMPLETED","FAILED"]);var n=new Map;function r(e,t,r){t.listeners.delete(r),0===t.listeners.size&&n.get(e)===t&&(clearInterval(t.keepAliveInterval),t.ws.readyState!==WebSocket.OPEN&&t.ws.readyState!==WebSocket.CONNECTING||t.ws.close(),n.delete(e))}exports.useIngestionWebSocket=function(s,a){var o=e.useState(null),i=o[0],c=o[1],l=e.useState(!1),u=l[0],f=l[1],v=e.useState(null),d=v[0],S=v[1],p=e.useRef(null),E=e.useRef(null),g=e.useRef(s);e.useEffect(function(){g.current=s},[s]);var k=e.useCallback(function(){var e=g.current;e&&p.current&&E.current&&r(e,p.current,E.current),p.current=null,E.current=null,f(!1)},[]);return e.useEffect(function(){if(s){S(null);var e=function(e,r){if(!r||"string"!=typeof r||!r.trim())return console.error("useIngestionWebSocket: wsBaseUrl is missing or invalid; skipping connection."),null;var s=n.get(e);if(s&&s.ws.readyState!==WebSocket.CLOSED)return s;var a=new WebSocket("".concat(r.trim(),"/").concat(e)),o={ws:a,listeners:new Set,lastData:null,keepAliveInterval:setInterval(function(){a.readyState===WebSocket.OPEN&&a.send(JSON.stringify({type:"ping"}))},5e3)};return a.onmessage=function(r){var s;try{s=JSON.parse(r.data)}catch(e){return void o.listeners.forEach(function(e){return e(null,"Failed to parse WebSocket message")})}if(function(e){if(!e||"object"!=typeof e)return!1;var t=e;return"string"==typeof t.ingestionStatus&&"string"==typeof t.ingestionId}(s)){var i=s;o.lastData=i,o.listeners.forEach(function(e){return e(i,null)}),t.has(i.ingestionStatus.toUpperCase())&&(clearInterval(o.keepAliveInterval),a.close(),n.delete(e))}else o.listeners.forEach(function(e){return e(null,"Received malformed WebSocket payload")})},a.onerror=function(){o.listeners.forEach(function(e){return e(null,"WebSocket connection error")})},a.onclose=function(){clearInterval(o.keepAliveInterval),n.get(e)===o&&n.delete(e)},n.set(e,o),o}(s,a);if(!e)return S("Missing or invalid WebSocket base URL"),void f(!1);e.lastData&&c(e.lastData),f(e.ws.readyState===WebSocket.OPEN);var o=function(e,t){t?S(t):c(e)};e.listeners.add(o),p.current=e,E.current=o;var i=function(){return f(!0)},l=function(){return f(!1)};return e.ws.addEventListener("open",i),e.ws.addEventListener("close",l),function(){e.ws.removeEventListener("open",i),e.ws.removeEventListener("close",l),r(s,e,o),p.current=null,E.current=null}}},[s,a]),{data:i,connected:u,error:d,disconnect:k}};
2
2
  //# sourceMappingURL=useIngestionStatus.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(t){var n=t.speed,o=void 0===n?200:n,s=t.color,a=void 0===s?"#5928ED":s,i=t.size,l=void 0===i?"1.2rem":i;return r.jsxs("span",e.__assign({style:{display:"inline-block",fontFamily:"monospace",color:a,fontSize:l,animation:"slashRotate ".concat(o,"ms linear infinite"),transformOrigin:"center center"}},{children:["/",r.jsx("style",{children:"\n @keyframes slashRotate {\n 0% { transform: rotate(0deg); }\n 25% { transform: rotate(90deg); }\n 50% { transform: rotate(180deg); }\n 75% { transform: rotate(270deg); }\n 100% { transform: rotate(360deg); }\n }\n "})]}))};
2
+ //# sourceMappingURL=SlashLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlashLoader.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("react/jsx-runtime"),a=require("lucide-react"),e=require("dayjs"),n=require("../ScannedDocCitation/ScannedDocCitation.js"),o=require("../InstantLearningCitation/InstantLearningCitationComponent.js"),l=require("../InstantLearningCitation/SlashLoader.js"),r=require("../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),u=require("../RequirementAiCitations/ImageCitation/ImageCitationContent.js"),s=require("../RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),c=require("../ChatCitation/ChatCitationRenderer.js");function d(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var v=d(e),m=function(t,i,a){if(!t)throw new Error("[CitationOrchestratorComponent] ".concat(i,': missing required field "').concat(a,'" in customMetaData'))},g=function(t,i){if(!Object.values(t).some(Boolean))throw new Error("[CitationOrchestratorComponent] ".concat(i,': missing one of "').concat(Object.keys(t).join('", "'),'" in customMetaData'))};exports.default=function(e){var d,_,h,C,D,f,p,M,x,b,j,I,w,S,q,R,k,y,T,P,L,U,O,z,A,E,F,W,B,G,X,H,N,$,J,K,Q,V,Y,Z,tt,it,at=e.href,et=e.citations,nt=e.children,ot=e.isStreaming,lt=e.onCitationToggle,rt=e.chatCitationConfig;if(ot)return i.jsxs("span",t.__assign({style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontWeight:500,color:"#6D28D9"}},{children:[i.jsx("span",{children:nt}),i.jsx(l.default,{})]}));try{var ut=new URL(at,"http://example.com"),st=ut.searchParams.get("citationNumber"),ct=ut.searchParams.get("decisionStrength");if(!st)return null;var dt=(null==et?void 0:et.find(function(t){var i;return String(null===(i=null==t?void 0:t.customMetaData)||void 0===i?void 0:i.citation_number)===st}))||null;if(!dt)return null;var vt=(null===(d=null==dt?void 0:dt.customMetaData)||void 0===d?void 0:d.citation_type)||((null===(_=dt.customMetaData)||void 0===_?void 0:_.type)||"").replace(/s$/,"");if("scanned_doc_citation"===vt){var mt=null==dt?void 0:dt.customMetaData.value;if(null==mt?void 0:mt.length)return i.jsx(n.default,{pages:mt,subHeadingText:dt.customMetaData.artifact_title});m(null===(h=null==dt?void 0:dt.customMetaData)||void 0===h?void 0:h.gs_url,"scanned_doc_citation","gs_url");var gt=[null===(C=null==dt?void 0:dt.customMetaData)||void 0===C?void 0:C.gs_url],_t=(null!==(D=dt.customMetaData.highlighted_coordinates)&&void 0!==D?D:[]).map(function(t,i){return{pageIndex:i,bboxes:[t]}});return i.jsx(n.default,{images:gt,highlights:_t})}if("IL"===vt){m(dt.customMetaData.il_learning,"IL","il_learning");var ht=nt||(null===(f=dt.customMetaData)||void 0===f?void 0:f.link_text)||(null===(p=dt.customMetaData)||void 0===p?void 0:p.citation_source)||String(null!==(M=dt.customMetaData.citation_number)&&void 0!==M?M:1);return i.jsx(o.default,{citation:dt,linkTitle:ht,onCitationToggle:null!=lt?lt:function(){},decisionStrengthFromUrl:ct||(null===(x=dt.customMetaData)||void 0===x?void 0:x.decision_strength)||""})}if("chat_citation"===vt){var Ct=null!=rt?rt:{},Dt=null===(I=null!==(j=null===(b=null==dt?void 0:dt.customMetaData)||void 0===b?void 0:b.chat_data)&&void 0!==j?j:[])||void 0===I?void 0:I.map(function(i){return t.__assign(t.__assign({},i),{timeStamp:v.default(i.timeStamp)})}),ft=!!(null===(w=null==dt?void 0:dt.customMetaData)||void 0===w?void 0:w.rule_book_content);return i.jsx(c.default,{showRootContainer:null===(S=Ct.showRootContainer)||void 0===S||S,reversePanels:Ct.reversePanels,isRenderedCustomComponent:Ct.isRenderedCustomComponent,modalContainerStyle:Ct.modalContainerStyle,additionalData:Ct.additionalData,closePreview:Ct.closePreview,selectedIdFromReason:null!==(q=Ct.selectedIdFromReason)&&void 0!==q?q:void 0,rootContainer:t.__assign(t.__assign({},Ct.rootContainer),{relevanceScore:dt.customMetaData.relevance_score}),chatContainer:t.__assign(t.__assign({},Ct.chatContainer),{chatData:Dt,summarizedTab:null!==(k=null===(R=Ct.chatContainer)||void 0===R?void 0:R.summarizedTab)&&void 0!==k?k:{chip:{isActive:!0,show:!0}},detailedTab:null!==(T=null===(y=Ct.chatContainer)||void 0===y?void 0:y.detailedTab)&&void 0!==T?T:{chip:{isActive:!1}}}),ruleBookContainer:ft?t.__assign(t.__assign({},Ct.ruleBookContainer),{data:{content:dt.customMetaData.rule_book_content,highlighted_texts:null!==(P=dt.customMetaData.rule_book_highlights)&&void 0!==P?P:[]}}):void 0})}if("gpt_citation"===vt){var pt=null===(L=dt.customMetaData)||void 0===L?void 0:L.value,Mt=null!==(U=null==pt?void 0:pt.text)&&void 0!==U?U:null===(z=null===(O=dt.customMetaData)||void 0===O?void 0:O.data_sources)||void 0===z?void 0:z[0],xt=null!==(A=null==pt?void 0:pt.label)&&void 0!==A?A:null===(F=null===(E=dt.customMetaData)||void 0===E?void 0:E.training_data_title)||void 0===F?void 0:F[0],bt=null!==(W=null==pt?void 0:pt.paraphrase)&&void 0!==W?W:null===(G=null===(B=dt.customMetaData)||void 0===B?void 0:B.paraphrase)||void 0===G?void 0:G[0];return g({data_sources:Mt,training_data_title:xt},"gpt_citation"),i.jsx(r.default,{item:{text:"",dataSource:Mt,trainingDataTitle:xt,paraphrase:bt},headerTitle:"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:a.ChevronDown,ChevronUpIcon:a.ChevronUp,MaximizeIcon:a.Maximize2,CloseIcon:a.X}})}if("web_citation"===vt){!function(t,i,a){m(t,i,a);try{new URL(t)}catch(e){throw new Error("[CitationOrchestratorComponent] ".concat(i,': "').concat(a,'" is not a valid URL: "').concat(t,'"'))}}(null===(X=dt.customMetaData)||void 0===X?void 0:X.link,"web_citation","link");var jt=dt.customMetaData.link,It=nt||(null===(H=dt.customMetaData)||void 0===H?void 0:H.citation_source)||jt;return(null===(N=dt.customMetaData)||void 0===N?void 0:N.screenshot_url)?i.jsx(s.default,{url:jt,label:It,gsUtilPath:null===($=dt.customMetaData)||void 0===$?void 0:$.gs_util_path,signedUrl:null===(J=dt.customMetaData)||void 0===J?void 0:J.screenshot_url,relevanceScore:null===(K=dt.customMetaData)||void 0===K?void 0:K.relevance_score,visitIcon:a.ExternalLink,PreviewDialogCloseIcon:a.X}):i.jsx("a",t.__assign({href:jt,target:"_blank",rel:"noreferrer"},{children:It}))}if("image_citation"===vt)return g({gs_util_path:null===(Q=dt.customMetaData)||void 0===Q?void 0:Q.gs_util_path,signed_url:null===(V=dt.customMetaData)||void 0===V?void 0:V.signed_url},"image_citation"),i.jsx(u.default,{citationTitle:nt||(null===(Y=dt.customMetaData)||void 0===Y?void 0:Y.citation_source),gsUtilPath:null===(Z=dt.customMetaData)||void 0===Z?void 0:Z.gs_util_path,signedUrl:null===(tt=dt.customMetaData)||void 0===tt?void 0:tt.signed_url,relevanceScore:null===(it=dt.customMetaData)||void 0===it?void 0:it.relevance_score})}catch(t){return console.error(t),null}return null};
2
+ //# sourceMappingURL=ParentCitationComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParentCitationComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),o=require("./features/Bookemon/Bookemon.js"),r=require("./features/PdfEditorCitation/PdfEditorCitation.js"),n=require("./features/CitationRenderer/CitationRenderer.js"),a=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),p=require("./features/ChatCitation/ChatCitationRenderer.js"),l=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),d=require("./features/PdfViewer/PdfViewer.js"),f=require("./features/CognitiveDecisioning/FaqCitation/FaqCitation.js"),g=require("./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js"),x=require("./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js"),m=require("./features/RequirementAiCitations/FileCitation/FileCitationContent.js"),c=require("./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),q=require("./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js"),j=require("./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js"),R=require("./features/TableCitation/TableCitationContent.js"),I=require("./features/CitationViewer/CitationsViewer.js"),T=require("./features/ExcelCitation/ExcelCitations.js"),w=require("./features/ScannedDocCitation/ScannedDocCitation.js"),S=require("./features/ChatDrawer/ChatDrawer.js"),b=require("./features/ChatDrawer/constants/ChatDrawer.js"),D=require("./features/SplitterCitations/SplitterCitationsComponent.js"),E=require("./features/CognitiveCompare/CognitiveCompare.js"),W=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),v=require("./features/TextualGuidelines/TextualGuideLinesComponent.js"),A=require("./features/RulebookCitations/RuleBookCitationWrapper.js"),P=require("./features/IngestionStatus/IngestionStatusComponent.js"),h=require("./features/ManageRemainders/ManageReminders.js"),V=require("./features/GptWebCitation/GptWebCitation.js"),k=require("./features/InstantLearningCitation/InstantLearningCitationComponent.js"),G=require("./features/GptWebCitation/utils/citationData.utils.js"),U=require("./features/GptWebCitation/types.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=o.default,exports.PdfCitation=r.PdfEditorCitation,exports.CitationRenderer=n.default,exports.MarkdownRenderer=a.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=C.default,exports.InternalgptReasoningComponent=u.default,exports.NonWebReasoningComponent=u.default,exports.ChatCitation=p.default,exports.CognitiveDecisioningCard=l.default,exports.PdfViewer=d.default,exports.FaqCitation=f.default,exports.ImageCitationContent=g.default,exports.VideoCitationContent=x.default,exports.FileCitationContent=m.default,exports.WebCitationWithImageContent=c.default,exports.MarkdownWithImageCitation=q.default,exports.AiReasoningCitation=j.default,exports.TableCitationContent=R.default,exports.CitationsViewer=I.default,exports.ExcelCitation=T.default,exports.ScannedDocCitation=w.default,exports.ChatDrawer=S.default,exports.FILE_INGESTION_STATUS=b.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=b.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=b.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=D.default,exports.CognitiveCompare=E.default,exports.CognitiveInternalgptCoreComponent=W.default,exports.TextualGuideLinesComponent=v.default,exports.RuleBookCitationWrapper=A.default,exports.IngestionStatusChip=P.IngestionStatusChip,exports.IngestionStatusComponent=P.IngestionStatusComponent,exports.ManageReminders=h.ManageReminders,exports.GptWebCitation=V.default,exports.InstantLearningCitationWrapper=k.default,exports.extractLearnedFromUrl=G.extractLearnedFromUrl,exports.extractRelevanceScoreFromContent=G.extractRelevanceScoreFromContent,exports.extractTopicFromContent=G.extractTopicFromContent,exports.getWebCitationImageUrl=G.getWebCitationImageUrl,exports.mapCitationDataToDisplay=G.mapCitationDataToDisplay,exports.resolveSkeletonVisitUrl=G.resolveSkeletonVisitUrl,exports.sanitizeExternalUrl=G.sanitizeExternalUrl,Object.defineProperty(exports,"CitationType",{enumerable:!0,get:function(){return U.CitationType}}),exports.allowsGptCitationView=U.allowsGptCitationView,exports.allowsWebCitationView=U.allowsWebCitationView,exports.showsCitationViewToggle=U.showsCitationViewToggle;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),o=require("./features/Bookemon/Bookemon.js"),r=require("./features/PdfEditorCitation/PdfEditorCitation.js"),n=require("./features/CitationRenderer/CitationRenderer.js"),a=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),p=require("./features/ChatCitation/ChatCitationRenderer.js"),l=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),d=require("./features/PdfViewer/PdfViewer.js"),f=require("./features/CognitiveDecisioning/FaqCitation/FaqCitation.js"),g=require("./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js"),x=require("./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js"),m=require("./features/RequirementAiCitations/FileCitation/FileCitationContent.js"),q=require("./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),c=require("./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js"),j=require("./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js"),R=require("./features/TableCitation/TableCitationContent.js"),I=require("./features/CitationViewer/CitationsViewer.js"),T=require("./features/ExcelCitation/ExcelCitations.js"),w=require("./features/ScannedDocCitation/ScannedDocCitation.js"),S=require("./features/ChatDrawer/ChatDrawer.js"),b=require("./features/ChatDrawer/constants/ChatDrawer.js"),D=require("./features/SplitterCitations/SplitterCitationsComponent.js"),E=require("./features/CognitiveCompare/CognitiveCompare.js"),W=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),P=require("./features/TextualGuidelines/TextualGuideLinesComponent.js"),v=require("./features/RulebookCitations/RuleBookCitationWrapper.js"),A=require("./features/IngestionStatus/IngestionStatusComponent.js"),h=require("./features/ManageRemainders/ManageReminders.js"),V=require("./features/GptWebCitation/GptWebCitation.js"),k=require("./features/InstantLearningCitation/InstantLearningCitationComponent.js"),G=require("./features/ParentCitationComponent/ParentCitationComponent.js"),U=require("./features/GptWebCitation/utils/citationData.utils.js"),_=require("./features/GptWebCitation/types.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=o.default,exports.PdfCitation=r.PdfEditorCitation,exports.CitationRenderer=n.default,exports.MarkdownRenderer=a.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=C.default,exports.InternalgptReasoningComponent=u.default,exports.NonWebReasoningComponent=u.default,exports.ChatCitation=p.default,exports.CognitiveDecisioningCard=l.default,exports.PdfViewer=d.default,exports.FaqCitation=f.default,exports.ImageCitationContent=g.default,exports.VideoCitationContent=x.default,exports.FileCitationContent=m.default,exports.WebCitationWithImageContent=q.default,exports.MarkdownWithImageCitation=c.default,exports.AiReasoningCitation=j.default,exports.TableCitationContent=R.default,exports.CitationsViewer=I.default,exports.ExcelCitation=T.default,exports.ScannedDocCitation=w.default,exports.ChatDrawer=S.default,exports.FILE_INGESTION_STATUS=b.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=b.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=b.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=D.default,exports.CognitiveCompare=E.default,exports.CognitiveInternalgptCoreComponent=W.default,exports.TextualGuideLinesComponent=P.default,exports.RuleBookCitationWrapper=v.default,exports.IngestionStatusChip=A.IngestionStatusChip,exports.IngestionStatusComponent=A.IngestionStatusComponent,exports.ManageReminders=h.ManageReminders,exports.GptWebCitation=V.default,exports.InstantLearningCitationWrapper=k.default,exports.ParentCitationComponent=G.default,exports.extractLearnedFromUrl=U.extractLearnedFromUrl,exports.extractRelevanceScoreFromContent=U.extractRelevanceScoreFromContent,exports.extractTopicFromContent=U.extractTopicFromContent,exports.getWebCitationImageUrl=U.getWebCitationImageUrl,exports.mapCitationDataToDisplay=U.mapCitationDataToDisplay,exports.resolveSkeletonVisitUrl=U.resolveSkeletonVisitUrl,exports.sanitizeExternalUrl=U.sanitizeExternalUrl,Object.defineProperty(exports,"CitationType",{enumerable:!0,get:function(){return _.CitationType}}),exports.allowsGptCitationView=_.allowsGptCitationView,exports.allowsWebCitationView=_.allowsWebCitationView,exports.showsCitationViewToggle=_.showsCitationViewToggle;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsxs as l,jsx as i}from"react/jsx-runtime";import e from"./components/ChatCitation.js";import{getColorCode as n}from"./utils/helpers.js";import t from"./components/Chip.js";import r from"./assets/message-chat-square.svg.js";import"@mui/icons-material/KeyboardArrowDown";import"@mui/icons-material/KeyboardArrowUp";import"@mui/icons-material/Clear";import d from"./components/InViewNavigation.js";import a from"./components/DetailedView.js";import u from"./components/SummarizedView.js";import v from"./components/RuleBook.js";import{useState as s,useRef as c,useMemo as h,useEffect as f,useCallback as m}from"react";import{defaultRenderer as p}from"./constants/renderer.js";import b from"./components/IconContainer.js";import{Table as g}from"lucide-react";import{BigQueryTable as y}from"./BigQueryTable.js";import x from"@mui/icons-material/CloseOutlined";function w(w){var C,k,S,A,D,T,I,R,V,F,j,z,P,B,E,H,q,N,W,Y,K,O,Q,U,G,J,L,M,X,Z,$,_,oo,lo,io,eo,no,to,ro,ao,uo,vo,so,co,ho,fo=w.rootContainer,mo=w.chatContainer,po=void 0===mo?{chatData:[]}:mo,bo=w.ruleBookContainer,go=w.renderer,yo=w.additionalData,xo=w.tableComponent,wo=w.closePreview,Co=w.isRenderedCustomComponent,ko=void 0!==Co&&Co,So=w.showRootContainer,Ao=void 0===So||So,Do=w.reversePanels,To=void 0!==Do&&Do,Io=s(0),Ro=Io[0],Vo=Io[1],Fo=s(0),jo=Fo[0],zo=Fo[1],Po=s(0),Bo=Po[0],Eo=Po[1],Ho=s(0),qo=Ho[0],No=Ho[1],Wo=c(null),Yo=c(null),Ko=h(function(){return o(o({},p),go)},[go]),Oo=h(function(){return!!((null==xo?void 0:xo.rows)&&Object.keys(xo.rows).length>0)},[xo]),Qo=h(function(){var o;return null!==(o=null==yo?void 0:yo.RuleBookDetailedViewVerticallyStacked)&&void 0!==o&&o},[null==yo?void 0:yo.RuleBookDetailedViewVerticallyStacked]);f(function(){var o,l;if((null==bo?void 0:bo.show)&&Wo.current){var i=null===(o=Wo.current)||void 0===o?void 0:o.querySelectorAll(".rule-book-highlight");if(Vo((null==i?void 0:i.length)||0),zo(0),i&&i.length>0)(e=i[0]).style.backgroundColor="#ffff5c",e.scrollIntoView({behavior:"smooth",block:"center"})}if((null==po?void 0:po.show)&&(null==Yo?void 0:Yo.current)){var e,n=null===(l=Yo.current)||void 0===l?void 0:l.querySelectorAll(".user-chat-highlight");if(Eo((null==n?void 0:n.length)||0),No(0),n&&n.length>0)(e=n[0]).style.backgroundColor="#ffff5c",e.scrollIntoView({behavior:"smooth",block:"center"})}},[null==po?void 0:po.show,null==bo?void 0:bo.show,null==bo?void 0:bo.data,null==po?void 0:po.chatData]);var Uo=m(function(){var o;if(jo+1<Ro){var l=null===(o=Wo.current)||void 0===o?void 0:o.querySelectorAll(".rule-book-highlight");if(!l)return;l[jo].style.backgroundColor="#ffffb8";var i=jo+1;zo(i);var e=l[i];e.style.backgroundColor="#ffff5c",null==e||e.scrollIntoView({behavior:"smooth",block:"center"})}},[jo,Ro]),Go=m(function(){var o;if(!(jo-1<0)){var l=null===(o=Wo.current)||void 0===o?void 0:o.querySelectorAll(".rule-book-highlight");if(l){l[jo].style.backgroundColor="#ffffb8";var i=jo-1,e=l[i];e.style.backgroundColor="#ffff5c",zo(i),null==e||e.scrollIntoView({behavior:"smooth",block:"center"})}}},[jo]),Jo=m(function(){var o;if(qo+1<Bo){var l=null===(o=Yo.current)||void 0===o?void 0:o.querySelectorAll(".user-chat-highlight");if(!l)return;l[qo].style.backgroundColor="#ffffb8";var i=qo+1,e=l[i];e.style.backgroundColor="#ffff5c",No(i),null==e||e.scrollIntoView({behavior:"smooth",block:"center"})}},[qo,Bo]),Lo=m(function(){var o;if(!(qo-1<0)){var l=null===(o=Yo.current)||void 0===o?void 0:o.querySelectorAll(".user-chat-highlight");if(l){l[qo].style.backgroundColor="#ffffb8";var i=qo-1,e=l[i];e.style.backgroundColor="#ffff5c",No(i),null==e||e.scrollIntoView({behavior:"smooth",block:"center"})}}},[qo]),Mo=n((null==fo?void 0:fo.relevanceScore)||0),Xo=h(function(){var e,n=l("span",o({style:o({display:"flex",border:"1px solid",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",borderColor:Mo.border,backgroundColor:Mo.background,color:Mo.text},null===(e=null==fo?void 0:fo.slotStyles)||void 0===e?void 0:e.relevanceScore)},{children:[(null==fo?void 0:fo.relevanceTitle)||"Decision Strength",":"," ",(null==fo?void 0:fo.relevanceScore)||0,"%"]}),"relevance-score"),t=i("span",o({style:{display:"flex",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",backgroundColor:"white",color:"black",cursor:"pointer"},onClick:wo},{children:i(x,{})}),"close-preview");return ko&&!(null==yo?void 0:yo.isExpanded)?[n,t]:[n]},[ko,Mo.background,Mo.border,Mo.text,null==fo?void 0:fo.relevanceScore,null===(C=null==fo?void 0:fo.slotStyles)||void 0===C?void 0:C.relevanceScore,null==fo?void 0:fo.relevanceTitle]),Zo=h(function(){return[Ro>0&&i(d,{currentItemNumber:jo+1,totalItems:Ro,disableNext:jo+1>=Ro,onNext:Uo,onPrevious:Go,disablePrevious:jo<=0},"rulebook-nav")]},[jo,Uo,Go,Ro]),$o=h(function(){return(null==yo?void 0:yo.RuleBookContainerHeight)?yo.RuleBookContainerHeight:!(!Qo||(null==yo?void 0:yo.isExpanded))&&"600px"},[null==yo?void 0:yo.RuleBookContainerHeight,Qo]),_o=h(function(){var o,l;return[(null===(l=null===(o=null==po?void 0:po.detailedTab)||void 0===o?void 0:o.chip)||void 0===l?void 0:l.isActive)&&Bo>0&&i(d,{currentItemNumber:qo+1,totalItems:Bo,onNext:Jo,onPrevious:Lo,disableNext:qo+1>=Bo,disablePrevious:qo<=0},"chat-nav")]},[null===(S=null===(k=null==po?void 0:po.detailedTab)||void 0===k?void 0:k.chip)||void 0===S?void 0:S.isActive,qo,Jo,Lo,Bo]),ol=l("div",o({style:o({display:"flex",flexDirection:To?Qo?"column-reverse":"row-reverse":Qo?"column":"row",gap:[(null==po?void 0:po.chatData)&&po.chatData.length>0&&(po.show||void 0===po.show),(null==bo?void 0:bo.data)&&(bo.show||void 0===bo.show),Oo].filter(Boolean).length>1?"12px":"0",height:$o||"100%",minHeight:0},null===(A=null==fo?void 0:fo.slotStyles)||void 0===A?void 0:A.container)},{children:[Oo&&i("span",o({style:o({flex:"1 1 0%",minWidth:0},null===(D=null==po?void 0:po.slotStyles)||void 0===D?void 0:D.outerContainer)},{children:i(e,o({title:"Invoice Data Preview",icon:i(b,{children:i(g,{size:16})}),slotStyles:{title:{color:"#475569",fontWeight:500}},secondaryActions:[]},{children:i("div",o({style:{height:"100%",maxHeight:(null==yo?void 0:yo.isExpanded)?"none":"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",backgroundColor:"#FFFFFF",position:"relative",overflow:"hidden"}},{children:(null==xo?void 0:xo.rows)&&i(y,{rows:xo.rows,columns:xo.columns||[]})}))}))})),(null==bo?void 0:bo.data)&&(bo.show||void 0===bo.show)&&i("span",o({style:o({flex:"1 1 0%",minWidth:0},null===(T=null==bo?void 0:bo.slotStyles)||void 0===T?void 0:T.outerContainer)},{children:i(e,o({title:null!==(I=null==bo?void 0:bo.title)&&void 0!==I?I:"Rule book",icon:null==bo?void 0:bo.ruleBookIcon,slotStyles:{title:o({color:"#475569",fontWeight:500},null===(R=null==bo?void 0:bo.slotStyles)||void 0===R?void 0:R.title)},secondaryActions:(null==bo?void 0:bo.secondaryActions)?bo.secondaryActions(Zo):Zo},{children:i("div",o({style:o({height:"100%",maxHeight:"275px",minHeight:0,border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto"},null===(V=null==bo?void 0:bo.slotStyles)||void 0===V?void 0:V.dataContainer)},{children:i("div",o({style:{padding:"12px",height:"100%",overflowY:"auto"},ref:Wo},{children:i(v,{data:bo.data,renderers:null!==(F=null==bo?void 0:bo.renderer)&&void 0!==F?F:Ko})}))}))}))})),(null==po?void 0:po.chatData)&&po.chatData.length>0&&(po.show||void 0===po.show)&&i("span",o({style:o({flex:"1 1 0%",minWidth:0},null===(j=null==po?void 0:po.slotStyles)||void 0===j?void 0:j.outerContainer)},{children:i(e,o({title:null!==(z=null==po?void 0:po.title)&&void 0!==z?z:"Chat",icon:null==po?void 0:po.chatIcon,containerStyles:null===(P=null==po?void 0:po.slotStyles)||void 0===P?void 0:P.container,slotStyles:{title:o({color:"#475569",fontWeight:500},null===(B=null==po?void 0:po.slotStyles)||void 0===B?void 0:B.title)},primaryActions:[((null===(H=null===(E=null==po?void 0:po.summarizedTab)||void 0===E?void 0:E.chip)||void 0===H?void 0:H.show)||void 0===(null===(N=null===(q=null==po?void 0:po.summarizedTab)||void 0===q?void 0:q.chip)||void 0===N?void 0:N.show))&&i(t,o({label:"Summarized"},null===(W=null==po?void 0:po.summarizedTab)||void 0===W?void 0:W.chip)),i(t,o({label:"Detailed"},null===(Y=null==po?void 0:po.detailedTab)||void 0===Y?void 0:Y.chip))],secondaryActions:po.secondaryActions?null==po?void 0:po.secondaryActions(_o):_o},{children:l("div",o({style:o({height:"100%",maxHeight:"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto"},null===(K=null==po?void 0:po.slotStyles)||void 0===K?void 0:K.chatDataContainer)},{children:[(null===(Q=null===(O=null==po?void 0:po.detailedTab)||void 0===O?void 0:O.chip)||void 0===Q?void 0:Q.isActive)&&i("div",o({ref:Yo,style:{position:(null==yo?void 0:yo.isExpanded)?"absolute":"relative",inset:0,padding:"12px",overflowY:"auto"}},{children:i(a,{chatData:null!==(U=po.chatData)&&void 0!==U?U:[],assistantChatProps:o(o({},null===(J=null===(G=null==po?void 0:po.detailedTab)||void 0===G?void 0:G.view)||void 0===J?void 0:J.assistantChatProps),{renderers:null!==(X=null===(M=null===(L=null==po?void 0:po.detailedTab)||void 0===L?void 0:L.detailedViewRenderer)||void 0===M?void 0:M.assistantText)&&void 0!==X?X:Ko}),userChatItemProps:o(o({},null===($=null===(Z=null==po?void 0:po.detailedTab)||void 0===Z?void 0:Z.view)||void 0===$?void 0:$.userChatItemProps),{renderers:null!==(lo=null===(oo=null===(_=null==po?void 0:po.detailedTab)||void 0===_?void 0:_.detailedViewRenderer)||void 0===oo?void 0:oo.userText)&&void 0!==lo?lo:Ko})})})),(null===(eo=null===(io=null==po?void 0:po.summarizedTab)||void 0===io?void 0:io.chip)||void 0===eo?void 0:eo.show)&&(null===(to=null===(no=null==po?void 0:po.summarizedTab)||void 0===no?void 0:no.chip)||void 0===to?void 0:to.isActive)&&i(u,o({chatData:null!==(ro=po.chatData)&&void 0!==ro?ro:[]},null===(ao=null==po?void 0:po.summarizedTab)||void 0===ao?void 0:ao.view,{renderer:null!==(vo=null===(uo=null==po?void 0:po.summarizedTab)||void 0===uo?void 0:uo.summarizedViewRenderer)&&void 0!==vo?vo:Ko}))]}))}))}))]}));return Ao?i(e,o({title:null==fo?void 0:fo.title,slotStyles:{title:null===(so=null==fo?void 0:fo.slotStyles)||void 0===so?void 0:so.title},containerStyles:null===(co=null==fo?void 0:fo.slotStyles)||void 0===co?void 0:co.container,icon:null!==(ho=null==fo?void 0:fo.icon)&&void 0!==ho?ho:i(b,{children:i("img",{src:r,alt:"chat icon",style:{width:16,height:16}})}),secondaryActions:(null==fo?void 0:fo.secondaryActions)?fo.secondaryActions(Xo):Xo},{children:ol})):ol}export{w as default};
1
+ import{__assign as o}from"tslib";import{jsxs as l,jsx as i}from"react/jsx-runtime";import e from"./components/ChatCitation.js";import{getColorCode as n}from"./utils/helpers.js";import t from"./components/Chip.js";import r from"./assets/message-chat-square.svg.js";import"@mui/icons-material/KeyboardArrowDown";import"@mui/icons-material/KeyboardArrowUp";import"@mui/icons-material/Clear";import d from"./components/InViewNavigation.js";import a from"./components/DetailedView.js";import u from"./components/SummarizedView.js";import v from"./components/RuleBook.js";import{useState as s,useRef as c,useMemo as h,useEffect as f,useCallback as m}from"react";import{defaultRenderer as p}from"./constants/renderer.js";import g from"./components/IconContainer.js";import{Table as y}from"lucide-react";import{BigQueryTable as b}from"./BigQueryTable.js";import x from"@mui/icons-material/CloseOutlined";var w=function(o,l,i){if(void 0===i&&(i="smooth"),l){for(var e=o.parentElement;e;){var n=window.getComputedStyle(e).overflowY;if(("auto"===n||"scroll"===n)&&e.scrollHeight>e.clientHeight)break;if(e===l){e=null;break}e=e.parentElement}var t=null!=e?e:l,r=o.getBoundingClientRect(),d=t.getBoundingClientRect(),a=t.scrollTop+r.top-d.top-(t.clientHeight-r.height)/2;t.scrollTo({top:Math.max(0,a),behavior:i})}};function C(C){var S,k,A,D,T,R,F,j,z,I,B,E,H,P,V,q,N,W,Y,K,O,M,Q,U,G,J,L,X,Z,$,_,oo,lo,io,eo,no,to,ro,ao,uo,vo,so,co,ho,fo,mo,po,go,yo=C.rootContainer,bo=C.chatContainer,xo=void 0===bo?{chatData:[]}:bo,wo=C.ruleBookContainer,Co=C.renderer,So=C.additionalData,ko=C.tableComponent,Ao=C.closePreview,Do=C.isRenderedCustomComponent,To=void 0!==Do&&Do,Ro=C.showRootContainer,Fo=void 0===Ro||Ro,jo=C.reversePanels,zo=void 0!==jo&&jo,Io=s(0),Bo=Io[0],Eo=Io[1],Ho=s(0),Po=Ho[0],Vo=Ho[1],qo=s(0),No=qo[0],Wo=qo[1],Yo=s(0),Ko=Yo[0],Oo=Yo[1],Mo=c(null),Qo=c(null),Uo=c(null),Go=h(function(){return o(o({},p),Co)},[Co]),Jo=h(function(){return!!((null==ko?void 0:ko.rows)&&Object.keys(ko.rows).length>0)},[ko]),Lo=h(function(){var o;return null!==(o=null==So?void 0:So.RuleBookDetailedViewVerticallyStacked)&&void 0!==o&&o},[null==So?void 0:So.RuleBookDetailedViewVerticallyStacked]);f(function(){var o,l;if((null==wo?void 0:wo.show)&&Mo.current){var i=null===(o=Mo.current)||void 0===o?void 0:o.querySelectorAll(".rule-book-highlight");if(Eo((null==i?void 0:i.length)||0),Vo(0),i&&i.length>0){var e=i[0];e.style.backgroundColor="#ffff5c",w(e,Mo.current)}}if((null==xo?void 0:xo.show)&&(null==Qo?void 0:Qo.current)){var n=null===(l=Qo.current)||void 0===l?void 0:l.querySelectorAll(".user-chat-highlight");if(Wo((null==n?void 0:n.length)||0),Oo(0),n&&n.length>0){var t=n[0];t.style.backgroundColor="#ffff5c";var r=requestAnimationFrame(function(){w(t,Uo.current)});return function(){return cancelAnimationFrame(r)}}}},[null==xo?void 0:xo.show,null==wo?void 0:wo.show,null==wo?void 0:wo.data,null==xo?void 0:xo.chatData]);var Xo=m(function(){var o;if(Po+1<Bo){var l=null===(o=Mo.current)||void 0===o?void 0:o.querySelectorAll(".rule-book-highlight");if(!l)return;l[Po].style.backgroundColor="#ffffb8";var i=Po+1;Vo(i);var e=l[i];e.style.backgroundColor="#ffff5c",w(e,Mo.current)}},[Po,Bo]),Zo=m(function(){var o;if(!(Po-1<0)){var l=null===(o=Mo.current)||void 0===o?void 0:o.querySelectorAll(".rule-book-highlight");if(l){l[Po].style.backgroundColor="#ffffb8";var i=Po-1,e=l[i];e.style.backgroundColor="#ffff5c",Vo(i),w(e,Mo.current)}}},[Po]),$o=m(function(){var o;if(Ko+1<No){var l=null===(o=Qo.current)||void 0===o?void 0:o.querySelectorAll(".user-chat-highlight");if(!l)return;l[Ko].style.backgroundColor="#ffffb8";var i=Ko+1,e=l[i];e.style.backgroundColor="#ffff5c",Oo(i),w(e,Uo.current)}},[Ko,No]),_o=m(function(){var o;if(!(Ko-1<0)){var l=null===(o=Qo.current)||void 0===o?void 0:o.querySelectorAll(".user-chat-highlight");if(l){l[Ko].style.backgroundColor="#ffffb8";var i=Ko-1,e=l[i];e.style.backgroundColor="#ffff5c",Oo(i),w(e,Uo.current)}}},[Ko]),ol=n((null==yo?void 0:yo.relevanceScore)||0),ll=h(function(){var e,n=l("span",o({style:o({display:"flex",border:"1px solid",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",borderColor:ol.border,backgroundColor:ol.background,color:ol.text},null===(e=null==yo?void 0:yo.slotStyles)||void 0===e?void 0:e.relevanceScore)},{children:[(null==yo?void 0:yo.relevanceTitle)||"Decision Strength",":"," ",(null==yo?void 0:yo.relevanceScore)||0,"%"]}),"relevance-score"),t=i("span",o({style:{display:"flex",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",backgroundColor:"white",color:"black",cursor:"pointer"},onClick:Ao},{children:i(x,{})}),"close-preview");return To&&!(null==So?void 0:So.isExpanded)?[n,t]:[n]},[To,ol.background,ol.border,ol.text,null==yo?void 0:yo.relevanceScore,null===(S=null==yo?void 0:yo.slotStyles)||void 0===S?void 0:S.relevanceScore,null==yo?void 0:yo.relevanceTitle]),il=h(function(){return[Bo>0&&i(d,{currentItemNumber:Po+1,totalItems:Bo,disableNext:Po+1>=Bo,onNext:Xo,onPrevious:Zo,disablePrevious:Po<=0},"rulebook-nav")]},[Po,Xo,Zo,Bo]),el=h(function(){return(null==So?void 0:So.RuleBookContainerHeight)?So.RuleBookContainerHeight:!(!Lo||(null==So?void 0:So.isExpanded))&&"600px"},[null==So?void 0:So.RuleBookContainerHeight,Lo]),nl=h(function(){var o,l;return[(null===(l=null===(o=null==xo?void 0:xo.detailedTab)||void 0===o?void 0:o.chip)||void 0===l?void 0:l.isActive)&&No>0&&i(d,{currentItemNumber:Ko+1,totalItems:No,onNext:$o,onPrevious:_o,disableNext:Ko+1>=No,disablePrevious:Ko<=0},"chat-nav")]},[null===(A=null===(k=null==xo?void 0:xo.detailedTab)||void 0===k?void 0:k.chip)||void 0===A?void 0:A.isActive,Ko,$o,_o,No]),tl=l("div",o({style:o({display:"flex",flexDirection:zo?Lo?"column-reverse":"row-reverse":Lo?"column":"row",gap:[(null==xo?void 0:xo.chatData)&&xo.chatData.length>0&&(xo.show||void 0===xo.show),(null==wo?void 0:wo.data)&&(wo.show||void 0===wo.show),Jo].filter(Boolean).length>1?"12px":"0",height:el||"100%",minHeight:0},null===(D=null==yo?void 0:yo.slotStyles)||void 0===D?void 0:D.container)},{children:[Jo&&i("span",o({style:o({flex:"1 1 0%",minWidth:0},null===(T=null==xo?void 0:xo.slotStyles)||void 0===T?void 0:T.outerContainer)},{children:i(e,o({title:"Invoice Data Preview",icon:i(g,{children:i(y,{size:16})}),slotStyles:{title:{color:"#475569",fontWeight:500}},secondaryActions:[]},{children:i("div",o({style:{height:"100%",maxHeight:(null==So?void 0:So.isExpanded)?"none":"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",backgroundColor:"#FFFFFF",position:"relative",overflow:"hidden"}},{children:(null==ko?void 0:ko.rows)&&i(b,{rows:ko.rows,columns:ko.columns||[]})}))}))})),(null==wo?void 0:wo.data)&&(wo.show||void 0===wo.show)&&i("span",o({style:o({flex:"1 1 0%",minWidth:0},null===(R=null==wo?void 0:wo.slotStyles)||void 0===R?void 0:R.outerContainer)},{children:i(e,o({title:null!==(F=null==wo?void 0:wo.title)&&void 0!==F?F:"Rule book",icon:null==wo?void 0:wo.ruleBookIcon,slotStyles:{title:o({color:"#475569",fontWeight:500},null===(j=null==wo?void 0:wo.slotStyles)||void 0===j?void 0:j.title),body:null===(z=null==wo?void 0:wo.slotStyles)||void 0===z?void 0:z.body},secondaryActions:(null==wo?void 0:wo.secondaryActions)?wo.secondaryActions(il):il},{children:i("div",o({style:o({height:"100%",maxHeight:"275px",minHeight:0,border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto"},null===(I=null==wo?void 0:wo.slotStyles)||void 0===I?void 0:I.dataContainer)},{children:i("div",o({style:{padding:"12px",height:"100%",overflowY:"auto"},ref:Mo},{children:i(v,{data:wo.data,renderers:null!==(B=null==wo?void 0:wo.renderer)&&void 0!==B?B:Go})}))}))}))})),(null==xo?void 0:xo.chatData)&&xo.chatData.length>0&&(xo.show||void 0===xo.show)&&i("span",o({style:o({flex:"1 1 0%",minWidth:0},null===(E=null==xo?void 0:xo.slotStyles)||void 0===E?void 0:E.outerContainer)},{children:i(e,o({title:null!==(H=null==xo?void 0:xo.title)&&void 0!==H?H:"Chat",icon:null==xo?void 0:xo.chatIcon,containerStyles:null===(P=null==xo?void 0:xo.slotStyles)||void 0===P?void 0:P.container,slotStyles:{title:o({color:"#475569",fontWeight:500},null===(V=null==xo?void 0:xo.slotStyles)||void 0===V?void 0:V.title),body:null===(q=null==xo?void 0:xo.slotStyles)||void 0===q?void 0:q.body},primaryActions:[((null===(W=null===(N=null==xo?void 0:xo.summarizedTab)||void 0===N?void 0:N.chip)||void 0===W?void 0:W.show)||void 0===(null===(K=null===(Y=null==xo?void 0:xo.summarizedTab)||void 0===Y?void 0:Y.chip)||void 0===K?void 0:K.show))&&i(t,o({label:"Summarized"},null===(O=null==xo?void 0:xo.summarizedTab)||void 0===O?void 0:O.chip)),i(t,o({label:"Detailed"},null===(M=null==xo?void 0:xo.detailedTab)||void 0===M?void 0:M.chip))],secondaryActions:xo.secondaryActions?null==xo?void 0:xo.secondaryActions(nl):nl},{children:l("div",o({ref:Uo,style:o({height:"100%",maxHeight:"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto"},null===(Q=null==xo?void 0:xo.slotStyles)||void 0===Q?void 0:Q.chatDataContainer)},{children:[(null===(G=null===(U=null==xo?void 0:xo.detailedTab)||void 0===U?void 0:U.chip)||void 0===G?void 0:G.isActive)&&i("div",o({ref:Qo,style:{position:(null==So?void 0:So.isExpanded)?"absolute":"relative",inset:0,padding:"12px",overflowY:"auto"}},{children:i(a,{chatData:null!==(J=xo.chatData)&&void 0!==J?J:[],assistantChatProps:o(o({},null===(X=null===(L=null==xo?void 0:xo.detailedTab)||void 0===L?void 0:L.view)||void 0===X?void 0:X.assistantChatProps),{renderers:null!==(_=null===($=null===(Z=null==xo?void 0:xo.detailedTab)||void 0===Z?void 0:Z.detailedViewRenderer)||void 0===$?void 0:$.assistantText)&&void 0!==_?_:Go}),userChatItemProps:o(o({},null===(lo=null===(oo=null==xo?void 0:xo.detailedTab)||void 0===oo?void 0:oo.view)||void 0===lo?void 0:lo.userChatItemProps),{renderers:null!==(no=null===(eo=null===(io=null==xo?void 0:xo.detailedTab)||void 0===io?void 0:io.detailedViewRenderer)||void 0===eo?void 0:eo.userText)&&void 0!==no?no:Go})})})),(null===(ro=null===(to=null==xo?void 0:xo.summarizedTab)||void 0===to?void 0:to.chip)||void 0===ro?void 0:ro.show)&&(null===(uo=null===(ao=null==xo?void 0:xo.summarizedTab)||void 0===ao?void 0:ao.chip)||void 0===uo?void 0:uo.isActive)&&i(u,o({chatData:null!==(vo=xo.chatData)&&void 0!==vo?vo:[]},null===(so=null==xo?void 0:xo.summarizedTab)||void 0===so?void 0:so.view,{renderer:null!==(ho=null===(co=null==xo?void 0:xo.summarizedTab)||void 0===co?void 0:co.summarizedViewRenderer)&&void 0!==ho?ho:Go}))]}))}))}))]}));return Fo?i(e,o({title:null==yo?void 0:yo.title,slotStyles:{title:null===(fo=null==yo?void 0:yo.slotStyles)||void 0===fo?void 0:fo.title,body:null===(mo=null==yo?void 0:yo.slotStyles)||void 0===mo?void 0:mo.body},containerStyles:null===(po=null==yo?void 0:yo.slotStyles)||void 0===po?void 0:po.container,icon:null!==(go=null==yo?void 0:yo.icon)&&void 0!==go?go:i(g,{children:i("img",{src:r,alt:"chat icon",style:{width:16,height:16}})}),secondaryActions:(null==yo?void 0:yo.secondaryActions)?yo.secondaryActions(ll):ll},{children:tl})):tl}export{C as default};
2
2
  //# sourceMappingURL=InternalChatCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";var n={container:{border:"1px solid #E2E8F0",padding:12,paddingBottom:0,borderRadius:8,height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"},headerRow:{display:"flex",flexDirection:"row",gap:16,justifyContent:"space-between",alignItems:"center",height:18},leftRow:{display:"flex",flexDirection:"row",gap:12,alignItems:"center"},iconTitleRow:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"},titleText:{fontSize:14,fontWeight:700,color:"#5928ED"},actionsRow:{display:"flex",flexDirection:"row",gap:6,alignItems:"center"},body:{paddingTop:12,paddingBottom:12,flex:1}};function o(o){var l=o.title,r=void 0===l?"User Chat":l,d=o.icon,a=o.slotStyles,c=o.primaryActions,s=o.secondaryActions,f=o.children,p=o.containerStyles;return i("div",e({style:e(e({},n.container),p)},{children:[i("div",e({style:e(e({},n.headerRow),{overflowX:"auto",minHeight:"2.18rem",overflowY:"hidden",scrollbarWidth:"thin"})},{children:[i("div",e({style:n.leftRow},{children:[i("div",e({style:n.iconTitleRow},{children:[t("span",{children:d}),t("span",e({style:e(e({},n.titleText),null==a?void 0:a.title)},{children:r}))]})),t("div",e({style:n.actionsRow},{children:null==c?void 0:c.filter(function(e){return void 0!==e}).map(function(e,i){return t("span",{children:e},i)})}))]})),t("div",e({style:e(e({},n.actionsRow),{gap:16,alignItems:"center"})},{children:null==s?void 0:s.filter(function(e){return void 0!==e}).map(function(e,i){return t("span",{children:e},i)})}))]})),t("div",e({style:n.body,id:"body"},{children:f}))]}))}export{o as default};
1
+ import{__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";var n={container:{border:"1px solid #E2E8F0",padding:12,paddingBottom:0,borderRadius:8,height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"},headerRow:{display:"flex",flexDirection:"row",gap:16,justifyContent:"space-between",alignItems:"center",height:18},leftRow:{display:"flex",flexDirection:"row",gap:12,alignItems:"center"},iconTitleRow:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"},titleText:{fontSize:14,fontWeight:700,color:"#5928ED"},actionsRow:{display:"flex",flexDirection:"row",gap:6,alignItems:"center"},body:{paddingTop:12,paddingBottom:12,flex:1}};function o(o){var l=o.title,r=void 0===l?"User Chat":l,d=o.icon,a=o.slotStyles,c=o.primaryActions,s=o.secondaryActions,f=o.children,p=o.containerStyles;return i("div",e({style:e(e({},n.container),p)},{children:[i("div",e({style:e(e({},n.headerRow),{overflowX:"auto",minHeight:"2.18rem",overflowY:"hidden",scrollbarWidth:"thin"})},{children:[i("div",e({style:n.leftRow},{children:[i("div",e({style:n.iconTitleRow},{children:[t("span",{children:d}),t("span",e({style:e(e({},n.titleText),null==a?void 0:a.title)},{children:r}))]})),t("div",e({style:n.actionsRow},{children:null==c?void 0:c.filter(function(e){return void 0!==e}).map(function(e,i){return t("span",{children:e},i)})}))]})),t("div",e({style:e(e({},n.actionsRow),{gap:16,alignItems:"center"})},{children:null==s?void 0:s.filter(function(e){return void 0!==e}).map(function(e,i){return t("span",{children:e},i)})}))]})),t("div",e({style:e(e({},n.body),null==a?void 0:a.body),id:"body"},{children:f}))]}))}export{o as default};
2
2
  //# sourceMappingURL=ChatCitation.js.map
@@ -1,2 +1,2 @@
1
- import{useState as e,useRef as n,useCallback as t,useEffect as r}from"react";var o=new Set(["DONE","COMPLETED","FAILED"]),c=new Map;function a(a,l){var u=e(null),i=u[0],s=u[1],v=e(!1),d=v[0],f=v[1],S=e(null),p=S[0],g=S[1],E=n(null),O=t(function(){var e;null===(e=E.current)||void 0===e||e.close(),E.current=null,f(!1)},[]);return r(function(){if(a){g(null),s(null);var e=c.get(a);e&&e.readyState!==WebSocket.CLOSED&&e.close();var n=new WebSocket("".concat(l,"/").concat(a));c.set(a,n),E.current=n,n.onopen=function(){return f(!0)};var t=setInterval(function(){n.readyState===WebSocket.OPEN&&n.send(JSON.stringify({type:"ping"}))},5e3);return n.onmessage=function(e){var r;try{var l=JSON.parse(e.data);s(l),o.has(null===(r=l.ingestionStatus)||void 0===r?void 0:r.toUpperCase())&&(clearInterval(t),n.close(),c.delete(a))}catch(e){g("Failed to parse WebSocket message")}},n.onerror=function(){return g("WebSocket connection error")},n.onclose=function(){return f(!1)},function(){clearInterval(t),n.close(),c.delete(a)}}},[a,l]),{data:i,connected:d,error:p,disconnect:O}}export{a as useIngestionWebSocket};
1
+ import{useState as e,useRef as n,useEffect as t,useCallback as r}from"react";var o=new Set(["DONE","COMPLETED","FAILED"]);var a=new Map;function i(e,n,t){n.listeners.delete(t),0===n.listeners.size&&a.get(e)===n&&(clearInterval(n.keepAliveInterval),n.ws.readyState!==WebSocket.OPEN&&n.ws.readyState!==WebSocket.CONNECTING||n.ws.close(),a.delete(e))}function l(l,s){var c=e(null),u=c[0],f=c[1],v=e(!1),d=v[0],S=v[1],p=e(null),g=p[0],E=p[1],k=n(null),w=n(null),b=n(l);t(function(){b.current=l},[l]);var y=r(function(){var e=b.current;e&&k.current&&w.current&&i(e,k.current,w.current),k.current=null,w.current=null,S(!1)},[]);return t(function(){if(l){E(null);var e=function(e,n){if(!n||"string"!=typeof n||!n.trim())return console.error("useIngestionWebSocket: wsBaseUrl is missing or invalid; skipping connection."),null;var t=a.get(e);if(t&&t.ws.readyState!==WebSocket.CLOSED)return t;var r=new WebSocket("".concat(n.trim(),"/").concat(e)),i={ws:r,listeners:new Set,lastData:null,keepAliveInterval:setInterval(function(){r.readyState===WebSocket.OPEN&&r.send(JSON.stringify({type:"ping"}))},5e3)};return r.onmessage=function(n){var t;try{t=JSON.parse(n.data)}catch(e){return void i.listeners.forEach(function(e){return e(null,"Failed to parse WebSocket message")})}if(function(e){if(!e||"object"!=typeof e)return!1;var n=e;return"string"==typeof n.ingestionStatus&&"string"==typeof n.ingestionId}(t)){var l=t;i.lastData=l,i.listeners.forEach(function(e){return e(l,null)}),o.has(l.ingestionStatus.toUpperCase())&&(clearInterval(i.keepAliveInterval),r.close(),a.delete(e))}else i.listeners.forEach(function(e){return e(null,"Received malformed WebSocket payload")})},r.onerror=function(){i.listeners.forEach(function(e){return e(null,"WebSocket connection error")})},r.onclose=function(){clearInterval(i.keepAliveInterval),a.get(e)===i&&a.delete(e)},a.set(e,i),i}(l,s);if(!e)return E("Missing or invalid WebSocket base URL"),void S(!1);e.lastData&&f(e.lastData),S(e.ws.readyState===WebSocket.OPEN);var n=function(e,n){n?E(n):f(e)};e.listeners.add(n),k.current=e,w.current=n;var t=function(){return S(!0)},r=function(){return S(!1)};return e.ws.addEventListener("open",t),e.ws.addEventListener("close",r),function(){e.ws.removeEventListener("open",t),e.ws.removeEventListener("close",r),i(l,e,n),k.current=null,w.current=null}}},[l,s]),{data:u,connected:d,error:g,disconnect:y}}export{l as useIngestionWebSocket};
2
2
  //# sourceMappingURL=useIngestionStatus.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as r}from"tslib";import{jsxs as t,jsx as e}from"react/jsx-runtime";var n=function(n){var o=n.speed,a=void 0===o?200:o,i=n.color,s=void 0===i?"#5928ED":i,m=n.size;return t("span",r({style:{display:"inline-block",fontFamily:"monospace",color:s,fontSize:void 0===m?"1.2rem":m,animation:"slashRotate ".concat(a,"ms linear infinite"),transformOrigin:"center center"}},{children:["/",e("style",{children:"\n @keyframes slashRotate {\n 0% { transform: rotate(0deg); }\n 25% { transform: rotate(90deg); }\n 50% { transform: rotate(180deg); }\n 75% { transform: rotate(270deg); }\n 100% { transform: rotate(360deg); }\n }\n "})]}))};export{n as default};
2
+ //# sourceMappingURL=SlashLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlashLoader.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as t}from"tslib";import{jsxs as o,jsx as i}from"react/jsx-runtime";import{ChevronDown as a,ChevronUp as n,Maximize2 as e,X as l,ExternalLink as r}from"lucide-react";import u from"dayjs";import c from"../ScannedDocCitation/ScannedDocCitation.js";import s from"../InstantLearningCitation/InstantLearningCitationComponent.js";import d from"../InstantLearningCitation/SlashLoader.js";import v from"../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";import m from"../RequirementAiCitations/ImageCitation/ImageCitationContent.js";import g from"../RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";import h from"../ChatCitation/ChatCitationRenderer.js";var _=function(t,o,i){if(!t)throw new Error("[CitationOrchestratorComponent] ".concat(o,': missing required field "').concat(i,'" in customMetaData'))},C=function(t,o){if(!Object.values(t).some(Boolean))throw new Error("[CitationOrchestratorComponent] ".concat(o,': missing one of "').concat(Object.keys(t).join('", "'),'" in customMetaData'))},p=function(p){var D,f,M,b,I,w,S,R,j,k,x,T,y,P,L,U,O,A,F,W,q,z,B,E,G,H,N,$,J,K,Q,V,X,Y,Z,tt,ot,it,at,nt,et,lt,rt=p.href,ut=p.citations,ct=p.children,st=p.isStreaming,dt=p.onCitationToggle,vt=p.chatCitationConfig;if(st)return o("span",t({style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontWeight:500,color:"#6D28D9"}},{children:[i("span",{children:ct}),i(d,{})]}));try{var mt=new URL(rt,"http://example.com"),gt=mt.searchParams.get("citationNumber"),ht=mt.searchParams.get("decisionStrength");if(!gt)return null;var _t=(null==ut?void 0:ut.find(function(t){var o;return String(null===(o=null==t?void 0:t.customMetaData)||void 0===o?void 0:o.citation_number)===gt}))||null;if(!_t)return null;var Ct=(null===(D=null==_t?void 0:_t.customMetaData)||void 0===D?void 0:D.citation_type)||((null===(f=_t.customMetaData)||void 0===f?void 0:f.type)||"").replace(/s$/,"");if("scanned_doc_citation"===Ct){var pt=null==_t?void 0:_t.customMetaData.value;if(null==pt?void 0:pt.length)return i(c,{pages:pt,subHeadingText:_t.customMetaData.artifact_title});_(null===(M=null==_t?void 0:_t.customMetaData)||void 0===M?void 0:M.gs_url,"scanned_doc_citation","gs_url");var Dt=[null===(b=null==_t?void 0:_t.customMetaData)||void 0===b?void 0:b.gs_url],ft=(null!==(I=_t.customMetaData.highlighted_coordinates)&&void 0!==I?I:[]).map(function(t,o){return{pageIndex:o,bboxes:[t]}});return i(c,{images:Dt,highlights:ft})}if("IL"===Ct){_(_t.customMetaData.il_learning,"IL","il_learning");var Mt=ct||(null===(w=_t.customMetaData)||void 0===w?void 0:w.link_text)||(null===(S=_t.customMetaData)||void 0===S?void 0:S.citation_source)||String(null!==(R=_t.customMetaData.citation_number)&&void 0!==R?R:1);return i(s,{citation:_t,linkTitle:Mt,onCitationToggle:null!=dt?dt:function(){},decisionStrengthFromUrl:ht||(null===(j=_t.customMetaData)||void 0===j?void 0:j.decision_strength)||""})}if("chat_citation"===Ct){var bt=null!=vt?vt:{},It=null===(T=null!==(x=null===(k=null==_t?void 0:_t.customMetaData)||void 0===k?void 0:k.chat_data)&&void 0!==x?x:[])||void 0===T?void 0:T.map(function(o){return t(t({},o),{timeStamp:u(o.timeStamp)})}),wt=!!(null===(y=null==_t?void 0:_t.customMetaData)||void 0===y?void 0:y.rule_book_content);return i(h,{showRootContainer:null===(P=bt.showRootContainer)||void 0===P||P,reversePanels:bt.reversePanels,isRenderedCustomComponent:bt.isRenderedCustomComponent,modalContainerStyle:bt.modalContainerStyle,additionalData:bt.additionalData,closePreview:bt.closePreview,selectedIdFromReason:null!==(L=bt.selectedIdFromReason)&&void 0!==L?L:void 0,rootContainer:t(t({},bt.rootContainer),{relevanceScore:_t.customMetaData.relevance_score}),chatContainer:t(t({},bt.chatContainer),{chatData:It,summarizedTab:null!==(O=null===(U=bt.chatContainer)||void 0===U?void 0:U.summarizedTab)&&void 0!==O?O:{chip:{isActive:!0,show:!0}},detailedTab:null!==(F=null===(A=bt.chatContainer)||void 0===A?void 0:A.detailedTab)&&void 0!==F?F:{chip:{isActive:!1}}}),ruleBookContainer:wt?t(t({},bt.ruleBookContainer),{data:{content:_t.customMetaData.rule_book_content,highlighted_texts:null!==(W=_t.customMetaData.rule_book_highlights)&&void 0!==W?W:[]}}):void 0})}if("gpt_citation"===Ct){var St=null===(q=_t.customMetaData)||void 0===q?void 0:q.value,Rt=null!==(z=null==St?void 0:St.text)&&void 0!==z?z:null===(E=null===(B=_t.customMetaData)||void 0===B?void 0:B.data_sources)||void 0===E?void 0:E[0],jt=null!==(G=null==St?void 0:St.label)&&void 0!==G?G:null===(N=null===(H=_t.customMetaData)||void 0===H?void 0:H.training_data_title)||void 0===N?void 0:N[0],kt=null!==($=null==St?void 0:St.paraphrase)&&void 0!==$?$:null===(K=null===(J=_t.customMetaData)||void 0===J?void 0:J.paraphrase)||void 0===K?void 0:K[0];return C({data_sources:Rt,training_data_title:jt},"gpt_citation"),i(v,{item:{text:"",dataSource:Rt,trainingDataTitle:jt,paraphrase:kt},headerTitle:"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:a,ChevronUpIcon:n,MaximizeIcon:e,CloseIcon:l}})}if("web_citation"===Ct){!function(t,o,i){_(t,o,i);try{new URL(t)}catch(a){throw new Error("[CitationOrchestratorComponent] ".concat(o,': "').concat(i,'" is not a valid URL: "').concat(t,'"'))}}(null===(Q=_t.customMetaData)||void 0===Q?void 0:Q.link,"web_citation","link");var xt=_t.customMetaData.link,Tt=ct||(null===(V=_t.customMetaData)||void 0===V?void 0:V.citation_source)||xt;return(null===(X=_t.customMetaData)||void 0===X?void 0:X.screenshot_url)?i(g,{url:xt,label:Tt,gsUtilPath:null===(Y=_t.customMetaData)||void 0===Y?void 0:Y.gs_util_path,signedUrl:null===(Z=_t.customMetaData)||void 0===Z?void 0:Z.screenshot_url,relevanceScore:null===(tt=_t.customMetaData)||void 0===tt?void 0:tt.relevance_score,visitIcon:r,PreviewDialogCloseIcon:l}):i("a",t({href:xt,target:"_blank",rel:"noreferrer"},{children:Tt}))}if("image_citation"===Ct)return C({gs_util_path:null===(ot=_t.customMetaData)||void 0===ot?void 0:ot.gs_util_path,signed_url:null===(it=_t.customMetaData)||void 0===it?void 0:it.signed_url},"image_citation"),i(m,{citationTitle:ct||(null===(at=_t.customMetaData)||void 0===at?void 0:at.citation_source),gsUtilPath:null===(nt=_t.customMetaData)||void 0===nt?void 0:nt.gs_util_path,signedUrl:null===(et=_t.customMetaData)||void 0===et?void 0:et.signed_url,relevanceScore:null===(lt=_t.customMetaData)||void 0===lt?void 0:lt.relevance_score})}catch(t){return console.error(t),null}return null};export{p as default};
2
+ //# sourceMappingURL=ParentCitationComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParentCitationComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,resolveSkeletonVisitUrl,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";export{CitationType,allowsGptCitationView,allowsWebCitationView,showsCitationViewToggle}from"./features/GptWebCitation/types.js";
1
+ export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{default as ParentCitationComponent}from"./features/ParentCitationComponent/ParentCitationComponent.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,resolveSkeletonVisitUrl,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";export{CitationType,allowsGptCitationView,allowsWebCitationView,showsCitationViewToggle}from"./features/GptWebCitation/types.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InternalChatCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/ChatCitation/InternalChatCitationRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAU5D,OAAO,qBAAqB,CAAC;AAM7B,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAGD,KAAK,iCAAiC,GAAG,iBAAiB,GAAG;IAC3D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,iBAAiB,CAAC;CACpC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,EACnD,aAAa,EACb,aAAgC,EAChC,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,cAAc,EACd,YAAY,EACZ,yBAAiC,EACjC,iBAAwB,EACxB,aAAmB,EACpB,EAAE,iCAAiC,2CA2gBnC"}
1
+ {"version":3,"file":"InternalChatCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/ChatCitation/InternalChatCitationRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAU5D,OAAO,qBAAqB,CAAC;AAM7B,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AA8CD,KAAK,iCAAiC,GAAG,iBAAiB,GAAG;IAC3D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,iBAAiB,CAAC;CACpC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,EACnD,aAAa,EACb,aAAgC,EAChC,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,cAAc,EACd,YAAY,EACZ,yBAAiC,EACjC,iBAAwB,EACxB,aAAmB,EACpB,EAAE,iCAAiC,2CAsgBnC"}
@@ -4,6 +4,7 @@ type ChatCitationProps = {
4
4
  icon?: React.ReactNode;
5
5
  slotStyles?: {
6
6
  title?: React.CSSProperties;
7
+ body?: React.CSSProperties;
7
8
  };
8
9
  primaryActions?: React.ReactNode[];
9
10
  secondaryActions?: React.ReactNode[];
@@ -1 +1 @@
1
- {"version":3,"file":"ChatCitation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/ChatCitation/components/ChatCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC7B,CAAC;IACF,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IACnC,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACvC,CAAC;AAmDF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,KAAmB,EACnB,IAAI,EACJ,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,eAAe,GAChB,EAAE,iBAAiB,2CA0CnB"}
1
+ {"version":3,"file":"ChatCitation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/ChatCitation/components/ChatCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC5B,CAAC;IACF,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IACnC,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACvC,CAAC;AAmDF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,KAAmB,EACnB,IAAI,EACJ,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,eAAe,GAChB,EAAE,iBAAiB,2CA0CnB"}
@@ -42,6 +42,7 @@ export type ChatCitationProps = {
42
42
  title?: React.CSSProperties;
43
43
  relevanceScore?: React.CSSProperties;
44
44
  container?: React.CSSProperties;
45
+ body?: React.CSSProperties;
45
46
  };
46
47
  secondaryActions?: (alreadyPresentSecondaryActions: React.ReactNode[]) => React.ReactNode[];
47
48
  };
@@ -74,6 +75,7 @@ export type ChatCitationProps = {
74
75
  chatDataContainer?: React.CSSProperties;
75
76
  outerContainer?: React.CSSProperties;
76
77
  container?: React.CSSProperties;
78
+ body?: React.CSSProperties;
77
79
  };
78
80
  secondaryActions?: (alreadyPresentSecondaryActions: React.ReactNode[]) => React.ReactNode[];
79
81
  };
@@ -87,6 +89,7 @@ export type ChatCitationProps = {
87
89
  title?: React.CSSProperties;
88
90
  dataContainer?: React.CSSProperties;
89
91
  outerContainer?: React.CSSProperties;
92
+ body?: React.CSSProperties;
90
93
  };
91
94
  secondaryActions?: (alreadyPresentSecondaryActions: React.ReactNode[]) => React.ReactNode[];
92
95
  };
@@ -1 +1 @@
1
- {"version":3,"file":"citations.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/ChatCitation/types/citations.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;I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AAE,CACjB,8BAA8B,EAAE,KAAK,CAAC,SAAS,EAAE,KAC9C,KAAK,CAAC,SAAS,EAAE,CAAC;KACxB,CAAC;IACF,QAAQ,CAAC,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAChD,cAAc,CAAC,EAAE;QACf,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,sBAAsB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACzC,qCAAqC,CAAC,EAAE,OAAO,CAAC;QAChD,uBAAuB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC3C,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,yBAAyB,CAAC,EAAC,OAAO,CAAC;IACnC,oBAAoB,CAAC,EAAC,MAAM,CAAA;IAC5B,aAAa,CAAC,EAAC,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useIngestionStatus.d.ts","sourceRoot":"","sources":["../../../../../src/features/IngestionStatus/useIngestionStatus.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9D;AAED,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,cAAc,CAAC,EAAE;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAID,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,CAAC,EAAE,MAAM;;;;;EA4DnF"}
1
+ {"version":3,"file":"useIngestionStatus.d.ts","sourceRoot":"","sources":["../../../../../src/features/IngestionStatus/useIngestionStatus.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9D;AAED,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,cAAc,CAAC,EAAE;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AA+GD,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,CAAC,EAAE,MAAM;;;;;EAqEnF"}
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
+ import { Props } from './types/Types';
3
+ export declare const ILMarkdownTestComponent: React.FC<Props>;
2
4
  declare const InstantLearningCitationTest: React.FC;
3
5
  export default InstantLearningCitationTest;
4
6
  //# sourceMappingURL=InstantLearningCitationTest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InstantLearningCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/InstantLearningCitation/InstantLearningCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA8iB1B,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EA4BxC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"InstantLearningCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/InstantLearningCitation/InstantLearningCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AA+MtC,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA2SnD,CAAC;AAKF,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EA4BxC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from "react";
2
+ import { ChatCitationConfig } from '../../ParentCitationComponent/ParentCitationComponent';
2
3
  export type RuleSetCategory = 'Global' | 'Genre' | 'Custom';
3
4
  export type RuleSetItem = {
4
5
  ruleSetId: string;
@@ -259,6 +260,7 @@ export type Props = {
259
260
  highlightedText?: string;
260
261
  isStreaming?: boolean;
261
262
  onCitationToggle: (keys: string[], adId: string, isOpen: boolean) => void;
263
+ chatCitationConfig?: ChatCitationConfig;
262
264
  };
263
265
  export interface ComparisonHighlight {
264
266
  attributesToBehighlighted?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearningCitation/types/Types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAI5D,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,EAAE,WAAW,EAAE,CAAC;CAC9B,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,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3F,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,gEAAgE;IAChE,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,uBAAuB;IACpC,4DAA4D;IAC5D,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC;IAC3B,qFAAqF;IACrF,UAAU,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACrC,oCAAoC;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,0CAA0C;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,6CAA6C;IAC7C,mBAAmB,CAAC,EAAE,aAAa,EAAE,CAAC;IACtC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,2CAA2C;IAC3C,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,136 @@
1
+ import React from 'react';
2
+ interface ChatCitationDataItem {
3
+ role: 'user' | 'assistant';
4
+ message: string;
5
+ highlighted_text: string | string[];
6
+ userName: string;
7
+ timeStamp: string | Date;
8
+ }
9
+ export declare const dummyAiReasoningData: {
10
+ id: string;
11
+ reasoning: string;
12
+ Gap: string;
13
+ decision_strength: string;
14
+ aiReasoningCitation: AiReasoningCitationItem[];
15
+ }[];
16
+ export interface AiReasoningChatMessage {
17
+ role: 'user' | 'assistant';
18
+ message: string;
19
+ highlighted_text?: string;
20
+ }
21
+ export interface AiReasoningCitationCustomMetadata {
22
+ data_sources?: string[];
23
+ training_data_title?: string[];
24
+ paraphrase?: string[];
25
+ chatData?: AiReasoningChatMessage[];
26
+ }
27
+ export interface AiReasoningCitationItem {
28
+ citation_number: string;
29
+ customMetadata: AiReasoningCitationCustomMetadata;
30
+ }
31
+ export declare const transformAiReasoningCitations: (aiReasoningCitation: AiReasoningCitationItem[], decisionStrength?: string | number) => CitationItem[];
32
+ export interface CitationItem {
33
+ customMetaData: {
34
+ citation_type: string;
35
+ citation_number?: number | string;
36
+ gs_url?: string;
37
+ highlighted_coordinates?: {
38
+ xmin: number;
39
+ ymin: number;
40
+ xmax: number;
41
+ ymax: number;
42
+ }[];
43
+ link_text?: string;
44
+ citation_source?: string;
45
+ decision_strength?: string;
46
+ il_learning?: any;
47
+ il_learning_highlights?: any[];
48
+ comparison_highlights?: any[];
49
+ chat_data?: ChatCitationDataItem[];
50
+ rule_book_content?: string;
51
+ rule_book_highlights?: string[];
52
+ relevance_score?: number;
53
+ [key: string]: any;
54
+ };
55
+ }
56
+ export interface ChatCitationConfig {
57
+ showRootContainer?: boolean;
58
+ rootContainer?: {
59
+ title?: string;
60
+ relevanceTitle?: string;
61
+ icon?: React.ReactNode;
62
+ slotStyles?: {
63
+ title?: React.CSSProperties;
64
+ relevanceScore?: React.CSSProperties;
65
+ container?: React.CSSProperties;
66
+ };
67
+ };
68
+ chatContainer?: {
69
+ title?: string;
70
+ chatIcon?: React.ReactNode;
71
+ highlightColor?: string;
72
+ summarizedTab?: {
73
+ chip?: {
74
+ isActive?: boolean;
75
+ show?: boolean;
76
+ styles?: React.CSSProperties;
77
+ };
78
+ view?: {
79
+ slotStyles?: {
80
+ ul?: React.CSSProperties;
81
+ li?: React.CSSProperties;
82
+ text?: React.CSSProperties;
83
+ };
84
+ };
85
+ };
86
+ detailedTab?: {
87
+ chip?: {
88
+ isActive?: boolean;
89
+ onClick?: () => void;
90
+ styles?: React.CSSProperties;
91
+ };
92
+ view?: {
93
+ userChatItemProps?: any;
94
+ assistantChatProps?: any;
95
+ };
96
+ };
97
+ slotStyles?: {
98
+ title?: React.CSSProperties;
99
+ chatDataContainer?: React.CSSProperties;
100
+ outerContainer?: React.CSSProperties;
101
+ container?: React.CSSProperties;
102
+ };
103
+ additionalSecondaryActions?: React.ReactNode[];
104
+ };
105
+ ruleBookContainer?: {
106
+ title?: string;
107
+ ruleBookIcon?: React.ReactNode;
108
+ slotStyles?: {
109
+ title?: React.CSSProperties;
110
+ dataContainer?: React.CSSProperties;
111
+ outerContainer?: React.CSSProperties;
112
+ };
113
+ additionalSecondaryActions?: React.ReactNode[];
114
+ };
115
+ reversePanels?: boolean;
116
+ isRenderedCustomComponent?: boolean;
117
+ modalContainerStyle?: React.CSSProperties;
118
+ additionalData?: {
119
+ RuleBookContainerRatio?: number | string;
120
+ RuleBookDetailedViewVerticallyStacked?: boolean;
121
+ RuleBookContainerHeight?: number | string;
122
+ };
123
+ closePreview?: () => void;
124
+ selectedIdFromReason?: string | null;
125
+ }
126
+ interface CitationOrchestratorProps {
127
+ href: string;
128
+ citations: CitationItem[];
129
+ children?: React.ReactNode;
130
+ isStreaming?: boolean;
131
+ onCitationToggle?: (keys: string[], adId: string, isOpen: boolean) => void;
132
+ chatCitationConfig?: ChatCitationConfig;
133
+ }
134
+ declare const ParentCitationComponent: ({ href, citations, children, isStreaming, onCitationToggle, chatCitationConfig }: CitationOrchestratorProps) => import("react/jsx-runtime").JSX.Element | null;
135
+ export default ParentCitationComponent;
136
+ //# sourceMappingURL=ParentCitationComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParentCitationComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/ParentCitationComponent/ParentCitationComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC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,EAAE,CAAC;KAChD,CAAC;IAEF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,cAAc,CAAC,EAAE;QACf,sBAAsB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACzC,qCAAqC,CAAC,EAAE,OAAO,CAAC;QAChD,uBAAuB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC3C,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED,UAAU,yBAAyB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3E,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC;AAiBD,QAAA,MAAM,uBAAuB,qFAAsF,yBAAyB,mDAsM3I,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const ParentCitationComponentTest: React.FC;
3
+ export default ParentCitationComponentTest;
4
+ //# sourceMappingURL=ParentCitationComponentTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParentCitationComponentTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/ParentCitationComponent/ParentCitationComponentTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkW1B,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAsCxC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -36,6 +36,7 @@ export { IngestionStatusChip } from "./features/IngestionStatus/IngestionStatusC
36
36
  export { ManageReminders } from "./features/ManageRemainders/ManageReminders";
37
37
  export { default as GptWebCitation } from "./features/GptWebCitation/GptWebCitation";
38
38
  export { default as InstantLearningCitationWrapper } from "./features/InstantLearningCitation/InstantLearningCitationComponent";
39
+ export { default as ParentCitationComponent } from "./features/ParentCitationComponent/ParentCitationComponent";
39
40
  export { mapCitationDataToDisplay, getWebCitationImageUrl, resolveSkeletonVisitUrl, extractTopicFromContent, extractRelevanceScoreFromContent, extractLearnedFromUrl, sanitizeExternalUrl, } from "./features/GptWebCitation/utils/citationData.utils";
40
41
  export type { IGptWebCitationProps, IGptCitationConfig, IGptWebCitationStyleOverrides, IGptWebCitationGptStyles, IGptWebCitationWebStyles, IGptWebCitationImageStyles, IGptWebCitationSkeletonStyles, IGptWebCitationVisitLinkStyles, IGptWebCitationFullScreenStyles, GptWebCitationView, GptWebCitationStatus, IWebCitationApiResponse, IGptWebCitationDbMetadata, IGptWebCitationImageMetadata, IGptWebCitationMappedData, IGptWebCitationImageIconsConfig, } from "./features/GptWebCitation/types";
41
42
  export { CitationType, allowsGptCitationView, allowsWebCitationView, showsCitationViewToggle, } from "./features/GptWebCitation/types";
@@ -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,EAA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C,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAC,OAAO,IAAI,8BAA8B,EAAC,MAAM,qEAAqE,CAAA;AAC7H,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,4DAA4D,CAAA;AAC7G,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,oDAAoD,CAAC;AAC5D,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iCAAiC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/citation",
3
- "version": "0.0.221",
3
+ "version": "0.0.223",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -166,6 +166,11 @@
166
166
  "import": "./dist/features/InstantLearningCitation/InstantLearningCitationComponent.js",
167
167
  "require": "./dist/features/InstantLearningCitation/InstantLearningCitationComponent.js",
168
168
  "types": "./dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts"
169
+ },
170
+ "./ParentCitationComponent": {
171
+ "import": "./dist/features/ParentCitationComponent/ParentCitationComponent.js",
172
+ "require": "./dist/features/ParentCitationComponent/ParentCitationComponent.js",
173
+ "types": "./dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts"
169
174
  }
170
175
  },
171
176
  "repository": {