@e-llm-studio/citation 0.0.221-beta.7 → 0.0.222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +218 -0
- package/dist/cjs/features/InstantLearningCitation/SlashLoader.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/SlashLoader.js.map +1 -0
- package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +2 -0
- package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js.map +1 -0
- package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +1 -1
- package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/InstantLearningCitation/SlashLoader.js +2 -0
- package/dist/features/InstantLearningCitation/SlashLoader.js.map +1 -0
- package/dist/features/ParentCitationComponent/ParentCitationComponent.js +2 -0
- package/dist/features/ParentCitationComponent/ParentCitationComponent.js.map +1 -0
- package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
- package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts +2 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +2 -0
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +1 -1
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +136 -0
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +1 -0
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +4 -0
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +1 -0
- package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +14 -3
- package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -1
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +4 -13
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- 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
|
|
@@ -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":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib");exports.getCitationsData=function(e,r,n){return t.__awaiter(this,void 0,void 0,function(){var o;return t.__generator(this,function(t){switch(t.label){case 0:return[4,fetch("".concat(n,"/api/citations/").concat(e),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)}})];case 1:if(!(o=t.sent()).ok)throw new Error("Failed to fetch citations: ".concat(o.statusText));return[4,o.json()];case 2:return[2,t.sent()]}})})},exports.getFileContent=function(e){return t.__awaiter(this,void 0,void 0,function(){var r;return t.__generator(this,function(t){switch(t.label){case 0:return[4,fetch(e,{method:"GET",headers:{Accept:"application/json"}})];case 1:if(!(r=t.sent()).ok)throw new Error("Failed to fetch file content: ".concat(r.statusText));return[4,r.text()];case 2:return[2,t.sent()]}})})},exports.getNestedValue=function(t,e){var r;try{for(var n=e.split("."),o=t,i=0,a=n;i<a.length;i++){var s=a[i],c=s.match(/^(\w+)\[(\d+)\]$/);if(c){var u=c[1],l=c[2];o=null===(r=null==o?void 0:o[u])||void 0===r?void 0:r[Number(l)]}else o=null==o?void 0:o[s];if(null==o)return null}return o}catch(t){return console.error("Nested extraction error",t),null}},exports.getSignedUrl=function(e,r){return t.__awaiter(this,void 0,void 0,function(){var n;return t.__generator(this,function(t){switch(t.label){case 0:return[4,fetch("".concat(r,"/backend/gcs/get-signed-url/"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({gsutil_url:e,expiration_hours:3})})];case 1:if(!(n=t.sent()).ok)throw new Error("Failed to get signed URL: ".concat(n.statusText));return[4,n.json()];case 2:return[2,t.sent()]}})})};
|
|
2
2
|
//# sourceMappingURL=RuleBookCitationApi.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),i=require("../TextualGuidelines/TextualGuideLinesComponent.js"),s=require("./RuleBookCitationApi.js");exports.default=function(a){var o=a.requestId,l=a.citationIndex,u=void 0===l?0:l,d=a.accessToken,c=a.sourceAttachments,f=void 0===c?[]:c,g=a.url,v=t.useState(null),h=v[0],p=v[1],x=t.useState(null),_=x[0],m=x[1],w=t.useState(null),b=w[0],j=w[1],y=t.useState(!1),S=y[0],C=y[1],q=t.useState(!1),E=q[0],R=q[1],A=t.useState(null),L=A[0],k=A[1];t.useEffect(function(){if(!o)return p(null),m(null),j(null),void k(null);if(!g)throw new Error("Base URL is required");e.__awaiter(void 0,void 0,void 0,function(){var r,t,n,i,a,l,c;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),C(!0),k(null),[4,s.getCitationsData(o,d,g)];case 1:if(r=e.sent(),t=null!==(c=null!==(a=null==r?void 0:r.citations)&&void 0!==a?a:null===(l=null==r?void 0:r.responseData)||void 0===l?void 0:l.citations)&&void 0!==c?c:[],!(n=null==t?void 0:t[u]))throw new Error("Citation not found at the specified index.");if(!n.file_id)throw new Error("Citation data is missing a valid file_id.");return p(n.file_id),m(n.phrase_to_highlight||null),[3,4];case 2:return i=e.sent(),console.error(i),k(i.message||"An error occurred while fetching citations."),p(null),m(null),[3,4];case 3:return C(!1),[7];case 4:return[2]}})})},[o,u,d]),t.useEffect(function(){if(h){var r=Array.isArray(f)?f:Object.values(f||{}).flat();e.__awaiter(void 0,void 0,void 0,function(){var t,n,i,a,o,l,u,d,c;return e.__generator(this,function(e){switch(e.label){case 0:if(e.trys.push([0,3,4,5]),R(!0),k(null),!(null==(t=r.find(function(e){return e.id===h}))?void 0:t.gcsUrl))throw new Error("File URL missing for ID: ".concat(h));return[4,s.getSignedUrl(t.gcsUrl,g)];case 1:if(n=e.sent(),!(i=null!==(c=null===(d=null==n?void 0:n.responseData)||void 0===d?void 0:d.signed_url)&&void 0!==c?c:null==n?void 0:n.signed_url))throw new Error("Signed URL not received");return[4,s.getFileContent(i)];case 2:if(a=e.sent(),o=JSON.parse(a),!(l=s.getNestedValue(o,"data.artifactData.userStorySnapshot[0].value")))throw new Error("Failed to extract content from standard JSON path.");return j(l),[3,5];case 3:return u=e.sent(),console.error(u),k(u.message||"An error occurred while loading file contents."),j(null),[3,5];case 4:return R(!1),[7];case 5:return[2]}})})}else j(null)},[h,f]);var D=S||E;return r.jsxs("div",e.__assign({style:{width:"100%",minHeight:"100px"}},{children:[D&&r.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[r.jsx(n.Loader2,{style:{animation:"spin 1s linear infinite"},size:24}),r.jsx("span",{children:"Loading content..."})]})),L&&!D&&r.jsxs("div",e.__assign({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[r.jsx("strong",{children:"Error:"})," ",L]})),!D&&!L&&b&&r.jsx("div",e.__assign({style:{marginTop:"12px"}},{children:r.jsx(i.default,{TextualGuideLines:b,HighlightedWords:_?[_]:[],InternalGptReasoningData:[],index:0,headerTitle:"Rule Book Citation",useVariantHighlight:!1})})),!D&&!L&&!b&&r.jsx("div",e.__assign({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available. Please provide a valid requestId and ensure source attachments are loaded."})),r.jsx("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};
|
|
2
2
|
//# sourceMappingURL=RuleBookCitationWrapper.js.map
|
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"),
|
|
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
|
|
@@ -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":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as
|
|
1
|
+
import{__awaiter as t,__generator as e}from"tslib";function n(n,r,o){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return[4,fetch("".concat(o,"/api/citations/").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)}})];case 1:if(!(t=e.sent()).ok)throw new Error("Failed to fetch citations: ".concat(t.statusText));return[4,t.json()];case 2:return[2,e.sent()]}})})}function r(n,r){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return[4,fetch("".concat(r,"/backend/gcs/get-signed-url/"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({gsutil_url:n,expiration_hours:3})})];case 1:if(!(t=e.sent()).ok)throw new Error("Failed to get signed URL: ".concat(t.statusText));return[4,t.json()];case 2:return[2,e.sent()]}})})}function o(n){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return[4,fetch(n,{method:"GET",headers:{Accept:"application/json"}})];case 1:if(!(t=e.sent()).ok)throw new Error("Failed to fetch file content: ".concat(t.statusText));return[4,t.text()];case 2:return[2,e.sent()]}})})}function i(t,e){var n;try{for(var r=e.split("."),o=t,i=0,c=r;i<c.length;i++){var a=c[i],s=a.match(/^(\w+)\[(\d+)\]$/);if(s){var u=s[1],l=s[2];o=null===(n=null==o?void 0:o[u])||void 0===n?void 0:n[Number(l)]}else o=null==o?void 0:o[a];if(null==o)return null}return o}catch(t){return console.error("Nested extraction error",t),null}}export{n as getCitationsData,o as getFileContent,i as getNestedValue,r as getSignedUrl};
|
|
2
2
|
//# sourceMappingURL=RuleBookCitationApi.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as e,__awaiter as r,__generator as n}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useState as o,useEffect as l}from"react";import{Loader2 as a}from"lucide-react";import s from"../TextualGuidelines/TextualGuideLinesComponent.js";import{getCitationsData as d,getNestedValue as u,getFileContent as c,getSignedUrl as f}from"./RuleBookCitationApi.js";var h=function(h){var v=h.requestId,p=h.citationIndex,g=void 0===p?0:p,m=h.accessToken,x=h.sourceAttachments,w=void 0===x?[]:x,b=h.url,y=o(null),C=y[0],R=y[1],A=o(null),E=A[0],_=A[1],k=o(null),I=k[0],L=k[1],T=o(!1),j=T[0],D=T[1],S=o(!1),U=S[0],B=S[1],G=o(null),H=G[0],q=G[1];l(function(){if(!v)return R(null),_(null),L(null),void q(null);if(!b)throw new Error("Base URL is required");r(void 0,void 0,void 0,function(){var e,r,i,t,o,l,a;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),D(!0),q(null),[4,d(v,m,b)];case 1:if(e=n.sent(),r=null!==(a=null!==(o=null==e?void 0:e.citations)&&void 0!==o?o:null===(l=null==e?void 0:e.responseData)||void 0===l?void 0:l.citations)&&void 0!==a?a:[],!(i=null==r?void 0:r[g]))throw new Error("Citation not found at the specified index.");if(!i.file_id)throw new Error("Citation data is missing a valid file_id.");return R(i.file_id),_(i.phrase_to_highlight||null),[3,4];case 2:return t=n.sent(),console.error(t),q(t.message||"An error occurred while fetching citations."),R(null),_(null),[3,4];case 3:return D(!1),[7];case 4:return[2]}})})},[v,g,m]),l(function(){if(C){var e=Array.isArray(w)?w:Object.values(w||{}).flat();r(void 0,void 0,void 0,function(){var r,i,t,o,l,a,s,d,h;return n(this,function(n){switch(n.label){case 0:if(n.trys.push([0,3,4,5]),B(!0),q(null),!(null==(r=e.find(function(e){return e.id===C}))?void 0:r.gcsUrl))throw new Error("File URL missing for ID: ".concat(C));return[4,f(r.gcsUrl,b)];case 1:if(i=n.sent(),!(t=null!==(h=null===(d=null==i?void 0:i.responseData)||void 0===d?void 0:d.signed_url)&&void 0!==h?h:null==i?void 0:i.signed_url))throw new Error("Signed URL not received");return[4,c(t)];case 2:if(o=n.sent(),l=JSON.parse(o),!(a=u(l,"data.artifactData.userStorySnapshot[0].value")))throw new Error("Failed to extract content from standard JSON path.");return L(a),[3,5];case 3:return s=n.sent(),console.error(s),q(s.message||"An error occurred while loading file contents."),L(null),[3,5];case 4:return B(!1),[7];case 5:return[2]}})})}else L(null)},[C,w]);var N=j||U;return i("div",e({style:{width:"100%",minHeight:"100px"}},{children:[N&&i("div",e({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[t(a,{style:{animation:"spin 1s linear infinite"},size:24}),t("span",{children:"Loading content..."})]})),H&&!N&&i("div",e({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[t("strong",{children:"Error:"})," ",H]})),!N&&!H&&I&&t("div",e({style:{marginTop:"12px"}},{children:t(s,{TextualGuideLines:I,HighlightedWords:E?[E]:[],InternalGptReasoningData:[],index:0,headerTitle:"Rule Book Citation",useVariantHighlight:!1})})),!N&&!H&&!I&&t("div",e({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available. Please provide a valid requestId and ensure source attachments are loaded."})),t("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};export{h as default};
|
|
2
2
|
//# sourceMappingURL=RuleBookCitationWrapper.js.map
|
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,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const useCompareLayout: (initialMaintainOrder: boolean, scrollContainerRef: React.RefObject<HTMLDivElement>, lhsBadgeRefs: any, rhsBadgeRefs: any, proposedSections: any[], existingSections: any[]) => {
|
|
3
2
|
maintainRelativeOrder: boolean;
|
|
4
3
|
setMaintainRelativeOrder: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompareLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareLayout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCompareLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareLayout.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBACL,OAAO,sBACT,MAAM,SAAS,CAAC,cAAc,CAAC,gBACrC,GAAG,gBACH,GAAG,oBACC,GAAG,EAAE,oBACL,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;CAkFxB,CAAC"}
|
|
@@ -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
|
package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstantLearningCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/InstantLearningCitation/InstantLearningCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,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;
|
|
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;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAE3F,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,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAQD,eAAO,MAAM,+BAA+B,4BAA6B,MAAM,KAAG,cAuDjF,CAAC;AAEF,eAAO,MAAM,uCAAuC,WAAY,UAAU,KAAG,wBA6B5E,CAAC;AAEF,gDAAgD;AAChD,MAAM,MAAM,QAAQ,GAAG,mBAAmB,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,4DAA4D;IAC5D,SAAS,EAAE,MA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,CAAC;IAC3B,2FAA2F;IAC3F,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;AAY1B,UAAU,oBAAoB;IAC5B,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,MAAM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AAM,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 @@
|
|
|
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"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export interface CitationData {
|
|
2
|
+
file_id: string;
|
|
3
|
+
phrase_to_highlight: string;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
1
6
|
export interface SourceAttachment {
|
|
2
7
|
id: string;
|
|
3
8
|
gcsUrl?: string;
|
|
@@ -5,7 +10,13 @@ export interface SourceAttachment {
|
|
|
5
10
|
is_guideline_file?: boolean;
|
|
6
11
|
[key: string]: any;
|
|
7
12
|
}
|
|
8
|
-
export type
|
|
13
|
+
export type SourceAttachments = SourceAttachment[] | Record<string, SourceAttachment[]>;
|
|
14
|
+
export interface CitationResponse {
|
|
15
|
+
citations?: CitationData[];
|
|
16
|
+
responseData?: {
|
|
17
|
+
citations?: CitationData[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
9
20
|
export interface SignedUrlResponse {
|
|
10
21
|
responseData?: {
|
|
11
22
|
signed_url?: string;
|
|
@@ -13,8 +24,8 @@ export interface SignedUrlResponse {
|
|
|
13
24
|
signed_url?: string;
|
|
14
25
|
error?: string;
|
|
15
26
|
}
|
|
16
|
-
export declare function
|
|
27
|
+
export declare function getCitationsData(requestId: string, accessToken: string, url: string): Promise<CitationResponse>;
|
|
17
28
|
export declare function getSignedUrl(gcsUrl: string, url: string): Promise<SignedUrlResponse>;
|
|
18
|
-
export declare function getFileContent(
|
|
29
|
+
export declare function getFileContent(signedUrl: string): Promise<string>;
|
|
19
30
|
export declare function getNestedValue(obj: any, path: string): any;
|
|
20
31
|
//# sourceMappingURL=RuleBookCitationApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleBookCitationApi.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationApi.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"RuleBookCitationApi.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationApi.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,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Api";
|
|
3
3
|
interface RuleBookCitationWrapperProps {
|
|
4
|
-
|
|
5
|
-
citationNumber: number;
|
|
6
|
-
fileDetails?: {
|
|
7
|
-
file_id: string;
|
|
8
|
-
phrase_to_highlight: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
msg?: any;
|
|
4
|
+
requestId?: string | null;
|
|
12
5
|
citationIndex?: number;
|
|
13
|
-
|
|
6
|
+
accessToken: string;
|
|
7
|
+
sourceAttachments?: SourceAttachments;
|
|
14
8
|
url: string;
|
|
15
|
-
additionalClassNames?: {
|
|
16
|
-
container?: string;
|
|
17
|
-
};
|
|
18
9
|
}
|
|
19
10
|
declare const RuleBookCitationWrapper: React.FC<RuleBookCitationWrapperProps>;
|
|
20
11
|
export default RuleBookCitationWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleBookCitationWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RuleBookCitationWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAML,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,UAAU,4BAA4B;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA4MnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleBookCitationWrapperTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapperTest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RuleBookCitationWrapperTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapperTest.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,2BAA2B,+CA0BhC,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,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"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": {
|