@e-llm-studio/requirement-ai 0.0.46 → 0.0.48
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/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +2 -0
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js.map +1 -0
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.module.css.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
- package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +2 -0
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js.map +1 -0
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.module.css.js +2 -0
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.module.css.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/ExpandableOl.d.ts +6 -2
- package/dist/types/src/features/RequirementAI/shared/ExpandableOl.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/ReqAiCitationRenderer.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/shared/ReqAiCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts +0 -14
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +6 -3
- package/dist/assests/svg/chevronDownArrow.svg.js +0 -2
- package/dist/assests/svg/chevronDownArrow.svg.js.map +0 -1
- package/dist/assests/svg/chevronUp.svg.js +0 -2
- package/dist/assests/svg/chevronUp.svg.js.map +0 -1
- package/dist/cjs/assests/svg/chevronDownArrow.svg.js +0 -2
- package/dist/cjs/assests/svg/chevronDownArrow.svg.js.map +0 -1
- package/dist/cjs/assests/svg/chevronUp.svg.js +0 -2
- package/dist/cjs/assests/svg/chevronUp.svg.js.map +0 -1
- package/dist/cjs/constants/diagnosticStylesBySeverity.js +0 -2
- package/dist/cjs/constants/diagnosticStylesBySeverity.js.map +0 -1
- package/dist/cjs/features/CodeCitation/CodeCitation.js +0 -2
- package/dist/cjs/features/CodeCitation/CodeCitation.js.map +0 -1
- package/dist/cjs/features/CodeCitation/CodeCitation.module.css.js +0 -2
- package/dist/cjs/features/CodeCitation/CodeCitation.module.css.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/Accordian.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/Accordian.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/CodeCitationPopup.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/CodeCitationPopup.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/CodeCitationsStats.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/CodeCitationsStats.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/CodeEditor.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/CodeEditor.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/DescriptionWithToggle.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/DescriptionWithToggle.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/HighlightedCodeDetails.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/HighlightedCodeDetails.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/Spinner.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/Spinner.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/StatsComponents/StatsComponent.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/StatsComponents/StatsComponent.js.map +0 -1
- package/dist/cjs/features/CodeCitation/_components/ThemeToggle.js +0 -2
- package/dist/cjs/features/CodeCitation/_components/ThemeToggle.js.map +0 -1
- package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js +0 -2
- package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js.map +0 -1
- package/dist/cjs/utils/codeCitations.utils.js +0 -2
- package/dist/cjs/utils/codeCitations.utils.js.map +0 -1
- package/dist/cjs/utils/themeManager.js +0 -2
- package/dist/cjs/utils/themeManager.js.map +0 -1
- package/dist/constants/diagnosticStylesBySeverity.js +0 -2
- package/dist/constants/diagnosticStylesBySeverity.js.map +0 -1
- package/dist/features/CodeCitation/CodeCitation.js +0 -2
- package/dist/features/CodeCitation/CodeCitation.js.map +0 -1
- package/dist/features/CodeCitation/CodeCitation.module.css.js +0 -2
- package/dist/features/CodeCitation/CodeCitation.module.css.js.map +0 -1
- package/dist/features/CodeCitation/_components/Accordian.js +0 -2
- package/dist/features/CodeCitation/_components/Accordian.js.map +0 -1
- package/dist/features/CodeCitation/_components/CodeCitationPopup.js +0 -2
- package/dist/features/CodeCitation/_components/CodeCitationPopup.js.map +0 -1
- package/dist/features/CodeCitation/_components/CodeCitationsStats.js +0 -2
- package/dist/features/CodeCitation/_components/CodeCitationsStats.js.map +0 -1
- package/dist/features/CodeCitation/_components/CodeEditor.js +0 -2
- package/dist/features/CodeCitation/_components/CodeEditor.js.map +0 -1
- package/dist/features/CodeCitation/_components/DescriptionWithToggle.js +0 -2
- package/dist/features/CodeCitation/_components/DescriptionWithToggle.js.map +0 -1
- package/dist/features/CodeCitation/_components/HighlightedCodeDetails.js +0 -2
- package/dist/features/CodeCitation/_components/HighlightedCodeDetails.js.map +0 -1
- package/dist/features/CodeCitation/_components/Spinner.js +0 -2
- package/dist/features/CodeCitation/_components/Spinner.js.map +0 -1
- package/dist/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js +0 -2
- package/dist/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js.map +0 -1
- package/dist/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js +0 -2
- package/dist/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js.map +0 -1
- package/dist/features/CodeCitation/_components/StatsComponents/StatsComponent.js +0 -2
- package/dist/features/CodeCitation/_components/StatsComponents/StatsComponent.js.map +0 -1
- package/dist/features/CodeCitation/_components/ThemeToggle.js +0 -2
- package/dist/features/CodeCitation/_components/ThemeToggle.js.map +0 -1
- package/dist/features/ScannedDocCitation/ScannedDocCitation.js +0 -2
- package/dist/features/ScannedDocCitation/ScannedDocCitation.js.map +0 -1
- package/dist/types/src/AccordianHeadTest.d.ts +0 -2
- package/dist/types/src/AccordianHeadTest.d.ts.map +0 -1
- package/dist/types/src/BookCitationTest.d.ts +0 -3
- package/dist/types/src/BookCitationTest.d.ts.map +0 -1
- package/dist/types/src/BookemonTest.d.ts +0 -83
- package/dist/types/src/BookemonTest.d.ts.map +0 -1
- package/dist/types/src/ChatCitationTest.d.ts +0 -7
- package/dist/types/src/ChatCitationTest.d.ts.map +0 -1
- package/dist/types/src/CodeCitationTest.d.ts +0 -3
- package/dist/types/src/CodeCitationTest.d.ts.map +0 -1
- package/dist/types/src/DatagestMonTest.d.ts +0 -3
- package/dist/types/src/DatagestMonTest.d.ts.map +0 -1
- package/dist/types/src/DbCodeCitationTest.d.ts +0 -3
- package/dist/types/src/DbCodeCitationTest.d.ts.map +0 -1
- package/dist/types/src/ExcelCitationTest.d.ts +0 -2
- package/dist/types/src/ExcelCitationTest.d.ts.map +0 -1
- package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts +0 -3
- package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts.map +0 -1
- package/dist/types/src/PaginatedTableTest/useFetchData.d.ts +0 -15
- package/dist/types/src/PaginatedTableTest/useFetchData.d.ts.map +0 -1
- package/dist/types/src/PdfViewerTest.d.ts +0 -3
- package/dist/types/src/PdfViewerTest.d.ts.map +0 -1
- package/dist/types/src/ProjectAccordianTest.d.ts +0 -3
- package/dist/types/src/ProjectAccordianTest.d.ts.map +0 -1
- package/dist/types/src/RequirementAICitationTest.d.ts +0 -3
- package/dist/types/src/RequirementAICitationTest.d.ts.map +0 -1
- package/dist/types/src/ScannedDocCitationTest.d.ts +0 -2
- package/dist/types/src/ScannedDocCitationTest.d.ts.map +0 -1
- package/dist/types/src/TableCitationTest.d.ts +0 -3
- package/dist/types/src/TableCitationTest.d.ts.map +0 -1
- package/dist/types/src/context/DataSelectedContext.d.ts +0 -73
- package/dist/types/src/context/DataSelectedContext.d.ts.map +0 -1
- package/dist/types/src/features/BookCitation/BookCitation.d.ts +0 -41
- package/dist/types/src/features/BookCitation/BookCitation.d.ts.map +0 -1
- package/dist/types/src/features/BookCitation/text-cleaner.d.ts +0 -2
- package/dist/types/src/features/BookCitation/text-cleaner.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts +0 -21
- package/dist/types/src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts +0 -13
- package/dist/types/src/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/BookElementsCard/BookElementsCard.d.ts +0 -52
- package/dist/types/src/features/Bookemon/BookElementsCard/BookElementsCard.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts +0 -20
- package/dist/types/src/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts +0 -35
- package/dist/types/src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts +0 -51
- package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/Bookemon.d.ts +0 -9
- package/dist/types/src/features/Bookemon/Bookemon.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/BookemonCitationLayer.d.ts +0 -7
- package/dist/types/src/features/Bookemon/BookemonCitationLayer.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/BookemonContent.d.ts +0 -3
- package/dist/types/src/features/Bookemon/BookemonContent.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/types/citation.types.d.ts +0 -65
- package/dist/types/src/features/Bookemon/types/citation.types.d.ts.map +0 -1
- package/dist/types/src/features/Bookemon/utils/highlight.d.ts +0 -7
- package/dist/types/src/features/Bookemon/utils/highlight.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/BigQueryTable.d.ts +0 -8
- package/dist/types/src/features/ChatCitation/BigQueryTable.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/ChatCitationRenderer.d.ts +0 -26
- package/dist/types/src/features/ChatCitation/ChatCitationRenderer.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/InternalChatCitationRenderer.d.ts +0 -13
- package/dist/types/src/features/ChatCitation/InternalChatCitationRenderer.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/assets/collapse.d.ts +0 -3
- package/dist/types/src/features/ChatCitation/assets/collapse.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/AssistantChatItem.d.ts +0 -8
- package/dist/types/src/features/ChatCitation/components/AssistantChatItem.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/ChatCitation.d.ts +0 -15
- package/dist/types/src/features/ChatCitation/components/ChatCitation.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/Chip.d.ts +0 -8
- package/dist/types/src/features/ChatCitation/components/Chip.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/DetailedView.d.ts +0 -10
- package/dist/types/src/features/ChatCitation/components/DetailedView.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/IconContainer.d.ts +0 -8
- package/dist/types/src/features/ChatCitation/components/IconContainer.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/InViewNavigation.d.ts +0 -11
- package/dist/types/src/features/ChatCitation/components/InViewNavigation.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/MarkdownRenderer.d.ts +0 -10
- package/dist/types/src/features/ChatCitation/components/MarkdownRenderer.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/RuleBook.d.ts +0 -9
- package/dist/types/src/features/ChatCitation/components/RuleBook.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/SummarizedView.d.ts +0 -19
- package/dist/types/src/features/ChatCitation/components/SummarizedView.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/UserChatItem.d.ts +0 -8
- package/dist/types/src/features/ChatCitation/components/UserChatItem.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/UserInitialsAsAvatar.d.ts +0 -11
- package/dist/types/src/features/ChatCitation/components/UserInitialsAsAvatar.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/components/wrappers/Modal.d.ts +0 -10
- package/dist/types/src/features/ChatCitation/components/wrappers/Modal.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/constants/icons.d.ts +0 -9
- package/dist/types/src/features/ChatCitation/constants/icons.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/constants/renderer.d.ts +0 -7
- package/dist/types/src/features/ChatCitation/constants/renderer.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/types/citations.types.d.ts +0 -111
- package/dist/types/src/features/ChatCitation/types/citations.types.d.ts.map +0 -1
- package/dist/types/src/features/ChatCitation/utils/helpers.d.ts +0 -16
- package/dist/types/src/features/ChatCitation/utils/helpers.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/CitationsViewer.d.ts +0 -5
- package/dist/types/src/features/CitationViewer/CitationsViewer.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/components/AudioPlayer.d.ts +0 -8
- package/dist/types/src/features/CitationViewer/components/AudioPlayer.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/components/AudioWaveform.d.ts +0 -17
- package/dist/types/src/features/CitationViewer/components/AudioWaveform.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/components/ChatHistory.d.ts +0 -8
- package/dist/types/src/features/CitationViewer/components/ChatHistory.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/components/Header.d.ts +0 -12
- package/dist/types/src/features/CitationViewer/components/Header.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/components/KeyTakeaways.d.ts +0 -8
- package/dist/types/src/features/CitationViewer/components/KeyTakeaways.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/components/Transcript.d.ts +0 -10
- package/dist/types/src/features/CitationViewer/components/Transcript.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/config/apiConfig.d.ts +0 -3
- package/dist/types/src/features/CitationViewer/config/apiConfig.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/hooks/getSignedUrl.d.ts +0 -2
- package/dist/types/src/features/CitationViewer/hooks/getSignedUrl.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts +0 -2
- package/dist/types/src/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts.map +0 -1
- package/dist/types/src/features/CitationViewer/types/artifact.d.ts +0 -59
- package/dist/types/src/features/CitationViewer/types/artifact.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/CodeCitation.d.ts +0 -49
- package/dist/types/src/features/CodeCitation/CodeCitation.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/Accordian.d.ts +0 -10
- package/dist/types/src/features/CodeCitation/_components/Accordian.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/CodeCitationPopup.d.ts +0 -31
- package/dist/types/src/features/CodeCitation/_components/CodeCitationPopup.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/CodeCitationsStats.d.ts +0 -13
- package/dist/types/src/features/CodeCitation/_components/CodeCitationsStats.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/CodeEditor.d.ts +0 -30
- package/dist/types/src/features/CodeCitation/_components/CodeEditor.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/DescriptionWithToggle.d.ts +0 -6
- package/dist/types/src/features/CodeCitation/_components/DescriptionWithToggle.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/HighlightedCodeDetails.d.ts +0 -16
- package/dist/types/src/features/CodeCitation/_components/HighlightedCodeDetails.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/Spinner.d.ts +0 -4
- package/dist/types/src/features/CodeCitation/_components/Spinner.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts +0 -12
- package/dist/types/src/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts +0 -10
- package/dist/types/src/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts +0 -13
- package/dist/types/src/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/ThemeToggle.d.ts +0 -12
- package/dist/types/src/features/CodeCitation/_components/ThemeToggle.d.ts.map +0 -1
- package/dist/types/src/features/CodeCitation/_components/TooltipComponent.d.ts +0 -8
- package/dist/types/src/features/CodeCitation/_components/TooltipComponent.d.ts.map +0 -1
- package/dist/types/src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts +0 -42
- package/dist/types/src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts.map +0 -1
- package/dist/types/src/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts +0 -8
- package/dist/types/src/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts.map +0 -1
- package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/DecisioningIcon.d.ts +0 -7
- package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/DecisioningIcon.d.ts.map +0 -1
- package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts +0 -7
- package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts.map +0 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts +0 -23
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +0 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts +0 -3
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/DataSelector.d.ts +0 -18
- package/dist/types/src/features/DataSelector/DataSelector.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +0 -3
- package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +0 -3
- package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +0 -3
- package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts +0 -3
- package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts +0 -3
- package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts +0 -13
- package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts +0 -3
- package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts +0 -11
- package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts +0 -7
- package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts.map +0 -1
- package/dist/types/src/features/DataSelector/tables/ShowSelectedDataTable.d.ts +0 -4
- package/dist/types/src/features/DataSelector/tables/ShowSelectedDataTable.d.ts.map +0 -1
- package/dist/types/src/features/DatagestMon/DatagestMon.d.ts +0 -21
- package/dist/types/src/features/DatagestMon/DatagestMon.d.ts.map +0 -1
- package/dist/types/src/features/DatagestMon/DynamicDataPreviiewer/DynamicDataPreviewer.d.ts +0 -19
- package/dist/types/src/features/DatagestMon/DynamicDataPreviiewer/DynamicDataPreviewer.d.ts.map +0 -1
- package/dist/types/src/features/DatagestMon/EpubPreviewer/EpubPreview.d.ts +0 -7
- package/dist/types/src/features/DatagestMon/EpubPreviewer/EpubPreview.d.ts.map +0 -1
- package/dist/types/src/features/ExcelCitation/ExcelCitations.d.ts +0 -15
- package/dist/types/src/features/ExcelCitation/ExcelCitations.d.ts.map +0 -1
- package/dist/types/src/features/ExcelCitation/utils/helper.d.ts +0 -2
- package/dist/types/src/features/ExcelCitation/utils/helper.d.ts.map +0 -1
- package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts +0 -27
- package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts.map +0 -1
- package/dist/types/src/features/PdfEditorCitation/PdfEditorCitation.d.ts +0 -19
- package/dist/types/src/features/PdfEditorCitation/PdfEditorCitation.d.ts.map +0 -1
- package/dist/types/src/features/PdfEditorCitation/PdfEditorCitationTest/PdfEditorCitationTest.d.ts +0 -2
- package/dist/types/src/features/PdfEditorCitation/PdfEditorCitationTest/PdfEditorCitationTest.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/PdfContainer.d.ts +0 -11
- package/dist/types/src/features/PdfViewer/PdfContainer.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/PdfStyle.d.ts +0 -33
- package/dist/types/src/features/PdfViewer/PdfStyle.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts +0 -18
- package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts +0 -40
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts +0 -22
- package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts.map +0 -1
- package/dist/types/src/features/ProjectAccordion/ProjectAccordion.d.ts +0 -24
- package/dist/types/src/features/ProjectAccordion/ProjectAccordion.d.ts.map +0 -1
- package/dist/types/src/features/ProjectAccordion/_components/Markdown.d.ts +0 -5
- package/dist/types/src/features/ProjectAccordion/_components/Markdown.d.ts.map +0 -1
- package/dist/types/src/features/ProjectAccordion/index.d.ts +0 -2
- package/dist/types/src/features/ProjectAccordion/index.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts +0 -7
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts.map +0 -1
- package/dist/types/src/features/ReviewPanel/ReviewPanel.d.ts +0 -52
- package/dist/types/src/features/ReviewPanel/ReviewPanel.d.ts.map +0 -1
- package/dist/types/src/features/ReviewPanel/ReviewPanelTest/ReviewPanelTest.d.ts +0 -4
- package/dist/types/src/features/ReviewPanel/ReviewPanelTest/ReviewPanelTest.d.ts.map +0 -1
- package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts +0 -24
- package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts.map +0 -1
- package/dist/types/src/features/TableCitation/TableCitationContent.d.ts +0 -14
- package/dist/types/src/features/TableCitation/TableCitationContent.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +0 -14
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +0 -13
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts +0 -21
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts +0 -33
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts +0 -19
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts +0 -8
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts +0 -17
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts +0 -26
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts +0 -11
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts +0 -1108
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts +0 -57
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts +0 -643
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts +0 -24
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts +0 -283
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts +0 -58
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts +0 -20
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts +0 -3
- package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/NotFound.d.ts +0 -4
- package/dist/types/src/features/UploadData/NotFound.d.ts.map +0 -1
- package/dist/types/src/features/UploadData/main.d.ts +0 -10
- package/dist/types/src/features/UploadData/main.d.ts.map +0 -1
- package/dist/types/src/methodsToExpose.d.ts +0 -13
- package/dist/types/src/methodsToExpose.d.ts.map +0 -1
- package/dist/types/src/routes/Routes.d.ts +0 -2
- package/dist/types/src/routes/Routes.d.ts.map +0 -1
- package/dist/types/src/service/DataService.d.ts +0 -73
- package/dist/types/src/service/DataService.d.ts.map +0 -1
- package/dist/types/src/service/ModelService.d.ts +0 -68
- package/dist/types/src/service/ModelService.d.ts.map +0 -1
- package/dist/types/src/service/ProjectService.d.ts +0 -16
- package/dist/types/src/service/ProjectService.d.ts.map +0 -1
- package/dist/utils/codeCitations.utils.js +0 -2
- package/dist/utils/codeCitations.utils.js.map +0 -1
- package/dist/utils/themeManager.js +0 -2
- package/dist/utils/themeManager.js.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),i=require("./CodeCitation.module.css.js"),a=require("./_components/CodeEditor.js"),s=require("../../utils/codeCitations.utils.js"),o=require("./_components/ThemeToggle.js"),r=require("./_components/CodeCitationPopup.js"),l=require("./_components/HighlightedCodeDetails.js"),d=require("axios"),u=require("./_components/Spinner.js"),c=require("../../constants/diagnosticStylesBySeverity.js"),g=require("../../utils/themeManager.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=h(n),m=h(d);exports.default=function(d){var h=d.baseUrlForCodeRetrieval,p=d.assistantName,x=d.organizationName,S=d.userId,v=d.taskId,_=d.repoUrl,I=d.inLineCitation,C=d.citationTitle,y=d.filename,j=d.filepath,b=d.citationContainerTitle,F=d.showThemeToggle,T=d.customCode,k=d.isDarkModeEnabled,D=d.chevronUpComponent,P=d.chevronDownComponent,w=d.isHighlightingEnabled,E=d.FileDetailsComponent,L=d.additionalCallbackForPillButton,H=d.CustomCodeRenderComponent,q=d.fileSummarySectionTitle,M=d.showFullscreenIcon,B=d.showFileSummaryIButton,N=d.editorHeight,W=d.editorWidth,z=d.styles,V=void 0===z?{}:z,R=d.diagnostics,J=d.diagnosticStylesBySeverity,U=d.datasource,A=void 0===U?"codebase":U,O=d.externalFilesData,Y=d.startIndex,G=d.endIndex,K=n.useRef(!1),Q=s.getLanguageFromFileName(y),X=n.useState(!1),Z=X[0],$=X[1],ee=n.useState(function(){return g.themeManager.getTheme(k)}),te=ee[0],ne=ee[1];n.useEffect(function(){return g.themeManager.subscribe(ne)},[]);var ie=n.useState(!1),ae=ie[0],se=ie[1],oe=n.useState(!1),re=oe[0],le=oe[1],de=n.useState(!1),ue=de[0],ce=de[1],ge=n.useState(!1),he=ge[0],fe=ge[1],me=n.useState(null),pe=me[0],xe=me[1],Se=n.useState(""),ve=Se[0],_e=Se[1],Ie=n.useState(""),Ce=Ie[0],ye=Ie[1],je=n.useState({startIndex:-1,endIndex:-1}),be=je[0],Fe=je[1],Te=n.useState({}),ke=Te[0],De=Te[1],Pe=n.useState(!1),we=Pe[0],Ee=Pe[1],Le=n.useState(!1),He=Le[0],qe=Le[1],Me=n.useState({startIndex:-1,endIndex:-1}),Be=Me[0],Ne=Me[1],We=n.useState({startIndex:-1,endIndex:-1}),ze=We[0],Ve=We[1],Re=f.default.useMemo(function(){return e.__assign(e.__assign({},c.DEFAULT_DIAGNOSTIC_STYLES_BY_SEVERITY),J)},[J]);n.useEffect(function(){Ve({startIndex:null!=Y?Y:-1,endIndex:null!=G?G:-1})},[Y,G]),n.useEffect(function(){O&&T&&(xe(O),K.current=!0)},[O,T]),n.useEffect(function(){if("undefined"!=typeof window&&!K.current){K.current=!0;var t=new URL(j,"http://example.com"),n=t.searchParams,i=void 0!==Y?Y:n.has("startLine")?Number(n.get("startLine")):-1,a=void 0!==G?G:n.has("endLine")?Number(n.get("endLine")):-1;Ve({startIndex:i,endIndex:a}),Fe({startIndex:i,endIndex:a}),Ne({startIndex:i,endIndex:a}),t.searchParams.delete("startLine"),t.searchParams.delete("endLine"),t.searchParams.delete("validation");var s=t.pathname+t.search,o=null==s?void 0:s.replace(/^\//,"");ye(o),console.log("Params going to API:",{file_path:o,assistant_name:p,organization_name:x,user_id:S,task_id:v,chunks_search:!1,technical_details_only:!0,repo_url:_});T||we||e.__awaiter(void 0,void 0,void 0,function(){var t,n,i,a,s,r;return e.__generator(this,function(l){switch(l.label){case 0:qe(!1),Ee(!0),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,m.default.get("".concat(h,"/analyzer/get_file_details"),{params:e.__assign({file_path:String(o),assistant_name:String(p),organization_name:String(x),user_id:String(S),task_id:String(v),repo_url:String(_),chunks_search:!1,technical_details_only:!0},"codebase"!==A&&{datasource:A})})];case 2:return t=l.sent(),n=(null==t?void 0:t.data[0])||(null==t?void 0:t.data),!pe&&n&&(xe(n),Object.keys(null==t?void 0:t.data)&&(i=(null===(r=null===(s=null==t?void 0:t.data)||void 0===s?void 0:s[0])||void 0===r?void 0:r.content)||(null==t?void 0:t.data.content),_e(i))),Ee(!1),[2,t.data];case 3:return a=l.sent(),qe(!0),console.error("Error in retrieving file details: ",a),[3,4];case 4:return Ee(!1),[2]}})})}},[]);return t.jsxs(t.Fragment,{children:[t.jsxs("span",e.__assign({onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation(),L&&L(),$(function(e){return!e}),se(function(e){return!e})}(e)},className:i.default.pillButton,style:V.pillButton},{children:[t.jsx("span",e.__assign({style:V.citationTitle},{children:C})),I&&(Z?D:P)]})),(!I||re)&&t.jsx(r.default,{open:ae,onClose:function(){Ve({startIndex:null==Be?void 0:Be.startIndex,endIndex:null==Be?void 0:Be.endIndex}),le(!1),se(!1),Fe({startIndex:-1,endIndex:-1}),De({})},title:C,customStyles:{popupContainer:{width:"100vw",height:"100vh",borderRadius:"0.75rem",fontFamily:"Plus Jakarta Sans, sans-serif"},popupTitleContainer:{color:"#d63384",fontFamily:"Plus Jakarta Sans, sans-serif",position:"relative",textAlign:"left",fontWeight:"700"},topLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"},bottomLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"}},editorChildren:t.jsx(a.default,{startIndex:null==ze?void 0:ze.startIndex,endIndex:null==ze?void 0:ze.endIndex,language:Q,editorHeight:N,editorWidth:W,code:T||ve,isHighlightingEnabled:w,isDarkModeEnabled:te,highlightCodeStatsLine:be,setHighlightCodeStatsLine:Fe,highlightCodeStatsVariable:ke,setHighlightCodeStatsVariable:De,isExpanded:Z,highlightIndexes:ze,diagnostics:R,diagnosticStylesBySeverity:Re}),fileDetails:pe,setHighlightIndexes:Ve,highlightCodeStatsLine:be,setHighlightCodeStatsLine:Fe,highlightCodeStatsVariable:ke,setHighlightCodeStatsVariable:De,filepath:Ce,datasource:A}),I&&Z&&t.jsx("div",e.__assign({className:i.default.citationWrapper,style:V.citationWrapper},{children:t.jsxs("div",e.__assign({className:i.default.citationContent,style:V.citationContent},{children:[!ue&&b?t.jsxs("div",e.__assign({className:i.default.citationContainerTitle,style:V.citationContainerTitle},{children:[t.jsx("span",{children:b}),F?t.jsx(o.default,{darkMode:te,onToggle:function(e){return function(e){e.stopPropagation(),e.preventDefault(),g.themeManager.setTheme(!te)}(e)},toggleFullscreen:function(e){e.stopPropagation(),e.preventDefault(),se(!0),le(!0)},handleOpenFileDetailSection:function(e){e.stopPropagation(),e.preventDefault(),fe(!0)},showFullscreenIcon:M,showFileSummaryIButton:B}):t.jsx(t.Fragment,{})]})):t.jsx(t.Fragment,{}),t.jsxs("div",e.__assign({style:{zIndex:-1e3,color:"#000",overflow:"hidden",display:"flex",flexDirection:"column",height:N,width:W,fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[!ue&&!he&&H,we?t.jsx(u.default,{}):t.jsx(t.Fragment,{}),He?t.jsx("div",e.__assign({style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#242424"}},{children:"Something went wrong"})):t.jsx(t.Fragment,{}),!ue&&!he&&!H&&!we&&!He&&t.jsx(a.default,{startIndex:null==ze?void 0:ze.startIndex,endIndex:null==ze?void 0:ze.endIndex,language:Q,editorHeight:N,editorWidth:W,code:null!=T?T:ve,isHighlightingEnabled:w,isDarkModeEnabled:te,openHighlightedCodeDetails:function(){ce(!0)},highlightCodeStatsVariable:ke,setHighlightCodeStatsVariable:De,isExpanded:Z,highlightIndexes:ze,diagnostics:R,diagnosticStylesBySeverity:Re}),he&&t.jsx(l.default,{FileDetailsComponent:E,fileSummarySectionTitle:q,isDarkMode:te,editorHeight:N,editorWidth:W,code:null==pe?void 0:pe.content.split("\n").slice((null==ze?void 0:ze.startIndex)-1,null==ze?void 0:ze.endIndex).join("\n"),language:Q,onClose:function(e){e.stopPropagation(),e.preventDefault(),fe(!1)},summary:null==pe?void 0:pe.summary,filepath:Ce,citationTitle:C})]}))]}))}))]})};
|
|
2
|
-
//# sourceMappingURL=CodeCitation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode('@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap");.CodeCitation-module_pillButton__pugFh{align-items:center;background-color:#1e2135;border:1px solid #344054;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-family:Plus Jakarta Sans,sans-serif;font-family:Montserrat,sans-serif;font-size:12px;font-weight:550;gap:6px;justify-content:space-between;line-height:18px;margin:8px 4px;padding:4px 8px;width:fit-content}.CodeCitation-module_citationWrapper__goB2r{display:flex;justify-content:center;margin-top:8px}.CodeCitation-module_citationContent__fFlqE{background-color:#111827;border-radius:12px;color:#fff;min-height:42rem;padding:12px;width:32rem}.CodeCitation-module_bookHeader__LxVTS{display:flex;justify-content:space-between;margin-bottom:24px}.CodeCitation-module_bookInfo__45kX0{display:flex;gap:16px}.CodeCitation-module_bookCover__AGca3{height:auto;object-fit:cover;width:40px}.CodeCitation-module_title__GgfpM{font-family:serif;font-size:1.25rem;font-weight:700}.CodeCitation-module_author__IyoJH{font-family:serif;font-size:1rem;font-weight:500}.CodeCitation-module_scrollContainer__iSbL4{background-color:#f2f0f0;border-radius:8px;color:#181b1f;font-family:Times New Roman,Times,serif;font-size:14.4px;height:100%;line-height:1.4;overflow-y:auto;padding:40px;position:relative}.CodeCitation-module_spineLeft__8goHj,.CodeCitation-module_spineRight__HG-aa{bottom:0;opacity:.5;pointer-events:none;position:absolute;top:0;width:16px;z-index:0}.CodeCitation-module_spineLeft__8goHj{background:linear-gradient(90deg,#000 0,#0009 40%,#0003 70%,#0000);box-shadow:4px 0 8px #0000001a;right:5px}.CodeCitation-module_spineRight__HG-aa{background:linear-gradient(270deg,#000 0,#000000b3 40%,#0006 70%,#0000);box-shadow:-4px 0 8px #0000001a;right:20px}.CodeCitation-module_quoteParagraph__-3mva{margin-bottom:1rem;text-align:justify}.CodeCitation-module_indent__KfIxR{text-indent:1rem}.CodeCitation-module_pageNumber__eUsN9{color:#374151;font-weight:500;padding:.5rem;text-align:center}.CodeCitation-module_citationContainerTitle__Dt0Bq{font-family:Plus Jakarta Sans,sans-serif}'));const e=document.head||document.getElementsByTagName("head")[0]||document.documentElement;e&&e.appendChild(o)}(),exports.default={pillButton:"CodeCitation-module_pillButton__pugFh",citationWrapper:"CodeCitation-module_citationWrapper__goB2r",citationContent:"CodeCitation-module_citationContent__fFlqE",bookHeader:"CodeCitation-module_bookHeader__LxVTS",bookInfo:"CodeCitation-module_bookInfo__45kX0",bookCover:"CodeCitation-module_bookCover__AGca3",title:"CodeCitation-module_title__GgfpM",author:"CodeCitation-module_author__IyoJH",scrollContainer:"CodeCitation-module_scrollContainer__iSbL4",spineLeft:"CodeCitation-module_spineLeft__8goHj",spineRight:"CodeCitation-module_spineRight__HG-aa",quoteParagraph:"CodeCitation-module_quoteParagraph__-3mva",indent:"CodeCitation-module_indent__KfIxR",pageNumber:"CodeCitation-module_pageNumber__eUsN9",citationContainerTitle:"CodeCitation-module_citationContainerTitle__Dt0Bq"};
|
|
2
|
-
//# sourceMappingURL=CodeCitation.module.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCitation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),r=require("react"),n=function(){return i.jsxs("svg",e.__assign({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[i.jsx("title",{children:"up"}),i.jsx("path",{d:"M460 321L426 355 262 192 98 355 64 321 262 125 460 321Z"})]}))};exports.default=function(s){var t=s.data,o=r.useState(!1);o[0];var a=o[1];return i.jsxs("div",e.__assign({style:{borderRadius:"4px",marginBottom:"8px",width:"100%"}},{children:[i.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"10px 12px",margin:"5px",backgroundColor:"rgba(0, 122, 204, 0.3)",borderRadius:"15px",border:"1px solid #007acc",fontSize:"13px",color:"#333",fontWeight:500,cursor:"pointer",transition:"background-color 0.3s"},onClick:function(){return a(function(e){return!e})}},{children:[t.name,i.jsx("span",e.__assign({style:{display:"inline-block",transform:"rotate(0deg)",transition:"transform 0.3s ease",fontSize:"16px"}},{children:i.jsx(n,{})}))]})),i.jsxs("div",e.__assign({style:{padding:"14px 18px",marginTop:"8px",backgroundColor:"#fcfcfc",border:"1px solid #e0e0e0",borderRadius:"10px",color:"#333",fontSize:"14px",lineHeight:"1.6",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.05)"}},{children:[i.jsx("div",e.__assign({style:{fontWeight:600,marginBottom:"6px",fontSize:"13px",color:"#666"}},{children:"Description:"})),i.jsx("div",{children:t.description})]}))]}))};
|
|
2
|
-
//# sourceMappingURL=Accordian.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Accordian.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("@mui/icons-material"),s=require("./CodeCitationsStats.js"),l=require("../../../utils/codeCitations.utils.js"),a=require("@mui/material/Dialog"),n=require("@mui/material/IconButton"),o=require("@mui/material/DialogContent"),r=require("@mui/material/DialogTitle");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=d(a),g=d(n),h=d(o),u=d(r),c={body:{backgroundColor:"#fff",display:"flex",gap:"1rem",flexDirection:"row",paddingTop:"1rem",paddingRight:"1rem",paddingLeft:"1rem",minHeight:"60vh",maxWidth:"100%",overflow:"hidden"},leftSection:{display:"flex",flexDirection:"column",width:"50%",background:"#f6f6f6",borderRadius:"0.375rem",fontFamily:"Plus Jakarta Sans, sans-serif",overflowY:"scroll"},topLeft:{height:"50%",background:"#f9f9f9",display:"flex",flexDirection:"column",overflowY:"auto",borderRadius:"0.375rem"},bottomLeft:{height:"50%",background:"#f9f9f9",display:"flex",flexDirection:"column",overflowY:"auto",borderRadius:"0.375rem"},rightSection:{width:"50%",minHeight:"70vh",paddingLeft:"10px",backgroundColor:"#fff",zIndex:30}};exports.default=function(a){var n=a.open,o=a.onClose,r=a.title,d=a.customStyles,p=a.editorChildren,x=a.fileDetails,m=a.setHighlightIndexes,_=a.highlightCodeStatsLine,y=a.setHighlightCodeStatsLine,b=a.highlightCodeStatsVariable,v=a.setHighlightCodeStatsVariable,C=a.filepath,S=a.datasource,j=void 0===S?"codebase":S;return i.jsxs(f.default,e.__assign({open:n,onClose:o,maxWidth:"xl",fullWidth:!0,PaperProps:{style:e.__assign({},null==d?void 0:d.popupContainer)}},{children:[i.jsxs(u.default,e.__assign({style:(null==d?void 0:d.popupTitleContainer)||{fontFamily:"Plus Jakarta Sans, sans-serif",position:"relative",textAlign:"left",fontWeight:"bold"}},{children:[i.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column"}},{children:[i.jsx("span",e.__assign({style:{fontWeight:"bold",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:r})),i.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"row",gap:"5px",fontSize:"0.875rem",color:"#666",marginTop:"0.25rem"}},{children:[i.jsx("span",e.__assign({style:{fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:"File path: "})),i.jsxs("span",e.__assign({style:{fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[" ",l.returnCitationTitle(C,j)]}))]}))]})),i.jsx(g.default,e.__assign({edge:"end",onClick:o,"aria-label":"close",style:{position:"absolute",top:5,right:16},size:"large"},{children:i.jsx(t.Close,{})}))]})),i.jsxs(h.default,e.__assign({style:e.__assign(e.__assign({},c.body),null==d?void 0:d.body)},{children:[i.jsx("div",e.__assign({style:(null==d?void 0:d.leftSection)||c.leftSection},{children:i.jsx(s.default,{datasource:j,fileDetails:x,setHighlightIndexes:m,highlightCodeStatsLine:_,setHighlightCodeStatsLine:y,highlightCodeStatsVariable:b,setHighlightCodeStatsVariable:v})})),i.jsxs("div",e.__assign({style:c.rightSection},{children:[i.jsx("div",e.__assign({style:{minHeight:"4vh",fontWeight:"700",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:l.returnCodeTitle(j)})),i.jsx("div",e.__assign({style:{width:"100%",height:"100%"}},{children:p}))]}))]}))]}))};
|
|
2
|
-
//# sourceMappingURL=CodeCitationPopup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCitationPopup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),i=require("./DescriptionWithToggle.js"),t=require("./StatsComponents/StatsComponent.js"),n=function(e){return e.replace(/^(\s*)\*\*overview\*\*/im,"$1**Code Overview**")};exports.default=function(d){var r,l,a,s,u,c,p,x,f,g,h,v,m,_,b=d.fileDetails,C=d.setHighlightIndexes,y=d.highlightCodeStatsLine,S=d.setHighlightCodeStatsLine,k=d.highlightCodeStatsVariable,w=d.datasource,N=d.setHighlightCodeStatsVariable,I={container:{width:"90%",margin:"0 auto",borderRadius:"4px",marginTop:"5px",paddingBottom:"10px"},descriptionsContainer:{border:"1px solid #ddd"},header:{backgroundColor:"#fff",padding:"10px 15px",borderBottom:"2px solid #f0f0f0",color:"#333",fontWeight:"bold",fontSize:"16px"},description:{padding:"15px",fontSize:"14px",lineHeight:"1.5rem",color:"#555",backgroundColor:"#fff"},metrics:{display:"flex",padding:"10px 15px",borderBottom:"1px solid #eee",gap:"20px"},metric:{display:"flex",alignItems:"center",gap:"5px",fontSize:"14px",color:"#555"},metricIcon:{color:"#6366f1",marginRight:"5px"},expandableSection:{marginTop:"10px",border:"1px solid #ddd"},sectionHeader:{padding:"15px",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:"#fff"},sectionTitle:{fontSize:"14px",fontWeight:"bold",color:"#333"},sectionContent:{padding:"15px",fontSize:"14px",color:"#555",backgroundColor:"#fff"},tag:{display:"inline-block",padding:"10px 12px",margin:"5px",backgroundColor:"#FFF7ED",borderRadius:"15px",fontSize:"13px",color:"#555",cursor:"pointer",maxWidth:"100%",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal"},highlightTag:{display:"inline-block",padding:"10px 12px",margin:"5px",backgroundColor:"rgba(0, 122, 204, 0.3)",borderRadius:"15px",border:"1px #ff8e00",fontSize:"13px",color:"#555",cursor:"pointer",axWidth:"100%",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal"},categoryTitle:{fontSize:"14px",fontWeight:"bold",margin:"15px 5px 10px 5px",color:"#333"},tabContainer:{display:"flex",borderBottom:"1px solid #ddd",marginBottom:"10px"},tab:{padding:"8px 16px",cursor:"pointer",fontSize:"13px"},activeTab:{borderBottom:"2px solid #6366f1",color:"#6366f1"}},A={header:"Code Overview",description:n((null===(r=null==b?void 0:b.summary)||void 0===r?void 0:r.trim())||""),stats:[{header:"Total Class",count:(null===(l=null==b?void 0:b.file_stats)||void 0===l?void 0:l.classes_count)||"NA"},{header:"Total Functions",count:(null===(a=null==b?void 0:b.file_stats)||void 0===a?void 0:a.functions_count)||"NA"},{header:"Total Lines of Code",count:(null===(s=null==b?void 0:b.file_stats)||void 0===s?void 0:s.code_lines_count)||"NA"}]},j={header:"DB Overview",description:n((null===(u=null==b?void 0:b.summary)||void 0===u?void 0:u.trim())||""),stats:[{header:"Check Constraints",count:(null===(c=null==b?void 0:b.file_stats)||void 0===c?void 0:c.check_constraint_count)||"NA"},{header:"Composite Key",count:(null===(p=null==b?void 0:b.file_stats)||void 0===p?void 0:p.composite_key_count)||"NA"},{header:"Foreign Key",count:(null===(x=null==b?void 0:b.file_stats)||void 0===x?void 0:x.foreign_key_count)||"NA"},{header:"Default Constraint",count:(null===(f=null==b?void 0:b.file_stats)||void 0===f?void 0:f.default_constraint_count)||"NA"},{header:"Indexed Column",count:(null===(g=null==b?void 0:b.file_stats)||void 0===g?void 0:g.indexed_column_count)||"NA"},{header:"Not Null Constraint",count:(null===(h=null==b?void 0:b.file_stats)||void 0===h?void 0:h.not_null_constraint_count)||"NA"},{header:"Primary Key",count:(null===(v=null==b?void 0:b.file_stats)||void 0===v?void 0:v.primary_key_count)||"NA"},{header:"Regular Column",count:(null===(m=null==b?void 0:b.file_stats)||void 0===m?void 0:m.other_columns_count)||"NA"},{header:"Unique Key Constraint",count:(null===(_=null==b?void 0:b.file_stats)||void 0===_?void 0:_.unique_key_constraint_count)||"NA"}]};return o.jsxs("div",{children:[o.jsxs("div",e.__assign({style:{padding:"12px 16px",fontSize:"16px",fontWeight:"700"}},{children:[o.jsx("span",{children:"Codemon."}),o.jsx("span",e.__assign({style:{color:"blue"}},{children:"AI"}))]})),o.jsxs("div",e.__assign({style:I.container},{children:[o.jsx(i.DescriptionWithToggle,{datasource:w,overViewData:"db"===w?j:A}),o.jsx(t.default,{datasource:w,fileDetails:b,styles:I,highlightCodeStatsLine:y,handleStatsPillClick:function(e,o,i){C({}),N({}),S({startIndex:Number(e),endIndex:Number(o),name:i})},highlightCodeStatsVariable:k,handleVariableClick:function(e,o,i){o&&i&&-1!==o&&-1!==i&&(C({startIndex:o,endIndex:i}),S({startIndex:-1,endIndex:-1}),N({variableName:e,startIndex:o,endIndex:i}))}})]}))]})};
|
|
2
|
-
//# sourceMappingURL=CodeCitationsStats.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCitationsStats.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,n=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),r=require("../../../utils/codeCitations.utils.js");function o(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,Object.freeze(n)}exports.DiagnosticSeverity=void 0,(e=exports.DiagnosticSeverity||(exports.DiagnosticSeverity={}))[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint";exports.default=function(e){var a=e.startIndex,l=e.endIndex,s=e.language,d=e.editorHeight,u=e.editorWidth,c=e.code,g=e.isHighlightingEnabled,v=e.isDarkModeEnabled,f=e.openHighlightedCodeDetails,h=e.highlightCodeStatsLine;e.setHighlightCodeStatsLine;var m=e.highlightCodeStatsVariable;e.setHighlightCodeStatsVariable,e.setHighlightIndexes;var p=e.isExpanded,x=e.highlightIndexes,y=e.diagnostics,S=e.diagnosticStylesBySeverity,b=i.useRef(null),I=i.useRef([]);i.useRef([]);var j=i.useRef([]),C=i.useRef([]),O=i.useMemo(function(){return a},[a]),R=i.useMemo(function(){return l},[l]),L=i.useState(null),D=L[0],w=L[1],E=i.useState(null),M=E[0],k=E[1],H=i.useState(null),N=H[0],_=H[1],q=i.useState(void 0),P=q[0],V=q[1],W=i.useState(null),F=W[0],T=W[1];i.useEffect(function(){Promise.all([Promise.resolve().then(function(){return o(require("@monaco-editor/react"))}),Promise.resolve().then(function(){return o(require("highlight.js/lib/core"))})]).then(function(e){var n=e[0],t=e[1];_(function(){return n.default});var i=t.default.highlightAuto(c).language;V(i)}).catch(function(){T("Code editor dependencies not installed. Run: npm install @monaco-editor/react highlight.js")})},[c]);var z=i.useMemo(function(){return S&&"object"==typeof S&&Object.entries(S).map(function(e){var n=e[0],t=e[1],i=[];return t.style&&i.push(".".concat(r.generateClassName(t.style,+n,!0)," {\n").concat(r.cssPropertiesToString(t.style),"\n}")),t.lightModeStyle&&i.push(".".concat(r.generateClassName(t.lightModeStyle,+n,!1)," {\n").concat(r.cssPropertiesToString(t.lightModeStyle),"\n}")),i.join("\n")}).join("\n")},[S]);i.useEffect(function(){return function(){var e;(null===(e=b.current)||void 0===e?void 0:e._resizeObserver)&&b.current._resizeObserver.disconnect()}},[]),i.useEffect(function(){if(g&&D&&b.current&&M){var e=D.start,n=D.end;if(A(b.current,e,n,h,m),-1===a&&y&&y.length>0){var t=y[0].range,i=t.lineStart,r=t.lineEnd;A(b.current,i,r,h,m)}}},[D,M,g,h,m]),i.useEffect(function(){var e,n,t;if(M&&b.current&&g){var i=b.current;if(x&&(null===(e=Object.keys(x))||void 0===e?void 0:e.length)>0&&-1!==(null==x?void 0:x.startIndex)&&-1!==(null==x?void 0:x.endIndex)){var r=i.deltaDecorations(I.current,[{range:new M.Range(x.startIndex,1,x.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);I.current=r}if(h&&(null===(n=Object.keys(h))||void 0===n?void 0:n.length)>0&&-1!==(null==h?void 0:h.startIndex)&&-1!==(null==h?void 0:h.endIndex)&&(null==h?void 0:h.name)){r=i.deltaDecorations(I.current,[{range:new M.Range(h.startIndex,1,h.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);I.current=r}if(m&&(null===(t=Object.keys(m))||void 0===t?void 0:t.length)>0&&-1!==(null==m?void 0:m.startIndex)&&-1!==(null==m?void 0:m.endIndex)&&(null==h?void 0:h.name)){r=i.deltaDecorations(j.current,[{range:new M.Range(m.startIndex,1,m.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);j.current=r}}},[a,l,g,M,h,JSON.stringify(m)]),i.useEffect(function(){if(M&&b.current&&(null==y?void 0:y.length)&&S){var e=b.current,n=y.map(function(e){var n,t,i=r.getClassNameFromDiagnostic(e.severity,null==v||v,S);return{range:new M.Range(e.range.lineStart,null!==(n=e.range.columnStart)&&void 0!==n?n:1,e.range.lineEnd,null!==(t=e.range.columnEnd)&&void 0!==t?t:1),options:{className:i,isWholeLine:void 0===e.range.columnStart}}});C.current=e.deltaDecorations(C.current,n)}},[y,S,M,v]);var A=i.useCallback(function(e,n,t,i,r){var o,a;if(M&&e&&g){var l=e.getModel();l&&(n=Math.max(-1,n),(t=Math.min(t,l.getLineCount()))<n&&(t=n),requestAnimationFrame(function(){e.revealRangeInCenterIfOutsideViewport(new M.Range(n,1,t,1),M.editor.ScrollType.Smooth),e.setSelection(new M.Range(n,1,t+1,1))}),i&&-1!==(null==i?void 0:i.startIndex)&&-1!==(null==i?void 0:i.endIndex)&&requestAnimationFrame(function(){e.revealRangeInCenterIfOutsideViewport(new M.Range(i.startIndex,1,i.endIndex,1),M.editor.ScrollType.Smooth),e.setSelection(new M.Range(i.startIndex,1,i.endIndex+1,1))}),0===(null===(o=Object.keys(r))||void 0===o?void 0:o.length)&&e.getContribution("editor.contrib.findController").getState().change({isRevealed:!1},!1),(null===(a=Object.keys(r))||void 0===a?void 0:a.length)>0&&(requestAnimationFrame(function(){e.revealRangeInCenterIfOutsideViewport(new M.Range(r.startIndex,1,r.endIndex,1),M.editor.ScrollType.Smooth),e.setSelection(new M.Range(r.startIndex,1,r.endIndex+1,1))}),e.trigger("keyboard","actions.find"),e.getAction("actions.find").run(),e.getContribution("editor.contrib.findController").getState().change({searchString:(null==r?void 0:r.variableName)||"",isRevealed:!0},!1)))}},[M,g,a,l,null==h?void 0:h.startIndex,null==h?void 0:h.endIndex,m]);i.useEffect(function(){if(b.current&&M&&g){var e=b.current,n=e.onDidLayoutChange(function(){if(A(e,a,l,h,m),-1===a&&y&&y.length>0){var n=y[0].range,t=n.lineStart,i=n.lineEnd;A(e,t,i,h,m)}});return function(){return n.dispose()}}},[A,a,l,g,null==h?void 0:h.startIndex,null==h?void 0:h.endIndex,m,p]);var B=i.useCallback(function(e,n){A(e,O,R),b.current=e,k(n),w({start:O,end:R});var t=e.getContainerDomNode(),i=new ResizeObserver(function(){e.layout()});if(i.observe(t),b.current._resizeObserver=i,g){var r=e.getDomNode(),o=document.createElement("div");null==r||r.appendChild(o);var a=function(){var n=e.getTopForLineNumber(O)-e.getScrollTop();o.style.top="".concat(n,"px")};e.onDidScrollChange(a),a()}},[a,l,g,f]);return F?t.jsx("div",n.__assign({style:{color:"red",fontSize:"12px",padding:"8px"}},{children:F})):N?t.jsxs(t.Fragment,{children:[t.jsx(N,{height:d,width:u,defaultLanguage:P||s,defaultValue:c,theme:v?"vs-dark":"vs-light",onMount:B,beforeMount:function(e){e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0})},options:{minimap:{enabled:!0},overviewRulerLanes:3,fontFamily:"Plus Jakarta Sans, sans-serif",scrollBeyondLastLine:!1,readOnly:!0,smoothScrolling:!0,automaticLayout:!0,lineDecorationsWidth:10,padding:{top:20,bottom:20}}}),t.jsxs("style",{children:[z,".myLineHighlight { background-color: rgba(0, 122, 204, 0.3); }"]})]}):t.jsx("div",n.__assign({style:{padding:"8px",color:"#666"}},{children:"Loading code editor..."}))};
|
|
2
|
-
//# sourceMappingURL=CodeEditor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditor.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),o=require("react"),r=require("react-markdown"),i=require("rehype-raw");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=t(r),d=t(i),l=function(o){var r=o.IconComponent,i=o.text,t=o.number;return n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyItems:"center",gap:"5px",color:"#5928ED",fontSize:"0.75rem"}},{children:[r,n.jsx("span",e.__assign({style:{fontWeight:"500"}},{children:i})),n.jsx("span",e.__assign({style:{backgroundColor:"#E9ECFD",borderRadius:"0.25rem",paddingLeft:"0.25rem",paddingRight:"0.25rem"}},{children:t}))]}))},a=function(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[n.jsx("path",{d:"M2.33333 5.33333H10.6667M10.6667 5.33333V13.6667M10.6667 5.33333L13.6667 2.33333M14 10.2248V2.53333C14 2.34665 14 2.25331 13.9637 2.182C13.9317 2.11928 13.8807 2.06829 13.818 2.03633C13.7467 2 13.6534 2 13.4667 2H5.77516C5.6121 2 5.53057 2 5.45385 2.01842C5.38582 2.03475 5.32079 2.06169 5.26114 2.09824C5.19387 2.13947 5.13622 2.19712 5.02091 2.31242L2.31242 5.02091C2.19712 5.13621 2.13947 5.19387 2.09824 5.26114C2.06169 5.32079 2.03475 5.38582 2.01842 5.45385C2 5.53057 2 5.6121 2 5.77516V13.4667C2 13.6534 2 13.7467 2.03633 13.818C2.06829 13.8807 2.11928 13.9317 2.182 13.9637C2.25331 14 2.34665 14 2.53333 14H10.2248C10.3879 14 10.4694 14 10.5462 13.9816C10.6142 13.9652 10.6792 13.9383 10.7389 13.9018C10.8061 13.8605 10.8638 13.8029 10.9791 13.6876L13.6876 10.9791C13.8029 10.8638 13.8605 10.8061 13.9018 10.7389C13.9383 10.6792 13.9652 10.6142 13.9816 10.5462C14 10.4694 14 10.3879 14 10.2248Z",stroke:"url(#paint0_linear_5418_41338)","stroke-linecap":"round","stroke-linejoin":"round"}),n.jsx("defs",{children:n.jsxs("linearGradient",e.__assign({id:"paint0_linear_5418_41338",x1:"-0.857143",y1:"-0.772414",x2:"13.3773",y2:"5.89501",gradientUnits:"userSpaceOnUse"},{children:[n.jsx("stop",{"stop-color":"#2546F0"}),n.jsx("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},p=function(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},{children:[n.jsx("path",{d:"M13.7709 14C14.6644 12.1926 15.1668 10.1553 15.1668 8C15.1668 5.84474 14.6644 3.80744 13.7709 2M3.22945 2C2.33592 3.80744 1.8335 5.84474 1.8335 8C1.8335 10.1553 2.33592 12.1926 3.22945 14M11.5326 5.75H11.4728C11.0372 5.75 10.6233 5.94134 10.3399 6.27381L6.75664 10.4762C6.47315 10.8087 6.0593 11 5.6237 11H5.56392M6.31005 5.75H7.23944C7.57256 5.75 7.86531 5.97198 7.95682 6.29396L9.13978 10.456C9.23129 10.778 9.52404 11 9.85716 11H10.7866",stroke:"url(#paint0_linear_5418_41361)","stroke-linecap":"round","stroke-linejoin":"round"}),n.jsx("defs",{children:n.jsxs("linearGradient",e.__assign({id:"paint0_linear_5418_41361",x1:"-1.34111",y1:"-0.772414",x2:"13.8345",y2:"7.12565",gradientUnits:"userSpaceOnUse"},{children:[n.jsx("stop",{"stop-color":"#2546F0"}),n.jsx("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},c=function(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[n.jsx("path",{d:"M9.33317 1.51172V4.26541C9.33317 4.63878 9.33317 4.82546 9.40583 4.96807C9.46975 5.09351 9.57173 5.1955 9.69718 5.25942C9.83978 5.33208 10.0265 5.33208 10.3998 5.33208H13.1535M10.6665 8.66536H5.33317M10.6665 11.332H5.33317M6.6665 5.9987H5.33317M9.33317 1.33203H5.8665C4.7464 1.33203 4.18635 1.33203 3.75852 1.55002C3.3822 1.74176 3.07624 2.04773 2.88449 2.42405C2.6665 2.85187 2.6665 3.41193 2.6665 4.53203V11.4654C2.6665 12.5855 2.6665 13.1455 2.88449 13.5733C3.07624 13.9497 3.3822 14.2556 3.75852 14.4474C4.18635 14.6654 4.7464 14.6654 5.8665 14.6654H10.1332C11.2533 14.6654 11.8133 14.6654 12.2412 14.4474C12.6175 14.2556 12.9234 13.9497 13.1152 13.5733C13.3332 13.1455 13.3332 12.5855 13.3332 11.4654V5.33203L9.33317 1.33203Z",stroke:"url(#paint0_linear_5418_41370)","stroke-linecap":"round","stroke-linejoin":"round"}),n.jsx("defs",{children:n.jsxs("linearGradient",e.__assign({id:"paint0_linear_5418_41370",x1:"0.126822",y1:"-1.74843",x2:"13.656",y2:"3.32123",gradientUnits:"userSpaceOnUse"},{children:[n.jsx("stop",{"stop-color":"#2546F0"}),n.jsx("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},x={container:{width:"90%",margin:"0 auto",borderRadius:"4px",marginTop:"20px"},descriptionsContainer:{border:"1px solid #ddd"},header:{backgroundColor:"#fff",padding:"10px 15px",color:"#333",fontWeight:"bold",fontSize:"16px"},description:{padding:"5px 10px",fontSize:"14px",lineHeight:"1.5rem",color:"#555",backgroundColor:"#fff"},metrics:{display:"flex",padding:"10px 15px",borderBottom:"1px solid #eee",gap:"20px"},metric:{display:"flex",alignItems:"center",gap:"5px",fontSize:"14px",color:"#555"},metricIcon:{color:"#6366f1",marginRight:"5px"},expandableSection:{marginTop:"10px",border:"1px solid #ddd"},sectionHeader:{padding:"15px",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:"#fff"},sectionTitle:{fontSize:"14px",fontWeight:"bold",color:"#333"},sectionContent:{padding:"15px",fontSize:"14px",color:"#555",backgroundColor:"#fff"},tag:{display:"inline-block",padding:"10px 12px",margin:"5px",backgroundColor:"#FFF7ED",borderRadius:"15px",fontSize:"13px",color:"#555",cursor:"pointer"},categoryTitle:{fontSize:"14px",fontWeight:"bold",margin:"15px 5px 10px 5px",color:"#333"},tabContainer:{display:"flex",borderBottom:"1px solid #ddd",marginBottom:"10px"},tab:{padding:"8px 16px",cursor:"pointer",fontSize:"13px"},activeTab:{borderBottom:"2px solid #6366f1",color:"#6366f1"}},u={p:function(o){o.node;var r=e.__rest(o,["node"]);return n.jsx("p",e.__assign({},r,{className:"max-w-full break-words text-base leading-relaxed my-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==r?void 0:r.children}))},pre:function(o){o.node;var r=e.__rest(o,["node"]);return n.jsx("p",e.__assign({},r,{className:"max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==r?void 0:r.children}))},code:function(o){o.node;var r=e.__rest(o,["node"]);return n.jsx("code",e.__assign({},r,{className:"text-[#d63384] max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",textAlign:"justify"}},{children:null==r?void 0:r.children}))},ol:function(o){o.node;var r=e.__rest(o,["node"]);return n.jsx("ol",e.__assign({style:{listStyle:"decimal",marginLeft:"1rem",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:r.children}))},li:function(o){o.node;var r=e.__rest(o,["node"]);return n.jsx("li",e.__assign({style:{marginTop:"1rem",marginBottom:"1rem"}},{children:r.children}))},a:function(o){o.node;var r=e.__rest(o,["node"]),i=!1;try{i=new URL(r.href||"").protocol.startsWith("http")}catch(e){i=!1}return n.jsx("a",e.__assign({href:r.href,style:{display:"inline-flex",pointerEvents:i?"auto":"none"}},{children:r.children}))}};exports.DescriptionWithToggle=function(r){var i,t,f,g,h,m,v,_,w=r.overViewData;r.ReactMarkdownComponent;var C,b,j=r.datasource,y=void 0===j?"codebase":j,k=o.useState(!1),S=k[0],F=k[1],M=(null===(i=null==w?void 0:w.description)||void 0===i?void 0:i.length)>750,H=S?null==w?void 0:w.description:(void 0===(C=null==w?void 0:w.description)&&(C=""),void 0===(b=3)&&(b=3),(C.match(/[^.!?]*[.!?]/g)||[]).slice(0,b).join(" ").trim()+(M?"...":""));return n.jsxs("div",e.__assign({style:x.descriptionsContainer},{children:[n.jsxs("div",e.__assign({style:x.description},{children:[n.jsx(s.default,e.__assign({rehypePlugins:[d.default],components:u},{children:H})),M&&n.jsx("span",e.__assign({onClick:function(){return F(function(e){return!e})},style:{color:"#007bff",cursor:"pointer",marginLeft:0}},{children:S?"View Less":"View More"}))]})),n.jsx("div",e.__assign({style:{paddingTop:"1%",display:"db"===y?"grid":"flex",gridTemplateColumns:"db"===y?"repeat(4, 1fr)":void 0,flexWrap:"db"!==y?"wrap":void 0,alignItems:"center",gap:"10px",backgroundColor:"#FFF",padding:"10px 15px",borderBottom:"1px solid #ddd",overflow:"wrap"}},{children:"db"===y?null===(t=null==w?void 0:w.stats)||void 0===t?void 0:t.filter(function(e){return"NA"!==e.count}).map(function(e,o){return n.jsx(l,{IconComponent:"table"===e.type?n.jsx(a,{}):"function"===e.type?n.jsx(p,{}):"lineOfCode"===e.type?n.jsx(c,{}):null,text:null==e?void 0:e.header,number:e.count},o)}):n.jsxs(n.Fragment,{children:[n.jsx(l,{IconComponent:n.jsx(a,{}),text:"Total Class",number:null===(g=null===(f=null==w?void 0:w.stats)||void 0===f?void 0:f[0])||void 0===g?void 0:g.count}),n.jsx(l,{IconComponent:n.jsx(p,{}),text:"Total Functions",number:null===(m=null===(h=null==w?void 0:w.stats)||void 0===h?void 0:h[1])||void 0===m?void 0:m.count}),n.jsx(l,{IconComponent:n.jsx(c,{}),text:"Total Lines of Code",number:null===(_=null===(v=null==w?void 0:w.stats)||void 0===v?void 0:v[2])||void 0===_?void 0:_.count})]})}))]}))};
|
|
2
|
-
//# sourceMappingURL=DescriptionWithToggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionWithToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),n=require("react-markdown"),i=require("rehype-raw");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=s(n),l=s(i),t=function(){return r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:[r.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}))},o={p:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("p",e.__assign({},i,{className:"max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==i?void 0:i.children}))},pre:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("p",e.__assign({},i,{className:"max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==i?void 0:i.children}))},code:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("span",e.__assign({},i,{style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",textAlign:"justify"}},{children:null==i?void 0:i.children}))},ol:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("ol",e.__assign({style:{listStyle:"decimal",marginLeft:"1rem",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:i.children}))},li:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("li",e.__assign({style:{marginTop:"1rem",marginBottom:"1rem"}},{children:i.children}))},a:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("a",e.__assign({href:i.href,style:{display:"inline-flex"}},{children:i.children}))}};exports.default=function(n){var i=n.fileSummarySectionTitle,s=n.FileDetailsComponent,d=n.onClose;n.editorHeight,n.editorWidth,n.code,n.language,n.isDarkMode;var c=n.summary,f=n.filepath,h=n.citationTitle;return r.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",width:"100%",height:"95%",overflow:"hidden",color:"#242424"}},{children:[r.jsxs("div",e.__assign({style:{flexShrink:0,display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem"}},{children:[r.jsx("div",e.__assign({style:{fontWeight:600,textAlign:"center",flex:1}},{children:i})),r.jsx("div",e.__assign({style:{cursor:"pointer"},onClick:d},{children:r.jsx(t,{})}))]})),r.jsx("div",e.__assign({style:{flex:1,overflowY:"auto"}},{children:s||("Generated Code"!==h?r.jsxs("div",e.__assign({style:{padding:"0 0.5rem",wordBreak:"break-word",lineHeight:"2rem"}},{children:[f?r.jsxs(r.Fragment,{children:[r.jsx("span",e.__assign({style:{fontWeight:700}},{children:"File path: "})),r.jsx("span",{children:f})]}):r.jsx(r.Fragment,{}),r.jsx(a.default,e.__assign({rehypePlugins:[l.default],components:o},{children:c}))]})):r.jsx("div",e.__assign({style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0 0.5rem",wordBreak:"break-word",lineHeight:"2rem"}},{children:r.jsx("span",{children:"No file summary found for the generated code"})})))}))]}))};
|
|
2
|
-
//# sourceMappingURL=HighlightedCodeDetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HighlightedCodeDetails.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(require("@mui/material/CircularProgress"));exports.default=function(){return t.jsxs("div",e.__assign({role:"alert","aria-busy":"true","aria-label":"Loading content",style:{color:"#242424",display:"flex",justifyContent:"center",alignItems:"center",gap:"1rem",height:"100vh",fontSize:"1rem",padding:"0 1rem",textAlign:"center"}},{children:[t.jsx(i.default,{size:24}),t.jsx("div",e.__assign({"aria-live":"polite"},{children:"Curating code and file statistics, please wait..."}))]}))};
|
|
2
|
-
//# sourceMappingURL=Spinner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("react/jsx-runtime"),i=require("react"),l=require("../Accordian.js"),d=require("../../../../assests/svg/chevronUp.svg.js"),t=require("../../../../assests/svg/chevronDownArrow.svg.js"),s=function(){return e.jsxs("svg",n.__assign({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("title",{children:"down"}),e.jsx("path",{d:"M64 191L98 157 262 320 426 157 460 191 262 387 64 191Z"})]}))};exports.default=function(o){var r,a,u,v,c,h,x,_,m,g,p,f,j,y,I,b,C,k,w=o.fileDetails,S=o.styles,A=o.highlightCodeStatsLine,F=o.handleStatsPillClick,T=o.highlightCodeStatsVariable,U=o.handleVariableClick,q=i.useState(["Technical Artifacts","Class","Functions","Procedure","Tables","Global Variables","Services Used","Internal Services","External Services","Columns","Check Constraints","Composite Keys","Default Constraints","Foreign Keys","Indexed Columns","Not Null Constraints","Other Columns","Primary Keys","Unique Constraints"]),N=q[0],V=q[1],M=i.useState("Used"),P=M[0],G=M[1],D=i.useMemo(function(){return"Used"===P?0:1},[P]),K=((null===(a=null===(r=null==w?void 0:w.chunk_details)||void 0===r?void 0:r.code_artifacts)||void 0===a?void 0:a.classes)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),E=((null===(v=null===(u=null==w?void 0:w.chunk_details)||void 0===u?void 0:u.code_artifacts)||void 0===v?void 0:v.functions)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),L=((null===(h=null===(c=null==w?void 0:w.chunk_details)||void 0===c?void 0:c.code_artifacts)||void 0===h?void 0:h.procedures)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),O=((null===(_=null===(x=null==w?void 0:w.chunk_details)||void 0===x?void 0:x.code_artifacts)||void 0===_?void 0:_.tables)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),B=(null===(p=null===(g=null===(m=null==w?void 0:w.chunk_details)||void 0===m?void 0:m.code_artifacts)||void 0===g?void 0:g.global_variables)||void 0===p?void 0:p.used)||[],H=Array.from(new Map(B.map(function(n){return[n.name,{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1,lineNumbers:(null==n?void 0:n.line_numbers)||[]}]})).values()),Z=(null===(y=null===(j=null===(f=null==w?void 0:w.chunk_details)||void 0===f?void 0:f.code_artifacts)||void 0===j?void 0:j.global_variables)||void 0===y?void 0:y.not_used)||[],z=Array.from(new Map(Z.map(function(n){return[n.name,{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1,lineNumbers:(null==n?void 0:n.line_numbers)||[]}]})).values()),J=((null===(b=null===(I=null==w?void 0:w.chunk_details)||void 0===I?void 0:I.services)||void 0===b?void 0:b.internal_services)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),Q=((null===(k=null===(C=null==w?void 0:w.chunk_details)||void 0===C?void 0:C.services)||void 0===k?void 0:k.external_services)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),R=[{header:"Technical Artifacts",content:[{header:"Class",content:K},{header:"Functions",content:E},{header:"Procedure",content:L},{header:"Tables",content:O},{header:"Global Variables",content:n.__spreadArray(n.__spreadArray([],H,!0),z,!0)}]},{header:"Services Used",content:[{header:"External Services",content:Q},{header:"Call to other files",content:J}]}],W=[{header:"Used",content:H||[]},{header:"Unused",content:z||[]}];return e.jsx("div",n.__assign({style:S},{children:R.map(function(i){var o,r=N.includes(i.header);return i.content.every(function(n){return 0===n.content.length})?e.jsx(e.Fragment,{}):e.jsxs("div",n.__assign({style:S.expandableSection},{children:[e.jsxs("div",n.__assign({style:S.sectionHeader,onClick:function(){V(r?function(n){return n.filter(function(n){return n!==i.header})}:function(e){return e.includes(i.header)?e:n.__spreadArray(n.__spreadArray([],e,!0),[i.header],!1)})}},{children:[e.jsx("div",n.__assign({style:S.sectionTitle},{children:null==i?void 0:i.header})),e.jsx("img",{src:r?d.default:t.default})]})),r&&(null===(o=null==i?void 0:i.content)||void 0===o?void 0:o.map(function(i){var d,t,o,r,a;return(null===(d=null==i?void 0:i.content)||void 0===d?void 0:d.length)?e.jsx("div",n.__assign({style:S.sectionContent},{children:e.jsxs("div",{children:[e.jsx("div",n.__assign({style:S.categoryTitle},{children:null==i?void 0:i.header})),"Global Variables"===(null==i?void 0:i.header)&&e.jsxs("div",{children:[e.jsx("div",n.__assign({style:S.tabContainer},{children:W.map(function(i){var l,d,t,s;return(null===(l=null==i?void 0:i.content)||void 0===l?void 0:l.length)>0&&(null===(t=null===(d=W[D])||void 0===d?void 0:d.content)||void 0===t?void 0:t.length)?e.jsxs("div",n.__assign({style:n.__assign(n.__assign({},S.tab),P===i.header?S.activeTab:{}),onClick:function(){return G(i.header)}},{children:[i.header," ","(",null===(s=null==i?void 0:i.content)||void 0===s?void 0:s.length,")"]}),i.header):e.jsx(e.Fragment,{})})})),(null===(t=W[D])||void 0===t?void 0:t.content)?null===(r=null===(o=W[D])||void 0===o?void 0:o.content)||void 0===r?void 0:r.map(function(i){var d=(null==T?void 0:T.variableName)===(null==i?void 0:i.name);return d?e.jsx("div",n.__assign({style:{width:"100%"}},{children:e.jsx(l.default,{data:i})})):e.jsx(e.Fragment,{children:e.jsxs("span",n.__assign({style:n.__assign(n.__assign({},d?S.highlightTag:S.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return U(null==i?void 0:i.name,null==i?void 0:i.startIndex,null==i?void 0:i.endIndex)}},{children:[null==i?void 0:i.name,e.jsx("span",n.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:e.jsx(s,{})}))]}))})}):e.jsx(e.Fragment,{})]}),"Global Variables"!==(null==i?void 0:i.header)?e.jsx("div",{children:null===(a=null==i?void 0:i.content)||void 0===a?void 0:a.map(function(i){var d,t,o=-1!==(null==i?void 0:i.startIndex)&&-1!==(null==i?void 0:i.endIndex)&&Number(null==i?void 0:i.startIndex)===(null==A?void 0:A.startIndex)&&Number(null==i?void 0:i.endIndex)===(null==A?void 0:A.endIndex)&&(null===(d=null==A?void 0:A.name)||void 0===d?void 0:d.trim())===(null===(t=null==i?void 0:i.name)||void 0===t?void 0:t.trim());return o?e.jsx("div",n.__assign({style:{width:"100%"}},{children:e.jsx(l.default,{data:i})})):e.jsx(e.Fragment,{children:e.jsxs("span",n.__assign({style:n.__assign(n.__assign({},o?S.highlightTag:S.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return F(null==i?void 0:i.startIndex,null==i?void 0:i.endIndex,null==i?void 0:i.name)}},{children:[null==i?void 0:i.name,e.jsx("span",n.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:e.jsx(s,{})}))]}))})})}):e.jsx(e.Fragment,{})]})})):e.jsx(e.Fragment,{})}))]}))})}))};
|
|
2
|
-
//# sourceMappingURL=CodebaseStatsComponent.js.map
|
package/dist/cjs/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodebaseStatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("react/jsx-runtime"),t=require("react"),i=require("../Accordian.js"),l=require("../../../../assests/svg/chevronUp.svg.js"),s=require("../../../../assests/svg/chevronDownArrow.svg.js"),r=function(){return e.jsxs("svg",n.__assign({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("title",{children:"down"}),e.jsx("path",{d:"M64 191L98 157 262 320 426 157 460 191 262 387 64 191Z"})]}))};exports.default=function(d){var o,a=d.fileDetails,u=d.styles,c=d.highlightCodeStatsLine,v=d.handleStatsPillClick,h=t.useState(["Columns","Check Constraints","Composite Keys","Default Constraints","Foreign Keys","Indexed Columns","Not Null Constraints","Regular Columns","Primary Keys","Unique Constraints"]),x=h[0],_=h[1],g=(null===(o=null==a?void 0:a.chunk_details)||void 0===o?void 0:o.column_names)||{},m=function(n){return void 0===n&&(n=[]),n.map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}})},p=m(null==g?void 0:g.check_constraints),y=m(null==g?void 0:g.composite_keys),f=m(null==g?void 0:g.default_constraints),j=m(null==g?void 0:g.foreign_keys),C=m(null==g?void 0:g.indexed_columns),I=m(null==g?void 0:g.not_null_constraints),w=m(null==g?void 0:g.other_columns),k=[{header:"Columns",content:[{header:"Primary Keys",content:m(null==g?void 0:g.primary_keys)},{header:"Foreign Keys",content:j},{header:"Indexed Columns",content:C},{header:"Not Null Constraints",content:I},{header:"Unique Constraints",content:m(null==g?void 0:g.unique_constraints)},{header:"Composite Keys",content:y},{header:"Check Constraints",content:p},{header:"Default Constraints",content:f},{header:"Regular Columns",content:w}]}];return e.jsx("div",{children:k.map(function(t){var d,o=x.includes(t.header);return t.content.every(function(n){return 0===n.content.length})?e.jsx(e.Fragment,{}):e.jsxs("div",n.__assign({style:u.expandableSection},{children:[e.jsxs("div",n.__assign({style:u.sectionHeader,onClick:function(){_(o?function(n){return n.filter(function(n){return n!==t.header})}:function(e){return e.includes(t.header)?e:n.__spreadArray(n.__spreadArray([],e,!0),[t.header],!1)})}},{children:[e.jsx("div",n.__assign({style:u.sectionTitle},{children:null==t?void 0:t.header})),e.jsx("img",{src:o?l.default:s.default})]})),o&&(null===(d=null==t?void 0:t.content)||void 0===d?void 0:d.map(function(t){var l,s;return(null===(l=null==t?void 0:t.content)||void 0===l?void 0:l.length)?e.jsx("div",n.__assign({style:u.sectionContent},{children:e.jsxs("div",{children:[e.jsx("div",n.__assign({style:u.categoryTitle},{children:null==t?void 0:t.header})),e.jsx("div",{children:null===(s=null==t?void 0:t.content)||void 0===s?void 0:s.map(function(l){var s,d,o=-1!==(null==l?void 0:l.startIndex)&&-1!==(null==l?void 0:l.endIndex)&&Number(null==l?void 0:l.startIndex)===(null==c?void 0:c.startIndex)&&Number(null==l?void 0:l.endIndex)===(null==c?void 0:c.endIndex)&&(null===(s=null==c?void 0:c.name)||void 0===s?void 0:s.trim())===(null===(d=(null==t?void 0:t.header)+"_"+(null==l?void 0:l.name))||void 0===d?void 0:d.trim());return o?e.jsx("div",n.__assign({style:{width:"100%"}},{children:e.jsx(i.default,{data:l})})):e.jsx(e.Fragment,{children:e.jsxs("span",n.__assign({style:n.__assign(n.__assign({},o?u.highlightTag:u.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return v(null==l?void 0:l.startIndex,null==l?void 0:l.endIndex,(null==t?void 0:t.header)+"_"+(null==l?void 0:l.name))}},{children:[null==l?void 0:l.name,e.jsx("span",n.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:e.jsx(r,{})}))]}))})})})]})})):e.jsx(e.Fragment,{})}))]}))})})};
|
|
2
|
-
//# sourceMappingURL=DbStatsComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DbStatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("./DbStatsComponent.js"),i=require("./CodebaseStatsComponent.js");exports.default=function(l){var a=l.fileDetails,s=l.styles,r=l.highlightCodeStatsLine,d=l.handleStatsPillClick,h=l.highlightCodeStatsVariable,o=l.handleVariableClick,n=l.datasource;return"db"===(void 0===n?"codebase":n)?e.jsx(t.default,{fileDetails:a,styles:s,highlightCodeStatsLine:r,handleStatsPillClick:d}):e.jsx(i.default,{fileDetails:a,styles:s,highlightCodeStatsLine:r,handleStatsPillClick:d,highlightCodeStatsVariable:h,handleVariableClick:o})};
|
|
2
|
-
//# sourceMappingURL=StatsComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=function(){return t.jsx("svg",e.__assign({width:"100%",height:"100%",fill:"#000000",viewBox:"-1 0 19 19",xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg"},{children:t.jsx("path",{d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zM5.85 3.309a6.833 6.833 0 1 0 2.65-.534 6.787 6.787 0 0 0-2.65.534zm2.654 1.336A1.136 1.136 0 1 1 7.37 5.78a1.136 1.136 0 0 1 1.135-1.136zm.792 9.223V8.665a.792.792 0 1 0-1.583 0v5.203a.792.792 0 0 0 1.583 0z"})}))},s=function(){return t.jsxs("svg",e.__assign({width:"100%",height:"100%",viewBox:"0 0 128 128",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--noto",preserveAspectRatio:"xMidYMid meet"},{children:[t.jsx("path",{d:"M37.41 41.95c-9.71 12.48-9.54 34.65 2.87 45.64c14.09 12.47 33.92 12.34 46.39.87c14.95-13.76 14.09-36.66.87-49.63c-13.29-13.04-37.04-13.72-50.13 3.12z",fill:"#fcc11a"}),t.jsx("path",{d:"M53 37.67c-3.84-1.7-8.04 2.93-9.87 6.09c-1.83 3.17-3.53 9.38.37 10.97c3.9 1.58 6.7-1.1 9.51-5.73c2.79-4.63 4.38-9.38-.01-11.33z",fill:"#fee269"}),t.jsx("path",{d:"M63 20.27c-.93 1.74-.62 3.08 1.23 3.52c1.85.44 13.36 2.31 14.33 2.37c1.41.09 1.93-.97 1.76-2.2c-.18-1.23-2.99-18.46-3.25-20.04S75.14.76 73.55 2.87S63.7 18.96 63 20.27z",fill:"#ffa722"}),t.jsx("path",{d:"M92.8 32.23c-1.81.56-1.76 1.67-.79 3.08c.97 1.41 7.65 11.6 8.26 12.31c.62.7 1.67.88 2.55-.18c.88-1.05 11.86-16.45 12.66-17.41c1.32-1.58.53-3.25-1.49-2.73c-1.54.41-20.05 4.58-21.19 4.93z",fill:"#ffa722"}),t.jsx("path",{d:"M106.6 61.86c-1.3-.74-2.99-.53-3.43 1.14c-.44 1.67-2.37 13.8-2.55 14.86s.62 2.11 1.93 1.85s19.45-2.95 20.66-3.25c2.11-.53 2.81-2.64.62-4.22c-1.42-1.03-16-9.68-17.23-10.38z",fill:"#ffa722"}),t.jsx("path",{d:"M92.09 90.6c1.4-.75 2.64-.18 2.99 1.41c.35 1.58 4.22 17.76 4.84 20.75c.31 1.5-1.41 2.73-2.81 1.85c-1.41-.88-16.69-11.53-17.67-12.4c-1.41-1.23-.43-2.51.26-3.16c1.4-1.33 11.07-7.74 12.39-8.45z",fill:"#ffa722"}),t.jsx("path",{d:"M49.54 99.48c-1.77-.17-2.29 1.41-2.02 2.81c.26 1.41 2.9 19.24 3.08 20.57c.26 1.93 2.29 2.73 3.6.79s10.35-16.4 11.08-17.76c1.32-2.46.35-2.99-.97-3.6c-1.31-.61-12.92-2.63-14.77-2.81z",fill:"#ffa722"}),t.jsx("path",{d:"M24.23 79c1.23-2.02 2.81-1.49 3.96.44c.78 1.32 7.38 10.2 8 11.16c.62.97.88 2.81-1.05 3.25c-1.95.45-17.68 4.58-20.14 5.02c-2.46.44-3.87-1.49-2.29-3.6c.92-1.24 10.82-15.12 11.52-16.27z",fill:"#ffa722"}),t.jsx("path",{d:"M20.89 63.7c2.25 1 3.31.64 3.78-.97c.62-2.11 2.46-11.78 2.55-13.98c.06-1.43-.53-2.81-2.73-2.46S6.47 48.85 4.45 49.55c-2.35.82-2.18 3.4-.62 4.22c1.85.97 15.47 9.23 17.06 9.93z",fill:"#ffa722"}),t.jsx("path",{d:"M48.23 26.78c1.27-1.01.88-2.46-.26-3.25c-1.14-.79-15.26-11-17.05-12.4c-1.58-1.23-3.52-.79-2.99 2.02c.38 2.02 4.88 19.7 5.19 20.92c.35 1.41 1.41 2.11 2.64 1.23c1.21-.87 11.15-7.46 12.47-8.52z",fill:"#ffa722"})]}))},o={container:{display:"flex",alignItems:"center",gap:8},icon:{fontSize:20,transition:"transform 0.3s ease"},switch:{position:"relative",display:"inline-block",width:44,height:24},input:{opacity:0,width:0,height:0},slider:{position:"absolute",cursor:"pointer",top:0,left:0,right:0,bottom:0,transition:"0.4s",borderRadius:20},thumb:{position:"absolute",height:19,width:19,backgroundColor:"white",borderRadius:"50%",top:2,left:2,transition:"transform 0.3s ease"}};exports.default=function(r){var c=r.darkMode,a=r.onToggle,l=r.toggleFullscreen,d=r.handleOpenFileDetailSection,f=r.showFullscreenIcon,p=r.showFileSummaryIButton,h=i.useState(!1),u=h[0],g=h[1];return t.jsxs("div",e.__assign({style:o.container},{children:[t.jsxs("div",e.__assign({style:{position:"relative",display:"inline-block"},onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)}},{children:[p?t.jsx("button",e.__assign({onClick:function(e){d(e)},style:{background:"transparent",color:"white",border:"none",borderRadius:"50%",width:"24px",height:"24px",fontWeight:"bold",cursor:"pointer",marginRight:"1rem",fontSize:"16px",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"auto",padding:0}},{children:t.jsx(n,{})})):t.jsx(t.Fragment,{}),u&&t.jsx("div",e.__assign({style:{position:"absolute",zIndex:1001,bottom:"125%",left:"50%",transform:"translateX(-50%)",backgroundColor:"#555",color:"#fff",padding:"5px 8px",borderRadius:"6px",fontSize:"12px",textAlign:"center",whiteSpace:"nowrap",opacity:1,transition:"opacity 0.3s"}},{children:"Click to see file summary"}))]})),t.jsxs("label",e.__assign({className:"theme-switch",style:o.switch},{children:[t.jsx("input",{type:"checkbox",checked:c,onChange:a,onClick:a,style:o.input}),t.jsx("div",e.__assign({style:e.__assign(e.__assign({},o.slider),{backgroundColor:c?"#444":"#f7f7f7"}),onClick:a},{children:t.jsx("div",e.__assign({style:e.__assign(e.__assign({},o.thumb),{transform:c?"translateX(22px)":"translateX(0)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,backgroundColor:c?"#444":"#f7f7f7"})},{children:c?"🌙":t.jsx(s,{})}))}))]})),f?t.jsx("button",e.__assign({onClick:function(e){return l(e)},style:{background:"transparent",border:"none",padding:"7px 6px",borderRadius:"6px",cursor:"pointer",fontSize:"1.5rem",color:"black",transition:"background 0.3s"},title:"Toggle fullscreen"},{children:"⛶"})):t.jsx(t.Fragment,{})]}))};
|
|
2
|
-
//# sourceMappingURL=ThemeToggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),t=require("lucide-react");exports.default=function(o){var r=o.images,s=o.highlights,a=o.highlightColor,d=void 0===a?"rgba(255, 220, 0, 0.35)":a,l=o.highlightActiveColor,c=void 0===l?"rgba(255, 220, 0, 0.65)":l,x=o.highlightBorderColor,u=void 0===x?"rgba(200, 160, 0, 0.8)":x,g=o.height,p=void 0===g?"700px":g,h=s.flatMap(function(i,e){return i.bboxes.map(function(n,t){return{bbox:n,dimensions:i.dimensions,pageIndex:i.pageIndex,key:"".concat(e,"-").concat(t)}})}).length,b=n.useState(0),f=b[0],m=b[1],_=n.useState(!1),y=_[0],v=_[1],j=n.useRef(null),k=n.useRef(null),w=n.useRef([]),C=n.useCallback(function(i,e){void 0===e&&(e=!1);var n=Math.max(0,Math.min(h-1,i));m(n);var t=e?k.current:j.current,o=w.current[n];if(t&&o){var r=t.getBoundingClientRect().top,s=o.getBoundingClientRect().top-r+t.scrollTop-t.clientHeight/2+o.clientHeight/2;t.scrollTo({top:s,behavior:"smooth"})}},[h]),z=function(n){return void 0===n&&(n=!1),h>0&&e.jsx("div",i.__assign({style:{display:"flex",alignItems:"center",marginBottom:"6px"}},{children:e.jsxs("div",i.__assign({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"4px"}},{children:[e.jsxs("span",i.__assign({style:{fontSize:"12px",color:"#888"}},{children:[f+1," / ",h]})),e.jsx("button",i.__assign({onClick:function(){return C(f-1,n)},disabled:f<=0,style:{padding:"2px 8px",fontSize:"12px",cursor:f<=0?"not-allowed":"pointer",opacity:f<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↑"})),e.jsx("button",i.__assign({onClick:function(){return C(f+1,n)},disabled:f>=h-1,style:{padding:"2px 8px",fontSize:"12px",cursor:f>=h-1?"not-allowed":"pointer",opacity:f>=h-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↓"})),e.jsx("span",{style:{width:"1px",height:"16px",background:"#e2e8f0",margin:"0 2px"}}),n?e.jsx(t.X,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return v(!1)}}):e.jsx(t.Maximize2,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return v(!0)}})]}))}))},I=function(){var n=-1;return r.map(function(t,o){var r=s.filter(function(i){return i.pageIndex===o}).flatMap(function(i,e){return i.bboxes.map(function(t,r){return n++,{bbox:t,dimensions:i.dimensions,key:"".concat(o,"-").concat(e,"-").concat(r),globalIndex:n}})});return e.jsxs("div",{children:[e.jsxs("div",i.__assign({style:{fontSize:"12px",color:"#888",marginBottom:"4px"}},{children:["Page ",o+1]})),e.jsx("div",i.__assign({style:{position:"relative",width:"100%",paddingTop:"129%",flexShrink:0}},{children:e.jsxs("div",i.__assign({style:{position:"absolute",inset:0}},{children:[e.jsx("img",{src:t,alt:"Page ".concat(o+1),style:{display:"block",width:"100%",height:"100%",objectFit:"fill"},draggable:!1}),r.map(function(i){var n=i.bbox,t=i.dimensions,o=i.key,r=i.globalIndex,s=f===r;return e.jsx("div",{ref:function(i){w.current[r]=i},style:{position:"absolute",left:"".concat(n.xmin/t.width*100,"%"),top:"".concat(n.ymin/t.height*100,"%"),width:"".concat((n.xmax-n.xmin)/t.width*100,"%"),height:"".concat((n.ymax-n.ymin)/t.height*100,"%"),background:s?c:d,border:s?"1.5px solid ".concat(u):"none",borderRadius:"2px",zIndex:2}},o)})]}))}))]},o)})},R={overflowY:"auto",border:"1px solid #ddd",borderRadius:"4px",padding:"8px",display:"flex",flexDirection:"column",gap:"8px",boxSizing:"border-box"};return e.jsxs(e.Fragment,{children:[e.jsxs("div",i.__assign({style:{width:"100%",maxWidth:"600px",fontFamily:"inherit"}},{children:[z(!1),e.jsx("div",i.__assign({ref:j,style:i.__assign(i.__assign({},R),{height:p})},{children:I()}))]})),y&&e.jsx("div",i.__assign({style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"}},{children:e.jsxs("div",i.__assign({style:{background:"white",borderRadius:"8px",padding:"16px",width:"90vw",maxWidth:"800px",height:"90vh",display:"flex",flexDirection:"column"}},{children:[z(!0),e.jsx("div",i.__assign({ref:k,style:i.__assign(i.__assign({},R),{flex:1})},{children:I()}))]}))}))]})};
|
|
2
|
-
//# sourceMappingURL=ScannedDocCitation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScannedDocCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e,t,s){var r=s?"dark":"light",l=JSON.stringify(e).replace(/[^a-zA-Z0-9]/g,"").slice(0,20);return"".concat(r,"-severity-").concat(t,"-").concat(l)};exports.cssPropertiesToString=function(e){return Object.entries(e).map(function(e){var t=e[0],s=e[1];return"".concat(t.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}),": ").concat(s,";")}).join("\n")},exports.generateClassName=e,exports.getClassNameFromDiagnostic=function(t,s,r){var l=null==r?void 0:r[t];if(!l)return"myLineHighlight";if(!s){if(l.lightModeStyle)return e(l.lightModeStyle,t,!1);if(l.style)return e(l.style,t,!0);if(l.lightModeClassName)return l.lightModeClassName;if(l.className)return l.className}if(s){if(l.style)return e(l.style,t,!0);if(l.className)return l.className;if(l.lightModeStyle)return e(l.lightModeStyle,t,!1);if(l.lightModeClassName)return l.lightModeClassName}return"myLineHighlight"},exports.getLanguageFromFileName=function(e){var t,s=null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase();return{js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",html:"html",htm:"html",css:"css",scss:"scss",sass:"sass",less:"less",py:"python",rb:"ruby",php:"php",java:"java",kt:"kotlin",kts:"kotlin",cs:"csharp",c:"c",h:"c",cpp:"cpp",cxx:"cpp",cc:"cpp",hpp:"cpp",mm:"objective-c",m:"objective-c",sh:"shell",bash:"shell",zsh:"shell",fish:"shell",bat:"bat",ps1:"powershell",json:"json",jsonc:"json",xml:"xml",yaml:"yaml",yml:"yaml",toml:"toml",ini:"ini",csv:"csv",md:"markdown",markdown:"markdown",txt:"plaintext",log:"plaintext",sql:"sql",gql:"graphql",graphql:"graphql",env:"dotenv",dotenv:"dotenv",cfg:"ini",conf:"ini",rs:"rust",go:"go",dart:"dart",scala:"scala",swift:"swift",lua:"lua",r:"r",dockerfile:"docker",docker:"docker",makefile:"makefile",mk:"makefile",gradle:"groovy",groovy:"groovy",tex:"latex",asm:"assembly",vb:"vbnet",erlang:"erlang",elm:"elm",clj:"clojure",coffee:"coffeescript",pug:"pug",jade:"pug"}[s||""]||s||""},exports.returnCitationTitle=function(e,t){return"db"===t&&(e=e.replace(/\.json$/,".table")),e},exports.returnCodeTitle=function(e){return"db"===e?"Table Preview":"Code Preview"};
|
|
2
|
-
//# sourceMappingURL=codeCitations.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codeCitations.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=new(function(){function e(){this.listeners=new Set,this.isDarkTheme=!0,this.isInitialized=!1}return e.prototype.subscribe=function(e){var t=this;return this.listeners.add(e),function(){return t.listeners.delete(e)}},e.prototype.setTheme=function(e){this.isDarkTheme=e,this.listeners.forEach(function(t){return t(e)})},e.prototype.getTheme=function(e){return this.isInitialized||void 0===e||(this.setTheme(e),this.isInitialized=!0),this.isDarkTheme},e}());exports.themeManager=e;
|
|
2
|
-
//# sourceMappingURL=themeManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themeManager.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{DiagnosticSeverity as o}from"../features/CodeCitation/_components/CodeEditor.js";var e,l=((e={})[o.Error]={style:{backgroundColor:"#ef4444",mixBlendMode:"soft-light"},lightModeStyle:{backgroundColor:"#fecaca",mixBlendMode:"multiply"}},e[o.Warning]={style:{backgroundColor:"#fde68a",mixBlendMode:"overlay"},lightModeStyle:{backgroundColor:"#fef9c3",mixBlendMode:"multiply"}},e[o.Information]={style:{backgroundColor:"rgba(0, 122, 204, 0.3)"},lightModeStyle:{backgroundColor:"rgba(0, 122, 204, 0.3)"}},e[o.Hint]={style:{backgroundColor:"#4ade80",mixBlendMode:"overlay"},lightModeStyle:{backgroundColor:"#bbf7d0",mixBlendMode:"multiply"}},e);export{l as DEFAULT_DIAGNOSTIC_STYLES_BY_SEVERITY};
|
|
2
|
-
//# sourceMappingURL=diagnosticStylesBySeverity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diagnosticStylesBySeverity.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as t,__generator as n}from"tslib";import{jsxs as i,Fragment as o,jsx as a}from"react/jsx-runtime";import r,{useRef as l,useState as s,useEffect as d}from"react";import c from"./CodeCitation.module.css.js";import u from"./_components/CodeEditor.js";import{getLanguageFromFileName as h}from"../../utils/codeCitations.utils.js";import g from"./_components/ThemeToggle.js";import m from"./_components/CodeCitationPopup.js";import p from"./_components/HighlightedCodeDetails.js";import f from"axios";import v from"./_components/Spinner.js";import{DEFAULT_DIAGNOSTIC_STYLES_BY_SEVERITY as x}from"../../constants/diagnosticStylesBySeverity.js";import{themeManager as I}from"../../utils/themeManager.js";var C=function(C){var y=C.baseUrlForCodeRetrieval,S=C.assistantName,b=C.organizationName,_=C.userId,k=C.taskId,D=C.repoUrl,P=C.inLineCitation,T=C.citationTitle,w=C.filename,F=C.filepath,H=C.citationContainerTitle,L=C.showThemeToggle,j=C.customCode,E=C.isDarkModeEnabled,B=C.chevronUpComponent,W=C.chevronDownComponent,N=C.isHighlightingEnabled,z=C.FileDetailsComponent,M=C.additionalCallbackForPillButton,V=C.CustomCodeRenderComponent,J=C.fileSummarySectionTitle,R=C.showFullscreenIcon,U=C.showFileSummaryIButton,A=C.editorHeight,O=C.editorWidth,q=C.styles,G=void 0===q?{}:q,K=C.diagnostics,Q=C.diagnosticStylesBySeverity,X=C.datasource,Y=void 0===X?"codebase":X,Z=C.externalFilesData,$=C.startIndex,ee=C.endIndex,te=l(!1),ne=h(w),ie=s(!1),oe=ie[0],ae=ie[1],re=s(function(){return I.getTheme(E)}),le=re[0],se=re[1];d(function(){return I.subscribe(se)},[]);var de=s(!1),ce=de[0],ue=de[1],he=s(!1),ge=he[0],me=he[1],pe=s(!1),fe=pe[0],ve=pe[1],xe=s(!1),Ie=xe[0],Ce=xe[1],ye=s(null),Se=ye[0],be=ye[1],_e=s(""),ke=_e[0],De=_e[1],Pe=s(""),Te=Pe[0],we=Pe[1],Fe=s({startIndex:-1,endIndex:-1}),He=Fe[0],Le=Fe[1],je=s({}),Ee=je[0],Be=je[1],We=s(!1),Ne=We[0],ze=We[1],Me=s(!1),Ve=Me[0],Je=Me[1],Re=s({startIndex:-1,endIndex:-1}),Ue=Re[0],Ae=Re[1],Oe=s({startIndex:-1,endIndex:-1}),qe=Oe[0],Ge=Oe[1],Ke=r.useMemo(function(){return e(e({},x),Q)},[Q]);d(function(){Ge({startIndex:null!=$?$:-1,endIndex:null!=ee?ee:-1})},[$,ee]),d(function(){Z&&j&&(be(Z),te.current=!0)},[Z,j]),d(function(){if("undefined"!=typeof window&&!te.current){te.current=!0;var i=new URL(F,"http://example.com"),o=i.searchParams,a=void 0!==$?$:o.has("startLine")?Number(o.get("startLine")):-1,r=void 0!==ee?ee:o.has("endLine")?Number(o.get("endLine")):-1;Ge({startIndex:a,endIndex:r}),Le({startIndex:a,endIndex:r}),Ae({startIndex:a,endIndex:r}),i.searchParams.delete("startLine"),i.searchParams.delete("endLine"),i.searchParams.delete("validation");var l=i.pathname+i.search,s=null==l?void 0:l.replace(/^\//,"");we(s),console.log("Params going to API:",{file_path:s,assistant_name:S,organization_name:b,user_id:_,task_id:k,chunks_search:!1,technical_details_only:!0,repo_url:D});j||Ne||t(void 0,void 0,void 0,function(){var t,i,o,a,r,l;return n(this,function(n){switch(n.label){case 0:Je(!1),ze(!0),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,f.get("".concat(y,"/analyzer/get_file_details"),{params:e({file_path:String(s),assistant_name:String(S),organization_name:String(b),user_id:String(_),task_id:String(k),repo_url:String(D),chunks_search:!1,technical_details_only:!0},"codebase"!==Y&&{datasource:Y})})];case 2:return t=n.sent(),i=(null==t?void 0:t.data[0])||(null==t?void 0:t.data),!Se&&i&&(be(i),Object.keys(null==t?void 0:t.data)&&(o=(null===(l=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r[0])||void 0===l?void 0:l.content)||(null==t?void 0:t.data.content),De(o))),ze(!1),[2,t.data];case 3:return a=n.sent(),Je(!0),console.error("Error in retrieving file details: ",a),[3,4];case 4:return ze(!1),[2]}})})}},[]);return i(o,{children:[i("span",e({onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation(),M&&M(),ae(function(e){return!e}),ue(function(e){return!e})}(e)},className:c.pillButton,style:G.pillButton},{children:[a("span",e({style:G.citationTitle},{children:T})),P&&(oe?B:W)]})),(!P||ge)&&a(m,{open:ce,onClose:function(){Ge({startIndex:null==Ue?void 0:Ue.startIndex,endIndex:null==Ue?void 0:Ue.endIndex}),me(!1),ue(!1),Le({startIndex:-1,endIndex:-1}),Be({})},title:T,customStyles:{popupContainer:{width:"100vw",height:"100vh",borderRadius:"0.75rem",fontFamily:"Plus Jakarta Sans, sans-serif"},popupTitleContainer:{color:"#d63384",fontFamily:"Plus Jakarta Sans, sans-serif",position:"relative",textAlign:"left",fontWeight:"700"},topLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"},bottomLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"}},editorChildren:a(u,{startIndex:null==qe?void 0:qe.startIndex,endIndex:null==qe?void 0:qe.endIndex,language:ne,editorHeight:A,editorWidth:O,code:j||ke,isHighlightingEnabled:N,isDarkModeEnabled:le,highlightCodeStatsLine:He,setHighlightCodeStatsLine:Le,highlightCodeStatsVariable:Ee,setHighlightCodeStatsVariable:Be,isExpanded:oe,highlightIndexes:qe,diagnostics:K,diagnosticStylesBySeverity:Ke}),fileDetails:Se,setHighlightIndexes:Ge,highlightCodeStatsLine:He,setHighlightCodeStatsLine:Le,highlightCodeStatsVariable:Ee,setHighlightCodeStatsVariable:Be,filepath:Te,datasource:Y}),P&&oe&&a("div",e({className:c.citationWrapper,style:G.citationWrapper},{children:i("div",e({className:c.citationContent,style:G.citationContent},{children:[!fe&&H?i("div",e({className:c.citationContainerTitle,style:G.citationContainerTitle},{children:[a("span",{children:H}),L?a(g,{darkMode:le,onToggle:function(e){return function(e){e.stopPropagation(),e.preventDefault(),I.setTheme(!le)}(e)},toggleFullscreen:function(e){e.stopPropagation(),e.preventDefault(),ue(!0),me(!0)},handleOpenFileDetailSection:function(e){e.stopPropagation(),e.preventDefault(),Ce(!0)},showFullscreenIcon:R,showFileSummaryIButton:U}):a(o,{})]})):a(o,{}),i("div",e({style:{zIndex:-1e3,color:"#000",overflow:"hidden",display:"flex",flexDirection:"column",height:A,width:O,fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[!fe&&!Ie&&V,a(Ne?v:o,{}),Ve?a("div",e({style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#242424"}},{children:"Something went wrong"})):a(o,{}),!fe&&!Ie&&!V&&!Ne&&!Ve&&a(u,{startIndex:null==qe?void 0:qe.startIndex,endIndex:null==qe?void 0:qe.endIndex,language:ne,editorHeight:A,editorWidth:O,code:null!=j?j:ke,isHighlightingEnabled:N,isDarkModeEnabled:le,openHighlightedCodeDetails:function(){ve(!0)},highlightCodeStatsVariable:Ee,setHighlightCodeStatsVariable:Be,isExpanded:oe,highlightIndexes:qe,diagnostics:K,diagnosticStylesBySeverity:Ke}),Ie&&a(p,{FileDetailsComponent:z,fileSummarySectionTitle:J,isDarkMode:le,editorHeight:A,editorWidth:O,code:null==Se?void 0:Se.content.split("\n").slice((null==qe?void 0:qe.startIndex)-1,null==qe?void 0:qe.endIndex).join("\n"),language:ne,onClose:function(e){e.stopPropagation(),e.preventDefault(),Ce(!1)},summary:null==Se?void 0:Se.summary,filepath:Te,citationTitle:T})]}))]}))}))]})};export{C as default};
|
|
2
|
-
//# sourceMappingURL=CodeCitation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var o={pillButton:"CodeCitation-module_pillButton__pugFh",citationWrapper:"CodeCitation-module_citationWrapper__goB2r",citationContent:"CodeCitation-module_citationContent__fFlqE",bookHeader:"CodeCitation-module_bookHeader__LxVTS",bookInfo:"CodeCitation-module_bookInfo__45kX0",bookCover:"CodeCitation-module_bookCover__AGca3",title:"CodeCitation-module_title__GgfpM",author:"CodeCitation-module_author__IyoJH",scrollContainer:"CodeCitation-module_scrollContainer__iSbL4",spineLeft:"CodeCitation-module_spineLeft__8goHj",spineRight:"CodeCitation-module_spineRight__HG-aa",quoteParagraph:"CodeCitation-module_quoteParagraph__-3mva",indent:"CodeCitation-module_indent__KfIxR",pageNumber:"CodeCitation-module_pageNumber__eUsN9",citationContainerTitle:"CodeCitation-module_citationContainerTitle__Dt0Bq"};!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode('@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap");.CodeCitation-module_pillButton__pugFh{align-items:center;background-color:#1e2135;border:1px solid #344054;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-family:Plus Jakarta Sans,sans-serif;font-family:Montserrat,sans-serif;font-size:12px;font-weight:550;gap:6px;justify-content:space-between;line-height:18px;margin:8px 4px;padding:4px 8px;width:fit-content}.CodeCitation-module_citationWrapper__goB2r{display:flex;justify-content:center;margin-top:8px}.CodeCitation-module_citationContent__fFlqE{background-color:#111827;border-radius:12px;color:#fff;min-height:42rem;padding:12px;width:32rem}.CodeCitation-module_bookHeader__LxVTS{display:flex;justify-content:space-between;margin-bottom:24px}.CodeCitation-module_bookInfo__45kX0{display:flex;gap:16px}.CodeCitation-module_bookCover__AGca3{height:auto;object-fit:cover;width:40px}.CodeCitation-module_title__GgfpM{font-family:serif;font-size:1.25rem;font-weight:700}.CodeCitation-module_author__IyoJH{font-family:serif;font-size:1rem;font-weight:500}.CodeCitation-module_scrollContainer__iSbL4{background-color:#f2f0f0;border-radius:8px;color:#181b1f;font-family:Times New Roman,Times,serif;font-size:14.4px;height:100%;line-height:1.4;overflow-y:auto;padding:40px;position:relative}.CodeCitation-module_spineLeft__8goHj,.CodeCitation-module_spineRight__HG-aa{bottom:0;opacity:.5;pointer-events:none;position:absolute;top:0;width:16px;z-index:0}.CodeCitation-module_spineLeft__8goHj{background:linear-gradient(90deg,#000 0,#0009 40%,#0003 70%,#0000);box-shadow:4px 0 8px #0000001a;right:5px}.CodeCitation-module_spineRight__HG-aa{background:linear-gradient(270deg,#000 0,#000000b3 40%,#0006 70%,#0000);box-shadow:-4px 0 8px #0000001a;right:20px}.CodeCitation-module_quoteParagraph__-3mva{margin-bottom:1rem;text-align:justify}.CodeCitation-module_indent__KfIxR{text-indent:1rem}.CodeCitation-module_pageNumber__eUsN9{color:#374151;font-weight:500;padding:.5rem;text-align:center}.CodeCitation-module_citationContainerTitle__Dt0Bq{font-family:Plus Jakarta Sans,sans-serif}'));const e=document.head||document.getElementsByTagName("head")[0]||document.documentElement;e&&e.appendChild(o)}();export{o as default};
|
|
2
|
-
//# sourceMappingURL=CodeCitation.module.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCitation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsxs as i,jsx as o}from"react/jsx-runtime";import{useState as t}from"react";var n=function(){return i("svg",r({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[o("title",{children:"up"}),o("path",{d:"M460 321L426 355 262 192 98 355 64 321 262 125 460 321Z"})]}))},e=function(e){var d=e.data,p=t(!1);p[0];var a=p[1];return i("div",r({style:{borderRadius:"4px",marginBottom:"8px",width:"100%"}},{children:[i("div",r({style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"10px 12px",margin:"5px",backgroundColor:"rgba(0, 122, 204, 0.3)",borderRadius:"15px",border:"1px solid #007acc",fontSize:"13px",color:"#333",fontWeight:500,cursor:"pointer",transition:"background-color 0.3s"},onClick:function(){return a(function(r){return!r})}},{children:[d.name,o("span",r({style:{display:"inline-block",transform:"rotate(0deg)",transition:"transform 0.3s ease",fontSize:"16px"}},{children:o(n,{})}))]})),i("div",r({style:{padding:"14px 18px",marginTop:"8px",backgroundColor:"#fcfcfc",border:"1px solid #e0e0e0",borderRadius:"10px",color:"#333",fontSize:"14px",lineHeight:"1.6",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.05)"}},{children:[o("div",r({style:{fontWeight:600,marginBottom:"6px",fontSize:"13px",color:"#666"}},{children:"Description:"})),o("div",{children:d.description})]}))]}))};export{e as default};
|
|
2
|
-
//# sourceMappingURL=Accordian.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Accordian.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as i}from"tslib";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{Close as l}from"@mui/icons-material";import o from"./CodeCitationsStats.js";import{returnCitationTitle as a,returnCodeTitle as r}from"../../../utils/codeCitations.utils.js";import n from"@mui/material/Dialog";import s from"@mui/material/IconButton";import d from"@mui/material/DialogContent";import f from"@mui/material/DialogTitle";var h=function(h){var g=h.open,c=h.onClose,p=h.title,u=h.customStyles,y=h.editorChildren,x=h.fileDetails,b=h.setHighlightIndexes,S=h.highlightCodeStatsLine,v=h.setHighlightCodeStatsLine,C=h.highlightCodeStatsVariable,k=h.setHighlightCodeStatsVariable,D=h.filepath,w=h.datasource,H=void 0===w?"codebase":w;return e(n,i({open:g,onClose:c,maxWidth:"xl",fullWidth:!0,PaperProps:{style:i({},null==u?void 0:u.popupContainer)}},{children:[e(f,i({style:(null==u?void 0:u.popupTitleContainer)||{fontFamily:"Plus Jakarta Sans, sans-serif",position:"relative",textAlign:"left",fontWeight:"bold"}},{children:[e("div",i({style:{display:"flex",flexDirection:"column"}},{children:[t("span",i({style:{fontWeight:"bold",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:p})),e("div",i({style:{display:"flex",flexDirection:"row",gap:"5px",fontSize:"0.875rem",color:"#666",marginTop:"0.25rem"}},{children:[t("span",i({style:{fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:"File path: "})),e("span",i({style:{fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[" ",a(D,H)]}))]}))]})),t(s,i({edge:"end",onClick:c,"aria-label":"close",style:{position:"absolute",top:5,right:16},size:"large"},{children:t(l,{})}))]})),e(d,i({style:i(i({},m.body),null==u?void 0:u.body)},{children:[t("div",i({style:(null==u?void 0:u.leftSection)||m.leftSection},{children:t(o,{datasource:H,fileDetails:x,setHighlightIndexes:b,highlightCodeStatsLine:S,setHighlightCodeStatsLine:v,highlightCodeStatsVariable:C,setHighlightCodeStatsVariable:k})})),e("div",i({style:m.rightSection},{children:[t("div",i({style:{minHeight:"4vh",fontWeight:"700",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:r(H)})),t("div",i({style:{width:"100%",height:"100%"}},{children:y}))]}))]}))]}))},m={body:{backgroundColor:"#fff",display:"flex",gap:"1rem",flexDirection:"row",paddingTop:"1rem",paddingRight:"1rem",paddingLeft:"1rem",minHeight:"60vh",maxWidth:"100%",overflow:"hidden"},leftSection:{display:"flex",flexDirection:"column",width:"50%",background:"#f6f6f6",borderRadius:"0.375rem",fontFamily:"Plus Jakarta Sans, sans-serif",overflowY:"scroll"},topLeft:{height:"50%",background:"#f9f9f9",display:"flex",flexDirection:"column",overflowY:"auto",borderRadius:"0.375rem"},bottomLeft:{height:"50%",background:"#f9f9f9",display:"flex",flexDirection:"column",overflowY:"auto",borderRadius:"0.375rem"},rightSection:{width:"50%",minHeight:"70vh",paddingLeft:"10px",backgroundColor:"#fff",zIndex:30}};export{h as default};
|
|
2
|
-
//# sourceMappingURL=CodeCitationPopup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCitationPopup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as o}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{DescriptionWithToggle as t}from"./DescriptionWithToggle.js";import n from"./StatsComponents/StatsComponent.js";var d=function(o){return o.replace(/^(\s*)\*\*overview\*\*/im,"$1**Code Overview**")},r=function(r){var l,a,s,c,u,p,f,x,h,v,g,m,b,_,C=r.fileDetails,y=r.setHighlightIndexes,S=r.highlightCodeStatsLine,k=r.setHighlightCodeStatsLine,w=r.highlightCodeStatsVariable,N=r.datasource,I=r.setHighlightCodeStatsVariable,A={container:{width:"90%",margin:"0 auto",borderRadius:"4px",marginTop:"5px",paddingBottom:"10px"},descriptionsContainer:{border:"1px solid #ddd"},header:{backgroundColor:"#fff",padding:"10px 15px",borderBottom:"2px solid #f0f0f0",color:"#333",fontWeight:"bold",fontSize:"16px"},description:{padding:"15px",fontSize:"14px",lineHeight:"1.5rem",color:"#555",backgroundColor:"#fff"},metrics:{display:"flex",padding:"10px 15px",borderBottom:"1px solid #eee",gap:"20px"},metric:{display:"flex",alignItems:"center",gap:"5px",fontSize:"14px",color:"#555"},metricIcon:{color:"#6366f1",marginRight:"5px"},expandableSection:{marginTop:"10px",border:"1px solid #ddd"},sectionHeader:{padding:"15px",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:"#fff"},sectionTitle:{fontSize:"14px",fontWeight:"bold",color:"#333"},sectionContent:{padding:"15px",fontSize:"14px",color:"#555",backgroundColor:"#fff"},tag:{display:"inline-block",padding:"10px 12px",margin:"5px",backgroundColor:"#FFF7ED",borderRadius:"15px",fontSize:"13px",color:"#555",cursor:"pointer",maxWidth:"100%",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal"},highlightTag:{display:"inline-block",padding:"10px 12px",margin:"5px",backgroundColor:"rgba(0, 122, 204, 0.3)",borderRadius:"15px",border:"1px #ff8e00",fontSize:"13px",color:"#555",cursor:"pointer",axWidth:"100%",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal"},categoryTitle:{fontSize:"14px",fontWeight:"bold",margin:"15px 5px 10px 5px",color:"#333"},tabContainer:{display:"flex",borderBottom:"1px solid #ddd",marginBottom:"10px"},tab:{padding:"8px 16px",cursor:"pointer",fontSize:"13px"},activeTab:{borderBottom:"2px solid #6366f1",color:"#6366f1"}},z={header:"Code Overview",description:d((null===(l=null==C?void 0:C.summary)||void 0===l?void 0:l.trim())||""),stats:[{header:"Total Class",count:(null===(a=null==C?void 0:C.file_stats)||void 0===a?void 0:a.classes_count)||"NA"},{header:"Total Functions",count:(null===(s=null==C?void 0:C.file_stats)||void 0===s?void 0:s.functions_count)||"NA"},{header:"Total Lines of Code",count:(null===(c=null==C?void 0:C.file_stats)||void 0===c?void 0:c.code_lines_count)||"NA"}]},T={header:"DB Overview",description:d((null===(u=null==C?void 0:C.summary)||void 0===u?void 0:u.trim())||""),stats:[{header:"Check Constraints",count:(null===(p=null==C?void 0:C.file_stats)||void 0===p?void 0:p.check_constraint_count)||"NA"},{header:"Composite Key",count:(null===(f=null==C?void 0:C.file_stats)||void 0===f?void 0:f.composite_key_count)||"NA"},{header:"Foreign Key",count:(null===(x=null==C?void 0:C.file_stats)||void 0===x?void 0:x.foreign_key_count)||"NA"},{header:"Default Constraint",count:(null===(h=null==C?void 0:C.file_stats)||void 0===h?void 0:h.default_constraint_count)||"NA"},{header:"Indexed Column",count:(null===(v=null==C?void 0:C.file_stats)||void 0===v?void 0:v.indexed_column_count)||"NA"},{header:"Not Null Constraint",count:(null===(g=null==C?void 0:C.file_stats)||void 0===g?void 0:g.not_null_constraint_count)||"NA"},{header:"Primary Key",count:(null===(m=null==C?void 0:C.file_stats)||void 0===m?void 0:m.primary_key_count)||"NA"},{header:"Regular Column",count:(null===(b=null==C?void 0:C.file_stats)||void 0===b?void 0:b.other_columns_count)||"NA"},{header:"Unique Key Constraint",count:(null===(_=null==C?void 0:C.file_stats)||void 0===_?void 0:_.unique_key_constraint_count)||"NA"}]};return e("div",{children:[e("div",o({style:{padding:"12px 16px",fontSize:"16px",fontWeight:"700"}},{children:[i("span",{children:"Codemon."}),i("span",o({style:{color:"blue"}},{children:"AI"}))]})),e("div",o({style:A.container},{children:[i(t,{datasource:N,overViewData:"db"===N?T:z}),i(n,{datasource:N,fileDetails:C,styles:A,highlightCodeStatsLine:S,handleStatsPillClick:function(o,e,i){y({}),I({}),k({startIndex:Number(o),endIndex:Number(e),name:i})},highlightCodeStatsVariable:w,handleVariableClick:function(o,e,i){e&&i&&-1!==e&&-1!==i&&(y({startIndex:e,endIndex:i}),k({startIndex:-1,endIndex:-1}),I({variableName:o,startIndex:e,endIndex:i}))}})]}))]})};export{r as default};
|
|
2
|
-
//# sourceMappingURL=CodeCitationsStats.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCitationsStats.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useRef as r,useMemo as o,useState as a,useEffect as l,useCallback as d}from"react";import{generateClassName as u,cssPropertiesToString as s,getClassNameFromDiagnostic as c}from"../../../utils/codeCitations.utils.js";var g;!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint"}(g||(g={}));var v=function(g){var v=g.startIndex,h=g.endIndex,f=g.language,m=g.editorHeight,p=g.editorWidth,x=g.code,I=g.isHighlightingEnabled,y=g.isDarkModeEnabled,S=g.openHighlightedCodeDetails,b=g.highlightCodeStatsLine;g.setHighlightCodeStatsLine;var C=g.highlightCodeStatsVariable;g.setHighlightCodeStatsVariable,g.setHighlightIndexes;var L=g.isExpanded,R=g.highlightIndexes,w=g.diagnostics,O=g.diagnosticStylesBySeverity,j=r(null),D=r([]);r([]);var H=r([]),k=r([]),E=o(function(){return v},[v]),M=o(function(){return h},[h]),N=a(null),V=N[0],W=N[1],z=a(null),A=z[0],F=z[1],T=a(null),q=T[0],_=T[1],B=a(void 0),J=B[0],P=B[1],G=a(null),K=G[0],Q=G[1];l(function(){Promise.all([import("@monaco-editor/react"),import("highlight.js/lib/core")]).then(function(e){var n=e[0],t=e[1];_(function(){return n.default});var i=t.default.highlightAuto(x).language;P(i)}).catch(function(){Q("Code editor dependencies not installed. Run: npm install @monaco-editor/react highlight.js")})},[x]);var U=o(function(){return O&&"object"==typeof O&&Object.entries(O).map(function(e){var n=e[0],t=e[1],i=[];return t.style&&i.push(".".concat(u(t.style,+n,!0)," {\n").concat(s(t.style),"\n}")),t.lightModeStyle&&i.push(".".concat(u(t.lightModeStyle,+n,!1)," {\n").concat(s(t.lightModeStyle),"\n}")),i.join("\n")}).join("\n")},[O]);l(function(){return function(){var e;(null===(e=j.current)||void 0===e?void 0:e._resizeObserver)&&j.current._resizeObserver.disconnect()}},[]),l(function(){if(I&&V&&j.current&&A){var e=V.start,n=V.end;if(X(j.current,e,n,b,C),-1===v&&w&&w.length>0){var t=w[0].range,i=t.lineStart,r=t.lineEnd;X(j.current,i,r,b,C)}}},[V,A,I,b,C]),l(function(){var e,n,t;if(A&&j.current&&I){var i=j.current;if(R&&(null===(e=Object.keys(R))||void 0===e?void 0:e.length)>0&&-1!==(null==R?void 0:R.startIndex)&&-1!==(null==R?void 0:R.endIndex)){var r=i.deltaDecorations(D.current,[{range:new A.Range(R.startIndex,1,R.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);D.current=r}if(b&&(null===(n=Object.keys(b))||void 0===n?void 0:n.length)>0&&-1!==(null==b?void 0:b.startIndex)&&-1!==(null==b?void 0:b.endIndex)&&(null==b?void 0:b.name)){r=i.deltaDecorations(D.current,[{range:new A.Range(b.startIndex,1,b.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);D.current=r}if(C&&(null===(t=Object.keys(C))||void 0===t?void 0:t.length)>0&&-1!==(null==C?void 0:C.startIndex)&&-1!==(null==C?void 0:C.endIndex)&&(null==b?void 0:b.name)){r=i.deltaDecorations(H.current,[{range:new A.Range(C.startIndex,1,C.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);H.current=r}}},[v,h,I,A,b,JSON.stringify(C)]),l(function(){if(A&&j.current&&(null==w?void 0:w.length)&&O){var e=j.current,n=w.map(function(e){var n,t,i=c(e.severity,null==y||y,O);return{range:new A.Range(e.range.lineStart,null!==(n=e.range.columnStart)&&void 0!==n?n:1,e.range.lineEnd,null!==(t=e.range.columnEnd)&&void 0!==t?t:1),options:{className:i,isWholeLine:void 0===e.range.columnStart}}});k.current=e.deltaDecorations(k.current,n)}},[w,O,A,y]);var X=d(function(e,n,t,i,r){var o,a;if(A&&e&&I){var l=e.getModel();l&&(n=Math.max(-1,n),(t=Math.min(t,l.getLineCount()))<n&&(t=n),requestAnimationFrame(function(){e.revealRangeInCenterIfOutsideViewport(new A.Range(n,1,t,1),A.editor.ScrollType.Smooth),e.setSelection(new A.Range(n,1,t+1,1))}),i&&-1!==(null==i?void 0:i.startIndex)&&-1!==(null==i?void 0:i.endIndex)&&requestAnimationFrame(function(){e.revealRangeInCenterIfOutsideViewport(new A.Range(i.startIndex,1,i.endIndex,1),A.editor.ScrollType.Smooth),e.setSelection(new A.Range(i.startIndex,1,i.endIndex+1,1))}),0===(null===(o=Object.keys(r))||void 0===o?void 0:o.length)&&e.getContribution("editor.contrib.findController").getState().change({isRevealed:!1},!1),(null===(a=Object.keys(r))||void 0===a?void 0:a.length)>0&&(requestAnimationFrame(function(){e.revealRangeInCenterIfOutsideViewport(new A.Range(r.startIndex,1,r.endIndex,1),A.editor.ScrollType.Smooth),e.setSelection(new A.Range(r.startIndex,1,r.endIndex+1,1))}),e.trigger("keyboard","actions.find"),e.getAction("actions.find").run(),e.getContribution("editor.contrib.findController").getState().change({searchString:(null==r?void 0:r.variableName)||"",isRevealed:!0},!1)))}},[A,I,v,h,null==b?void 0:b.startIndex,null==b?void 0:b.endIndex,C]);l(function(){if(j.current&&A&&I){var e=j.current,n=e.onDidLayoutChange(function(){if(X(e,v,h,b,C),-1===v&&w&&w.length>0){var n=w[0].range,t=n.lineStart,i=n.lineEnd;X(e,t,i,b,C)}});return function(){return n.dispose()}}},[X,v,h,I,null==b?void 0:b.startIndex,null==b?void 0:b.endIndex,C,L]);var Y=d(function(e,n){X(e,E,M),j.current=e,F(n),W({start:E,end:M});var t=e.getContainerDomNode(),i=new ResizeObserver(function(){e.layout()});if(i.observe(t),j.current._resizeObserver=i,I){var r=e.getDomNode(),o=document.createElement("div");null==r||r.appendChild(o);var a=function(){var n=e.getTopForLineNumber(E)-e.getScrollTop();o.style.top="".concat(n,"px")};e.onDidScrollChange(a),a()}},[v,h,I,S]);return K?n("div",e({style:{color:"red",fontSize:"12px",padding:"8px"}},{children:K})):q?t(i,{children:[n(q,{height:m,width:p,defaultLanguage:J||f,defaultValue:x,theme:y?"vs-dark":"vs-light",onMount:Y,beforeMount:function(e){e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0})},options:{minimap:{enabled:!0},overviewRulerLanes:3,fontFamily:"Plus Jakarta Sans, sans-serif",scrollBeyondLastLine:!1,readOnly:!0,smoothScrolling:!0,automaticLayout:!0,lineDecorationsWidth:10,padding:{top:20,bottom:20}}}),t("style",{children:[U,".myLineHighlight { background-color: rgba(0, 122, 204, 0.3); }"]})]}):n("div",e({style:{padding:"8px",color:"#666"}},{children:"Loading code editor..."}))};export{g as DiagnosticSeverity,v as default};
|
|
2
|
-
//# sourceMappingURL=CodeEditor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditor.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e,__rest as o}from"tslib";import{jsxs as n,jsx as r,Fragment as i}from"react/jsx-runtime";import{useState as t}from"react";import d from"react-markdown";import l from"rehype-raw";var a=function(o){var i=o.IconComponent,t=o.text,d=o.number;return n("div",e({style:{display:"flex",alignItems:"center",justifyItems:"center",gap:"5px",color:"#5928ED",fontSize:"0.75rem"}},{children:[i,r("span",e({style:{fontWeight:"500"}},{children:t})),r("span",e({style:{backgroundColor:"#E9ECFD",borderRadius:"0.25rem",paddingLeft:"0.25rem",paddingRight:"0.25rem"}},{children:d}))]}))},s=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[r("path",{d:"M2.33333 5.33333H10.6667M10.6667 5.33333V13.6667M10.6667 5.33333L13.6667 2.33333M14 10.2248V2.53333C14 2.34665 14 2.25331 13.9637 2.182C13.9317 2.11928 13.8807 2.06829 13.818 2.03633C13.7467 2 13.6534 2 13.4667 2H5.77516C5.6121 2 5.53057 2 5.45385 2.01842C5.38582 2.03475 5.32079 2.06169 5.26114 2.09824C5.19387 2.13947 5.13622 2.19712 5.02091 2.31242L2.31242 5.02091C2.19712 5.13621 2.13947 5.19387 2.09824 5.26114C2.06169 5.32079 2.03475 5.38582 2.01842 5.45385C2 5.53057 2 5.6121 2 5.77516V13.4667C2 13.6534 2 13.7467 2.03633 13.818C2.06829 13.8807 2.11928 13.9317 2.182 13.9637C2.25331 14 2.34665 14 2.53333 14H10.2248C10.3879 14 10.4694 14 10.5462 13.9816C10.6142 13.9652 10.6792 13.9383 10.7389 13.9018C10.8061 13.8605 10.8638 13.8029 10.9791 13.6876L13.6876 10.9791C13.8029 10.8638 13.8605 10.8061 13.9018 10.7389C13.9383 10.6792 13.9652 10.6142 13.9816 10.5462C14 10.4694 14 10.3879 14 10.2248Z",stroke:"url(#paint0_linear_5418_41338)","stroke-linecap":"round","stroke-linejoin":"round"}),r("defs",{children:n("linearGradient",e({id:"paint0_linear_5418_41338",x1:"-0.857143",y1:"-0.772414",x2:"13.3773",y2:"5.89501",gradientUnits:"userSpaceOnUse"},{children:[r("stop",{"stop-color":"#2546F0"}),r("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},p=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},{children:[r("path",{d:"M13.7709 14C14.6644 12.1926 15.1668 10.1553 15.1668 8C15.1668 5.84474 14.6644 3.80744 13.7709 2M3.22945 2C2.33592 3.80744 1.8335 5.84474 1.8335 8C1.8335 10.1553 2.33592 12.1926 3.22945 14M11.5326 5.75H11.4728C11.0372 5.75 10.6233 5.94134 10.3399 6.27381L6.75664 10.4762C6.47315 10.8087 6.0593 11 5.6237 11H5.56392M6.31005 5.75H7.23944C7.57256 5.75 7.86531 5.97198 7.95682 6.29396L9.13978 10.456C9.23129 10.778 9.52404 11 9.85716 11H10.7866",stroke:"url(#paint0_linear_5418_41361)","stroke-linecap":"round","stroke-linejoin":"round"}),r("defs",{children:n("linearGradient",e({id:"paint0_linear_5418_41361",x1:"-1.34111",y1:"-0.772414",x2:"13.8345",y2:"7.12565",gradientUnits:"userSpaceOnUse"},{children:[r("stop",{"stop-color":"#2546F0"}),r("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},c=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[r("path",{d:"M9.33317 1.51172V4.26541C9.33317 4.63878 9.33317 4.82546 9.40583 4.96807C9.46975 5.09351 9.57173 5.1955 9.69718 5.25942C9.83978 5.33208 10.0265 5.33208 10.3998 5.33208H13.1535M10.6665 8.66536H5.33317M10.6665 11.332H5.33317M6.6665 5.9987H5.33317M9.33317 1.33203H5.8665C4.7464 1.33203 4.18635 1.33203 3.75852 1.55002C3.3822 1.74176 3.07624 2.04773 2.88449 2.42405C2.6665 2.85187 2.6665 3.41193 2.6665 4.53203V11.4654C2.6665 12.5855 2.6665 13.1455 2.88449 13.5733C3.07624 13.9497 3.3822 14.2556 3.75852 14.4474C4.18635 14.6654 4.7464 14.6654 5.8665 14.6654H10.1332C11.2533 14.6654 11.8133 14.6654 12.2412 14.4474C12.6175 14.2556 12.9234 13.9497 13.1152 13.5733C13.3332 13.1455 13.3332 12.5855 13.3332 11.4654V5.33203L9.33317 1.33203Z",stroke:"url(#paint0_linear_5418_41370)","stroke-linecap":"round","stroke-linejoin":"round"}),r("defs",{children:n("linearGradient",e({id:"paint0_linear_5418_41370",x1:"0.126822",y1:"-1.74843",x2:"13.656",y2:"3.32123",gradientUnits:"userSpaceOnUse"},{children:[r("stop",{"stop-color":"#2546F0"}),r("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},f={container:{width:"90%",margin:"0 auto",borderRadius:"4px",marginTop:"20px"},descriptionsContainer:{border:"1px solid #ddd"},header:{backgroundColor:"#fff",padding:"10px 15px",color:"#333",fontWeight:"bold",fontSize:"16px"},description:{padding:"5px 10px",fontSize:"14px",lineHeight:"1.5rem",color:"#555",backgroundColor:"#fff"},metrics:{display:"flex",padding:"10px 15px",borderBottom:"1px solid #eee",gap:"20px"},metric:{display:"flex",alignItems:"center",gap:"5px",fontSize:"14px",color:"#555"},metricIcon:{color:"#6366f1",marginRight:"5px"},expandableSection:{marginTop:"10px",border:"1px solid #ddd"},sectionHeader:{padding:"15px",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:"#fff"},sectionTitle:{fontSize:"14px",fontWeight:"bold",color:"#333"},sectionContent:{padding:"15px",fontSize:"14px",color:"#555",backgroundColor:"#fff"},tag:{display:"inline-block",padding:"10px 12px",margin:"5px",backgroundColor:"#FFF7ED",borderRadius:"15px",fontSize:"13px",color:"#555",cursor:"pointer"},categoryTitle:{fontSize:"14px",fontWeight:"bold",margin:"15px 5px 10px 5px",color:"#333"},tabContainer:{display:"flex",borderBottom:"1px solid #ddd",marginBottom:"10px"},tab:{padding:"8px 16px",cursor:"pointer",fontSize:"13px"},activeTab:{borderBottom:"2px solid #6366f1",color:"#6366f1"}},u={p:function(n){n.node;var i=o(n,["node"]);return r("p",e({},i,{className:"max-w-full break-words text-base leading-relaxed my-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==i?void 0:i.children}))},pre:function(n){n.node;var i=o(n,["node"]);return r("p",e({},i,{className:"max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==i?void 0:i.children}))},code:function(n){n.node;var i=o(n,["node"]);return r("code",e({},i,{className:"text-[#d63384] max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",textAlign:"justify"}},{children:null==i?void 0:i.children}))},ol:function(n){n.node;var i=o(n,["node"]);return r("ol",e({style:{listStyle:"decimal",marginLeft:"1rem",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:i.children}))},li:function(n){n.node;var i=o(n,["node"]);return r("li",e({style:{marginTop:"1rem",marginBottom:"1rem"}},{children:i.children}))},a:function(n){n.node;var i=o(n,["node"]),t=!1;try{t=new URL(i.href||"").protocol.startsWith("http")}catch(e){t=!1}return r("a",e({href:i.href,style:{display:"inline-flex",pointerEvents:t?"auto":"none"}},{children:i.children}))}},x=function(o){var x,m,h,g,v,w,C,b,y=o.overViewData;o.ReactMarkdownComponent;var k,S,_=o.datasource,F=void 0===_?"codebase":_,H=t(!1),M=H[0],B=H[1],L=(null===(x=null==y?void 0:y.description)||void 0===x?void 0:x.length)>750,W=M?null==y?void 0:y.description:(void 0===(k=null==y?void 0:y.description)&&(k=""),void 0===(S=3)&&(S=3),(k.match(/[^.!?]*[.!?]/g)||[]).slice(0,S).join(" ").trim()+(L?"...":""));return n("div",e({style:f.descriptionsContainer},{children:[n("div",e({style:f.description},{children:[r(d,e({rehypePlugins:[l],components:u},{children:W})),L&&r("span",e({onClick:function(){return B(function(e){return!e})},style:{color:"#007bff",cursor:"pointer",marginLeft:0}},{children:M?"View Less":"View More"}))]})),r("div",e({style:{paddingTop:"1%",display:"db"===F?"grid":"flex",gridTemplateColumns:"db"===F?"repeat(4, 1fr)":void 0,flexWrap:"db"!==F?"wrap":void 0,alignItems:"center",gap:"10px",backgroundColor:"#FFF",padding:"10px 15px",borderBottom:"1px solid #ddd",overflow:"wrap"}},{children:"db"===F?null===(m=null==y?void 0:y.stats)||void 0===m?void 0:m.filter(function(e){return"NA"!==e.count}).map(function(e,o){return r(a,{IconComponent:"table"===e.type?r(s,{}):"function"===e.type?r(p,{}):"lineOfCode"===e.type?r(c,{}):null,text:null==e?void 0:e.header,number:e.count},o)}):n(i,{children:[r(a,{IconComponent:r(s,{}),text:"Total Class",number:null===(g=null===(h=null==y?void 0:y.stats)||void 0===h?void 0:h[0])||void 0===g?void 0:g.count}),r(a,{IconComponent:r(p,{}),text:"Total Functions",number:null===(w=null===(v=null==y?void 0:y.stats)||void 0===v?void 0:v[1])||void 0===w?void 0:w.count}),r(a,{IconComponent:r(c,{}),text:"Total Lines of Code",number:null===(b=null===(C=null==y?void 0:y.stats)||void 0===C?void 0:C[2])||void 0===b?void 0:b.count})]})}))]}))};export{x as DescriptionWithToggle};
|
|
2
|
-
//# sourceMappingURL=DescriptionWithToggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionWithToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e,__rest as r}from"tslib";import{jsxs as n,jsx as i,Fragment as l}from"react/jsx-runtime";import o from"react-markdown";import t from"rehype-raw";var d=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:[i("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}))},a={p:function(n){n.node;var l=r(n,["node"]);return i("p",e({},l,{className:"max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==l?void 0:l.children}))},pre:function(n){n.node;var l=r(n,["node"]);return i("p",e({},l,{className:"max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==l?void 0:l.children}))},code:function(n){n.node;var l=r(n,["node"]);return i("span",e({},l,{style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",textAlign:"justify"}},{children:null==l?void 0:l.children}))},ol:function(n){n.node;var l=r(n,["node"]);return i("ol",e({style:{listStyle:"decimal",marginLeft:"1rem",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:l.children}))},li:function(n){n.node;var l=r(n,["node"]);return i("li",e({style:{marginTop:"1rem",marginBottom:"1rem"}},{children:l.children}))},a:function(n){n.node;var l=r(n,["node"]);return i("a",e({href:l.href,style:{display:"inline-flex"}},{children:l.children}))}},s=function(r){var s=r.fileSummarySectionTitle,c=r.FileDetailsComponent,f=r.onClose;r.editorHeight,r.editorWidth,r.code,r.language,r.isDarkMode;var h=r.summary,m=r.filepath,w=r.citationTitle;return n("div",e({style:{display:"flex",flexDirection:"column",width:"100%",height:"95%",overflow:"hidden",color:"#242424"}},{children:[n("div",e({style:{flexShrink:0,display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem"}},{children:[i("div",e({style:{fontWeight:600,textAlign:"center",flex:1}},{children:s})),i("div",e({style:{cursor:"pointer"},onClick:f},{children:i(d,{})}))]})),i("div",e({style:{flex:1,overflowY:"auto"}},{children:c||("Generated Code"!==w?n("div",e({style:{padding:"0 0.5rem",wordBreak:"break-word",lineHeight:"2rem"}},{children:[m?n(l,{children:[i("span",e({style:{fontWeight:700}},{children:"File path: "})),i("span",{children:m})]}):i(l,{}),i(o,e({rehypePlugins:[t],components:a},{children:h}))]})):i("div",e({style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0 0.5rem",wordBreak:"break-word",lineHeight:"2rem"}},{children:i("span",{children:"No file summary found for the generated code"})})))}))]}))};export{s as default};
|
|
2
|
-
//# sourceMappingURL=HighlightedCodeDetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HighlightedCodeDetails.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as r,jsx as t}from"react/jsx-runtime";import i from"@mui/material/CircularProgress";var a=function(){return r("div",e({role:"alert","aria-busy":"true","aria-label":"Loading content",style:{color:"#242424",display:"flex",justifyContent:"center",alignItems:"center",gap:"1rem",height:"100vh",fontSize:"1rem",padding:"0 1rem",textAlign:"center"}},{children:[t(i,{size:24}),t("div",e({"aria-live":"polite"},{children:"Curating code and file statistics, please wait..."}))]}))};export{a as default};
|
|
2
|
-
//# sourceMappingURL=Spinner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__spreadArray as n,__assign as e}from"tslib";import{jsx as i,jsxs as l,Fragment as d}from"react/jsx-runtime";import{useState as t,useMemo as o}from"react";import r from"../Accordian.js";import a from"../../../../assests/svg/chevronUp.svg.js";import u from"../../../../assests/svg/chevronDownArrow.svg.js";var s=function(){return l("svg",e({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[i("title",{children:"down"}),i("path",{d:"M64 191L98 157 262 320 426 157 460 191 262 387 64 191Z"})]}))},v=function(v){var c,h,m,p,f,x,g,I,b,y,C,_,k,w,S,T,U,N,j=v.fileDetails,A=v.styles,V=v.highlightCodeStatsLine,G=v.handleStatsPillClick,P=v.highlightCodeStatsVariable,D=v.handleVariableClick,F=t(["Technical Artifacts","Class","Functions","Procedure","Tables","Global Variables","Services Used","Internal Services","External Services","Columns","Check Constraints","Composite Keys","Default Constraints","Foreign Keys","Indexed Columns","Not Null Constraints","Other Columns","Primary Keys","Unique Constraints"]),K=F[0],M=F[1],E=t("Used"),L=E[0],q=E[1],B=o(function(){return"Used"===L?0:1},[L]),H=((null===(h=null===(c=null==j?void 0:j.chunk_details)||void 0===c?void 0:c.code_artifacts)||void 0===h?void 0:h.classes)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),O=((null===(p=null===(m=null==j?void 0:j.chunk_details)||void 0===m?void 0:m.code_artifacts)||void 0===p?void 0:p.functions)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),Z=((null===(x=null===(f=null==j?void 0:j.chunk_details)||void 0===f?void 0:f.code_artifacts)||void 0===x?void 0:x.procedures)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),z=((null===(I=null===(g=null==j?void 0:j.chunk_details)||void 0===g?void 0:g.code_artifacts)||void 0===I?void 0:I.tables)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),J=(null===(C=null===(y=null===(b=null==j?void 0:j.chunk_details)||void 0===b?void 0:b.code_artifacts)||void 0===y?void 0:y.global_variables)||void 0===C?void 0:C.used)||[],Q=Array.from(new Map(J.map(function(n){return[n.name,{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1,lineNumbers:(null==n?void 0:n.line_numbers)||[]}]})).values()),R=(null===(w=null===(k=null===(_=null==j?void 0:j.chunk_details)||void 0===_?void 0:_.code_artifacts)||void 0===k?void 0:k.global_variables)||void 0===w?void 0:w.not_used)||[],W=Array.from(new Map(R.map(function(n){return[n.name,{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1,lineNumbers:(null==n?void 0:n.line_numbers)||[]}]})).values()),X=((null===(T=null===(S=null==j?void 0:j.chunk_details)||void 0===S?void 0:S.services)||void 0===T?void 0:T.internal_services)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),Y=((null===(N=null===(U=null==j?void 0:j.chunk_details)||void 0===U?void 0:U.services)||void 0===N?void 0:N.external_services)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),$=[{header:"Technical Artifacts",content:[{header:"Class",content:H},{header:"Functions",content:O},{header:"Procedure",content:Z},{header:"Tables",content:z},{header:"Global Variables",content:n(n([],Q,!0),W,!0)}]},{header:"Services Used",content:[{header:"External Services",content:Y},{header:"Call to other files",content:X}]}],nn=[{header:"Used",content:Q||[]},{header:"Unused",content:W||[]}];return i("div",e({style:A},{children:$.map(function(t){var o,v=K.includes(t.header);return t.content.every(function(n){return 0===n.content.length})?i(d,{}):l("div",e({style:A.expandableSection},{children:[l("div",e({style:A.sectionHeader,onClick:function(){M(v?function(n){return n.filter(function(n){return n!==t.header})}:function(e){return e.includes(t.header)?e:n(n([],e,!0),[t.header],!1)})}},{children:[i("div",e({style:A.sectionTitle},{children:null==t?void 0:t.header})),i("img",{src:v?a:u})]})),v&&(null===(o=null==t?void 0:t.content)||void 0===o?void 0:o.map(function(n){var t,o,a,u,v;return(null===(t=null==n?void 0:n.content)||void 0===t?void 0:t.length)?i("div",e({style:A.sectionContent},{children:l("div",{children:[i("div",e({style:A.categoryTitle},{children:null==n?void 0:n.header})),"Global Variables"===(null==n?void 0:n.header)&&l("div",{children:[i("div",e({style:A.tabContainer},{children:nn.map(function(n){var t,o,r,a;return(null===(t=null==n?void 0:n.content)||void 0===t?void 0:t.length)>0&&(null===(r=null===(o=nn[B])||void 0===o?void 0:o.content)||void 0===r?void 0:r.length)?l("div",e({style:e(e({},A.tab),L===n.header?A.activeTab:{}),onClick:function(){return q(n.header)}},{children:[n.header," ","(",null===(a=null==n?void 0:n.content)||void 0===a?void 0:a.length,")"]}),n.header):i(d,{})})})),(null===(o=nn[B])||void 0===o?void 0:o.content)?null===(u=null===(a=nn[B])||void 0===a?void 0:a.content)||void 0===u?void 0:u.map(function(n){var t=(null==P?void 0:P.variableName)===(null==n?void 0:n.name);return t?i("div",e({style:{width:"100%"}},{children:i(r,{data:n})})):i(d,{children:l("span",e({style:e(e({},t?A.highlightTag:A.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return D(null==n?void 0:n.name,null==n?void 0:n.startIndex,null==n?void 0:n.endIndex)}},{children:[null==n?void 0:n.name,i("span",e({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:i(s,{})}))]}))})}):i(d,{})]}),"Global Variables"!==(null==n?void 0:n.header)?i("div",{children:null===(v=null==n?void 0:n.content)||void 0===v?void 0:v.map(function(n){var t,o,a=-1!==(null==n?void 0:n.startIndex)&&-1!==(null==n?void 0:n.endIndex)&&Number(null==n?void 0:n.startIndex)===(null==V?void 0:V.startIndex)&&Number(null==n?void 0:n.endIndex)===(null==V?void 0:V.endIndex)&&(null===(t=null==V?void 0:V.name)||void 0===t?void 0:t.trim())===(null===(o=null==n?void 0:n.name)||void 0===o?void 0:o.trim());return a?i("div",e({style:{width:"100%"}},{children:i(r,{data:n})})):i(d,{children:l("span",e({style:e(e({},a?A.highlightTag:A.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return G(null==n?void 0:n.startIndex,null==n?void 0:n.endIndex,null==n?void 0:n.name)}},{children:[null==n?void 0:n.name,i("span",e({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:i(s,{})}))]}))})})}):i(d,{})]})})):i(d,{})}))]}))})}))};export{v as default};
|
|
2
|
-
//# sourceMappingURL=CodebaseStatsComponent.js.map
|
package/dist/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodebaseStatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as n,__spreadArray as e}from"tslib";import{jsx as t,jsxs as i,Fragment as l}from"react/jsx-runtime";import{useState as o}from"react";import d from"../Accordian.js";import r from"../../../../assests/svg/chevronUp.svg.js";import s from"../../../../assests/svg/chevronDownArrow.svg.js";var u=function(){return i("svg",n({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[t("title",{children:"down"}),t("path",{d:"M64 191L98 157 262 320 426 157 460 191 262 387 64 191Z"})]}))},a=function(a){var c,v=a.fileDetails,h=a.styles,m=a.highlightCodeStatsLine,p=a.handleStatsPillClick,f=o(["Columns","Check Constraints","Composite Keys","Default Constraints","Foreign Keys","Indexed Columns","Not Null Constraints","Regular Columns","Primary Keys","Unique Constraints"]),g=f[0],y=f[1],x=(null===(c=null==v?void 0:v.chunk_details)||void 0===c?void 0:c.column_names)||{},C=function(n){return void 0===n&&(n=[]),n.map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}})},I=C(null==x?void 0:x.check_constraints),_=C(null==x?void 0:x.composite_keys),w=C(null==x?void 0:x.default_constraints),k=C(null==x?void 0:x.foreign_keys),K=C(null==x?void 0:x.indexed_columns),N=C(null==x?void 0:x.not_null_constraints),j=C(null==x?void 0:x.other_columns),b=C(null==x?void 0:x.primary_keys),D=C(null==x?void 0:x.unique_constraints);return t("div",{children:[{header:"Columns",content:[{header:"Primary Keys",content:b},{header:"Foreign Keys",content:k},{header:"Indexed Columns",content:K},{header:"Not Null Constraints",content:N},{header:"Unique Constraints",content:D},{header:"Composite Keys",content:_},{header:"Check Constraints",content:I},{header:"Default Constraints",content:w},{header:"Regular Columns",content:j}]}].map(function(o){var a,c=g.includes(o.header);return o.content.every(function(n){return 0===n.content.length})?t(l,{}):i("div",n({style:h.expandableSection},{children:[i("div",n({style:h.sectionHeader,onClick:function(){y(c?function(n){return n.filter(function(n){return n!==o.header})}:function(n){return n.includes(o.header)?n:e(e([],n,!0),[o.header],!1)})}},{children:[t("div",n({style:h.sectionTitle},{children:null==o?void 0:o.header})),t("img",{src:c?r:s})]})),c&&(null===(a=null==o?void 0:o.content)||void 0===a?void 0:a.map(function(e){var o,r;return(null===(o=null==e?void 0:e.content)||void 0===o?void 0:o.length)?t("div",n({style:h.sectionContent},{children:i("div",{children:[t("div",n({style:h.categoryTitle},{children:null==e?void 0:e.header})),t("div",{children:null===(r=null==e?void 0:e.content)||void 0===r?void 0:r.map(function(o){var r,s,a=-1!==(null==o?void 0:o.startIndex)&&-1!==(null==o?void 0:o.endIndex)&&Number(null==o?void 0:o.startIndex)===(null==m?void 0:m.startIndex)&&Number(null==o?void 0:o.endIndex)===(null==m?void 0:m.endIndex)&&(null===(r=null==m?void 0:m.name)||void 0===r?void 0:r.trim())===(null===(s=(null==e?void 0:e.header)+"_"+(null==o?void 0:o.name))||void 0===s?void 0:s.trim());return a?t("div",n({style:{width:"100%"}},{children:t(d,{data:o})})):t(l,{children:i("span",n({style:n(n({},a?h.highlightTag:h.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return p(null==o?void 0:o.startIndex,null==o?void 0:o.endIndex,(null==e?void 0:e.header)+"_"+(null==o?void 0:o.name))}},{children:[null==o?void 0:o.name,t("span",n({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:t(u,{})}))]}))})})})]})})):t(l,{})}))]}))})})};export{a as default};
|
|
2
|
-
//# sourceMappingURL=DbStatsComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DbStatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import e from"./DbStatsComponent.js";import i from"./CodebaseStatsComponent.js";var a=function(a){var l=a.fileDetails,s=a.styles,o=a.highlightCodeStatsLine,h=a.handleStatsPillClick,r=a.highlightCodeStatsVariable,d=a.handleVariableClick,n=a.datasource;return"db"===(void 0===n?"codebase":n)?t(e,{fileDetails:l,styles:s,highlightCodeStatsLine:o,handleStatsPillClick:h}):t(i,{fileDetails:l,styles:s,highlightCodeStatsLine:o,handleStatsPillClick:h,highlightCodeStatsVariable:r,handleVariableClick:d})};export{a as default};
|
|
2
|
-
//# sourceMappingURL=StatsComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as e,jsx as i,Fragment as n}from"react/jsx-runtime";import{useState as o}from"react";var c=function(){return i("svg",t({width:"100%",height:"100%",fill:"#000000",viewBox:"-1 0 19 19",xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg"},{children:i("path",{d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zM5.85 3.309a6.833 6.833 0 1 0 2.65-.534 6.787 6.787 0 0 0-2.65.534zm2.654 1.336A1.136 1.136 0 1 1 7.37 5.78a1.136 1.136 0 0 1 1.135-1.136zm.792 9.223V8.665a.792.792 0 1 0-1.583 0v5.203a.792.792 0 0 0 1.583 0z"})}))},r=function(){return e("svg",t({width:"100%",height:"100%",viewBox:"0 0 128 128",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--noto",preserveAspectRatio:"xMidYMid meet"},{children:[i("path",{d:"M37.41 41.95c-9.71 12.48-9.54 34.65 2.87 45.64c14.09 12.47 33.92 12.34 46.39.87c14.95-13.76 14.09-36.66.87-49.63c-13.29-13.04-37.04-13.72-50.13 3.12z",fill:"#fcc11a"}),i("path",{d:"M53 37.67c-3.84-1.7-8.04 2.93-9.87 6.09c-1.83 3.17-3.53 9.38.37 10.97c3.9 1.58 6.7-1.1 9.51-5.73c2.79-4.63 4.38-9.38-.01-11.33z",fill:"#fee269"}),i("path",{d:"M63 20.27c-.93 1.74-.62 3.08 1.23 3.52c1.85.44 13.36 2.31 14.33 2.37c1.41.09 1.93-.97 1.76-2.2c-.18-1.23-2.99-18.46-3.25-20.04S75.14.76 73.55 2.87S63.7 18.96 63 20.27z",fill:"#ffa722"}),i("path",{d:"M92.8 32.23c-1.81.56-1.76 1.67-.79 3.08c.97 1.41 7.65 11.6 8.26 12.31c.62.7 1.67.88 2.55-.18c.88-1.05 11.86-16.45 12.66-17.41c1.32-1.58.53-3.25-1.49-2.73c-1.54.41-20.05 4.58-21.19 4.93z",fill:"#ffa722"}),i("path",{d:"M106.6 61.86c-1.3-.74-2.99-.53-3.43 1.14c-.44 1.67-2.37 13.8-2.55 14.86s.62 2.11 1.93 1.85s19.45-2.95 20.66-3.25c2.11-.53 2.81-2.64.62-4.22c-1.42-1.03-16-9.68-17.23-10.38z",fill:"#ffa722"}),i("path",{d:"M92.09 90.6c1.4-.75 2.64-.18 2.99 1.41c.35 1.58 4.22 17.76 4.84 20.75c.31 1.5-1.41 2.73-2.81 1.85c-1.41-.88-16.69-11.53-17.67-12.4c-1.41-1.23-.43-2.51.26-3.16c1.4-1.33 11.07-7.74 12.39-8.45z",fill:"#ffa722"}),i("path",{d:"M49.54 99.48c-1.77-.17-2.29 1.41-2.02 2.81c.26 1.41 2.9 19.24 3.08 20.57c.26 1.93 2.29 2.73 3.6.79s10.35-16.4 11.08-17.76c1.32-2.46.35-2.99-.97-3.6c-1.31-.61-12.92-2.63-14.77-2.81z",fill:"#ffa722"}),i("path",{d:"M24.23 79c1.23-2.02 2.81-1.49 3.96.44c.78 1.32 7.38 10.2 8 11.16c.62.97.88 2.81-1.05 3.25c-1.95.45-17.68 4.58-20.14 5.02c-2.46.44-3.87-1.49-2.29-3.6c.92-1.24 10.82-15.12 11.52-16.27z",fill:"#ffa722"}),i("path",{d:"M20.89 63.7c2.25 1 3.31.64 3.78-.97c.62-2.11 2.46-11.78 2.55-13.98c.06-1.43-.53-2.81-2.73-2.46S6.47 48.85 4.45 49.55c-2.35.82-2.18 3.4-.62 4.22c1.85.97 15.47 9.23 17.06 9.93z",fill:"#ffa722"}),i("path",{d:"M48.23 26.78c1.27-1.01.88-2.46-.26-3.25c-1.14-.79-15.26-11-17.05-12.4c-1.58-1.23-3.52-.79-2.99 2.02c.38 2.02 4.88 19.7 5.19 20.92c.35 1.41 1.41 2.11 2.64 1.23c1.21-.87 11.15-7.46 12.47-8.52z",fill:"#ffa722"})]}))},l=function(l){var s=l.darkMode,d=l.onToggle,f=l.toggleFullscreen,p=l.handleOpenFileDetailSection,h=l.showFullscreenIcon,u=l.showFileSummaryIButton,g=o(!1),m=g[0],b=g[1];return e("div",t({style:a.container},{children:[e("div",t({style:{position:"relative",display:"inline-block"},onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)}},{children:[u?i("button",t({onClick:function(t){p(t)},style:{background:"transparent",color:"white",border:"none",borderRadius:"50%",width:"24px",height:"24px",fontWeight:"bold",cursor:"pointer",marginRight:"1rem",fontSize:"16px",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"auto",padding:0}},{children:i(c,{})})):i(n,{}),m&&i("div",t({style:{position:"absolute",zIndex:1001,bottom:"125%",left:"50%",transform:"translateX(-50%)",backgroundColor:"#555",color:"#fff",padding:"5px 8px",borderRadius:"6px",fontSize:"12px",textAlign:"center",whiteSpace:"nowrap",opacity:1,transition:"opacity 0.3s"}},{children:"Click to see file summary"}))]})),e("label",t({className:"theme-switch",style:a.switch},{children:[i("input",{type:"checkbox",checked:s,onChange:d,onClick:d,style:a.input}),i("div",t({style:t(t({},a.slider),{backgroundColor:s?"#444":"#f7f7f7"}),onClick:d},{children:i("div",t({style:t(t({},a.thumb),{transform:s?"translateX(22px)":"translateX(0)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,backgroundColor:s?"#444":"#f7f7f7"})},{children:s?"🌙":i(r,{})}))}))]})),h?i("button",t({onClick:function(t){return f(t)},style:{background:"transparent",border:"none",padding:"7px 6px",borderRadius:"6px",cursor:"pointer",fontSize:"1.5rem",color:"black",transition:"background 0.3s"},title:"Toggle fullscreen"},{children:"⛶"})):i(n,{})]}))},a={container:{display:"flex",alignItems:"center",gap:8},icon:{fontSize:20,transition:"transform 0.3s ease"},switch:{position:"relative",display:"inline-block",width:44,height:24},input:{opacity:0,width:0,height:0},slider:{position:"absolute",cursor:"pointer",top:0,left:0,right:0,bottom:0,transition:"0.4s",borderRadius:20},thumb:{position:"absolute",height:19,width:19,backgroundColor:"white",borderRadius:"50%",top:2,left:2,transition:"transform 0.3s ease"}};export{l as default};
|
|
2
|
-
//# sourceMappingURL=ThemeToggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|