@viswa-test/test-citation 0.0.252 → 0.0.253
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 +202 -26
- package/dist/cjs/features/BPACitationRenderer/BPACitationRenderer.js +2 -0
- package/dist/cjs/features/BPACitationRenderer/BPACitationRenderer.js.map +1 -0
- package/dist/cjs/features/BPACitationRenderer/citationTypes.js +2 -0
- package/dist/cjs/features/BPACitationRenderer/citationTypes.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/CitationAnchor.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CitationRenderer.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitivePopup.js +1 -1
- package/dist/cjs/features/CognitiveCompare/MoreFunctionsPopup.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/RHSSectionRow.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SvgConnectors.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/connectedLines.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
- package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
- package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
- package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js +1 -1
- package/dist/cjs/features/DualCitation/RuleBookCitationApiComponent.js +2 -0
- package/dist/cjs/features/DualCitation/RuleBookCitationApiComponent.js.map +1 -0
- package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js +2 -0
- package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js.map +1 -0
- package/dist/cjs/features/DualCitation/SourceBQDataCompnent.js +2 -0
- package/dist/cjs/features/DualCitation/SourceBQDataCompnent.js.map +1 -0
- package/dist/cjs/features/DualCitation/SourceBQDataCompnent.module.css.js +2 -0
- package/dist/cjs/features/DualCitation/SourceBQDataCompnent.module.css.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/InstantLearningCitation/InstantLearningCitationComponent.js +1 -1
- package/dist/cjs/features/PromptemonBlockViewer/PromptemonBlockViewer.js +2 -0
- package/dist/cjs/features/PromptemonBlockViewer/PromptemonBlockViewer.js.map +1 -0
- package/dist/cjs/features/PromptemonViewer/PromptemonViewer.js +2 -0
- package/dist/cjs/features/PromptemonViewer/PromptemonViewer.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +1 -1
- package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
- package/dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
- package/dist/cjs/features/SplitterCitations/icons/icons.js +2 -0
- package/dist/cjs/features/SplitterCitations/icons/icons.js.map +1 -0
- package/dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
- package/dist/cjs/features/TextualGuidelines/TextualGuidelines.module.css.js +1 -1
- package/dist/cjs/hooks/useOnDemandCitationFetch.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/service/onDemandApi.js +1 -1
- package/dist/features/BPACitationRenderer/BPACitationRenderer.js +2 -0
- package/dist/features/BPACitationRenderer/BPACitationRenderer.js.map +1 -0
- package/dist/features/BPACitationRenderer/citationTypes.js +2 -0
- package/dist/features/BPACitationRenderer/citationTypes.js.map +1 -0
- package/dist/features/CognitiveCompare/CitationAnchor.js +1 -1
- package/dist/features/CognitiveCompare/CitationRenderer.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
- package/dist/features/CognitiveCompare/CognitivePopup.js +1 -1
- package/dist/features/CognitiveCompare/MoreFunctionsPopup.js +1 -1
- package/dist/features/CognitiveCompare/components/RHSSectionRow.js +1 -1
- package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
- package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
- package/dist/features/CognitiveCompare/components/SvgConnectors.js +1 -1
- package/dist/features/CognitiveCompare/components/connectedLines.js +1 -1
- package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
- package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
- package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
- package/dist/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js +1 -1
- package/dist/features/DualCitation/RuleBookCitationApiComponent.js +2 -0
- package/dist/features/DualCitation/RuleBookCitationApiComponent.js.map +1 -0
- package/dist/features/DualCitation/RuleBookCitationComponent.js +2 -0
- package/dist/features/DualCitation/RuleBookCitationComponent.js.map +1 -0
- package/dist/features/DualCitation/SourceBQDataCompnent.js +2 -0
- package/dist/features/DualCitation/SourceBQDataCompnent.js.map +1 -0
- package/dist/features/DualCitation/SourceBQDataCompnent.module.css.js +2 -0
- package/dist/features/DualCitation/SourceBQDataCompnent.module.css.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +1 -0
- package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js +1 -1
- package/dist/features/PromptemonBlockViewer/PromptemonBlockViewer.js +2 -0
- package/dist/features/PromptemonBlockViewer/PromptemonBlockViewer.js.map +1 -0
- package/dist/features/PromptemonViewer/PromptemonViewer.js +2 -0
- package/dist/features/PromptemonViewer/PromptemonViewer.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
- package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
- package/dist/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
- package/dist/features/SplitterCitations/icons/icons.js +2 -0
- package/dist/features/SplitterCitations/icons/icons.js.map +1 -0
- package/dist/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
- package/dist/features/TextualGuidelines/TextualGuidelines.module.css.js +1 -1
- package/dist/hooks/useOnDemandCitationFetch.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/onDemandApi.js +1 -1
- package/dist/types/node_modules/react-markdown/lib/complex-types.d.ts +23 -0
- package/dist/types/node_modules/react-markdown/lib/complex-types.d.ts.map +1 -0
- package/dist/types/src/Background.d.ts +7 -0
- package/dist/types/src/Background.d.ts.map +1 -0
- package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
- package/dist/types/src/PromptemonBlockViewerTest.d.ts +3 -0
- package/dist/types/src/PromptemonBlockViewerTest.d.ts.map +1 -0
- package/dist/types/src/PromptemonViewerTest.d.ts +3 -0
- package/dist/types/src/PromptemonViewerTest.d.ts.map +1 -0
- package/dist/types/src/RedlineApprovalCardTest.d.ts +1 -0
- package/dist/types/src/RedlineApprovalCardTest.d.ts.map +1 -0
- package/dist/types/src/commonConstants.d.ts +31103 -0
- package/dist/types/src/commonConstants.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts +5 -0
- package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.types.d.ts +229 -0
- package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.types.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/BPACitationRendererTest.d.ts +6 -0
- package/dist/types/src/features/BPACitationRenderer/BPACitationRendererTest.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/DualRuleBookBqCitationTest.d.ts +4 -0
- package/dist/types/src/features/BPACitationRenderer/DualRuleBookBqCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/DualRuleBookGptCitationTest.d.ts +4 -0
- package/dist/types/src/features/BPACitationRenderer/DualRuleBookGptCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/ILRuleBookCitationTest.d.ts +4 -0
- package/dist/types/src/features/BPACitationRenderer/ILRuleBookCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/citationTypes.d.ts +15 -0
- package/dist/types/src/features/BPACitationRenderer/citationTypes.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts +0 -2
- package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts +1 -2
- package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +0 -19
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +1 -19
- package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitivePopup.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts +1 -5
- package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts +1256 -553
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/MoreFunctionsPopup.d.ts +0 -2
- package/dist/types/src/features/CognitiveCompare/MoreFunctionsPopup.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/RHSSectionRow.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts +0 -1
- package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts +1 -2
- package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts +0 -1
- package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +1 -2
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +4 -0
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts +2 -0
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts +162 -0
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts.map +1 -0
- package/dist/types/src/features/DualCitation/RuleBookCitationApiComponent.d.ts +20 -0
- package/dist/types/src/features/DualCitation/RuleBookCitationApiComponent.d.ts.map +1 -0
- package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts +31 -0
- package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts.map +1 -0
- package/dist/types/src/features/DualCitation/SourceBQDataCompnent.d.ts +36 -0
- package/dist/types/src/features/DualCitation/SourceBQDataCompnent.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts +15 -2
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +5 -1
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +1 -1
- package/dist/types/src/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts +11 -0
- package/dist/types/src/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts.map +1 -0
- package/dist/types/src/features/PromptemonBlockViewer/index.d.ts +3 -0
- package/dist/types/src/features/PromptemonBlockViewer/index.d.ts.map +1 -0
- package/dist/types/src/features/PromptemonViewer/PromptemonViewer.d.ts +43 -0
- package/dist/types/src/features/PromptemonViewer/PromptemonViewer.d.ts.map +1 -0
- package/dist/types/src/features/PromptemonViewer/index.d.ts +3 -0
- package/dist/types/src/features/PromptemonViewer/index.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
- package/dist/types/src/features/RulebookCitations/RuleBookCitation.types.d.ts +40 -0
- package/dist/types/src/features/RulebookCitations/RuleBookCitation.types.d.ts.map +1 -0
- package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +2 -15
- package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -1
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +19 -5
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts +0 -2
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -1
- package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts +1 -20
- package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts.map +1 -1
- package/dist/types/src/features/SplitterCitations/icons/icons.d.ts +17 -0
- package/dist/types/src/features/SplitterCitations/icons/icons.d.ts.map +1 -0
- package/dist/types/src/features/SplitterCitations/types.d.ts +78 -0
- package/dist/types/src/features/SplitterCitations/types.d.ts.map +1 -0
- package/dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts +13 -1
- package/dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts.map +1 -1
- package/dist/types/src/features/TextualGuidelines/TextualGuidelines.types.d.ts +81 -0
- package/dist/types/src/features/TextualGuidelines/TextualGuidelines.types.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +10 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/service/onDemandApi.d.ts.map +1 -1
- package/package.json +17 -7
- package/dist/cjs/features/CognitiveCompare/Guidelines/utils/helper.js +0 -2
- package/dist/cjs/features/CognitiveCompare/Guidelines/utils/helper.js.map +0 -1
- package/dist/features/CognitiveCompare/Guidelines/utils/helper.js +0 -2
- package/dist/features/CognitiveCompare/Guidelines/utils/helper.js.map +0 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/helper.d.ts +0 -11
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/helper.d.ts.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface SPBCategory {
|
|
2
|
+
category_id: string;
|
|
3
|
+
category_name: string;
|
|
4
|
+
description?: string | null;
|
|
5
|
+
}
|
|
6
|
+
export interface SPBSubCategory {
|
|
7
|
+
sub_category_id: string;
|
|
8
|
+
sub_category_name: string;
|
|
9
|
+
category_id: string;
|
|
10
|
+
description?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface PromptemonViewerProps {
|
|
13
|
+
block: any;
|
|
14
|
+
onBlockUpdate: (updatedBlock: any) => void;
|
|
15
|
+
isExtracting: boolean;
|
|
16
|
+
isExtracted: boolean;
|
|
17
|
+
onExtractSegments: () => void;
|
|
18
|
+
isSaving: boolean;
|
|
19
|
+
isSaved: boolean;
|
|
20
|
+
onSave: () => void;
|
|
21
|
+
onBack: () => void;
|
|
22
|
+
title?: string;
|
|
23
|
+
categories: SPBCategory[];
|
|
24
|
+
subCategories: SPBSubCategory[];
|
|
25
|
+
selectedCategoryId: string;
|
|
26
|
+
selectedSubCategoryId: string;
|
|
27
|
+
onCategoryChange: (id: string) => void;
|
|
28
|
+
onSubCategoryChange: (id: string) => void;
|
|
29
|
+
onAddCategory?: (data: {
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
}) => Promise<void>;
|
|
33
|
+
onAddSubCategory?: (data: {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
categoryId: string;
|
|
37
|
+
}) => Promise<void>;
|
|
38
|
+
showEditMode?: boolean;
|
|
39
|
+
showExtractSegments?: boolean;
|
|
40
|
+
}
|
|
41
|
+
declare const PromptemonViewer: ({ block, onBlockUpdate, isExtracting, isExtracted, onExtractSegments, isSaving, isSaved, onSave, onBack, title, categories, subCategories, selectedCategoryId, selectedSubCategoryId, onCategoryChange, onSubCategoryChange, showEditMode, showExtractSegments, }: PromptemonViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export default PromptemonViewer;
|
|
43
|
+
//# sourceMappingURL=PromptemonViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptemonViewer.d.ts","sourceRoot":"","sources":["../../../../../src/features/PromptemonViewer/PromptemonViewer.tsx"],"names":[],"mappings":"AA+EA,MAAM,WAAW,WAAW;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,cAAc;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,qBAAqB;IAElC,KAAK,EAAE,GAAG,CAAC;IACX,aAAa,EAAE,CAAC,YAAY,EAAE,GAAG,KAAK,IAAI,CAAC;IAG3C,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAG9B,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IAGnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,UAAU,EAAE,WAAW,EAAE,CAAC;IAC1B,aAAa,EAAE,cAAc,EAAE,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/E,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAuoBD,QAAA,MAAM,gBAAgB,sQAmBnB,qBAAqB,4CA0IvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/PromptemonViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -64,6 +64,6 @@ type Props = {
|
|
|
64
64
|
redlineId: string;
|
|
65
65
|
aiReasonId?: string;
|
|
66
66
|
};
|
|
67
|
-
declare const _default: React.MemoExoticComponent<(
|
|
67
|
+
declare const _default: React.MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
68
68
|
export default _default;
|
|
69
69
|
//# sourceMappingURL=CognitiveComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CognitiveComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAUlE,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKlH,KAAK,OAAO,GAAG;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAClC,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAGF,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACvC;AAED,KAAK,KAAK,GAAG;IAET,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,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AM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,aAAa,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,WAAW,CAAC,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;;AAudF,wBAAsD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TextualGuidelinesThemeTokens, TextualGuidelinesClassNames, TextualGuidelinesStyles } from "../TextualGuidelines/TextualGuidelines.types";
|
|
3
|
+
export interface RuleBookCitationClassNames {
|
|
4
|
+
container?: string;
|
|
5
|
+
loadingContainer?: string;
|
|
6
|
+
loadingIcon?: string;
|
|
7
|
+
loadingText?: string;
|
|
8
|
+
errorContainer?: string;
|
|
9
|
+
emptyContainer?: string;
|
|
10
|
+
contentWrapper?: string;
|
|
11
|
+
textualGuidelines?: TextualGuidelinesClassNames;
|
|
12
|
+
}
|
|
13
|
+
export interface RuleBookCitationStyles {
|
|
14
|
+
container?: React.CSSProperties;
|
|
15
|
+
loadingContainer?: React.CSSProperties;
|
|
16
|
+
loadingIcon?: React.CSSProperties;
|
|
17
|
+
loadingText?: React.CSSProperties;
|
|
18
|
+
errorContainer?: React.CSSProperties;
|
|
19
|
+
emptyContainer?: React.CSSProperties;
|
|
20
|
+
contentWrapper?: React.CSSProperties;
|
|
21
|
+
textualGuidelines?: TextualGuidelinesStyles;
|
|
22
|
+
}
|
|
23
|
+
export interface RuleBookCitationThemeTokens extends TextualGuidelinesThemeTokens {
|
|
24
|
+
"--rb-container-bg"?: string;
|
|
25
|
+
"--rb-container-min-height"?: string;
|
|
26
|
+
"--rb-loading-color"?: string;
|
|
27
|
+
"--rb-loading-gap"?: string;
|
|
28
|
+
"--rb-error-bg"?: string;
|
|
29
|
+
"--rb-error-border"?: string;
|
|
30
|
+
"--rb-error-color"?: string;
|
|
31
|
+
"--rb-error-border-radius"?: string;
|
|
32
|
+
"--rb-error-padding"?: string;
|
|
33
|
+
"--rb-empty-bg"?: string;
|
|
34
|
+
"--rb-empty-border"?: string;
|
|
35
|
+
"--rb-empty-color"?: string;
|
|
36
|
+
"--rb-empty-border-radius"?: string;
|
|
37
|
+
"--rb-empty-padding"?: string;
|
|
38
|
+
"--rb-content-margin-top"?: string;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=RuleBookCitation.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleBookCitation.types.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitation.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EACV,4BAA4B,EAC5B,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,8CAA8C,CAAC;AAEtD,MAAM,WAAW,0BAA0B;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC;CACjD;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED,MAAM,WAAW,2BAA4B,SAAQ,4BAA4B;IAC/E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export interface CitationData {
|
|
2
|
-
file_id: string;
|
|
3
|
-
phrase_to_highlight: string;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}
|
|
6
1
|
export interface SourceAttachment {
|
|
7
2
|
id: string;
|
|
8
3
|
gcsUrl?: string;
|
|
@@ -10,13 +5,7 @@ export interface SourceAttachment {
|
|
|
10
5
|
is_guideline_file?: boolean;
|
|
11
6
|
[key: string]: any;
|
|
12
7
|
}
|
|
13
|
-
export type
|
|
14
|
-
export interface CitationResponse {
|
|
15
|
-
citations?: CitationData[];
|
|
16
|
-
responseData?: {
|
|
17
|
-
citations?: CitationData[];
|
|
18
|
-
};
|
|
19
|
-
}
|
|
8
|
+
export type Guidelines = SourceAttachment[] | Record<string, SourceAttachment[]>;
|
|
20
9
|
export interface SignedUrlResponse {
|
|
21
10
|
responseData?: {
|
|
22
11
|
signed_url?: string;
|
|
@@ -24,8 +13,6 @@ export interface SignedUrlResponse {
|
|
|
24
13
|
signed_url?: string;
|
|
25
14
|
error?: string;
|
|
26
15
|
}
|
|
27
|
-
export declare function
|
|
28
|
-
export declare function getSignedUrl(gcsUrl: string, url: string): Promise<SignedUrlResponse>;
|
|
29
|
-
export declare function getFileContent(signedUrl: string): Promise<string>;
|
|
16
|
+
export declare function isJSONFile(extension?: string): boolean;
|
|
30
17
|
export declare function getNestedValue(obj: any, path: string): any;
|
|
31
18
|
//# sourceMappingURL=RuleBookCitationApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleBookCitationApi.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RuleBookCitationApi.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationApi.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,UAAU,GAClB,gBAAgB,EAAE,GAClB,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,MAAM,WAE5C;AAGD,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAuB1D"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import type { RuleBookCitationThemeTokens, RuleBookCitationClassNames, RuleBookCitationStyles } from "./RuleBookCitation.types";
|
|
3
|
+
import { Guidelines, SignedUrlResponse } from "./RuleBookCitationApi";
|
|
3
4
|
interface RuleBookCitationWrapperProps {
|
|
4
|
-
|
|
5
|
+
data?: {
|
|
6
|
+
citationNumber: number;
|
|
7
|
+
fileDetails?: {
|
|
8
|
+
file_id: string;
|
|
9
|
+
phrase_to_highlight: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
msg?: any;
|
|
5
13
|
citationIndex?: number;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
14
|
+
guidelines?: Guidelines;
|
|
15
|
+
additionalClassNames?: {
|
|
16
|
+
container?: string;
|
|
17
|
+
};
|
|
18
|
+
getSignedUrl: (gcsUrl: string) => Promise<SignedUrlResponse>;
|
|
19
|
+
getFileContent: (filePath: string) => Promise<string>;
|
|
20
|
+
themeTokens?: RuleBookCitationThemeTokens;
|
|
21
|
+
classNames?: RuleBookCitationClassNames;
|
|
22
|
+
styles?: RuleBookCitationStyles;
|
|
9
23
|
}
|
|
10
24
|
declare const RuleBookCitationWrapper: React.FC<RuleBookCitationWrapperProps>;
|
|
11
25
|
export default RuleBookCitationWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleBookCitationWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,
|
|
1
|
+
{"version":3,"file":"RuleBookCitationWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAGL,UAAU,EACV,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAK/B,UAAU,4BAA4B;IACpC,IAAI,CAAC,EAAE;QACL,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,CAAC,EAAE;YACZ,OAAO,EAAE,MAAM,CAAC;YAChB,mBAAmB,EAAE,MAAM,CAAC;SAC7B,CAAC;KACH,CAAC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,oBAAoB,CAAC,EAAE;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC7D,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtD,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC,MAAM,CAAC,EAAE,sBAAsB,CAAC;CACjC;AAED,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAgOnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleBookCitationWrapperTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapperTest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RuleBookCitationWrapperTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapperTest.tsx"],"names":[],"mappings":""}
|
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
title?: string;
|
|
4
|
-
confidenceScore?: number;
|
|
5
|
-
confidenceScoreTitle?: string;
|
|
6
|
-
showDocIcon?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface SplitterProps {
|
|
9
|
-
left: React.ReactNode;
|
|
10
|
-
right: React.ReactNode;
|
|
11
|
-
defaultLeftWidth?: number;
|
|
12
|
-
minLeftWidth?: number;
|
|
13
|
-
minRightWidth?: number;
|
|
14
|
-
className?: string;
|
|
15
|
-
height?: string | number;
|
|
16
|
-
width?: string | number;
|
|
17
|
-
header?: SplitterHeader;
|
|
18
|
-
onLeftWidthChange?: (width: number) => void;
|
|
19
|
-
openInFullscreen?: boolean;
|
|
20
|
-
onFullscreenClose?: () => void;
|
|
21
|
-
}
|
|
2
|
+
import type { SplitterProps } from "./types";
|
|
22
3
|
declare const SplitterCitationsComponent: React.FC<SplitterProps>;
|
|
23
4
|
export default SplitterCitationsComponent;
|
|
24
5
|
//# sourceMappingURL=SplitterCitationsComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitterCitationsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/SplitterCitationsComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SplitterCitationsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/SplitterCitationsComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgevD,CAAC;AACF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IconColorProps {
|
|
3
|
+
fill?: string;
|
|
4
|
+
stroke?: string;
|
|
5
|
+
arrowStroke?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SidebarOpenIcon: React.FC<IconColorProps>;
|
|
8
|
+
export declare const SidebarCloseIcon: React.FC<IconColorProps>;
|
|
9
|
+
export declare const AIMagicIcon: React.FC<{
|
|
10
|
+
color?: string;
|
|
11
|
+
size?: number;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const MaximizeIcon: React.FC<{
|
|
14
|
+
color?: string;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../src/features/SplitterCitations/icons/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAyBpD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAyBrD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAoBnE,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAiBrD,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface SplitterHeader {
|
|
3
|
+
title?: string;
|
|
4
|
+
confidenceScore?: number;
|
|
5
|
+
confidenceScoreTitle?: string;
|
|
6
|
+
showDocIcon?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface SplitterClassNames {
|
|
9
|
+
container?: string;
|
|
10
|
+
header?: string;
|
|
11
|
+
headerTitle?: string;
|
|
12
|
+
headerIcon?: string;
|
|
13
|
+
headerActions?: string;
|
|
14
|
+
confidenceBadge?: string;
|
|
15
|
+
fullscreenButton?: string;
|
|
16
|
+
panel?: string;
|
|
17
|
+
leftPanel?: string;
|
|
18
|
+
rightPanel?: string;
|
|
19
|
+
divider?: string;
|
|
20
|
+
collapseButton?: string;
|
|
21
|
+
dialogOverlay?: string;
|
|
22
|
+
dialogContent?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface SplitterStyles {
|
|
25
|
+
container?: React.CSSProperties;
|
|
26
|
+
header?: React.CSSProperties;
|
|
27
|
+
headerTitle?: React.CSSProperties;
|
|
28
|
+
headerIcon?: React.CSSProperties;
|
|
29
|
+
headerActions?: React.CSSProperties;
|
|
30
|
+
confidenceBadge?: React.CSSProperties;
|
|
31
|
+
fullscreenButton?: React.CSSProperties;
|
|
32
|
+
panel?: React.CSSProperties;
|
|
33
|
+
leftPanel?: React.CSSProperties;
|
|
34
|
+
rightPanel?: React.CSSProperties;
|
|
35
|
+
divider?: React.CSSProperties;
|
|
36
|
+
collapseButton?: React.CSSProperties;
|
|
37
|
+
dialogOverlay?: React.CSSProperties;
|
|
38
|
+
dialogContent?: React.CSSProperties;
|
|
39
|
+
}
|
|
40
|
+
export interface SplitterIconProps {
|
|
41
|
+
fill?: string;
|
|
42
|
+
stroke?: string;
|
|
43
|
+
arrowStroke?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface SplitterProps {
|
|
46
|
+
left: React.ReactNode;
|
|
47
|
+
right: React.ReactNode;
|
|
48
|
+
defaultLeftWidth?: number;
|
|
49
|
+
minLeftWidth?: number;
|
|
50
|
+
minRightWidth?: number;
|
|
51
|
+
className?: string;
|
|
52
|
+
height?: string | number;
|
|
53
|
+
width?: string | number;
|
|
54
|
+
header?: SplitterHeader;
|
|
55
|
+
onLeftWidthChange?: (width: number) => void;
|
|
56
|
+
openInFullscreen?: boolean;
|
|
57
|
+
onFullscreenClose?: () => void;
|
|
58
|
+
fullscreenOnly?: boolean;
|
|
59
|
+
classNames?: SplitterClassNames;
|
|
60
|
+
customStyles?: SplitterStyles;
|
|
61
|
+
iconProps?: {
|
|
62
|
+
collapse?: SplitterIconProps;
|
|
63
|
+
maximize?: {
|
|
64
|
+
color?: string;
|
|
65
|
+
};
|
|
66
|
+
close?: {
|
|
67
|
+
color?: string;
|
|
68
|
+
};
|
|
69
|
+
magic?: {
|
|
70
|
+
color?: string;
|
|
71
|
+
size?: number;
|
|
72
|
+
};
|
|
73
|
+
headerIcon?: {
|
|
74
|
+
color?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/types.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf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EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,iBAAiB,CAAC;QAC7B,QAAQ,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9B,KAAK,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3B,KAAK,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC1C,UAAU,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACjC,CAAC;CACH"}
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
+
import type { TextualGuidelinesThemeTokens, TextualGuidelinesClassNames, TextualGuidelinesStyles } from "./TextualGuidelines.types";
|
|
1
2
|
import { INonReasoningSource } from "../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent";
|
|
3
|
+
export interface AccordionToggleParams {
|
|
4
|
+
highlightIndex: number;
|
|
5
|
+
phrase: string;
|
|
6
|
+
isExpanded: boolean;
|
|
7
|
+
}
|
|
2
8
|
interface ITextualGuideLinesComponentProps {
|
|
3
9
|
TextualGuideLines: string;
|
|
4
10
|
HighlightedWords: string[];
|
|
5
11
|
InternalGptReasoningData: INonReasoningSource[];
|
|
6
12
|
index: number;
|
|
7
13
|
headerTitle?: string;
|
|
14
|
+
IgptHeaderTitle?: string;
|
|
8
15
|
useVariantHighlight?: boolean;
|
|
9
16
|
fuzzyThreshold?: number;
|
|
17
|
+
onAccordionToggle?: (params: AccordionToggleParams) => void;
|
|
18
|
+
isInternalGptReasoningLoading?: boolean;
|
|
19
|
+
themeTokens?: TextualGuidelinesThemeTokens;
|
|
20
|
+
classNames?: TextualGuidelinesClassNames;
|
|
21
|
+
styles?: TextualGuidelinesStyles;
|
|
10
22
|
}
|
|
11
|
-
declare const TextualGuideLinesComponent: ({ index, TextualGuideLines, HighlightedWords, InternalGptReasoningData, headerTitle, useVariantHighlight, fuzzyThreshold, }: ITextualGuideLinesComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare const TextualGuideLinesComponent: ({ index, TextualGuideLines, HighlightedWords, InternalGptReasoningData, headerTitle, IgptHeaderTitle, useVariantHighlight, fuzzyThreshold, onAccordionToggle, isInternalGptReasoningLoading, themeTokens, classNames, styles: styleOverrides, }: ITextualGuideLinesComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
24
|
export default TextualGuideLinesComponent;
|
|
13
25
|
//# sourceMappingURL=TextualGuideLinesComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextualGuideLinesComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/TextualGuidelines/TextualGuideLinesComponent.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yEAAyE,CAAC;AAG9G,UAAU,gCAAgC;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,wBAAwB,EAAE,mBAAmB,EAAE,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"TextualGuideLinesComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/TextualGuidelines/TextualGuideLinesComponent.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,4BAA4B,EAC5B,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yEAAyE,CAAC;AAG9G,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,gCAAgC;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,wBAAwB,EAAE,mBAAmB,EAAE,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAC,MAAM,CAAA;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC5D,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAC3C,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC;AAyFA,QAAA,MAAM,0BAA0B,oPAc9B,gCAAgC,4CA0XlC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface TextualGuidelinesThemeTokens {
|
|
3
|
+
"--tg-container-bg"?: string;
|
|
4
|
+
"--tg-container-margin-left"?: string;
|
|
5
|
+
"--tg-header-bg"?: string;
|
|
6
|
+
"--tg-header-border"?: string;
|
|
7
|
+
"--tg-header-padding"?: string;
|
|
8
|
+
"--tg-header-title-color"?: string;
|
|
9
|
+
"--tg-header-title-bg"?: string;
|
|
10
|
+
"--tg-header-title-font-size"?: string;
|
|
11
|
+
"--tg-header-title-font-weight"?: string;
|
|
12
|
+
"--tg-nav-counter-color"?: string;
|
|
13
|
+
"--tg-nav-counter-font-size"?: string;
|
|
14
|
+
"--tg-nav-button-bg"?: string;
|
|
15
|
+
"--tg-nav-button-border"?: string;
|
|
16
|
+
"--tg-nav-button-border-radius"?: string;
|
|
17
|
+
"--tg-nav-button-icon-color"?: string;
|
|
18
|
+
"--tg-content-bg"?: string;
|
|
19
|
+
"--tg-content-border"?: string;
|
|
20
|
+
"--tg-content-border-radius"?: string;
|
|
21
|
+
"--tg-content-padding"?: string;
|
|
22
|
+
"--tg-content-text-color"?: string;
|
|
23
|
+
"--tg-highlight-bg"?: string;
|
|
24
|
+
"--tg-highlight-color"?: string;
|
|
25
|
+
"--tg-highlight-border-radius"?: string;
|
|
26
|
+
"--tg-highlight-active-bg"?: string;
|
|
27
|
+
"--tg-highlight-active-color"?: string;
|
|
28
|
+
"--tg-highlight-active-border"?: string;
|
|
29
|
+
"--tg-highlight-active-shadow"?: string;
|
|
30
|
+
"--tg-highlight-variant-bg"?: string;
|
|
31
|
+
"--tg-highlight-variant-color"?: string;
|
|
32
|
+
"--tg-highlight-variant-active-bg"?: string;
|
|
33
|
+
"--tg-highlight-variant-active-border"?: string;
|
|
34
|
+
"--tg-highlight-variant-active-color"?: string;
|
|
35
|
+
"--tg-bold-text-font-weight"?: string;
|
|
36
|
+
"--tg-list-counter-width"?: string;
|
|
37
|
+
"--tg-list-counter-font-weight"?: string;
|
|
38
|
+
"--tg-header-line-font-weight"?: string;
|
|
39
|
+
"--tg-content-line-height"?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface TextualGuidelinesClassNames {
|
|
42
|
+
container?: string;
|
|
43
|
+
header?: string;
|
|
44
|
+
headerTitle?: string;
|
|
45
|
+
headerActions?: string;
|
|
46
|
+
navCounter?: string;
|
|
47
|
+
navButtonPrev?: string;
|
|
48
|
+
navButtonNext?: string;
|
|
49
|
+
contentArea?: string;
|
|
50
|
+
contentInner?: string;
|
|
51
|
+
blockLine?: string;
|
|
52
|
+
headerLine?: string;
|
|
53
|
+
listItemLine?: string;
|
|
54
|
+
listCounter?: string;
|
|
55
|
+
boldText?: string;
|
|
56
|
+
highlight?: string;
|
|
57
|
+
highlightActive?: string;
|
|
58
|
+
highlightVariant?: string;
|
|
59
|
+
highlightActiveVariant?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface TextualGuidelinesStyles {
|
|
62
|
+
container?: React.CSSProperties;
|
|
63
|
+
header?: React.CSSProperties;
|
|
64
|
+
headerTitle?: React.CSSProperties;
|
|
65
|
+
headerActions?: React.CSSProperties;
|
|
66
|
+
navCounter?: React.CSSProperties;
|
|
67
|
+
navButtonPrev?: React.CSSProperties;
|
|
68
|
+
navButtonNext?: React.CSSProperties;
|
|
69
|
+
contentArea?: React.CSSProperties;
|
|
70
|
+
contentInner?: React.CSSProperties;
|
|
71
|
+
blockLine?: React.CSSProperties;
|
|
72
|
+
headerLine?: React.CSSProperties;
|
|
73
|
+
listItemLine?: React.CSSProperties;
|
|
74
|
+
listCounter?: React.CSSProperties;
|
|
75
|
+
boldText?: React.CSSProperties;
|
|
76
|
+
highlight?: React.CSSProperties;
|
|
77
|
+
highlightActive?: React.CSSProperties;
|
|
78
|
+
highlightVariant?: React.CSSProperties;
|
|
79
|
+
highlightActiveVariant?: React.CSSProperties;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=TextualGuidelines.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextualGuidelines.types.d.ts","sourceRoot":"","sources":["../../../../../src/features/TextualGuidelines/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,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,sBAAsB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC9C"}
|
|
@@ -26,6 +26,7 @@ export { default as ChatDrawer } from "./features/ChatDrawer/ChatDrawer";
|
|
|
26
26
|
export type { ChatDrawerProps } from "./features/ChatDrawer/types/ChatDrawer.types";
|
|
27
27
|
export { FILE_INGESTION_STATUS, SUMMARY_EXPAND_HEIGHT_NUDGE, TRUNCATE_THRESHOLD } from "./features/ChatDrawer/constants/ChatDrawer";
|
|
28
28
|
export { default as SplitterCitationsComponent } from './features/SplitterCitations/SplitterCitationsComponent';
|
|
29
|
+
export { SourcesBQCitation, findSourceCitation, parseSourcesBQHref } from "./features/DualCitation/SourceBQDataCompnent";
|
|
29
30
|
export { default as CognitiveCompare } from "./features/CognitiveCompare/CognitiveCompare";
|
|
30
31
|
export { default as CognitiveInternalgptCoreComponent } from "./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent";
|
|
31
32
|
export { default as InternalgptReasoningComponent } from "./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent";
|
|
@@ -34,11 +35,19 @@ export { default as RuleBookCitationWrapper } from "./features/RulebookCitations
|
|
|
34
35
|
export { IngestionStatusComponent } from "./features/IngestionStatus/IngestionStatusComponent";
|
|
35
36
|
export { IngestionStatusChip } from "./features/IngestionStatus/IngestionStatusComponent";
|
|
36
37
|
export { ManageReminders } from "./features/ManageRemainders/ManageReminders";
|
|
38
|
+
export { default as PromptemonBlockViewer } from "./features/PromptemonBlockViewer/PromptemonBlockViewer";
|
|
39
|
+
export type { PromptemonBlockViewerProps } from "./features/PromptemonBlockViewer/PromptemonBlockViewer";
|
|
40
|
+
export { default as PromptemonViewer } from "./features/PromptemonViewer/PromptemonViewer";
|
|
41
|
+
export type { PromptemonViewerProps, SPBCategory, SPBSubCategory } from "./features/PromptemonViewer/PromptemonViewer";
|
|
37
42
|
export { default as GptWebCitation } from "./features/GptWebCitation/GptWebCitation";
|
|
38
43
|
export { useOnDemandCitationFetch } from "./hooks/useOnDemandCitationFetch";
|
|
39
44
|
export { default as InstantLearningCitationWrapper } from "./features/InstantLearningCitation/InstantLearningCitationComponent";
|
|
40
|
-
export { default as
|
|
45
|
+
export { default as BPACitationRenderer } from "./features/BPACitationRenderer/BPACitationRenderer";
|
|
41
46
|
export { mapCitationDataToDisplay, getWebCitationImageUrl, resolveSkeletonVisitUrl, extractTopicFromContent, extractRelevanceScoreFromContent, extractLearnedFromUrl, sanitizeExternalUrl, } from "./features/GptWebCitation/utils/citationData.utils";
|
|
42
47
|
export type { IGptWebCitationProps, IGptCitationConfig, IGptWebCitationStyleOverrides, IGptWebCitationGptStyles, IGptWebCitationWebStyles, IGptWebCitationImageStyles, IGptWebCitationSkeletonStyles, IGptWebCitationVisitLinkStyles, IGptWebCitationFullScreenStyles, GptWebCitationView, GptWebCitationStatus, IWebCitationApiResponse, IGptWebCitationDbMetadata, IGptWebCitationImageMetadata, IGptWebCitationMappedData, IGptWebCitationImageIconsConfig, } from "./features/GptWebCitation/types";
|
|
43
48
|
export { CitationType, allowsGptCitationView, allowsWebCitationView, showsCitationViewToggle, } from "./features/GptWebCitation/types";
|
|
49
|
+
export type { TextualGuidelinesThemeTokens, TextualGuidelinesClassNames, TextualGuidelinesStyles, } from "./features/TextualGuidelines/TextualGuidelines.types";
|
|
50
|
+
export type { CognitiveReasoningThemeTokens, CognitiveReasoningClassNames, CognitiveReasoningStyles, } from "./features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types";
|
|
51
|
+
export type { RuleBookCitationThemeTokens, RuleBookCitationClassNames, RuleBookCitationStyles, } from "./features/RulebookCitations/RuleBookCitation.types";
|
|
52
|
+
export type { SplitterProps as SplitterCitationsProps, SplitterClassNames as SplitterCitationsClassNames, SplitterStyles as SplitterCitationsStyles, SplitterIconProps as SplitterCitationsIconProps, SplitterHeader as SplitterCitationsHeader, } from './features/SplitterCitations/types';
|
|
44
53
|
//# 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,EAA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oD,CAAA;AACjG,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,oDAAoD,CAAC;AAC5D,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,4BAA4B,EAC5B,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,sDAAsD,CAAC;AAC9D,YAAY,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,+EAA+E,CAAC;AACvF,YAAY,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,qDAAqD,CAAC;AAC7D,YAAY,EACV,aAAa,IAAI,sBAAsB,EACvC,kBAAkB,IAAI,2BAA2B,EACjD,cAAc,IAAI,uBAAuB,EACzC,iBAAiB,IAAI,0BAA0B,EAC/C,cAAc,IAAI,uBAAuB,GAC1C,MAAM,oCAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onDemandApi.d.ts","sourceRoot":"","sources":["../../../../src/service/onDemandApi.ts"],"names":[],"mappings":"AACA,OAAc,EAAc,aAAa,EAAE,kBAAkB,EAAiB,MAAM,OAAO,CAAC;AAG5F,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,gCAAgC,EACjC,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EACV,YAAY,EACZ,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,gCAAgC,EAChC,YAAY,GACb,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,iBAAiB,QAAqB,CAAC;AAIpD,eAAO,MAAM,qBAAqB,cACrB,MAAM,gBACH,MAAM,kBACJ,MAAM,wBACA,MAAM,SACrB,MAAM,WACL,MAAM,mCACkB,MAAM,WAC9B,MAAM,qBACI,MAAM,sBACL,OAAO,kBACX,MAAM,oBACJ,MAAM,WACf,MAAM,oBACI,GAAG,KACpB,QAAQ,kBAAkB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"onDemandApi.d.ts","sourceRoot":"","sources":["../../../../src/service/onDemandApi.ts"],"names":[],"mappings":"AACA,OAAc,EAAc,aAAa,EAAE,kBAAkB,EAAiB,MAAM,OAAO,CAAC;AAG5F,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,gCAAgC,EACjC,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EACV,YAAY,EACZ,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,gCAAgC,EAChC,YAAY,GACb,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,iBAAiB,QAAqB,CAAC;AAIpD,eAAO,MAAM,qBAAqB,cACrB,MAAM,gBACH,MAAM,kBACJ,MAAM,wBACA,MAAM,SACrB,MAAM,WACL,MAAM,mCACkB,MAAM,WAC9B,MAAM,qBACI,MAAM,sBACL,OAAO,kBACX,MAAM,oBACJ,MAAM,WACf,MAAM,oBACI,GAAG,KACpB,QAAQ,kBAAkB,GAAG,CAAC,CAwDhC,CAAC;AAGF,eAAO,MAAM,mBAAmB,cACnB,MAAM,gBACH,MAAM,kBACJ,MAAM,SAChB,MAAM,WACJ,MAAM,KACb,QAAQ,gCAAgC,CAiB1C,CAAC;AAmHF,eAAO,MAAM,iBAAiB,aAAc,MAAM,YAAW,MAAM,KAAY,aAsC9E,CAAC;AAEF,eAAO,MAAM,gBAAgB,WACnB,MAAM,OACT,MAAM,WACF,GAAG,WACyC,CAAC;AAKxD,eAAO,MAAM,cAAc,cACjB,MAAM,OACT,MAAM,YACD;IACR,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;;WAGM,YAAY,GAAG,IAAI;EAuD3B,CAAC;AAEF,eAAO,MAAM,0BAA0B,0DAG7B,MAAM,OACT,MAAM;WAEF,GAAG;aACD,GAAG;;;;;kFAM+D,OAAO;yCA4ErF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viswa-test/test-citation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.253",
|
|
4
4
|
"author": "Viswa Koduru",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"require": "./dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js",
|
|
108
108
|
"types": "./dist/types/src/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts"
|
|
109
109
|
},
|
|
110
|
-
|
|
110
|
+
"./useOnDemandCitationFetch": {
|
|
111
111
|
"import": "./dist/hooks/useOnDemandCitationFetch.js",
|
|
112
112
|
"require": "./dist/cjs/hooks/useOnDemandCitationFetch.js",
|
|
113
113
|
"types": "./dist/types/src/hooks/useOnDemandCitationFetch.d.ts"
|
|
@@ -172,10 +172,20 @@
|
|
|
172
172
|
"require": "./dist/features/InstantLearningCitation/InstantLearningCitationComponent.js",
|
|
173
173
|
"types": "./dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts"
|
|
174
174
|
},
|
|
175
|
-
"./
|
|
176
|
-
"import": "./dist/features/
|
|
177
|
-
"require": "./dist/features/
|
|
178
|
-
"types": "./dist/types/src/features/
|
|
175
|
+
"./BPACitationRenderer": {
|
|
176
|
+
"import": "./dist/features/BPACitationRenderer/BPACitationRenderer.js",
|
|
177
|
+
"require": "./dist/features/BPACitationRenderer/BPACitationRenderer.js",
|
|
178
|
+
"types": "./dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts"
|
|
179
|
+
},
|
|
180
|
+
"./PromptemonViewer": {
|
|
181
|
+
"import": "./dist/features/PromptemonViewer/PromptemonViewer.js",
|
|
182
|
+
"require": "./dist/cjs/features/PromptemonViewer/PromptemonViewer.js",
|
|
183
|
+
"types": "./dist/types/src/features/PromptemonViewer/PromptemonViewer.d.ts"
|
|
184
|
+
},
|
|
185
|
+
"./PromptemonBlockViewer": {
|
|
186
|
+
"import": "./dist/features/PromptemonBlockViewer/PromptemonBlockViewer.js",
|
|
187
|
+
"require": "./dist/cjs/features/PromptemonBlockViewer/PromptemonBlockViewer.js",
|
|
188
|
+
"types": "./dist/types/src/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts"
|
|
179
189
|
}
|
|
180
190
|
},
|
|
181
191
|
"repository": {
|
|
@@ -189,7 +199,7 @@
|
|
|
189
199
|
"dist"
|
|
190
200
|
],
|
|
191
201
|
"scripts": {
|
|
192
|
-
"start": "
|
|
202
|
+
"start": "craco start",
|
|
193
203
|
"build": "rollup -c",
|
|
194
204
|
"tsupBuild": "tsup src/index.ts",
|
|
195
205
|
"test": "craco test",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(t){if("string"!=typeof t||""===t.trim())return null;try{var r="undefined"!=typeof window?window.location.origin:"http://localhost";return new URL(t,r)}catch(t){return null}},r=function(t,r){var e;if("string"!=typeof t||"string"!=typeof r||""===r.trim())return"";try{var n=t.match(new RegExp("\\b".concat(r,"\\s*=\\s*(['\"])(.*?)\\1"),"i"));return null!==(e=null==n?void 0:n[2])&&void 0!==e?e:""}catch(t){return""}},e=function(t){if("string"!=typeof t||""===t)return"";try{return t.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}catch(r){return t}},n=function(t,r,n){if("string"!=typeof t||""===t.trim())return t;if("string"!=typeof r||""===r.trim())return t;if(!n||"string"!=typeof n)return t;try{var a=e(n),i=new RegExp("\\b".concat(r,"\\s*=\\s*(['\"])(.*?)\\1"),"i");return i.test(t)?t.replace(i,function(){return"".concat(r,'="').concat(a,'"')}):t.replace(/<a\b/i,function(){return"<a ".concat(r,'="').concat(a,'"')})}catch(r){return t}};exports.mergeRulebookCitationsIntoMatchingLinks=function(a){if("string"!=typeof a||!a||!a.includes("rulebook_citation"))return a;try{var i=a;return Array.from(a.matchAll(/<a\b((?:[^>"']|"[^"]*"|'[^']*')*)>([\s\S]*?)<\/a>/gi)).forEach(function(a){var c,o=a[0],u=a[1]||"",s=r(u,"type");if("rulebook_citation"===s){var l=r(u,"reason"),f=r(u,"href").replace(/&/gi,"&"),p=t(f),h=null===(c=((null==p?void 0:p.searchParams.get("citationNumber"))||"").match(/^rb_(.+)$/))||void 0===c?void 0:c[1];if(h){var g={citation_type:(null==p?void 0:p.searchParams.get("citation_type"))||"",phrase_to_highlight:(null==p?void 0:p.searchParams.get("phrase_to_highlight"))||""};if(g.citation_type||g.phrase_to_highlight){var v=!1,y=function(r){var e=t(r.replace(/&/gi,"&"));return(null==e?void 0:e.searchParams.get("citationNumber"))!==h?r:(v=!0,function(r,e){if("string"!=typeof r||""===r.trim())return r;if(!e||"object"!=typeof e)return r;try{var n=t(r);if(!n)return r;Object.entries(e).forEach(function(t){var r=t[0],e=t[1];e&&n.searchParams.set(r,e)});var a="".concat(n.pathname).concat(n.search).concat(n.hash);return r.startsWith("./")?".".concat(a):!r.startsWith("/")&&a.startsWith("/")?a.slice(1):a}catch(t){return r}}(r,g))};i=i.replace(/\[([^\]]+)\]\(([^)\n]+)\)/g,function(t,r,n){var a=y(n);return a===n?t:'<a type="'.concat(e(s),'" reason="').concat(e(l),'" href="').concat(e(a),'">').concat(r,"</a>")}),v||(i=i.replace(/<a\b((?:[^>"']|"[^"]*"|'[^']*')*)>/gi,function(t,e){if("rulebook_citation"===r(e,"type"))return t;var a=r(e,"href"),i=y(a);if(i===a)return t;var c=t.replace(/\bhref\s*=\s*(['"])(.*?)\1/i,function(t,r){return"href=".concat(r).concat(i).concat(r)});return n(n(c,"type",s),"reason",l)})),i=i.split(o).join("")}else i=i.split(o).join("")}else i=i.split(o).join("")}}),i}catch(t){return a}};
|
|
2
|
-
//# sourceMappingURL=helper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|