@e-llm-studio/citation 0.0.209 → 0.0.210
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 +270 -0
- package/dist/assests/svg/NeuralNetworkIcon.js +2 -0
- package/dist/assests/svg/NeuralNetworkIcon.js.map +1 -0
- package/dist/cjs/assests/svg/NeuralNetworkIcon.js +2 -0
- package/dist/cjs/assests/svg/NeuralNetworkIcon.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitation.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitation.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +2 -0
- package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js.map +1 -0
- package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitation.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitation.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitation.module.css.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitation.module.css.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitationImageCitation.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitationSkeleton.js.map +1 -0
- package/dist/features/GptWebCitation/utils/citationData.utils.js +2 -0
- package/dist/features/GptWebCitation/utils/citationData.utils.js.map +1 -0
- package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js +1 -1
- package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts +9 -0
- package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts.map +1 -0
- 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/GptWebCitation/GptWebCitation.d.ts +5 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +8 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +8 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts +9 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +3 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +4 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts +4 -0
- package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/types.d.ts +112 -0
- package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +8 -0
- package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
- [CognitiveDecisioningCard](#cognitivedecisioningcard) [<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/CognitiveDecisioning/CognitiveDecisioningReadme.md)
|
|
14
14
|
- [CognitiveCompare](#cognitivecompare) [<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/new-compare-ui/citation/src/features/CognitiveCompare/README.md)
|
|
15
15
|
- [CognitiveInternalGPTReasoning](#cognitiveinternalgptreasoning) [<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/CognitiveInternalgptReasoning/README.md)
|
|
16
|
+
- [GptWebCitation](#gptwebcitation)
|
|
16
17
|
- [CodeCitation](#codecitation) [<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/CodeCitation/README.md)
|
|
17
18
|
- [ChatDrawer](#chatdrawer) [<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/ChatDrawer/ChatDrawerReadme.md)
|
|
18
19
|
- [CitationsViewer](#citationsviewer) [<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/CitationViewer/CitationViewerReadme.md)
|
|
@@ -672,6 +673,275 @@ const reasoningData = {
|
|
|
672
673
|
|
|
673
674
|
---
|
|
674
675
|
|
|
676
|
+
## GptWebCitation
|
|
677
|
+
|
|
678
|
+
### Overview
|
|
679
|
+
|
|
680
|
+
`GptWebCitation` is a composite React component that wraps the GPT reasoning citation (`CognitiveInternalgptCoreComponent`) and adds an optional **Web Citation** view. Users can toggle between GPT and web-based citations without modifying the underlying GPT citation code.
|
|
681
|
+
|
|
682
|
+
In **GPT view**, the component renders the standard GPT citation panel with a **View Web Citation** button on the left and the document source link on the right (inside the GPT citation footer). In **Web Citation view**, it shows a web snapshot (image or markdown content) with highlight navigation, relevance score, and a **View GPT Citation** toggle to switch back.
|
|
683
|
+
|
|
684
|
+
### Features
|
|
685
|
+
|
|
686
|
+
- **Dual citation views** — Toggle between GPT reasoning and web-based citation
|
|
687
|
+
- **Non-invasive GPT integration** — Wraps `CognitiveInternalgptCoreComponent` via props; no changes to GPT citation code required
|
|
688
|
+
- **Image & markdown web citations** — Supports screenshot snapshots (`imageMetadata.signed_url`) or HTML/markdown content
|
|
689
|
+
- **Highlight pagination** — Navigate between highlighted anchors in web citation markdown
|
|
690
|
+
- **Relevance score badge** — Auto-extracted from web citation content (e.g. "decision strength is 85%")
|
|
691
|
+
- **Loading skeleton** — Built-in loading state while web citation is being generated
|
|
692
|
+
- **Expand screenshot button** — Optional full-screen image view (`showExpandImageButton`)
|
|
693
|
+
- **Style overrides** — Customize layout via the `styles` prop without editing component internals
|
|
694
|
+
|
|
695
|
+
### Installation / Import
|
|
696
|
+
|
|
697
|
+
```tsx
|
|
698
|
+
import GptWebCitation from '@e-llm-studio/citation/GptWebCitation';
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
### Usage 1: Basic GPT + Web Citation Toggle
|
|
702
|
+
|
|
703
|
+
```tsx
|
|
704
|
+
import { useState } from 'react';
|
|
705
|
+
import { ChevronDown, ChevronUp, Maximize2, X } from 'lucide-react';
|
|
706
|
+
import GptWebCitation from '@e-llm-studio/citation/GptWebCitation';
|
|
707
|
+
|
|
708
|
+
const gptCitation = {
|
|
709
|
+
item: {
|
|
710
|
+
confidence_score: 100,
|
|
711
|
+
text: 'Standard financial data interpretation patterns.',
|
|
712
|
+
dataSource:
|
|
713
|
+
'Title: Commodity Market Analysis\n\n- <highlight>Verify the most recent timestamp in search results.</highlight>\n- Analyze safe-haven asset demand and geopolitical triggers.',
|
|
714
|
+
paraphrase: 'Market interpretation patterns for commodity price reporting.',
|
|
715
|
+
},
|
|
716
|
+
headerTitle: 'Summary Citations',
|
|
717
|
+
index: 0,
|
|
718
|
+
iconsConfig: {
|
|
719
|
+
ChevronDownIcon: ChevronDown,
|
|
720
|
+
ChevronUpIcon: ChevronUp,
|
|
721
|
+
MaximizeIcon: Maximize2,
|
|
722
|
+
CloseIcon: X,
|
|
723
|
+
},
|
|
724
|
+
DocumentTitle: 'Source : Employee Handbook - Code of Conduct Section.pdf',
|
|
725
|
+
previewCallback: () => window.open('/preview/document'),
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
function CitationPanel() {
|
|
729
|
+
const [showWebCitation, setShowWebCitation] = useState(false);
|
|
730
|
+
const [webCitationData, setWebCitationData] = useState(undefined);
|
|
731
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
732
|
+
|
|
733
|
+
const handleGenerateWebCitation = async () => {
|
|
734
|
+
setShowWebCitation(true);
|
|
735
|
+
setIsLoading(true);
|
|
736
|
+
|
|
737
|
+
const response = await fetch('/api/web-citation/generate');
|
|
738
|
+
const data = await response.json();
|
|
739
|
+
|
|
740
|
+
setWebCitationData(data);
|
|
741
|
+
setIsLoading(false);
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
return (
|
|
745
|
+
<GptWebCitation
|
|
746
|
+
gptCitation={gptCitation}
|
|
747
|
+
isWebCitation={true}
|
|
748
|
+
webCitationData={webCitationData}
|
|
749
|
+
showWebCitation={showWebCitation}
|
|
750
|
+
isWebCitationLoading={isLoading}
|
|
751
|
+
onGenerateWebCitation={handleGenerateWebCitation}
|
|
752
|
+
onToggleCitationView={() => setShowWebCitation((prev) => !prev)}
|
|
753
|
+
/>
|
|
754
|
+
);
|
|
755
|
+
}
|
|
756
|
+
```
|
|
757
|
+
|
|
758
|
+
### Usage 2: Web Citation API Response Shape
|
|
759
|
+
|
|
760
|
+
Pass the API response from your web citation service as `webCitationData`:
|
|
761
|
+
|
|
762
|
+
```tsx
|
|
763
|
+
const webCitationData = {
|
|
764
|
+
citationId: '550e8400-e29b-41d4-a716-446655440061',
|
|
765
|
+
content:
|
|
766
|
+
'The decision strength is 85% because:<ol><li>The exact <a href="https://example.com/article">valuation of SpaceX</a> fluctuates between sources.</li></ol>',
|
|
767
|
+
citationType: 'web',
|
|
768
|
+
citationUrl: 'https://example.com/article',
|
|
769
|
+
imageMetadata: {
|
|
770
|
+
signed_url: 'https://storage.example.com/image_citations/screenshot.png',
|
|
771
|
+
blob_path: 'image_citations/screenshot.png',
|
|
772
|
+
gs_uri: 'gs://bucket/image_citations/screenshot.png',
|
|
773
|
+
},
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
<GptWebCitation
|
|
777
|
+
gptCitation={gptCitation}
|
|
778
|
+
isWebCitation={true}
|
|
779
|
+
webCitationData={webCitationData}
|
|
780
|
+
showWebCitation={true}
|
|
781
|
+
/>
|
|
782
|
+
```
|
|
783
|
+
|
|
784
|
+
When `imageMetadata.signed_url` is present, the component renders a screenshot snapshot. Otherwise it falls back to rendering the `content` field as markdown/HTML.
|
|
785
|
+
|
|
786
|
+
### Usage 3: GPT-Only Mode (No Web Citation)
|
|
787
|
+
|
|
788
|
+
Set `isWebCitation={false}` to render only the GPT citation with no toggle button:
|
|
789
|
+
|
|
790
|
+
```tsx
|
|
791
|
+
<GptWebCitation
|
|
792
|
+
gptCitation={gptCitation}
|
|
793
|
+
isWebCitation={false}
|
|
794
|
+
/>
|
|
795
|
+
```
|
|
796
|
+
|
|
797
|
+
### Usage 4: Hide Expand Buttons
|
|
798
|
+
|
|
799
|
+
Hide the web citation screenshot expand button:
|
|
800
|
+
|
|
801
|
+
```tsx
|
|
802
|
+
<GptWebCitation
|
|
803
|
+
gptCitation={gptCitation}
|
|
804
|
+
isWebCitation={true}
|
|
805
|
+
webCitationData={webCitationData}
|
|
806
|
+
showWebCitation={true}
|
|
807
|
+
showExpandImageButton={false}
|
|
808
|
+
/>
|
|
809
|
+
```
|
|
810
|
+
|
|
811
|
+
Hide the GPT citation header maximize/expand icon:
|
|
812
|
+
|
|
813
|
+
```tsx
|
|
814
|
+
<GptWebCitation
|
|
815
|
+
gptCitation={gptCitation}
|
|
816
|
+
isWebCitation={true}
|
|
817
|
+
showGptMaximizeButton={false}
|
|
818
|
+
/>
|
|
819
|
+
```
|
|
820
|
+
|
|
821
|
+
You can also use `gptCitation.disableMaximize: true` directly on the GPT config.
|
|
822
|
+
|
|
823
|
+
### Usage 5: Custom Styling via Props (matched heights)
|
|
824
|
+
|
|
825
|
+
Layout, borders, and heights for **both GPT and web views** can be controlled from the parent without modifying component internals:
|
|
826
|
+
|
|
827
|
+
```tsx
|
|
828
|
+
const sharedPanelHeight = '520px';
|
|
829
|
+
const sharedContentHeight = '384px';
|
|
830
|
+
|
|
831
|
+
<GptWebCitation
|
|
832
|
+
gptCitation={{
|
|
833
|
+
...gptCitation,
|
|
834
|
+
bodyHeight: sharedContentHeight,
|
|
835
|
+
}}
|
|
836
|
+
isWebCitation={true}
|
|
837
|
+
webCitationData={webCitationData}
|
|
838
|
+
showGptMaximizeButton={true}
|
|
839
|
+
styles={{
|
|
840
|
+
container: { maxWidth: 900 },
|
|
841
|
+
gptCitation: {
|
|
842
|
+
wrapper: {
|
|
843
|
+
minHeight: sharedPanelHeight,
|
|
844
|
+
border: '1px solid #e5e7eb',
|
|
845
|
+
borderRadius: 8,
|
|
846
|
+
},
|
|
847
|
+
footerAction: { left: '1.5rem' },
|
|
848
|
+
toggleButton: { minWidth: 180, fontSize: 14 },
|
|
849
|
+
},
|
|
850
|
+
webCitation: {
|
|
851
|
+
panel: {
|
|
852
|
+
minHeight: sharedPanelHeight,
|
|
853
|
+
border: '1px solid #e5e7eb',
|
|
854
|
+
borderRadius: 8,
|
|
855
|
+
},
|
|
856
|
+
header: { padding: '8px 16px' },
|
|
857
|
+
content: {
|
|
858
|
+
minHeight: sharedContentHeight,
|
|
859
|
+
maxHeight: sharedContentHeight,
|
|
860
|
+
overflowY: 'auto',
|
|
861
|
+
},
|
|
862
|
+
footer: { padding: '8px 16px' },
|
|
863
|
+
toggleButton: { minWidth: 180, fontSize: 14 },
|
|
864
|
+
learnedFrom: { fontSize: 13 },
|
|
865
|
+
},
|
|
866
|
+
}}
|
|
867
|
+
/>
|
|
868
|
+
```
|
|
869
|
+
|
|
870
|
+
#### Style keys
|
|
871
|
+
|
|
872
|
+
| Key | Applies to | Description |
|
|
873
|
+
|-----|------------|-------------|
|
|
874
|
+
| `container` | Both views | Shared outer wrapper (`overlay` in GPT view, merged into web `panel`) |
|
|
875
|
+
| `gptCitation.wrapper` | GPT view | Border card around GPT citation (left/right borders restored here) |
|
|
876
|
+
| `gptCitation.footerAction` | GPT view | View Web Citation button row in footer |
|
|
877
|
+
| `gptCitation.toggleButton` | GPT view | View Web Citation button styles |
|
|
878
|
+
| `webCitation.panel` | Web view | Outer web citation card |
|
|
879
|
+
| `webCitation.header` | Web view | Source label + pagination + score badge row |
|
|
880
|
+
| `webCitation.content` | Web view | Main content area (markdown, image, skeleton) |
|
|
881
|
+
| `webCitation.footer` | Web view | View GPT Citation + Learned From row |
|
|
882
|
+
| `webCitation.toggleButton` | Web view | View GPT Citation button styles |
|
|
883
|
+
| `webCitation.learnedFrom` | Web view | "Learned From …" text styles |
|
|
884
|
+
|
|
885
|
+
Legacy flat keys (`gptCitationWrapper`, `footerAction`, `webCitationButton`) still work for backward compatibility.
|
|
886
|
+
|
|
887
|
+
### Props
|
|
888
|
+
|
|
889
|
+
| Prop | Type | Default | Description |
|
|
890
|
+
|------|------|---------|-------------|
|
|
891
|
+
| `gptCitation` | `IGptCitationConfig` | **required** | GPT citation config passed to `CognitiveInternalgptCoreComponent` (`item`, `headerTitle`, `iconsConfig`, `DocumentTitle`, `previewCallback`, etc.) |
|
|
892
|
+
| `isWebCitation` | `boolean` | `false` | When `true`, enables web citation toggle and web view. When `false`, only GPT citation is shown. |
|
|
893
|
+
| `webCitationData` | `IWebCitationApiResponse` | — | Web citation API response (content, image snapshot, URL) |
|
|
894
|
+
| `showWebCitation` | `boolean` | — | Controls which view is active. Omit for uncontrolled internal state. |
|
|
895
|
+
| `onGenerateWebCitation` | `() => void` | — | Called when user clicks **View Web Citation** and no cached web data exists yet |
|
|
896
|
+
| `isWebCitationLoading` | `boolean` | `false` | Parent-controlled loading state while web citation is being fetched |
|
|
897
|
+
| `onToggleCitationView` | `() => void` | — | Called when user toggles between GPT and web views |
|
|
898
|
+
| `showExpandImageButton` | `boolean` | `true` | Show/hide the full-screen expand button on web citation image snapshots |
|
|
899
|
+
| `showGptMaximizeButton` | `boolean` | `true` | Show/hide the GPT citation header maximize/expand icon (`gptCitation.disableMaximize: true` when `false`) |
|
|
900
|
+
| `topic` | `string` | auto | Override topic label in web citation header (auto-extracted from content if omitted) |
|
|
901
|
+
| `sourceLabel` | `string` | auto | Override header source label in web view |
|
|
902
|
+
| `relevanceScore` | `number` | auto | Override relevance/decision strength score (auto-extracted from content if omitted) |
|
|
903
|
+
| `learnedFrom` | `string` | auto | Site name shown in web citation footer (auto-extracted from `citationUrl` if omitted) |
|
|
904
|
+
| `styles` | `IGptWebCitationStyleOverrides` | — | Style overrides for GPT and web citation views (see Usage 5) |
|
|
905
|
+
|
|
906
|
+
### `IGptCitationConfig` (gptCitation prop)
|
|
907
|
+
|
|
908
|
+
| Field | Type | Description |
|
|
909
|
+
|-------|------|-------------|
|
|
910
|
+
| `item` | `INonReasoningSource` | GPT reasoning data (`dataSource`, `confidence_score`, highlights, etc.) |
|
|
911
|
+
| `headerTitle` | `string` | Panel header title |
|
|
912
|
+
| `index` | `number` | Citation index |
|
|
913
|
+
| `iconsConfig` | `object` | Icon components (`ChevronDownIcon`, `ChevronUpIcon`, `MaximizeIcon`, `CloseIcon`) |
|
|
914
|
+
| `DocumentTitle` | `string` | Source document label shown in the GPT footer (right side) |
|
|
915
|
+
| `previewCallback` | `() => void` | Called when the source link is clicked |
|
|
916
|
+
| `bodyHeight` | `string` | Optional fixed GPT content body height (use with `styles.webCitation.content` to match web view height) |
|
|
917
|
+
| `disableMaximize` | `boolean` | Disable GPT header fullscreen maximize button (or use `showGptMaximizeButton={false}`) |
|
|
918
|
+
|
|
919
|
+
### `IWebCitationApiResponse` (webCitationData prop)
|
|
920
|
+
|
|
921
|
+
| Field | Type | Description |
|
|
922
|
+
|-------|------|-------------|
|
|
923
|
+
| `citationId` | `string` | Unique citation identifier |
|
|
924
|
+
| `content` | `string` | HTML/markdown web citation content |
|
|
925
|
+
| `citationType` | `string` | Citation type (e.g. `"web"`) |
|
|
926
|
+
| `citationUrl` | `string` | Original source URL |
|
|
927
|
+
| `imageMetadata` | `object` | Image snapshot metadata |
|
|
928
|
+
| `imageMetadata.signed_url` | `string` | Signed URL for screenshot image (preferred) |
|
|
929
|
+
| `imageMetadata.gs_uri` | `string` | GCS URI fallback for image |
|
|
930
|
+
| `db` | `object` | Database metadata (`citation_id`, `blob_path`) |
|
|
931
|
+
|
|
932
|
+
### View Behavior
|
|
933
|
+
|
|
934
|
+
| State | What renders |
|
|
935
|
+
|-------|--------------|
|
|
936
|
+
| `isWebCitation={false}` | GPT citation only |
|
|
937
|
+
| `isWebCitation={true}`, `showWebCitation={false}` | GPT citation + **View Web Citation** button (left footer) + source link (right footer) |
|
|
938
|
+
| `isWebCitation={true}`, `showWebCitation={true}` | Web citation panel with snapshot/markdown, highlight nav, and **View GPT Citation** button |
|
|
939
|
+
|
|
940
|
+
### Local Test Component
|
|
941
|
+
|
|
942
|
+
A test harness is available at `src/features/GptWebCitation/GptWebCitationTest.tsx`. Run the citation dev server with `GptWebCitationTest` mounted in `src/index.tsx` to preview the component interactively.
|
|
943
|
+
|
|
944
|
+
---
|
|
675
945
|
|
|
676
946
|
## CodeCitation
|
|
677
947
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as C}from"tslib";import{jsxs as r,jsx as o}from"react/jsx-runtime";var e=function(e){var i=e.className,t=e.size,a=void 0===t?24:t,n=e.color,s=void 0===n?"currentColor":n,d=e["aria-hidden"];return r("svg",C({xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 16 16",fill:"none","aria-hidden":void 0===d||d,className:i},{children:[o("path",{d:"M14.3327 7.9974C14.3327 8.21627 14.2896 8.43299 14.2058 8.6352C14.1221 8.83741 13.9993 9.02114 13.8445 9.17591C13.6898 9.33067 13.506 9.45344 13.3038 9.5372C13.1016 9.62095 12.8849 9.66406 12.666 9.66406C12.4471 9.66406 12.2304 9.62095 12.0282 9.5372C11.826 9.45344 11.6423 9.33067 11.4875 9.17591C11.3327 9.02114 11.21 8.83741 11.1262 8.6352C11.0425 8.43299 10.9993 8.21627 10.9993 7.9974C10.9993 7.55537 11.1749 7.13145 11.4875 6.81888C11.8001 6.50632 12.224 6.33073 12.666 6.33073C13.108 6.33073 13.532 6.50632 13.8445 6.81888C14.1571 7.13145 14.3327 7.55537 14.3327 7.9974ZM8.99935 2.66406C8.99935 2.92928 8.89399 3.18363 8.70646 3.37117C8.51892 3.55871 8.26457 3.66406 7.99935 3.66406C7.73413 3.66406 7.47978 3.55871 7.29224 3.37117C7.10471 3.18363 6.99935 2.92928 6.99935 2.66406C6.99935 2.39885 7.10471 2.14449 7.29224 1.95696C7.47978 1.76942 7.73413 1.66406 7.99935 1.66406C8.26457 1.66406 8.51892 1.76942 8.70646 1.95696C8.89399 2.14449 8.99935 2.39885 8.99935 2.66406ZM8.33268 7.66406C8.33268 7.79538 8.30682 7.92542 8.25656 8.04675C8.20631 8.16807 8.13265 8.27831 8.03979 8.37117C7.94693 8.46403 7.83669 8.53769 7.71537 8.58794C7.59404 8.6382 7.464 8.66406 7.33268 8.66406C7.20136 8.66406 7.07132 8.6382 6.95 8.58794C6.82867 8.53769 6.71843 8.46403 6.62558 8.37117C6.53272 8.27831 6.45906 8.16807 6.4088 8.04675C6.35855 7.92542 6.33268 7.79538 6.33268 7.66406C6.33268 7.39885 6.43804 7.14449 6.62558 6.95696C6.81311 6.76942 7.06747 6.66406 7.33268 6.66406C7.5979 6.66406 7.85225 6.76942 8.03979 6.95696C8.22733 7.144449 8.33268 7.39885 8.33268 7.66406ZM4.33268 4.9974C4.33268 5.35102 4.19221 5.69016 3.94216 5.9402C3.69211 6.19025 3.35297 6.33073 2.99935 6.33073C2.64573 6.33073 2.30659 6.19025 2.05654 5.9402C1.80649 5.69016 1.66602 5.35102 1.66602 4.9974C1.66602 4.64377 1.80649 4.30464 2.05654 4.05459C2.30659 3.80454 2.64573 3.66406 2.99935 3.66406C3.35297 3.66406 3.69211 3.80454 3.94216 4.05459C4.19221 4.30464 4.33268 4.64377 4.33268 4.9974ZM6.99935 12.9974C6.99935 13.351 6.85887 13.6902 6.60882 13.9402C6.35878 14.1903 6.01964 14.3307 5.66602 14.3307C5.31239 14.3307 4.97326 14.1903 4.72321 13.9402C4.47316 13.6902 4.33268 13.351 4.33268 12.9974C4.33268 12.6438 4.47316 12.3046 4.72321 12.0546C4.97326 11.8045 5.31239 11.6641 5.66602 11.6641C6.01964 11.6641 6.35878 11.8045 6.60882 12.0546C6.85887 12.3046 6.99935 12.6438 6.99935 12.9974Z",stroke:s}),o("path",{d:"M9.00065 3.33333L11.6673 6.66667M9.66732 10.3333L7.00065 12.3333M5.33398 11.6667L3.33398 6.33333M4.20932 4.436L7.00065 3M8.33398 7.66667L11.004 7.896M8.00065 3.66667L7.33398 6.66667",stroke:s,strokeWidth:"0.666667",strokeLinecap:"round",strokeLinejoin:"round"})]}))};export{e as default};
|
|
2
|
+
//# sourceMappingURL=NeuralNetworkIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeuralNetworkIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),e=require("react/jsx-runtime");exports.default=function(r){var s=r.className,i=r.size,t=void 0===i?24:i,o=r.color,n=void 0===o?"currentColor":o,a=r["aria-hidden"],d=void 0===a||a;return e.jsxs("svg",C.__assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 16 16",fill:"none","aria-hidden":d,className:s},{children:[e.jsx("path",{d:"M14.3327 7.9974C14.3327 8.21627 14.2896 8.43299 14.2058 8.6352C14.1221 8.83741 13.9993 9.02114 13.8445 9.17591C13.6898 9.33067 13.506 9.45344 13.3038 9.5372C13.1016 9.62095 12.8849 9.66406 12.666 9.66406C12.4471 9.66406 12.2304 9.62095 12.0282 9.5372C11.826 9.45344 11.6423 9.33067 11.4875 9.17591C11.3327 9.02114 11.21 8.83741 11.1262 8.6352C11.0425 8.43299 10.9993 8.21627 10.9993 7.9974C10.9993 7.55537 11.1749 7.13145 11.4875 6.81888C11.8001 6.50632 12.224 6.33073 12.666 6.33073C13.108 6.33073 13.532 6.50632 13.8445 6.81888C14.1571 7.13145 14.3327 7.55537 14.3327 7.9974ZM8.99935 2.66406C8.99935 2.92928 8.89399 3.18363 8.70646 3.37117C8.51892 3.55871 8.26457 3.66406 7.99935 3.66406C7.73413 3.66406 7.47978 3.55871 7.29224 3.37117C7.10471 3.18363 6.99935 2.92928 6.99935 2.66406C6.99935 2.39885 7.10471 2.14449 7.29224 1.95696C7.47978 1.76942 7.73413 1.66406 7.99935 1.66406C8.26457 1.66406 8.51892 1.76942 8.70646 1.95696C8.89399 2.14449 8.99935 2.39885 8.99935 2.66406ZM8.33268 7.66406C8.33268 7.79538 8.30682 7.92542 8.25656 8.04675C8.20631 8.16807 8.13265 8.27831 8.03979 8.37117C7.94693 8.46403 7.83669 8.53769 7.71537 8.58794C7.59404 8.6382 7.464 8.66406 7.33268 8.66406C7.20136 8.66406 7.07132 8.6382 6.95 8.58794C6.82867 8.53769 6.71843 8.46403 6.62558 8.37117C6.53272 8.27831 6.45906 8.16807 6.4088 8.04675C6.35855 7.92542 6.33268 7.79538 6.33268 7.66406C6.33268 7.39885 6.43804 7.14449 6.62558 6.95696C6.81311 6.76942 7.06747 6.66406 7.33268 6.66406C7.5979 6.66406 7.85225 6.76942 8.03979 6.95696C8.22733 7.144449 8.33268 7.39885 8.33268 7.66406ZM4.33268 4.9974C4.33268 5.35102 4.19221 5.69016 3.94216 5.9402C3.69211 6.19025 3.35297 6.33073 2.99935 6.33073C2.64573 6.33073 2.30659 6.19025 2.05654 5.9402C1.80649 5.69016 1.66602 5.35102 1.66602 4.9974C1.66602 4.64377 1.80649 4.30464 2.05654 4.05459C2.30659 3.80454 2.64573 3.66406 2.99935 3.66406C3.35297 3.66406 3.69211 3.80454 3.94216 4.05459C4.19221 4.30464 4.33268 4.64377 4.33268 4.9974ZM6.99935 12.9974C6.99935 13.351 6.85887 13.6902 6.60882 13.9402C6.35878 14.1903 6.01964 14.3307 5.66602 14.3307C5.31239 14.3307 4.97326 14.1903 4.72321 13.9402C4.47316 13.6902 4.33268 13.351 4.33268 12.9974C4.33268 12.6438 4.47316 12.3046 4.72321 12.0546C4.97326 11.8045 5.31239 11.6641 5.66602 11.6641C6.01964 11.6641 6.35878 11.8045 6.60882 12.0546C6.85887 12.3046 6.99935 12.6438 6.99935 12.9974Z",stroke:n}),e.jsx("path",{d:"M9.00065 3.33333L11.6673 6.66667M9.66732 10.3333L7.00065 12.3333M5.33398 11.6667L3.33398 6.33333M4.20932 4.436L7.00065 3M8.33398 7.66667L11.004 7.896M8.00065 3.66667L7.33398 6.66667",stroke:n,strokeWidth:"0.666667",strokeLinecap:"round",strokeLinejoin:"round"})]}))};
|
|
2
|
+
//# sourceMappingURL=NeuralNetworkIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeuralNetworkIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),a=require("../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),o=require("./GptWebCitationImageCitation.js"),l=require("./GptWebCitationMarkdown.js"),s=require("./GptWebCitationSkeleton.js"),r=require("./utils/citationData.utils.js"),u=require("./GptWebCitation.module.css.js"),d=require("../../assests/svg/NeuralNetworkIcon.js"),c=function(i){var a=i.variant,o=i.disabled,l=i.onClick,s=i.title,r=i.style;return t.jsx("button",e.__assign({type:"button",className:u.default.webCitationButton,onClick:l,disabled:o,title:s,style:r},{children:"gpt"===a?t.jsxs(t.Fragment,{children:[t.jsx(d.default,{className:u.default.webCitationButtonIcon}),"View GPT Citation"]}):t.jsxs(t.Fragment,{children:[t.jsx(n.Globe,{size:24,className:u.default.webCitationButtonIcon}),"View Web Citation"]})}))},g=function(){return t.jsx(s.default,{})};exports.default=function(s){var d,v,p,_=s.gptCitation,b=s.isWebCitation,C=void 0!==b&&b,f=s.webCitationData,m=s.topic,x=s.sourceLabel,h=s.relevanceScore,j=s.learnedFrom,w=s.onGenerateWebCitation,y=s.isWebCitationLoading,N=void 0!==y&&y,W=s.showWebCitation,B=s.onToggleCitationView,F=s.showExpandImageButton,k=void 0===F||F,I=s.showGptMaximizeButton,q=s.styles,M=i.useMemo(function(){return function(t){var i,n,a,o,l,s,r,u,d;return{container:null==t?void 0:t.container,gptWrapper:e.__assign(e.__assign({},null===(i=null==t?void 0:t.gptCitation)||void 0===i?void 0:i.wrapper),null==t?void 0:t.gptCitationWrapper),gptFooterAction:e.__assign(e.__assign({},null===(n=null==t?void 0:t.gptCitation)||void 0===n?void 0:n.footerAction),null==t?void 0:t.footerAction),gptToggleButton:e.__assign(e.__assign({},null===(a=null==t?void 0:t.gptCitation)||void 0===a?void 0:a.toggleButton),null==t?void 0:t.webCitationButton),webPanel:e.__assign(e.__assign({},null==t?void 0:t.container),null===(o=null==t?void 0:t.webCitation)||void 0===o?void 0:o.panel),webHeader:null===(l=null==t?void 0:t.webCitation)||void 0===l?void 0:l.header,webContent:null===(s=null==t?void 0:t.webCitation)||void 0===s?void 0:s.content,webFooter:null===(r=null==t?void 0:t.webCitation)||void 0===r?void 0:r.footer,webToggleButton:e.__assign(e.__assign({},null===(u=null==t?void 0:t.webCitation)||void 0===u?void 0:u.toggleButton),null==t?void 0:t.webCitationButton),webLearnedFrom:null===(d=null==t?void 0:t.webCitation)||void 0===d?void 0:d.learnedFrom}}(q)},[q]),S=i.useMemo(function(){return e.__assign(e.__assign(e.__assign({},_),{disableMaximize:void 0!==I?!I:_.disableMaximize}),C?{DocumentTitle:void 0,previewCallback:void 0}:{})},[_,I,C]),T=i.useState(!1),D=T[0],G=T[1],z=i.useState(0),A=z[0],H=z[1],L=i.useState(0),P=L[0],E=L[1],U=null!=W?W:D,V=void 0!==W,O=i.useMemo(function(){return f?r.mapCitationDataToDisplay(f):null},[f]),R=null!==(d=null!=m?m:null==O?void 0:O.topic)&&void 0!==d?d:"Web Citation",J=null!==(v=null!=h?h:null==O?void 0:O.relevanceScore)&&void 0!==v?v:0,K=null!=j?j:null==O?void 0:O.learnedFrom,Q=null!==(p=null==O?void 0:O.content)&&void 0!==p?p:"",X=null==O?void 0:O.citationUrl,Y=r.getWebCitationImageUrl(f),Z=!!Y,$=!!Q,ee=Z||$,te=N&&!Z;i.useEffect(function(){H(0)},[Q,R,null==f?void 0:f.citationId]);var ie=i.useCallback(function(){B?B():V||G(!1)},[B,V]),ne=i.useCallback(function(){B?B():V||G(!0),ee||N||null==w||w()},[B,V,ee,N,w]),ae=i.useCallback(function(){H(function(e){return Math.min(e+1,Math.max(P-1,0))})},[P]),oe=i.useCallback(function(){H(function(e){return Math.max(e-1,0)})},[]),le=null!=x?x:"Source: Web Citation > ".concat(R),se=function(i){var n=!!S.DocumentTitle,o=n?"".concat(u.default.gptCitationWrapper," ").concat(u.default.gptCitationWrapperWithSource):u.default.gptCitationWrapper;return t.jsxs("div",e.__assign({className:o,style:M.gptWrapper},{children:[t.jsx(a.default,e.__assign({},S,{splitterCustomStyle:!0})),i&&(n?t.jsx("div",e.__assign({className:u.default.gptCitationFooterAction,style:M.gptFooterAction},{children:i})):t.jsx("div",e.__assign({className:u.default.gptCitationToggleFooter,style:M.gptFooterAction},{children:i})))]}))};return C?U?t.jsxs("div",e.__assign({className:u.default.panel,style:M.webPanel},{children:[t.jsxs("div",e.__assign({className:u.default.panelHeader,style:M.webHeader},{children:[t.jsx("span",e.__assign({className:u.default.panelSource},{children:le})),t.jsxs("div",e.__assign({className:u.default.panelHeaderActions},{children:[$&&!te&&P>0&&t.jsxs("div",e.__assign({className:u.default.pagination},{children:[t.jsx("button",e.__assign({type:"button",onClick:oe,disabled:0===A,className:u.default.paginationButton,"aria-label":"Previous highlight"},{children:t.jsx(n.ChevronUp,{size:14})})),t.jsxs("span",e.__assign({className:u.default.paginationLabel},{children:[A+1," / ",P]})),t.jsx("button",e.__assign({type:"button",onClick:ae,disabled:A>=P-1,className:u.default.paginationButton,"aria-label":"Next highlight"},{children:t.jsx(n.ChevronDown,{size:14})}))]})),J>0&&t.jsxs("div",e.__assign({className:u.default.confidenceBadge,title:"Decision strength"},{children:[t.jsx(n.Sparkles,{size:14}),J,"%"]}))]}))]})),t.jsx("div",e.__assign({className:"".concat(u.default.panelContent).concat(te||Z?" ".concat(u.default.panelContentExpanded):""),style:M.webContent},{children:te?t.jsx(g,{}):Z&&Y?t.jsx(o.default,{citationImage:Y,citationUrl:X,showExpandImageButton:k}):$?t.jsx(l.default,{content:Q,activeHighlightIndex:A,onHighlightCountChange:E}):t.jsx(g,{})})),t.jsxs("div",e.__assign({className:u.default.panelFooter,style:M.webFooter},{children:[t.jsx(c,{variant:"gpt",disabled:te,onClick:ie,style:M.webToggleButton}),K&&t.jsxs("span",e.__assign({className:u.default.learnedFrom,style:M.webLearnedFrom},{children:["Learned From ",K]}))]}))]})):t.jsx("div",e.__assign({className:u.default.overlay,style:M.container},{children:se(t.jsx(c,{variant:"web",disabled:N,onClick:ne,title:"View web-based citation for this source.",style:M.gptToggleButton}))})):t.jsx("div",e.__assign({className:u.default.overlay,style:M.container},{children:se()}))};
|
|
2
|
+
//# sourceMappingURL=GptWebCitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".GptWebCitation-module_overlay__OY5pa{display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_gptCitationWrapper__EN7nk{background-color:#fff;border:solid #e5e7eb;border-radius:8px;border-width:1px 1px 2px;box-shadow:0 1px 2px #0000000d;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:relative;width:100%}.GptWebCitation-module_gptCitationToggleFooter__ncfLT{align-items:center;background-color:#f2f4f7;border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;padding:1rem 1.5rem}.GptWebCitation-module_gptCitationFooterAction__WWpAY{align-items:center;bottom:0;box-sizing:border-box;display:flex;height:3rem;left:1.5rem;padding:0;pointer-events:none;position:absolute;z-index:2}.GptWebCitation-module_gptCitationFooterAction__WWpAY>*{pointer-events:auto}.GptWebCitation-module_gptCitationWrapperWithSource__1-ynq [class*=modalFooterSource]{justify-content:flex-end!important;padding-left:13rem}.GptWebCitation-module_panel__ek9Lq{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 2px #0000000d;color:#1f2937;display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_panelHeader__afwge{align-items:center;background-color:#f9fafb;border-bottom:1px solid #e5e7eb;display:flex;font-size:13px;gap:8px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_panelSource__oFl-c{color:#374151;flex:1;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GptWebCitation-module_panelHeaderActions__sGrhi{align-items:center;display:flex;flex-shrink:0;gap:8px}.GptWebCitation-module_pagination__VQvbY{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:6px;display:flex;gap:2px;padding:2px 4px}.GptWebCitation-module_paginationButton__fzJyQ{align-items:center;background:#0000;border:none;border-radius:4px;color:#6b7280;cursor:pointer;display:flex;justify-content:center;padding:2px}.GptWebCitation-module_paginationButton__fzJyQ:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_paginationButton__fzJyQ:disabled{cursor:not-allowed;opacity:.4}.GptWebCitation-module_paginationLabel__S7t1W{color:#6b7280;font-size:12px;min-width:36px;padding:0 4px;text-align:center}.GptWebCitation-module_confidenceBadge__4BBTf{align-items:center;background-color:#ecfdf5;border:1px solid #10b981;border-radius:9999px;color:#059669;display:inline-flex;font-size:13px;font-weight:500;gap:4px;padding:4px 10px}.GptWebCitation-module_panelContent__vg-mG{max-height:192px;overflow-y:auto;padding:8px 12px 12px}.GptWebCitation-module_panelContentExpanded__3aGjq{display:flex;flex-direction:column;max-height:none;min-height:384px;overflow:hidden}.GptWebCitation-module_markdownBody__5kdwH{color:#374151;font-size:14px;line-height:1.6}.GptWebCitation-module_markdownBody__5kdwH ol{list-style-type:lower-alpha;margin:0;padding-left:1.25rem}.GptWebCitation-module_markdownBody__5kdwH li{margin-bottom:8px}.GptWebCitation-module_markdownBody__5kdwH code{background-color:#f3f4f6;border-radius:4px;color:#1f2937;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;padding:1px 6px}.GptWebCitation-module_highlight__Xr1wl{background-color:#fef08a;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_highlightActive__iFuz5{background-color:#fde047;border:1px solid #eab308;box-shadow:0 1px 2px #0000001a}.GptWebCitation-module_citationLink__kH9JC{color:#2563eb;font-weight:500;text-decoration:none}.GptWebCitation-module_citationLink__kH9JC:hover{text-decoration:underline}.GptWebCitation-module_citationLinkActive__SShYx{background-color:#fef08a;border:1px solid #eab308;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_panelFooter__wm98C{align-items:center;background-color:#f9fafb;border-top:1px solid #e5e7eb;display:flex;font-size:13px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_webCitationButton__blI--{align-items:center;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;color:#2563eb;cursor:pointer;display:inline-flex;font-size:14px;font-weight:700;gap:8px;justify-content:center;line-height:1.25;min-width:180px;padding:6px 16px;transition:background-color .15s ease;white-space:nowrap}.GptWebCitation-module_webCitationButton__blI--:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_webCitationButton__blI--:disabled{cursor:not-allowed;opacity:.75}.GptWebCitation-module_webCitationButtonIcon__r9lPc{color:#2563eb;flex-shrink:0}.GptWebCitation-module_learnedFrom__DMyLS{color:#6b7280;font-size:13px}.GptWebCitation-module_imageCitationWrapper__iQUSw{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:12px;min-height:0;padding:8px 4px;width:100%}.GptWebCitation-module_imageCitationCenter__DMlqn{display:flex;flex:1;justify-content:center;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationViewport__xcotr{height:100%;max-width:100%;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar{width:8px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-thumb{background-color:#cbd5e1;border-radius:9999px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-track{background-color:initial}.GptWebCitation-module_citationImage__7rWdT{background-color:#f9fafb;border:none;border-radius:0;display:block;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_citationImagePreload__L7ibJ{height:0;opacity:0;pointer-events:none;position:absolute;visibility:hidden;width:0}.GptWebCitation-module_expandImageButton__598k6{align-items:center;background-color:#374151eb;border:none;border-radius:6px;bottom:12px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:12px;transition:background-color .15s ease;width:32px;z-index:2}.GptWebCitation-module_expandImageButton__598k6:hover{background-color:#1f2937}.GptWebCitation-module_expandImageButton__598k6 svg{flex-shrink:0}.GptWebCitation-module_fullScreenOverlay__Z5U8h{align-items:center;backdrop-filter:blur(4px);background-color:#0009;display:flex;inset:0;justify-content:center;overflow:hidden;overscroll-behavior:contain;padding:16px;position:fixed;z-index:1100}.GptWebCitation-module_fullScreenContent__xIXZR{background-color:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 25px 50px -12px #00000040;max-height:90vh;max-width:95vw;overflow:hidden;position:relative}.GptWebCitation-module_fullScreenCloseButton__lnaT1{align-items:center;background-color:#374151eb;border:none;border-radius:6px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:16px;top:16px;transition:background-color .15s ease;width:32px;z-index:1}.GptWebCitation-module_fullScreenCloseButton__lnaT1:hover{background-color:#1f2937}.GptWebCitation-module_fullScreenImageWrapper__ADPGU{align-items:flex-start;display:flex;justify-content:center;max-height:80vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_fullScreenImage__jLVAQ{border-radius:12px;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_visitLinkRow__H8ai5{align-items:center;display:flex;flex-shrink:0;gap:12px;justify-content:flex-start;padding:4px 8px 0;width:100%}.GptWebCitation-module_visitLinkHint__FAwob{color:#6b7280;font-size:13px;line-height:1.4}.GptWebCitation-module_visitLink__1BDo8{align-items:center;background-color:#2563eb1f;border-radius:6px;color:#2563eb;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;gap:6px;padding:6px 12px;text-decoration:none;white-space:nowrap}.GptWebCitation-module_visitLink__1BDo8:hover{background-color:#2563eb2e;text-decoration:none}.GptWebCitation-module_skeleton__1q51h{align-items:center;background-color:#f3f4f6;border-radius:12px;display:flex;justify-content:center;min-height:384px;overflow:hidden;padding:24px;position:relative;width:100%}.GptWebCitation-module_skeletonText__E6XgN{color:#6b7280;font-size:14px;line-height:1.5;max-width:320px;position:relative;text-align:center;z-index:1}.GptWebCitation-module_skeletonShimmer__yqWJh{animation:GptWebCitation-module_shimmer__-ZbQA 1.5s linear infinite;background:linear-gradient(90deg,#0000,#fff9,#0000);inset:0;position:absolute}@keyframes GptWebCitation-module_shimmer__-ZbQA{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={overlay:"GptWebCitation-module_overlay__OY5pa",gptCitationWrapper:"GptWebCitation-module_gptCitationWrapper__EN7nk",gptCitationToggleFooter:"GptWebCitation-module_gptCitationToggleFooter__ncfLT",gptCitationFooterAction:"GptWebCitation-module_gptCitationFooterAction__WWpAY",gptCitationWrapperWithSource:"GptWebCitation-module_gptCitationWrapperWithSource__1-ynq",panel:"GptWebCitation-module_panel__ek9Lq",panelHeader:"GptWebCitation-module_panelHeader__afwge",panelSource:"GptWebCitation-module_panelSource__oFl-c",panelHeaderActions:"GptWebCitation-module_panelHeaderActions__sGrhi",pagination:"GptWebCitation-module_pagination__VQvbY",paginationButton:"GptWebCitation-module_paginationButton__fzJyQ",paginationLabel:"GptWebCitation-module_paginationLabel__S7t1W",confidenceBadge:"GptWebCitation-module_confidenceBadge__4BBTf",panelContent:"GptWebCitation-module_panelContent__vg-mG",panelContentExpanded:"GptWebCitation-module_panelContentExpanded__3aGjq",markdownBody:"GptWebCitation-module_markdownBody__5kdwH",highlight:"GptWebCitation-module_highlight__Xr1wl",highlightActive:"GptWebCitation-module_highlightActive__iFuz5",citationLink:"GptWebCitation-module_citationLink__kH9JC",citationLinkActive:"GptWebCitation-module_citationLinkActive__SShYx",panelFooter:"GptWebCitation-module_panelFooter__wm98C",webCitationButton:"GptWebCitation-module_webCitationButton__blI--",webCitationButtonIcon:"GptWebCitation-module_webCitationButtonIcon__r9lPc",learnedFrom:"GptWebCitation-module_learnedFrom__DMyLS",imageCitationWrapper:"GptWebCitation-module_imageCitationWrapper__iQUSw",imageCitationCenter:"GptWebCitation-module_imageCitationCenter__DMlqn",imageCitationViewport:"GptWebCitation-module_imageCitationViewport__xcotr",imageCitationScrollContainer:"GptWebCitation-module_imageCitationScrollContainer__bAQNk",citationImage:"GptWebCitation-module_citationImage__7rWdT",citationImagePreload:"GptWebCitation-module_citationImagePreload__L7ibJ",expandImageButton:"GptWebCitation-module_expandImageButton__598k6",fullScreenOverlay:"GptWebCitation-module_fullScreenOverlay__Z5U8h",fullScreenContent:"GptWebCitation-module_fullScreenContent__xIXZR",fullScreenCloseButton:"GptWebCitation-module_fullScreenCloseButton__lnaT1",fullScreenImageWrapper:"GptWebCitation-module_fullScreenImageWrapper__ADPGU",fullScreenImage:"GptWebCitation-module_fullScreenImage__jLVAQ",visitLinkRow:"GptWebCitation-module_visitLinkRow__H8ai5",visitLinkHint:"GptWebCitation-module_visitLinkHint__FAwob",visitLink:"GptWebCitation-module_visitLink__1BDo8",skeleton:"GptWebCitation-module_skeleton__1q51h",skeletonText:"GptWebCitation-module_skeletonText__E6XgN",skeletonShimmer:"GptWebCitation-module_skeletonShimmer__yqWJh",shimmer:"GptWebCitation-module_shimmer__-ZbQA"};
|
|
2
|
+
//# sourceMappingURL=GptWebCitation.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),a=require("react"),t=require("lucide-react"),n=require("./GptWebCitationImageFullScreenView.js"),s=require("./GptWebCitationSkeleton.js"),r=require("./utils/citationData.utils.js"),l=require("./GptWebCitation.module.css.js");exports.default=function(o){var u=o.citationImage,c=o.citationUrl,d=o.showExpandImageButton,g=void 0===d||d,f=a.useState(!1),m=f[0],x=f[1],j=a.useState("loading"),p=j[0],_=j[1];a.useEffect(function(){var e=!0;_("loading"),x(!1);var i=new Image;return i.onload=function(){e&&_("loaded")},i.onerror=function(){e&&_("error")},i.src=u,function(){e=!1,i.onload=null,i.onerror=null}},[u]);var v="loaded"===p,h=r.sanitizeExternalUrl(c);return i.jsxs("div",e.__assign({className:l.default.imageCitationWrapper},{children:[i.jsx("div",e.__assign({className:l.default.imageCitationCenter},{children:v?i.jsxs("div",e.__assign({className:l.default.imageCitationViewport},{children:[i.jsx("div",e.__assign({className:l.default.imageCitationScrollContainer},{children:i.jsx("img",{src:u,alt:"Web citation snapshot",className:l.default.citationImage})})),g&&i.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),x(!0)},className:l.default.expandImageButton,"aria-label":"View citation image in full screen",title:"Expand image"},{children:i.jsx(t.Maximize2,{size:16,strokeWidth:2})}))]})):i.jsx(s.default,{})})),h&&i.jsxs("div",e.__assign({className:l.default.visitLinkRow},{children:[i.jsx("span",e.__assign({className:l.default.visitLinkHint},{children:"Open link in new tab to read in detail"})),i.jsxs("a",e.__assign({href:h,target:"_blank",rel:"noreferrer",className:l.default.visitLink},{children:["Visit Link",i.jsx(t.SquareArrowOutUpRight,{size:16})]}))]})),m&&v&&i.jsx(n.default,{src:u,onClose:function(){return x(!1)}})]}))};
|
|
2
|
+
//# sourceMappingURL=GptWebCitationImageCitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationImageCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),l=require("react-dom"),o=require("lucide-react"),s=require("./GptWebCitation.module.css.js"),a=function(e){return e.stopPropagation()},n=function(e){e.stopPropagation()};exports.default=function(i){var u=i.src,c=i.onClose;return t.useEffect(function(){var e=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}},[]),l.createPortal(r.jsx("div",e.__assign({role:"dialog","aria-modal":"true",className:s.default.fullScreenOverlay,onClick:c,onWheel:n},{children:r.jsxs("div",e.__assign({className:s.default.fullScreenContent,onClick:a},{children:[r.jsx("button",e.__assign({type:"button",onClick:c,className:s.default.fullScreenCloseButton,"aria-label":"Close full screen view"},{children:r.jsx(o.X,{size:18,strokeWidth:2})})),r.jsx("div",e.__assign({className:s.default.fullScreenImageWrapper},{children:r.jsx("img",{src:u,alt:"Citation full view",className:s.default.fullScreenImage})}))]}))})),document.body)};
|
|
2
|
+
//# sourceMappingURL=GptWebCitationImageFullScreenView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationImageFullScreenView.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),n=require("react"),t=require("react-markdown"),i=require("rehype-raw"),l=require("./utils/citationData.utils.js"),c=require("./GptWebCitation.module.css.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(t),u=a(i);exports.default=function(t){var i=t.content,a=t.activeHighlightIndex,o=t.onHighlightCountChange,h=n.useRef(null),d=n.useMemo(function(){var e,r=i.match(/id=["']highlighted-\d+["']/g);if(null==r?void 0:r.length)return r.length;var n=i.match(/<a\b[^>]*>/gi);return null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0},[i]),f=n.useMemo(function(){return/id=["']highlighted-\d+["']/.test(i)},[i]);n.useEffect(function(){null==o||o(d)},[d,o]),n.useEffect(function(){var e;if(h.current){var r=h.current.querySelector("#highlighted-".concat(a));if(r)r.scrollIntoView({behavior:"smooth",block:"center"});else null===(e=h.current.querySelectorAll("a[href]")[a])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})}},[a,i]);var g=n.useMemo(function(){var n=-1;return{span:function(n){n.node;var t=e.__rest(n,["node"]),i=t.id;if(null==i?void 0:i.startsWith("highlighted-")){var l=Number(i.replace("highlighted-",""))===a;return r.jsx("span",e.__assign({},t,{id:i,className:"".concat(c.default.highlight).concat(l?" ".concat(c.default.highlightActive):"")}))}return r.jsx("span",e.__assign({},t))},a:function(t){var i,s=t.children,u=t.href,o=t.title,h=t.className;if(!u)return r.jsx(r.Fragment,{children:s});n+=1;var d=!f&&n===a,g=null!==(i=l.sanitizeExternalUrl(u))&&void 0!==i?i:"#";return r.jsx("a",e.__assign({href:g,title:o,target:"_blank",rel:"noreferrer",className:"".concat(c.default.citationLink).concat(d?" ".concat(c.default.citationLinkActive):"").concat(h?" ".concat(h):"")},{children:s}))},code:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("code",e.__assign({},i,{children:t}))},ol:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("ol",e.__assign({},i,{children:t}))},ul:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("ul",e.__assign({},i,{children:t}))},li:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("li",e.__assign({},i,{children:t}))},p:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("p",e.__assign({},i,{children:t}))}}},[a,f,i]);return r.jsx("div",e.__assign({ref:h,className:c.default.markdownBody},{children:r.jsx(s.default,e.__assign({rehypePlugins:[u.default],components:g},{children:i}))}))};
|
|
2
|
+
//# sourceMappingURL=GptWebCitationMarkdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("./GptWebCitation.module.css.js");exports.default=function(){return s.jsxs("div",e.__assign({className:t.default.skeleton},{children:[s.jsx("span",e.__assign({className:t.default.skeletonText},{children:"Loading a snapshot of citation from source website..."})),s.jsx("div",{className:t.default.skeletonShimmer})]}))};
|
|
2
|
+
//# sourceMappingURL=GptWebCitationSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationSkeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(t){return t?t.replace(/\\"/g,'"').replace(/\\'/g,"'").trim():""},e=function(t){if(null==t?void 0:t.trim()){var e=t.trim();if(!/^(javascript|data|vbscript):/i.test(e))try{var r=new URL(e);if("http:"===r.protocol||"https:"===r.protocol)return e}catch(t){if(e.startsWith("gs://"))return e}}},r=function(e){if(e)for(var r=t(e),i=0,a=[/decision strength is\s+([\d.]+)\s*%/i,/relevance score is\s+([\d.]+)\s*%/i,/confidence(?:\s+score)?(?:\s+is)?\s+([\d.]+)\s*%/i];i<a.length;i++){var n=a[i],o=r.match(n);if(null==o?void 0:o[1]){var c=Number(o[1]);if(!Number.isNaN(c))return c}}},i=function(e){if(e){var r=t(e).match(/<a\b[^>]*>(.*?)<\/a>/i);if(null==r?void 0:r[1]){var i=r[1].replace(/<[^>]*>?/gm,"").trim();if(i)return i}}},a=function(t){if(t)try{var e=new URL(t).hostname.replace(/^www\./i,""),r=e.split(".");if(r.length<2)return e;var i=r[r.length-2];return i.charAt(0).toUpperCase()+i.slice(1)}catch(t){return}},n=function(t){var r,i,a,n=e(null===(r=null==t?void 0:t.imageMetadata)||void 0===r?void 0:r.signed_url);if(n)return n;var o=null===(a=null===(i=null==t?void 0:t.imageMetadata)||void 0===i?void 0:i.gs_uri)||void 0===a?void 0:a.trim();return(null==o?void 0:o.startsWith("gs://"))?o:void 0};exports.extractLearnedFromUrl=a,exports.extractRelevanceScoreFromContent=r,exports.extractTopicFromContent=i,exports.getWebCitationImageUrl=n,exports.mapCitationDataToDisplay=function(o){var c,l,s=t(o.content);return{citationId:o.citationId,content:s,citationType:o.citationType,citationUrl:e(o.citationUrl),topic:null!==(c=i(s))&&void 0!==c?c:"Web Citation",relevanceScore:null!==(l=r(s))&&void 0!==l?l:0,learnedFrom:a(o.citationUrl),web_citation_gcs_url:n(o),userId:o.userId,userName:o.userName,userEmail:o.userEmail,db:o.db,imageMetadata:o.imageMetadata}},exports.sanitizeExternalUrl=e;
|
|
2
|
+
//# sourceMappingURL=citationData.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citationData.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),l=require("react/jsx-runtime"),i=require("react"),s=require("../components/CitationAIConfidenceDisplay.js"),n=require("../AiReasoning/components/icons/FullScreenIcon.js"),a=require("./components/ImagePreviewDialog.js"),t=require("@mui/material"),r=require("./WebCitationWithImageContent.module.css.js");exports.default=function(o){var d,c,u,g,v,f,m,h=null===(d=null==o?void 0:o.closeCitationConfig)||void 0===d?void 0:d.CloseIcon,C=o.visitIcon,j=i.useState(!1),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),l=require("react/jsx-runtime"),i=require("react"),s=require("../components/CitationAIConfidenceDisplay.js"),n=require("../AiReasoning/components/icons/FullScreenIcon.js"),a=require("./components/ImagePreviewDialog.js"),t=require("@mui/material"),r=require("./WebCitationWithImageContent.module.css.js");exports.default=function(o){var d,c,u,g,v,f,m,h=null===(d=null==o?void 0:o.closeCitationConfig)||void 0===d?void 0:d.CloseIcon,C=o.visitIcon,j=i.useState(!1),_=j[0],p=j[1],x=null===(c=null==o?void 0:o.cachingConfig)||void 0===c?void 0:c.queryClient,y=o.styles,N=["getSignedUrl",o.gsUtilPath||""],I=null!==(g=null===(u=o.cachingConfig)||void 0===u?void 0:u.useGetSignedUrlQuery)&&void 0!==g?g:function(){return{data:void 0}},P=null!==(f=null===(v=o.cachingConfig)||void 0===v?void 0:v.useGetSignedUrlMutation)&&void 0!==f?f:function(){return{mutate:function(e){},isPending:!1}},U=I((null==o?void 0:o.gsUtilPath)||"",N).data,S=P((null==o?void 0:o.gsUtilPath)||""),k=S.mutate,D=S.isPending;return i.useEffect(function(){o.signedUrl||o.gsUtilPath&&(((null==x?void 0:x.getQueryData)?x.getQueryData(N):void 0)||k({gsUtilPath:o.gsUtilPath}))},[o.gsUtilPath,o.signedUrl,x,k]),l.jsxs("div",e.__assign({className:r.default.container,style:null==y?void 0:y.container},{children:[l.jsxs("div",e.__assign({className:r.default.header,style:null==y?void 0:y.header},{children:[l.jsx("div",e.__assign({className:r.default.headerLeft,style:null==y?void 0:y.headerLeft},{children:l.jsx("a",e.__assign({className:r.default.link,target:"_blank",rel:"noopener noreferrer",href:o.url},{children:o.label}))})),(null==o?void 0:o.closeCitationConfig)?l.jsxs("div",e.__assign({className:r.default.headerActions,style:null==y?void 0:y.headerActions},{children:[s.renderCitationAIConfidenceDisplay(o.relevanceScore,!1,null==y?void 0:y.aiConfidenceDisplayPill),l.jsx("div",{className:r.default.divider,style:null==y?void 0:y.divider}),h&&l.jsx("div",e.__assign({className:r.default.closeIconWrapper,style:null==y?void 0:y.closeIconWrapper,onClick:o.closeCitationConfig.handleCloseCitationPreview},{children:l.jsx(h,{className:r.default.closeIcon})}))]})):l.jsx(l.Fragment,{children:s.renderCitationAIConfidenceDisplay(o.relevanceScore,!0,null==y?void 0:y.aiConfidenceDisplayPill)})]})),o.signedUrl?l.jsxs("div",e.__assign({className:r.default.imageWrapper,style:null==y?void 0:y.imageWrapper},{children:[l.jsx("img",{src:o.signedUrl,alt:"images",className:r.default.image,style:null==y?void 0:y.image}),l.jsx("div",e.__assign({className:r.default.fullScreenButton,style:null==y?void 0:y.fullScreenButton,onClick:function(){return p(!0)}},{children:l.jsx(n.default,{})})),l.jsx(a.default,{open:_,handleClose:function(){return p(!1)},src:o.signedUrl,CloseIcon:o.PreviewDialogCloseIcon,styles:null===(m=o.styles)||void 0===m?void 0:m.previewDialogStyles})]})):D?l.jsxs("div",e.__assign({className:r.default.loaderContainer},{children:[l.jsx("style",{children:".mui-circular-progress-circle { stroke-linecap: round; }"}),l.jsx(t.CircularProgress,{size:48,thickness:4,style:{color:"#4F85FF"},classes:{circle:"mui-circular-progress-circle"}}),l.jsx("span",e.__assign({className:r.default.loaderText,style:null==y?void 0:y.loaderText},{children:"Loading Image..."}))]})):U&&l.jsxs("div",e.__assign({className:r.default.imageWrapper},{children:[l.jsx("img",{src:U,alt:"images",className:r.default.image,style:null==y?void 0:y.image}),l.jsx("div",e.__assign({className:r.default.fullScreenButton,style:null==y?void 0:y.fullScreenButton,onClick:function(){return p(!0)}},{children:l.jsx(n.default,{})})),l.jsx(a.default,{open:_,handleClose:function(){return p(!1)},src:U,CloseIcon:o.PreviewDialogCloseIcon,styles:null==y?void 0:y.previewDialogStyles})]})),l.jsx("div",e.__assign({className:r.default.footer,style:null==y?void 0:y.footer},{children:l.jsxs("div",e.__assign({className:r.default.footerContent,style:null==y?void 0:y.footerContent},{children:[l.jsx("span",{children:"Open link in new tab to read in detail"}),l.jsxs("a",e.__assign({className:r.default.visitLink,style:null==y?void 0:y.visitLink,href:o.url,target:"_blank",rel:"noopener noreferrer"},{children:["Visit Link",l.jsx(C,{className:r.default.visitIcon})]}))]}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".WebCitationWithImageContent-module_container__0caP3{border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:1rem;height:100%;min-height:200px;position:relative}.WebCitationWithImageContent-module_header__yd-ED{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.WebCitationWithImageContent-module_headerLeft__vemHH{align-items:center;display:flex;flex-direction:row;gap:.5rem}.WebCitationWithImageContent-module_link__9am5l{color:#1f2937;font-weight:600;text-decoration-color:#1f2937;text-decoration:none}.WebCitationWithImageContent-module_headerActions__pinS2{align-items:center;display:flex;flex-direction:row;gap:1rem;justify-content:space-between}.WebCitationWithImageContent-module_divider__OR-bP{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.WebCitationWithImageContent-module_closeIconWrapper__D6HHj{cursor:pointer}.WebCitationWithImageContent-module_closeIcon__CDrjR{color:#6b7280;height:1.5rem;width:1.5rem}.WebCitationWithImageContent-module_imageWrapper__Zk2jF{padding-left:.75rem;padding-right:.75rem;position:relative}.WebCitationWithImageContent-module_image__KJMJS{border:1px solid #e5e7eb;border-radius:8px;width:100%}.WebCitationWithImageContent-module_fullScreenButton__JH8MC{background-color:#f9fafb;border:1px solid #d0d5dd;border-radius:8px;bottom:.5rem;cursor:pointer;padding:.5rem;position:absolute;right:1.25rem}.WebCitationWithImageContent-module_loaderContainer__9UQBM{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:400px}.WebCitationWithImageContent-module_loaderText__fqlg2{color:#4b5563;font-size:.875rem;font-weight:500;margin-top:.5rem}.WebCitationWithImageContent-module_footer__7-3Et{align-items:center;display:flex;flex-direction:row;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".WebCitationWithImageContent-module_container__0caP3{border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:1rem;height:100%;min-height:200px;position:relative}.WebCitationWithImageContent-module_header__yd-ED{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.WebCitationWithImageContent-module_headerLeft__vemHH{align-items:center;display:flex;flex-direction:row;gap:.5rem}.WebCitationWithImageContent-module_link__9am5l{color:#1f2937;font-weight:600;text-decoration-color:#1f2937;text-decoration:none}.WebCitationWithImageContent-module_headerActions__pinS2{align-items:center;display:flex;flex-direction:row;gap:1rem;justify-content:space-between}.WebCitationWithImageContent-module_divider__OR-bP{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.WebCitationWithImageContent-module_closeIconWrapper__D6HHj{cursor:pointer}.WebCitationWithImageContent-module_closeIcon__CDrjR{color:#6b7280;height:1.5rem;width:1.5rem}.WebCitationWithImageContent-module_imageWrapper__Zk2jF{padding-left:.75rem;padding-right:.75rem;position:relative}.WebCitationWithImageContent-module_image__KJMJS{border:1px solid #e5e7eb;border-radius:8px;width:100%}.WebCitationWithImageContent-module_fullScreenButton__JH8MC{background-color:#f9fafb;border:1px solid #d0d5dd;border-radius:8px;bottom:.5rem;cursor:pointer;padding:.5rem;position:absolute;right:1.25rem}.WebCitationWithImageContent-module_loaderContainer__9UQBM{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:400px}.WebCitationWithImageContent-module_loaderText__fqlg2{color:#4b5563;font-size:.875rem;font-weight:500;margin-top:.5rem}.WebCitationWithImageContent-module_footer__7-3Et{box-sizing:border-box;flex-shrink:0;padding:4px 12px 12px;width:100%}.WebCitationWithImageContent-module_footerContent__U60cY{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-start;width:100%}.WebCitationWithImageContent-module_footerContent__U60cY>span{color:#6b7280;font-size:13px;line-height:1.4}.WebCitationWithImageContent-module_visitLink__YiGQo{align-items:center;background-color:#2563eb1f;border-radius:6px;color:#2563eb;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;gap:6px;padding:6px 12px;text-decoration:none;white-space:nowrap}.WebCitationWithImageContent-module_visitLink__YiGQo:hover{background-color:#2563eb2e;text-decoration:none}.WebCitationWithImageContent-module_visitIcon__FjN9-{color:#2563eb;flex-shrink:0;height:1rem;width:1rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"WebCitationWithImageContent-module_container__0caP3",header:"WebCitationWithImageContent-module_header__yd-ED",headerLeft:"WebCitationWithImageContent-module_headerLeft__vemHH",link:"WebCitationWithImageContent-module_link__9am5l",headerActions:"WebCitationWithImageContent-module_headerActions__pinS2",divider:"WebCitationWithImageContent-module_divider__OR-bP",closeIconWrapper:"WebCitationWithImageContent-module_closeIconWrapper__D6HHj",closeIcon:"WebCitationWithImageContent-module_closeIcon__CDrjR",imageWrapper:"WebCitationWithImageContent-module_imageWrapper__Zk2jF",image:"WebCitationWithImageContent-module_image__KJMJS",fullScreenButton:"WebCitationWithImageContent-module_fullScreenButton__JH8MC",loaderContainer:"WebCitationWithImageContent-module_loaderContainer__9UQBM",loaderText:"WebCitationWithImageContent-module_loaderText__fqlg2",footer:"WebCitationWithImageContent-module_footer__7-3Et",footerContent:"WebCitationWithImageContent-module_footerContent__U60cY",visitLink:"WebCitationWithImageContent-module_visitLink__YiGQo",visitIcon:"WebCitationWithImageContent-module_visitIcon__FjN9-"};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageContent.module.css.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"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),r=require("./features/Bookemon/Bookemon.js"),o=require("./features/PdfEditorCitation/PdfEditorCitation.js"),a=require("./features/CitationRenderer/CitationRenderer.js"),n=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),p=require("./features/ChatCitation/ChatCitationRenderer.js"),d=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),f=require("./features/PdfViewer/PdfViewer.js"),l=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"),S=require("./features/ScannedDocCitation/ScannedDocCitation.js"),D=require("./features/ChatDrawer/ChatDrawer.js"),E=require("./features/ChatDrawer/constants/ChatDrawer.js"),b=require("./features/SplitterCitations/SplitterCitationsComponent.js"),A=require("./features/CognitiveCompare/CognitiveCompare.js"),v=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),P=require("./features/TextualGuidelines/TextualGuideLinesComponent.js"),w=require("./features/IngestionStatus/IngestionStatusComponent.js"),W=require("./features/ManageRemainders/ManageReminders.js"),h=require("./features/GptWebCitation/GptWebCitation.js"),_=require("./features/GptWebCitation/utils/citationData.utils.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=r.default,exports.PdfCitation=o.PdfEditorCitation,exports.CitationRenderer=a.default,exports.MarkdownRenderer=n.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=C.default,exports.InternalgptReasoningComponent=u.default,exports.NonWebReasoningComponent=u.default,exports.ChatCitation=p.default,exports.CognitiveDecisioningCard=d.default,exports.PdfViewer=f.default,exports.FaqCitation=l.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=S.default,exports.ChatDrawer=D.default,exports.FILE_INGESTION_STATUS=E.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=E.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=E.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=b.default,exports.CognitiveCompare=A.default,exports.CognitiveInternalgptCoreComponent=v.default,exports.TextualGuideLinesComponent=P.default,exports.IngestionStatusChip=w.IngestionStatusChip,exports.IngestionStatusComponent=w.IngestionStatusComponent,exports.ManageReminders=W.ManageReminders,exports.GptWebCitation=h.default,exports.extractLearnedFromUrl=_.extractLearnedFromUrl,exports.extractRelevanceScoreFromContent=_.extractRelevanceScoreFromContent,exports.extractTopicFromContent=_.extractTopicFromContent,exports.getWebCitationImageUrl=_.getWebCitationImageUrl,exports.mapCitationDataToDisplay=_.mapCitationDataToDisplay,exports.sanitizeExternalUrl=_.sanitizeExternalUrl;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as i,jsxs as n,Fragment as e}from"react/jsx-runtime";import{useMemo as o,useState as l,useEffect as a,useCallback as r}from"react";import{ChevronUp as c,ChevronDown as d,Sparkles as s,Globe as u}from"lucide-react";import v from"../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";import p from"./GptWebCitationImageCitation.js";import m from"./GptWebCitationMarkdown.js";import g from"./GptWebCitationSkeleton.js";import{mapCitationDataToDisplay as b,getWebCitationImageUrl as C}from"./utils/citationData.utils.js";import h from"./GptWebCitation.module.css.js";import w from"../../assests/svg/NeuralNetworkIcon.js";var f=function(o){var l=o.variant,a=o.disabled,r=o.onClick,c=o.title,d=o.style;return i("button",t({type:"button",className:h.webCitationButton,onClick:r,disabled:a,title:c,style:d},{children:n(e,"gpt"===l?{children:[i(w,{className:h.webCitationButtonIcon}),"View GPT Citation"]}:{children:[i(u,{size:24,className:h.webCitationButtonIcon}),"View Web Citation"]})}))},N=function(){return i(g,{})},y=function(e){var u,g,w,y=e.gptCitation,W=e.isWebCitation,B=void 0!==W&&W,F=e.webCitationData,x=e.topic,I=e.sourceLabel,k=e.relevanceScore,T=e.learnedFrom,j=e.onGenerateWebCitation,z=e.isWebCitationLoading,A=void 0!==z&&z,G=e.showWebCitation,M=e.onToggleCitationView,S=e.showExpandImageButton,H=void 0===S||S,L=e.showGptMaximizeButton,D=e.styles,P=o(function(){return function(i){var n,e,o,l,a,r,c,d,s;return{container:null==i?void 0:i.container,gptWrapper:t(t({},null===(n=null==i?void 0:i.gptCitation)||void 0===n?void 0:n.wrapper),null==i?void 0:i.gptCitationWrapper),gptFooterAction:t(t({},null===(e=null==i?void 0:i.gptCitation)||void 0===e?void 0:e.footerAction),null==i?void 0:i.footerAction),gptToggleButton:t(t({},null===(o=null==i?void 0:i.gptCitation)||void 0===o?void 0:o.toggleButton),null==i?void 0:i.webCitationButton),webPanel:t(t({},null==i?void 0:i.container),null===(l=null==i?void 0:i.webCitation)||void 0===l?void 0:l.panel),webHeader:null===(a=null==i?void 0:i.webCitation)||void 0===a?void 0:a.header,webContent:null===(r=null==i?void 0:i.webCitation)||void 0===r?void 0:r.content,webFooter:null===(c=null==i?void 0:i.webCitation)||void 0===c?void 0:c.footer,webToggleButton:t(t({},null===(d=null==i?void 0:i.webCitation)||void 0===d?void 0:d.toggleButton),null==i?void 0:i.webCitationButton),webLearnedFrom:null===(s=null==i?void 0:i.webCitation)||void 0===s?void 0:s.learnedFrom}}(D)},[D]),V=o(function(){return t(t(t({},y),{disableMaximize:void 0!==L?!L:y.disableMaximize}),B?{DocumentTitle:void 0,previewCallback:void 0}:{})},[y,L,B]),E=l(!1),U=E[0],R=E[1],q=l(0),J=q[0],K=q[1],O=l(0),Q=O[0],X=O[1],Y=null!=G?G:U,Z=void 0!==G,$=o(function(){return F?b(F):null},[F]),_=null!==(u=null!=x?x:null==$?void 0:$.topic)&&void 0!==u?u:"Web Citation",tt=null!==(g=null!=k?k:null==$?void 0:$.relevanceScore)&&void 0!==g?g:0,it=null!=T?T:null==$?void 0:$.learnedFrom,nt=null!==(w=null==$?void 0:$.content)&&void 0!==w?w:"",et=null==$?void 0:$.citationUrl,ot=C(F),lt=!!ot,at=!!nt,rt=lt||at,ct=A&&!lt;a(function(){K(0)},[nt,_,null==F?void 0:F.citationId]);var dt=r(function(){M?M():Z||R(!1)},[M,Z]),st=r(function(){M?M():Z||R(!0),rt||A||null==j||j()},[M,Z,rt,A,j]),ut=r(function(){K(function(t){return Math.min(t+1,Math.max(Q-1,0))})},[Q]),vt=r(function(){K(function(t){return Math.max(t-1,0)})},[]),pt=null!=I?I:"Source: Web Citation > ".concat(_),mt=function(e){var o=!!V.DocumentTitle,l=o?"".concat(h.gptCitationWrapper," ").concat(h.gptCitationWrapperWithSource):h.gptCitationWrapper;return n("div",t({className:l,style:P.gptWrapper},{children:[i(v,t({},V,{splitterCustomStyle:!0})),e&&i("div",t(o?{className:h.gptCitationFooterAction,style:P.gptFooterAction}:{className:h.gptCitationToggleFooter,style:P.gptFooterAction},{children:e}))]}))};return B?Y?n("div",t({className:h.panel,style:P.webPanel},{children:[n("div",t({className:h.panelHeader,style:P.webHeader},{children:[i("span",t({className:h.panelSource},{children:pt})),n("div",t({className:h.panelHeaderActions},{children:[at&&!ct&&Q>0&&n("div",t({className:h.pagination},{children:[i("button",t({type:"button",onClick:vt,disabled:0===J,className:h.paginationButton,"aria-label":"Previous highlight"},{children:i(c,{size:14})})),n("span",t({className:h.paginationLabel},{children:[J+1," / ",Q]})),i("button",t({type:"button",onClick:ut,disabled:J>=Q-1,className:h.paginationButton,"aria-label":"Next highlight"},{children:i(d,{size:14})}))]})),tt>0&&n("div",t({className:h.confidenceBadge,title:"Decision strength"},{children:[i(s,{size:14}),tt,"%"]}))]}))]})),i("div",t({className:"".concat(h.panelContent).concat(ct||lt?" ".concat(h.panelContentExpanded):""),style:P.webContent},{children:ct?i(N,{}):lt&&ot?i(p,{citationImage:ot,citationUrl:et,showExpandImageButton:H}):at?i(m,{content:nt,activeHighlightIndex:J,onHighlightCountChange:X}):i(N,{})})),n("div",t({className:h.panelFooter,style:P.webFooter},{children:[i(f,{variant:"gpt",disabled:ct,onClick:dt,style:P.webToggleButton}),it&&n("span",t({className:h.learnedFrom,style:P.webLearnedFrom},{children:["Learned From ",it]}))]}))]})):i("div",t({className:h.overlay,style:P.container},{children:mt(i(f,{variant:"web",disabled:A,onClick:st,title:"View web-based citation for this source.",style:P.gptToggleButton}))})):i("div",t({className:h.overlay,style:P.container},{children:mt()}))};export{y as default};
|
|
2
|
+
//# sourceMappingURL=GptWebCitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={overlay:"GptWebCitation-module_overlay__OY5pa",gptCitationWrapper:"GptWebCitation-module_gptCitationWrapper__EN7nk",gptCitationToggleFooter:"GptWebCitation-module_gptCitationToggleFooter__ncfLT",gptCitationFooterAction:"GptWebCitation-module_gptCitationFooterAction__WWpAY",gptCitationWrapperWithSource:"GptWebCitation-module_gptCitationWrapperWithSource__1-ynq",panel:"GptWebCitation-module_panel__ek9Lq",panelHeader:"GptWebCitation-module_panelHeader__afwge",panelSource:"GptWebCitation-module_panelSource__oFl-c",panelHeaderActions:"GptWebCitation-module_panelHeaderActions__sGrhi",pagination:"GptWebCitation-module_pagination__VQvbY",paginationButton:"GptWebCitation-module_paginationButton__fzJyQ",paginationLabel:"GptWebCitation-module_paginationLabel__S7t1W",confidenceBadge:"GptWebCitation-module_confidenceBadge__4BBTf",panelContent:"GptWebCitation-module_panelContent__vg-mG",panelContentExpanded:"GptWebCitation-module_panelContentExpanded__3aGjq",markdownBody:"GptWebCitation-module_markdownBody__5kdwH",highlight:"GptWebCitation-module_highlight__Xr1wl",highlightActive:"GptWebCitation-module_highlightActive__iFuz5",citationLink:"GptWebCitation-module_citationLink__kH9JC",citationLinkActive:"GptWebCitation-module_citationLinkActive__SShYx",panelFooter:"GptWebCitation-module_panelFooter__wm98C",webCitationButton:"GptWebCitation-module_webCitationButton__blI--",webCitationButtonIcon:"GptWebCitation-module_webCitationButtonIcon__r9lPc",learnedFrom:"GptWebCitation-module_learnedFrom__DMyLS",imageCitationWrapper:"GptWebCitation-module_imageCitationWrapper__iQUSw",imageCitationCenter:"GptWebCitation-module_imageCitationCenter__DMlqn",imageCitationViewport:"GptWebCitation-module_imageCitationViewport__xcotr",imageCitationScrollContainer:"GptWebCitation-module_imageCitationScrollContainer__bAQNk",citationImage:"GptWebCitation-module_citationImage__7rWdT",citationImagePreload:"GptWebCitation-module_citationImagePreload__L7ibJ",expandImageButton:"GptWebCitation-module_expandImageButton__598k6",fullScreenOverlay:"GptWebCitation-module_fullScreenOverlay__Z5U8h",fullScreenContent:"GptWebCitation-module_fullScreenContent__xIXZR",fullScreenCloseButton:"GptWebCitation-module_fullScreenCloseButton__lnaT1",fullScreenImageWrapper:"GptWebCitation-module_fullScreenImageWrapper__ADPGU",fullScreenImage:"GptWebCitation-module_fullScreenImage__jLVAQ",visitLinkRow:"GptWebCitation-module_visitLinkRow__H8ai5",visitLinkHint:"GptWebCitation-module_visitLinkHint__FAwob",visitLink:"GptWebCitation-module_visitLink__1BDo8",skeleton:"GptWebCitation-module_skeleton__1q51h",skeletonText:"GptWebCitation-module_skeletonText__E6XgN",skeletonShimmer:"GptWebCitation-module_skeletonShimmer__yqWJh",shimmer:"GptWebCitation-module_shimmer__-ZbQA"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".GptWebCitation-module_overlay__OY5pa{display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_gptCitationWrapper__EN7nk{background-color:#fff;border:solid #e5e7eb;border-radius:8px;border-width:1px 1px 2px;box-shadow:0 1px 2px #0000000d;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:relative;width:100%}.GptWebCitation-module_gptCitationToggleFooter__ncfLT{align-items:center;background-color:#f2f4f7;border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;padding:1rem 1.5rem}.GptWebCitation-module_gptCitationFooterAction__WWpAY{align-items:center;bottom:0;box-sizing:border-box;display:flex;height:3rem;left:1.5rem;padding:0;pointer-events:none;position:absolute;z-index:2}.GptWebCitation-module_gptCitationFooterAction__WWpAY>*{pointer-events:auto}.GptWebCitation-module_gptCitationWrapperWithSource__1-ynq [class*=modalFooterSource]{justify-content:flex-end!important;padding-left:13rem}.GptWebCitation-module_panel__ek9Lq{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 2px #0000000d;color:#1f2937;display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_panelHeader__afwge{align-items:center;background-color:#f9fafb;border-bottom:1px solid #e5e7eb;display:flex;font-size:13px;gap:8px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_panelSource__oFl-c{color:#374151;flex:1;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GptWebCitation-module_panelHeaderActions__sGrhi{align-items:center;display:flex;flex-shrink:0;gap:8px}.GptWebCitation-module_pagination__VQvbY{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:6px;display:flex;gap:2px;padding:2px 4px}.GptWebCitation-module_paginationButton__fzJyQ{align-items:center;background:#0000;border:none;border-radius:4px;color:#6b7280;cursor:pointer;display:flex;justify-content:center;padding:2px}.GptWebCitation-module_paginationButton__fzJyQ:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_paginationButton__fzJyQ:disabled{cursor:not-allowed;opacity:.4}.GptWebCitation-module_paginationLabel__S7t1W{color:#6b7280;font-size:12px;min-width:36px;padding:0 4px;text-align:center}.GptWebCitation-module_confidenceBadge__4BBTf{align-items:center;background-color:#ecfdf5;border:1px solid #10b981;border-radius:9999px;color:#059669;display:inline-flex;font-size:13px;font-weight:500;gap:4px;padding:4px 10px}.GptWebCitation-module_panelContent__vg-mG{max-height:192px;overflow-y:auto;padding:8px 12px 12px}.GptWebCitation-module_panelContentExpanded__3aGjq{display:flex;flex-direction:column;max-height:none;min-height:384px;overflow:hidden}.GptWebCitation-module_markdownBody__5kdwH{color:#374151;font-size:14px;line-height:1.6}.GptWebCitation-module_markdownBody__5kdwH ol{list-style-type:lower-alpha;margin:0;padding-left:1.25rem}.GptWebCitation-module_markdownBody__5kdwH li{margin-bottom:8px}.GptWebCitation-module_markdownBody__5kdwH code{background-color:#f3f4f6;border-radius:4px;color:#1f2937;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;padding:1px 6px}.GptWebCitation-module_highlight__Xr1wl{background-color:#fef08a;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_highlightActive__iFuz5{background-color:#fde047;border:1px solid #eab308;box-shadow:0 1px 2px #0000001a}.GptWebCitation-module_citationLink__kH9JC{color:#2563eb;font-weight:500;text-decoration:none}.GptWebCitation-module_citationLink__kH9JC:hover{text-decoration:underline}.GptWebCitation-module_citationLinkActive__SShYx{background-color:#fef08a;border:1px solid #eab308;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_panelFooter__wm98C{align-items:center;background-color:#f9fafb;border-top:1px solid #e5e7eb;display:flex;font-size:13px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_webCitationButton__blI--{align-items:center;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;color:#2563eb;cursor:pointer;display:inline-flex;font-size:14px;font-weight:700;gap:8px;justify-content:center;line-height:1.25;min-width:180px;padding:6px 16px;transition:background-color .15s ease;white-space:nowrap}.GptWebCitation-module_webCitationButton__blI--:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_webCitationButton__blI--:disabled{cursor:not-allowed;opacity:.75}.GptWebCitation-module_webCitationButtonIcon__r9lPc{color:#2563eb;flex-shrink:0}.GptWebCitation-module_learnedFrom__DMyLS{color:#6b7280;font-size:13px}.GptWebCitation-module_imageCitationWrapper__iQUSw{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:12px;min-height:0;padding:8px 4px;width:100%}.GptWebCitation-module_imageCitationCenter__DMlqn{display:flex;flex:1;justify-content:center;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationViewport__xcotr{height:100%;max-width:100%;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar{width:8px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-thumb{background-color:#cbd5e1;border-radius:9999px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-track{background-color:initial}.GptWebCitation-module_citationImage__7rWdT{background-color:#f9fafb;border:none;border-radius:0;display:block;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_citationImagePreload__L7ibJ{height:0;opacity:0;pointer-events:none;position:absolute;visibility:hidden;width:0}.GptWebCitation-module_expandImageButton__598k6{align-items:center;background-color:#374151eb;border:none;border-radius:6px;bottom:12px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:12px;transition:background-color .15s ease;width:32px;z-index:2}.GptWebCitation-module_expandImageButton__598k6:hover{background-color:#1f2937}.GptWebCitation-module_expandImageButton__598k6 svg{flex-shrink:0}.GptWebCitation-module_fullScreenOverlay__Z5U8h{align-items:center;backdrop-filter:blur(4px);background-color:#0009;display:flex;inset:0;justify-content:center;overflow:hidden;overscroll-behavior:contain;padding:16px;position:fixed;z-index:1100}.GptWebCitation-module_fullScreenContent__xIXZR{background-color:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 25px 50px -12px #00000040;max-height:90vh;max-width:95vw;overflow:hidden;position:relative}.GptWebCitation-module_fullScreenCloseButton__lnaT1{align-items:center;background-color:#374151eb;border:none;border-radius:6px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:16px;top:16px;transition:background-color .15s ease;width:32px;z-index:1}.GptWebCitation-module_fullScreenCloseButton__lnaT1:hover{background-color:#1f2937}.GptWebCitation-module_fullScreenImageWrapper__ADPGU{align-items:flex-start;display:flex;justify-content:center;max-height:80vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_fullScreenImage__jLVAQ{border-radius:12px;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_visitLinkRow__H8ai5{align-items:center;display:flex;flex-shrink:0;gap:12px;justify-content:flex-start;padding:4px 8px 0;width:100%}.GptWebCitation-module_visitLinkHint__FAwob{color:#6b7280;font-size:13px;line-height:1.4}.GptWebCitation-module_visitLink__1BDo8{align-items:center;background-color:#2563eb1f;border-radius:6px;color:#2563eb;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;gap:6px;padding:6px 12px;text-decoration:none;white-space:nowrap}.GptWebCitation-module_visitLink__1BDo8:hover{background-color:#2563eb2e;text-decoration:none}.GptWebCitation-module_skeleton__1q51h{align-items:center;background-color:#f3f4f6;border-radius:12px;display:flex;justify-content:center;min-height:384px;overflow:hidden;padding:24px;position:relative;width:100%}.GptWebCitation-module_skeletonText__E6XgN{color:#6b7280;font-size:14px;line-height:1.5;max-width:320px;position:relative;text-align:center;z-index:1}.GptWebCitation-module_skeletonShimmer__yqWJh{animation:GptWebCitation-module_shimmer__-ZbQA 1.5s linear infinite;background:linear-gradient(90deg,#0000,#fff9,#0000);inset:0;position:absolute}@keyframes GptWebCitation-module_shimmer__-ZbQA{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=GptWebCitation.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{useState as a,useEffect as n}from"react";import{Maximize2 as o,SquareArrowOutUpRight as r}from"lucide-react";import l from"./GptWebCitationImageFullScreenView.js";import s from"./GptWebCitationSkeleton.js";import{sanitizeExternalUrl as c}from"./utils/citationData.utils.js";import m from"./GptWebCitation.module.css.js";var d=function(d){var p=d.citationImage,u=d.citationUrl,f=d.showExpandImageButton,g=void 0===f||f,v=a(!1),h=v[0],C=v[1],b=a("loading"),k=b[0],N=b[1];n(function(){var i=!0;N("loading"),C(!1);var t=new Image;return t.onload=function(){i&&N("loaded")},t.onerror=function(){i&&N("error")},t.src=p,function(){i=!1,t.onload=null,t.onerror=null}},[p]);var w="loaded"===k,I=c(u);return t("div",i({className:m.imageCitationWrapper},{children:[e("div",i({className:m.imageCitationCenter},{children:w?t("div",i({className:m.imageCitationViewport},{children:[e("div",i({className:m.imageCitationScrollContainer},{children:e("img",{src:p,alt:"Web citation snapshot",className:m.citationImage})})),g&&e("button",i({type:"button",onClick:function(i){i.stopPropagation(),C(!0)},className:m.expandImageButton,"aria-label":"View citation image in full screen",title:"Expand image"},{children:e(o,{size:16,strokeWidth:2})}))]})):e(s,{})})),I&&t("div",i({className:m.visitLinkRow},{children:[e("span",i({className:m.visitLinkHint},{children:"Open link in new tab to read in detail"})),t("a",i({href:I,target:"_blank",rel:"noreferrer",className:m.visitLink},{children:["Visit Link",e(r,{size:16})]}))]})),h&&w&&e(l,{src:p,onClose:function(){return C(!1)}})]}))};export{d as default};
|
|
2
|
+
//# sourceMappingURL=GptWebCitationImageCitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationImageCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useEffect as t}from"react";import{createPortal as l}from"react-dom";import{X as n}from"lucide-react";import i from"./GptWebCitation.module.css.js";var a=function(e){return e.stopPropagation()},c=function(e){e.stopPropagation()},s=function(s){var m=s.src,u=s.onClose;return t(function(){var e=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}},[]),l(o("div",e({role:"dialog","aria-modal":"true",className:i.fullScreenOverlay,onClick:u,onWheel:c},{children:r("div",e({className:i.fullScreenContent,onClick:a},{children:[o("button",e({type:"button",onClick:u,className:i.fullScreenCloseButton,"aria-label":"Close full screen view"},{children:o(n,{size:18,strokeWidth:2})})),o("div",e({className:i.fullScreenImageWrapper},{children:o("img",{src:m,alt:"Citation full view",className:i.fullScreenImage})}))]}))})),document.body)};export{s as default};
|
|
2
|
+
//# sourceMappingURL=GptWebCitationImageFullScreenView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationImageFullScreenView.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as r,__assign as n}from"tslib";import{jsx as t,Fragment as e}from"react/jsx-runtime";import{useRef as i,useMemo as c,useEffect as l}from"react";import o from"react-markdown";import a from"rehype-raw";import{sanitizeExternalUrl as h}from"./utils/citationData.utils.js";import u from"./GptWebCitation.module.css.js";var d=function(d){var f=d.content,s=d.activeHighlightIndex,v=d.onHighlightCountChange,m=i(null),g=c(function(){var r,n=f.match(/id=["']highlighted-\d+["']/g);if(null==n?void 0:n.length)return n.length;var t=f.match(/<a\b[^>]*>/gi);return null!==(r=null==t?void 0:t.length)&&void 0!==r?r:0},[f]),p=c(function(){return/id=["']highlighted-\d+["']/.test(f)},[f]);l(function(){null==v||v(g)},[g,v]),l(function(){var r;if(m.current){var n=m.current.querySelector("#highlighted-".concat(s));if(n)n.scrollIntoView({behavior:"smooth",block:"center"});else null===(r=m.current.querySelectorAll("a[href]")[s])||void 0===r||r.scrollIntoView({behavior:"smooth",block:"center"})}},[s,f]);var b=c(function(){var i=-1;return{span:function(e){e.node;var i=r(e,["node"]),c=i.id;if(null==c?void 0:c.startsWith("highlighted-")){var l=Number(c.replace("highlighted-",""))===s;return t("span",n({},i,{id:c,className:"".concat(u.highlight).concat(l?" ".concat(u.highlightActive):"")}))}return t("span",n({},i))},a:function(r){var c,l=r.children,o=r.href,a=r.title,d=r.className;if(!o)return t(e,{children:l});i+=1;var f=!p&&i===s,v=null!==(c=h(o))&&void 0!==c?c:"#";return t("a",n({href:v,title:a,target:"_blank",rel:"noreferrer",className:"".concat(u.citationLink).concat(f?" ".concat(u.citationLinkActive):"").concat(d?" ".concat(d):"")},{children:l}))},code:function(e){var i=e.children,c=r(e,["children"]);return t("code",n({},c,{children:i}))},ol:function(e){var i=e.children,c=r(e,["children"]);return t("ol",n({},c,{children:i}))},ul:function(e){var i=e.children,c=r(e,["children"]);return t("ul",n({},c,{children:i}))},li:function(e){var i=e.children,c=r(e,["children"]);return t("li",n({},c,{children:i}))},p:function(e){var i=e.children,c=r(e,["children"]);return t("p",n({},c,{children:i}))}}},[s,p,f]);return t("div",n({ref:m,className:u.markdownBody},{children:t(o,n({rehypePlugins:[a],components:b},{children:f}))}))};export{d as default};
|
|
2
|
+
//# sourceMappingURL=GptWebCitationMarkdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as s}from"react/jsx-runtime";import o from"./GptWebCitation.module.css.js";var i=function(){return t("div",e({className:o.skeleton},{children:[s("span",e({className:o.skeletonText},{children:"Loading a snapshot of citation from source website..."})),s("div",{className:o.skeletonShimmer})]}))};export{i as default};
|
|
2
|
+
//# sourceMappingURL=GptWebCitationSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationSkeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=function(t){return t?t.replace(/\\"/g,'"').replace(/\\'/g,"'").trim():""},i=function(t){if(null==t?void 0:t.trim()){var i=t.trim();if(!/^(javascript|data|vbscript):/i.test(i))try{var r=new URL(i);if("http:"===r.protocol||"https:"===r.protocol)return i}catch(t){if(i.startsWith("gs://"))return i}}},r=function(i){if(i)for(var r=t(i),e=0,a=[/decision strength is\s+([\d.]+)\s*%/i,/relevance score is\s+([\d.]+)\s*%/i,/confidence(?:\s+score)?(?:\s+is)?\s+([\d.]+)\s*%/i];e<a.length;e++){var n=a[e],o=r.match(n);if(null==o?void 0:o[1]){var c=Number(o[1]);if(!Number.isNaN(c))return c}}},e=function(i){if(i){var r=t(i).match(/<a\b[^>]*>(.*?)<\/a>/i);if(null==r?void 0:r[1]){var e=r[1].replace(/<[^>]*>?/gm,"").trim();if(e)return e}}},a=function(t){if(t)try{var i=new URL(t).hostname.replace(/^www\./i,""),r=i.split(".");if(r.length<2)return i;var e=r[r.length-2];return e.charAt(0).toUpperCase()+e.slice(1)}catch(t){return}},n=function(t){var r,e,a,n=i(null===(r=null==t?void 0:t.imageMetadata)||void 0===r?void 0:r.signed_url);if(n)return n;var o=null===(a=null===(e=null==t?void 0:t.imageMetadata)||void 0===e?void 0:e.gs_uri)||void 0===a?void 0:a.trim();return(null==o?void 0:o.startsWith("gs://"))?o:void 0},o=function(o){var c,l,u=t(o.content);return{citationId:o.citationId,content:u,citationType:o.citationType,citationUrl:i(o.citationUrl),topic:null!==(c=e(u))&&void 0!==c?c:"Web Citation",relevanceScore:null!==(l=r(u))&&void 0!==l?l:0,learnedFrom:a(o.citationUrl),web_citation_gcs_url:n(o),userId:o.userId,userName:o.userName,userEmail:o.userEmail,db:o.db,imageMetadata:o.imageMetadata}};export{a as extractLearnedFromUrl,r as extractRelevanceScoreFromContent,e as extractTopicFromContent,n as getWebCitationImageUrl,o as mapCitationDataToDisplay,i as sanitizeExternalUrl};
|
|
2
|
+
//# sourceMappingURL=citationData.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citationData.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as l,jsx as i,Fragment as n}from"react/jsx-runtime";import{useState as o,useEffect as r}from"react";import{renderCitationAIConfidenceDisplay as t}from"../components/CitationAIConfidenceDisplay.js";import s from"../AiReasoning/components/icons/FullScreenIcon.js";import a from"./components/ImagePreviewDialog.js";import{CircularProgress as c}from"@mui/material";import d from"./WebCitationWithImageContent.module.css.js";var u=function(u){var v,m,g,h,
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as l,jsx as i,Fragment as n}from"react/jsx-runtime";import{useState as o,useEffect as r}from"react";import{renderCitationAIConfidenceDisplay as t}from"../components/CitationAIConfidenceDisplay.js";import s from"../AiReasoning/components/icons/FullScreenIcon.js";import a from"./components/ImagePreviewDialog.js";import{CircularProgress as c}from"@mui/material";import d from"./WebCitationWithImageContent.module.css.js";var u=function(u){var v,m,g,f,h,p,C,y=null===(v=null==u?void 0:u.closeCitationConfig)||void 0===v?void 0:v.CloseIcon,N=u.visitIcon,I=o(!1),P=I[0],U=I[1],k=null===(m=null==u?void 0:u.cachingConfig)||void 0===m?void 0:m.queryClient,S=u.styles,D=["getSignedUrl",u.gsUtilPath||""],w=null!==(f=null===(g=u.cachingConfig)||void 0===g?void 0:g.useGetSignedUrlQuery)&&void 0!==f?f:function(){return{data:void 0}},W=null!==(p=null===(h=u.cachingConfig)||void 0===h?void 0:h.useGetSignedUrlMutation)&&void 0!==p?p:function(){return{mutate:function(e){},isPending:!1}},b=w((null==u?void 0:u.gsUtilPath)||"",D).data,L=W((null==u?void 0:u.gsUtilPath)||""),j=L.mutate,x=L.isPending;return r(function(){u.signedUrl||u.gsUtilPath&&(((null==k?void 0:k.getQueryData)?k.getQueryData(D):void 0)||j({gsUtilPath:u.gsUtilPath}))},[u.gsUtilPath,u.signedUrl,k,j]),l("div",e({className:d.container,style:null==S?void 0:S.container},{children:[l("div",e({className:d.header,style:null==S?void 0:S.header},{children:[i("div",e({className:d.headerLeft,style:null==S?void 0:S.headerLeft},{children:i("a",e({className:d.link,target:"_blank",rel:"noopener noreferrer",href:u.url},{children:u.label}))})),(null==u?void 0:u.closeCitationConfig)?l("div",e({className:d.headerActions,style:null==S?void 0:S.headerActions},{children:[t(u.relevanceScore,!1,null==S?void 0:S.aiConfidenceDisplayPill),i("div",{className:d.divider,style:null==S?void 0:S.divider}),y&&i("div",e({className:d.closeIconWrapper,style:null==S?void 0:S.closeIconWrapper,onClick:u.closeCitationConfig.handleCloseCitationPreview},{children:i(y,{className:d.closeIcon})}))]})):i(n,{children:t(u.relevanceScore,!0,null==S?void 0:S.aiConfidenceDisplayPill)})]})),u.signedUrl?l("div",e({className:d.imageWrapper,style:null==S?void 0:S.imageWrapper},{children:[i("img",{src:u.signedUrl,alt:"images",className:d.image,style:null==S?void 0:S.image}),i("div",e({className:d.fullScreenButton,style:null==S?void 0:S.fullScreenButton,onClick:function(){return U(!0)}},{children:i(s,{})})),i(a,{open:P,handleClose:function(){return U(!1)},src:u.signedUrl,CloseIcon:u.PreviewDialogCloseIcon,styles:null===(C=u.styles)||void 0===C?void 0:C.previewDialogStyles})]})):x?l("div",e({className:d.loaderContainer},{children:[i("style",{children:".mui-circular-progress-circle { stroke-linecap: round; }"}),i(c,{size:48,thickness:4,style:{color:"#4F85FF"},classes:{circle:"mui-circular-progress-circle"}}),i("span",e({className:d.loaderText,style:null==S?void 0:S.loaderText},{children:"Loading Image..."}))]})):b&&l("div",e({className:d.imageWrapper},{children:[i("img",{src:b,alt:"images",className:d.image,style:null==S?void 0:S.image}),i("div",e({className:d.fullScreenButton,style:null==S?void 0:S.fullScreenButton,onClick:function(){return U(!0)}},{children:i(s,{})})),i(a,{open:P,handleClose:function(){return U(!1)},src:b,CloseIcon:u.PreviewDialogCloseIcon,styles:null==S?void 0:S.previewDialogStyles})]})),i("div",e({className:d.footer,style:null==S?void 0:S.footer},{children:l("div",e({className:d.footerContent,style:null==S?void 0:S.footerContent},{children:[i("span",{children:"Open link in new tab to read in detail"}),l("a",e({className:d.visitLink,style:null==S?void 0:S.visitLink,href:u.url,target:"_blank",rel:"noopener noreferrer"},{children:["Visit Link",i(N,{className:d.visitIcon})]}))]}))}))]}))};export{u as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageContent.js.map
|
package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={container:"WebCitationWithImageContent-module_container__0caP3",header:"WebCitationWithImageContent-module_header__yd-ED",headerLeft:"WebCitationWithImageContent-module_headerLeft__vemHH",link:"WebCitationWithImageContent-module_link__9am5l",headerActions:"WebCitationWithImageContent-module_headerActions__pinS2",divider:"WebCitationWithImageContent-module_divider__OR-bP",closeIconWrapper:"WebCitationWithImageContent-module_closeIconWrapper__D6HHj",closeIcon:"WebCitationWithImageContent-module_closeIcon__CDrjR",imageWrapper:"WebCitationWithImageContent-module_imageWrapper__Zk2jF",image:"WebCitationWithImageContent-module_image__KJMJS",fullScreenButton:"WebCitationWithImageContent-module_fullScreenButton__JH8MC",loaderContainer:"WebCitationWithImageContent-module_loaderContainer__9UQBM",loaderText:"WebCitationWithImageContent-module_loaderText__fqlg2",footer:"WebCitationWithImageContent-module_footer__7-3Et",footerContent:"WebCitationWithImageContent-module_footerContent__U60cY",visitLink:"WebCitationWithImageContent-module_visitLink__YiGQo",visitIcon:"WebCitationWithImageContent-module_visitIcon__FjN9-"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".WebCitationWithImageContent-module_container__0caP3{border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:1rem;height:100%;min-height:200px;position:relative}.WebCitationWithImageContent-module_header__yd-ED{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.WebCitationWithImageContent-module_headerLeft__vemHH{align-items:center;display:flex;flex-direction:row;gap:.5rem}.WebCitationWithImageContent-module_link__9am5l{color:#1f2937;font-weight:600;text-decoration-color:#1f2937;text-decoration:none}.WebCitationWithImageContent-module_headerActions__pinS2{align-items:center;display:flex;flex-direction:row;gap:1rem;justify-content:space-between}.WebCitationWithImageContent-module_divider__OR-bP{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.WebCitationWithImageContent-module_closeIconWrapper__D6HHj{cursor:pointer}.WebCitationWithImageContent-module_closeIcon__CDrjR{color:#6b7280;height:1.5rem;width:1.5rem}.WebCitationWithImageContent-module_imageWrapper__Zk2jF{padding-left:.75rem;padding-right:.75rem;position:relative}.WebCitationWithImageContent-module_image__KJMJS{border:1px solid #e5e7eb;border-radius:8px;width:100%}.WebCitationWithImageContent-module_fullScreenButton__JH8MC{background-color:#f9fafb;border:1px solid #d0d5dd;border-radius:8px;bottom:.5rem;cursor:pointer;padding:.5rem;position:absolute;right:1.25rem}.WebCitationWithImageContent-module_loaderContainer__9UQBM{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:400px}.WebCitationWithImageContent-module_loaderText__fqlg2{color:#4b5563;font-size:.875rem;font-weight:500;margin-top:.5rem}.WebCitationWithImageContent-module_footer__7-3Et{align-items:center;display:flex;flex-direction:row;
|
|
1
|
+
var e={container:"WebCitationWithImageContent-module_container__0caP3",header:"WebCitationWithImageContent-module_header__yd-ED",headerLeft:"WebCitationWithImageContent-module_headerLeft__vemHH",link:"WebCitationWithImageContent-module_link__9am5l",headerActions:"WebCitationWithImageContent-module_headerActions__pinS2",divider:"WebCitationWithImageContent-module_divider__OR-bP",closeIconWrapper:"WebCitationWithImageContent-module_closeIconWrapper__D6HHj",closeIcon:"WebCitationWithImageContent-module_closeIcon__CDrjR",imageWrapper:"WebCitationWithImageContent-module_imageWrapper__Zk2jF",image:"WebCitationWithImageContent-module_image__KJMJS",fullScreenButton:"WebCitationWithImageContent-module_fullScreenButton__JH8MC",loaderContainer:"WebCitationWithImageContent-module_loaderContainer__9UQBM",loaderText:"WebCitationWithImageContent-module_loaderText__fqlg2",footer:"WebCitationWithImageContent-module_footer__7-3Et",footerContent:"WebCitationWithImageContent-module_footerContent__U60cY",visitLink:"WebCitationWithImageContent-module_visitLink__YiGQo",visitIcon:"WebCitationWithImageContent-module_visitIcon__FjN9-"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".WebCitationWithImageContent-module_container__0caP3{border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:1rem;height:100%;min-height:200px;position:relative}.WebCitationWithImageContent-module_header__yd-ED{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.WebCitationWithImageContent-module_headerLeft__vemHH{align-items:center;display:flex;flex-direction:row;gap:.5rem}.WebCitationWithImageContent-module_link__9am5l{color:#1f2937;font-weight:600;text-decoration-color:#1f2937;text-decoration:none}.WebCitationWithImageContent-module_headerActions__pinS2{align-items:center;display:flex;flex-direction:row;gap:1rem;justify-content:space-between}.WebCitationWithImageContent-module_divider__OR-bP{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.WebCitationWithImageContent-module_closeIconWrapper__D6HHj{cursor:pointer}.WebCitationWithImageContent-module_closeIcon__CDrjR{color:#6b7280;height:1.5rem;width:1.5rem}.WebCitationWithImageContent-module_imageWrapper__Zk2jF{padding-left:.75rem;padding-right:.75rem;position:relative}.WebCitationWithImageContent-module_image__KJMJS{border:1px solid #e5e7eb;border-radius:8px;width:100%}.WebCitationWithImageContent-module_fullScreenButton__JH8MC{background-color:#f9fafb;border:1px solid #d0d5dd;border-radius:8px;bottom:.5rem;cursor:pointer;padding:.5rem;position:absolute;right:1.25rem}.WebCitationWithImageContent-module_loaderContainer__9UQBM{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:400px}.WebCitationWithImageContent-module_loaderText__fqlg2{color:#4b5563;font-size:.875rem;font-weight:500;margin-top:.5rem}.WebCitationWithImageContent-module_footer__7-3Et{box-sizing:border-box;flex-shrink:0;padding:4px 12px 12px;width:100%}.WebCitationWithImageContent-module_footerContent__U60cY{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-start;width:100%}.WebCitationWithImageContent-module_footerContent__U60cY>span{color:#6b7280;font-size:13px;line-height:1.4}.WebCitationWithImageContent-module_visitLink__YiGQo{align-items:center;background-color:#2563eb1f;border-radius:6px;color:#2563eb;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;gap:6px;padding:6px 12px;text-decoration:none;white-space:nowrap}.WebCitationWithImageContent-module_visitLink__YiGQo:hover{background-color:#2563eb2e;text-decoration:none}.WebCitationWithImageContent-module_visitIcon__FjN9-{color:#2563eb;flex-shrink:0;height:1rem;width:1rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageContent.module.css.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{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.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{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type NeuralNetworkIconProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
"aria-hidden"?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const NeuralNetworkIcon: ({ className, size, color, "aria-hidden": ariaHidden, }: NeuralNetworkIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default NeuralNetworkIcon;
|
|
9
|
+
//# sourceMappingURL=NeuralNetworkIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeuralNetworkIcon.d.ts","sourceRoot":"","sources":["../../../../../src/assests/svg/NeuralNetworkIcon.tsx"],"names":[],"mappings":"AAEA,KAAK,sBAAsB,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,iBAAiB,2DAKpB,sBAAsB,4CAsBxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAMzE,OAAO,EAAE,oBAAoB,EAAiC,MAAM,SAAS,CAAC;AAwE9E,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwOlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type GptWebCitationImageCitationProps = {
|
|
2
|
+
citationImage: string;
|
|
3
|
+
citationUrl?: string;
|
|
4
|
+
showExpandImageButton?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const GptWebCitationImageCitation: ({ citationImage, citationUrl, showExpandImageButton, }: GptWebCitationImageCitationProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default GptWebCitationImageCitation;
|
|
8
|
+
//# sourceMappingURL=GptWebCitationImageCitation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationImageCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationImageCitation.tsx"],"names":[],"mappings":"AAOA,KAAK,gCAAgC,GAAG;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAIF,QAAA,MAAM,2BAA2B,2DAI9B,gCAAgC,4CA0ElC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type GptWebCitationImageFullScreenViewProps = {
|
|
3
|
+
src: string;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
};
|
|
6
|
+
declare const GptWebCitationImageFullScreenView: ({ src, onClose, }: GptWebCitationImageFullScreenViewProps) => React.ReactPortal;
|
|
7
|
+
export default GptWebCitationImageFullScreenView;
|
|
8
|
+
//# sourceMappingURL=GptWebCitationImageFullScreenView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationImageFullScreenView.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationImageFullScreenView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,KAAK,sCAAsC,GAAG;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAQF,QAAA,MAAM,iCAAiC,sBAGpC,sCAAsC,sBAkCxC,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type GptWebCitationMarkdownProps = {
|
|
3
|
+
content: string;
|
|
4
|
+
activeHighlightIndex: number;
|
|
5
|
+
onHighlightCountChange?: (count: number) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const GptWebCitationMarkdown: React.FC<GptWebCitationMarkdownProps>;
|
|
8
|
+
export default GptWebCitationMarkdown;
|
|
9
|
+
//# sourceMappingURL=GptWebCitationMarkdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationMarkdown.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationMarkdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAM1D,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA8FjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationSkeleton.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationSkeleton.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,sBAAsB,+CAO3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IGptWebCitationTestProps } from "./types";
|
|
2
|
+
declare const GptWebCitationTest: ({ gptCitation, isWebCitation, webCitationData: webCitationDataProp, sourceModel, learnedFrom, showWebCitation: showWebCitationProp, onGenerateWebCitation, isWebCitationLoading: isWebCitationLoadingProp, showExpandImageButton, styles, }: IGptWebCitationTestProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default GptWebCitationTest;
|
|
4
|
+
//# sourceMappingURL=GptWebCitationTest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationTest.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAiBnD,QAAA,MAAM,kBAAkB,gPAWrB,wBAAwB,4CA2D1B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebCitationSampleResponse.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/WebCitationSampleResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,4BAA4B,EAAE,uBAkB1C,CAAA;AAGD,eAAO,MAAM,mCAAmC,EAAE,uBAGjD,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
import type { CognitiveInternalgptCoreProps } from "../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent";
|
|
3
|
+
export interface IGptWebCitationDbMetadata {
|
|
4
|
+
citation_id?: string;
|
|
5
|
+
blob_path?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IGptWebCitationImageMetadata {
|
|
8
|
+
signed_url?: string;
|
|
9
|
+
blob_path?: string;
|
|
10
|
+
gs_uri?: string;
|
|
11
|
+
}
|
|
12
|
+
type GptWebCitationType = "web" | (string & {});
|
|
13
|
+
export interface IWebCitationApiResponse {
|
|
14
|
+
citationId?: string;
|
|
15
|
+
content?: string;
|
|
16
|
+
citationType?: GptWebCitationType;
|
|
17
|
+
message?: string;
|
|
18
|
+
userId?: string;
|
|
19
|
+
userName?: string;
|
|
20
|
+
userEmail?: string;
|
|
21
|
+
citationUrl?: string;
|
|
22
|
+
db?: IGptWebCitationDbMetadata;
|
|
23
|
+
imageMetadata?: IGptWebCitationImageMetadata;
|
|
24
|
+
}
|
|
25
|
+
export interface IGptWebCitationMappedData {
|
|
26
|
+
citationId?: string;
|
|
27
|
+
content: string;
|
|
28
|
+
citationType?: GptWebCitationType;
|
|
29
|
+
citationUrl?: string;
|
|
30
|
+
topic: string;
|
|
31
|
+
relevanceScore: number;
|
|
32
|
+
learnedFrom?: string;
|
|
33
|
+
web_citation_gcs_url?: string;
|
|
34
|
+
userId?: string;
|
|
35
|
+
userName?: string;
|
|
36
|
+
userEmail?: string;
|
|
37
|
+
db?: IGptWebCitationDbMetadata;
|
|
38
|
+
imageMetadata?: IGptWebCitationImageMetadata;
|
|
39
|
+
}
|
|
40
|
+
export type GptWebCitationView = "gpt" | "web";
|
|
41
|
+
export type IGptCitationConfig = Pick<CognitiveInternalgptCoreProps, "item" | "headerTitle" | "index" | "iconsConfig" | "DocumentTitle" | "previewCallback" | "bodyHeight" | "disableMaximize">;
|
|
42
|
+
export interface IGptWebCitationGptStyles {
|
|
43
|
+
/** Border wrapper around the GPT citation panel */
|
|
44
|
+
wrapper?: CSSProperties;
|
|
45
|
+
/** View Web Citation button row overlay in the GPT footer */
|
|
46
|
+
footerAction?: CSSProperties;
|
|
47
|
+
/** View Web Citation toggle button */
|
|
48
|
+
toggleButton?: CSSProperties;
|
|
49
|
+
}
|
|
50
|
+
export interface IGptWebCitationWebStyles {
|
|
51
|
+
/** Outer web citation card (header + content + footer) */
|
|
52
|
+
panel?: CSSProperties;
|
|
53
|
+
header?: CSSProperties;
|
|
54
|
+
content?: CSSProperties;
|
|
55
|
+
footer?: CSSProperties;
|
|
56
|
+
/** View GPT Citation toggle button */
|
|
57
|
+
toggleButton?: CSSProperties;
|
|
58
|
+
learnedFrom?: CSSProperties;
|
|
59
|
+
}
|
|
60
|
+
export interface IGptWebCitationStyleOverrides {
|
|
61
|
+
/** Shared outer wrapper applied in both GPT and web views */
|
|
62
|
+
container?: CSSProperties;
|
|
63
|
+
gptCitation?: IGptWebCitationGptStyles;
|
|
64
|
+
webCitation?: IGptWebCitationWebStyles;
|
|
65
|
+
/** @deprecated Use `gptCitation.wrapper` */
|
|
66
|
+
gptCitationWrapper?: CSSProperties;
|
|
67
|
+
/** @deprecated Use `gptCitation.footerAction` */
|
|
68
|
+
footerAction?: CSSProperties;
|
|
69
|
+
/** @deprecated Use `gptCitation.toggleButton` or `webCitation.toggleButton` */
|
|
70
|
+
webCitationButton?: CSSProperties;
|
|
71
|
+
}
|
|
72
|
+
export interface IGptWebCitationProps {
|
|
73
|
+
gptCitation: IGptCitationConfig;
|
|
74
|
+
/** When true, enables the web citation overlay and toggle button. When false, only GPT citation is shown. */
|
|
75
|
+
isWebCitation?: boolean;
|
|
76
|
+
webCitationData?: IWebCitationApiResponse;
|
|
77
|
+
topic?: string;
|
|
78
|
+
sourceModel?: string;
|
|
79
|
+
sourceLabel?: string;
|
|
80
|
+
relevanceScore?: number;
|
|
81
|
+
learnedFrom?: string;
|
|
82
|
+
/** When true, renders the Web Citation view instead of GPT Citation. */
|
|
83
|
+
showWebCitation?: boolean;
|
|
84
|
+
/** Called when the user requests web citation generation (no cached data yet). */
|
|
85
|
+
onGenerateWebCitation?: () => void;
|
|
86
|
+
/** Parent-controlled loading state while web citation is being generated. */
|
|
87
|
+
isWebCitationLoading?: boolean;
|
|
88
|
+
onToggleCitationView?: () => void;
|
|
89
|
+
/** When true, shows the expand button on image citation snapshots. Defaults to true. */
|
|
90
|
+
showExpandImageButton?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* When false, hides the GPT citation header maximize/expand icon.
|
|
93
|
+
* Equivalent to `gptCitation.disableMaximize: true`.
|
|
94
|
+
*/
|
|
95
|
+
showGptMaximizeButton?: boolean;
|
|
96
|
+
styles?: IGptWebCitationStyleOverrides;
|
|
97
|
+
}
|
|
98
|
+
export interface IGptWebCitationTestProps {
|
|
99
|
+
gptCitation?: IGptCitationConfig;
|
|
100
|
+
isWebCitation?: boolean;
|
|
101
|
+
webCitationData?: IWebCitationApiResponse;
|
|
102
|
+
sourceModel?: string;
|
|
103
|
+
learnedFrom?: string;
|
|
104
|
+
showWebCitation?: boolean;
|
|
105
|
+
onGenerateWebCitation?: () => void;
|
|
106
|
+
isWebCitationLoading?: boolean;
|
|
107
|
+
showExpandImageButton?: boolean;
|
|
108
|
+
showGptMaximizeButton?: boolean;
|
|
109
|
+
styles?: IGptWebCitationStyleOverrides;
|
|
110
|
+
}
|
|
111
|
+
export {};
|
|
112
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oEAAoE,CAAC;AAExH,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,kBAAkB,GAAG,KAAK,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEhD,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,yBAAyB,CAAC;IAC/B,aAAa,CAAC,EAAE,4BAA4B,CAAC;CAC9C;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,yBAAyB,CAAC;IAC/B,aAAa,CAAC,EAAE,4BAA4B,CAAC;CAC9C;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,KAAK,CAAC;AAE/C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,6BAA6B,EAC3B,MAAM,GACN,aAAa,GACb,OAAO,GACP,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,YAAY,GACZ,iBAAiB,CACpB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,sCAAsC;IACtC,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC,0DAA0D;IAC1D,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,sCAAsC;IACtC,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,MAAM,WAAW,6BAA6B;IAC5C,6DAA6D;IAC7D,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,4CAA4C;IAC5C,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,iDAAiD;IACjD,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,aAAa,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,kBAAkB,CAAC;IAChC,6GAA6G;IAC7G,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,uBAAuB,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kFAAkF;IAClF,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,6EAA6E;IAC7E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,wFAAwF;IACxF,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,uBAAuB,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IGptWebCitationMappedData, IWebCitationApiResponse } from "../types";
|
|
2
|
+
export declare const sanitizeExternalUrl: (url?: string) => string | undefined;
|
|
3
|
+
export declare const extractRelevanceScoreFromContent: (content?: string) => number | undefined;
|
|
4
|
+
export declare const extractTopicFromContent: (content?: string) => string | undefined;
|
|
5
|
+
export declare const extractLearnedFromUrl: (citationUrl?: string) => string | undefined;
|
|
6
|
+
export declare const getWebCitationImageUrl: (citationData?: IWebCitationApiResponse) => string | undefined;
|
|
7
|
+
export declare const mapCitationDataToDisplay: (citationData: IWebCitationApiResponse) => IGptWebCitationMappedData;
|
|
8
|
+
//# sourceMappingURL=citationData.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citationData.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/GptWebCitation/utils/citationData.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AASlB,eAAO,MAAM,mBAAmB,SAAU,MAAM,KAAG,MAAM,GAAG,SAgB3D,CAAC;AAEF,eAAO,MAAM,gCAAgC,aAAc,MAAM,KAAG,MAAM,GAAG,SAmB5E,CAAC;AAEF,eAAO,MAAM,uBAAuB,aAAc,MAAM,KAAG,MAAM,GAAG,SAWnE,CAAC;AAEF,eAAO,MAAM,qBAAqB,iBAClB,MAAM,KACnB,MAAM,GAAG,SAkBX,CAAC;AAEF,eAAO,MAAM,sBAAsB,kBAClB,uBAAuB,KACrC,MAAM,GAAG,SAQX,CAAC;AAEF,eAAO,MAAM,wBAAwB,iBACrB,uBAAuB,KACpC,yBAkBF,CAAC"}
|
|
@@ -33,4 +33,7 @@ export { default as TextualGuideLinesComponent } from "./features/TextualGuideli
|
|
|
33
33
|
export { IngestionStatusComponent } from "./features/IngestionStatus/IngestionStatusComponent";
|
|
34
34
|
export { IngestionStatusChip } from "./features/IngestionStatus/IngestionStatusComponent";
|
|
35
35
|
export { ManageReminders } from "./features/ManageRemainders/ManageReminders";
|
|
36
|
+
export { default as GptWebCitation } from "./features/GptWebCitation/GptWebCitation";
|
|
37
|
+
export { mapCitationDataToDisplay, getWebCitationImageUrl, extractTopicFromContent, extractRelevanceScoreFromContent, extractLearnedFromUrl, sanitizeExternalUrl, } from "./features/GptWebCitation/utils/citationData.utils";
|
|
38
|
+
export type { IGptWebCitationProps, IGptCitationConfig, IGptWebCitationStyleOverrides, IGptWebCitationGptStyles, IGptWebCitationWebStyles, GptWebCitationView, IWebCitationApiResponse, IGptWebCitationDbMetadata, IGptWebCitationImageMetadata, IGptWebCitationMappedData, } from "./features/GptWebCitation/types";
|
|
36
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oEAAoE,CAAC;AACpH,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACnI,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AACtH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACnH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACpI,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAA;AAC9G,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAC,OAAO,IAAI,iCAAiC,EAAC,MAAM,4EAA4E,CAAC;AACxI,OAAO,EAAC,OAAO,IAAI,6BAA6B,EAAC,MAAM,iFAAiF,CAAC;AACzI,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAC,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAC,mBAAmB,EAAC,MAAM,qDAAqD,CAAA;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oEAAoE,CAAC;AACpH,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACnI,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AACtH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACnH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACpI,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAA;AAC9G,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAC,OAAO,IAAI,iCAAiC,EAAC,MAAM,4EAA4E,CAAC;AACxI,OAAO,EAAC,OAAO,IAAI,6BAA6B,EAAC,MAAM,iFAAiF,CAAC;AACzI,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAC,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAC,mBAAmB,EAAC,MAAM,qDAAqD,CAAA;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,gCAAgC,EAChC,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,oDAAoD,CAAC;AAC5D,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-llm-studio/citation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.210",
|
|
4
4
|
"author": "Devesh Patel",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -151,6 +151,11 @@
|
|
|
151
151
|
"import": "./dist/features/ManageRemainders/ManageReminders.js",
|
|
152
152
|
"require": "./dist/cjs/features/ManageRemainders/ManageReminders.js",
|
|
153
153
|
"types": "./dist/types/src/features/ManageRemainders/ManageReminders.d.ts"
|
|
154
|
+
},
|
|
155
|
+
"./GptWebCitation": {
|
|
156
|
+
"import": "./dist/features/GptWebCitation/GptWebCitation.js",
|
|
157
|
+
"require": "./dist/cjs/features/GptWebCitation/GptWebCitation.js",
|
|
158
|
+
"types": "./dist/types/src/features/GptWebCitation/GptWebCitation.d.ts"
|
|
154
159
|
}
|
|
155
160
|
},
|
|
156
161
|
"repository": {
|