@e-llm-studio/requirement-ai 0.0.61 → 0.0.62
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/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.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 +1 -14
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +0 -2
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +0 -2
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +0 -2
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js.map +0 -1
- package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +0 -2
- package/dist/cjs/features/RequirementAI/shared/CodeViewer.js.map +0 -1
- package/dist/cjs/features/RequirementAI/shared/CodeViewer.module.css.js +0 -2
- package/dist/cjs/features/RequirementAI/shared/CodeViewer.module.css.js.map +0 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +0 -2
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js.map +0 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +0 -2
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js.map +0 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +0 -2
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js.map +0 -1
- package/dist/features/RequirementAI/shared/CodeViewer.js +0 -2
- package/dist/features/RequirementAI/shared/CodeViewer.js.map +0 -1
- package/dist/features/RequirementAI/shared/CodeViewer.module.css.js +0 -2
- package/dist/features/RequirementAI/shared/CodeViewer.module.css.js.map +0 -1
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts +0 -15
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/shared/CodeViewer.d.ts +0 -11
- package/dist/types/src/features/RequirementAI/shared/CodeViewer.d.ts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("../../../../CitationRenderer/CitationRenderer.js"),i=require("./icons/FileCodeIcon.js");exports.default=function(o){var r=o.title;o.citation;var a=o.customStyles;o.customColors;var l=o.customIcons;o.editorConfig,o.fileCallback;var s=(null==l?void 0:l.readFileCitationIcon)||t.jsx(i.default,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),c=r+"";return t.jsx(n.default,{inLineCitation:!0,citationTitle:c,citationIcon:t.jsx(t.Fragment,{}),citationComponent:t.jsx(t.Fragment,{}),chevronDownComponent:s,chevronUpComponent:s,styles:{pillButton:e.__assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==a?void 0:a.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("./GeneratedCodeCitation.module.css.js"),i=require("lucide-react"),o=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("./GeneratedCodeCitation.module.css.js"),i=require("lucide-react"),o=require("../../CitationRenderer/CitationRenderer.js");exports.default=function(r){var s,a;return t.jsx(o.default,{inLineCitation:!0,citationTitle:r.title,citationIcon:t.jsx(t.Fragment,{}),citationComponent:t.jsx(t.Fragment,{}),chevronDownComponent:t.jsx(i.ChevronDown,{}),chevronUpComponent:t.jsx(i.ChevronUp,{}),styles:{pillButton:e.__assign(e.__assign({},n.default.pillButton),null===(s=r.customStyles)||void 0===s?void 0:s.pill),citationContent:e.__assign(e.__assign({},n.default.citationContent),null===(a=r.customStyles)||void 0===a?void 0:a.content)}})};
|
|
2
2
|
//# sourceMappingURL=GeneratedCodeCitation.js.map
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js"),r=require("./features/RequirementAI/components/citations/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js"),r=require("./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js"),t=require("./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js"),o=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js"),s=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js"),i=require("./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js"),a=require("./features/RequirementAI/components/story-screen/UserStoryScreen.js"),n=require("./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js"),p=require("./features/RequirementAI/components/RichTextEditor/RichTextEditor.js"),u=require("./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js"),d=require("./features/RequirementAI/components/story-screen/SubfeatureBlock.js"),c=require("./features/RequirementAI/shared/AtomicButton.js"),m=require("./features/RequirementAI/icons/SidebarOpenIcon.js"),S=require("./features/RequirementAI/icons/SidebarCloseIcon.js"),l=require("./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js"),f=require("./features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js"),q=require("./features/RequirementAI/hooks/useStreamContentHandler.js"),R=require("./features/RequirementAI/utils/proccess-stream.utils.js"),I=require("./features/RequirementAI/utils/diff-edit.utils.js"),y=require("./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js"),j=require("./features/RequirementAI/hooks/useDiffEditReviewMode.js"),x=require("./features/RequirementAI/components/UserStoryCard/UserStoryCard.js"),A=require("./features/RequirementAI/components/citations/file-citation/FileCitationRender.js"),U=require("./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js"),C=require("./features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js"),h=require("./features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js"),b=require("./features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js"),k=require("./features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js"),g=require("./features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js"),D=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js"),w=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js"),B=require("./features/RequirementAI/utils/userstory-approval-transform.utils.js"),P=require("./features/UserStoryImport/UserStoryPicker.js"),v=require("./features/UserStoryImport/components/Header.js"),T=require("./features/UserStoryImport/components/Toolbar.js"),G=require("./features/UserStoryImport/components/SearchInput.js"),W=require("./features/UserStoryImport/components/BrowseProjectsButton.js"),F=require("./features/UserStoryImport/components/SectionHeading.js"),H=require("./features/UserStoryImport/components/CardGrid.js"),L=require("./features/UserStoryImport/components/UserStoryCard.js"),M=require("./features/UserStoryImport/components/ProjectCard.js"),z=require("./features/UserStoryImport/components/Badge.js"),E=require("./features/UserStoryImport/components/BackNav.js"),N=require("./features/UserStoryImport/components/SortDropdown.js"),O=require("./features/UserStoryImport/components/ShowMore.js"),V=require("./features/UserStoryImport/components/ProceedButton.js"),_=require("./features/UserStoryImport/components/Footer.js"),J=require("./features/UserStoryImport/components/SplitLayout.js"),K=require("./features/UserStoryImport/components/Sidebar.js"),Q=require("./features/UserStoryImport/components/SidebarSection.js"),X=require("./features/UserStoryImport/components/SidebarProjectList.js"),Y=require("./features/UserStoryImport/components/SidebarFavoritesList.js"),Z=require("./features/UserStoryImport/components/ContentArea.js"),$=require("./features/UserStoryImport/components/NavRow.js"),ee=require("./features/UserStoryImport/components/UserStoryImportDialog.js"),re=require("./features/UserStoryImport/components/ResizeHandle.js"),te=require("./features/UserStoryImport/components/ScopeDropdown.js"),oe=require("./features/UserStoryImport/components/TypeDropdown.js"),se=require("./features/UserStoryImport/UserStoryPicker.context.js"),ie=require("./features/UserStoryImport/hooks/useUSPData.js"),ae=require("./features/UserStoryImport/components/usePanelResize.js"),ne=require("./features/UserStoryImport/UserStoryPicker.theme.js"),pe=Object.assign(P.UserStoryPickerRoot,{Header:v.Header,Toolbar:T.Toolbar,SearchInput:G.SearchInput,BrowseProjectsButton:W.BrowseProjectsButton,SectionHeading:F.SectionHeading,CardGrid:H.CardGrid,UserStoryCard:L.UserStoryCard,ProjectCard:M.ProjectCard,Badge:z.Badge,BackNav:E.BackNav,SortDropdown:N.SortDropdown,ScopeDropdown:te.ScopeDropdown,TypeDropdown:oe.TypeDropdown,ShowMore:O.ShowMore,ProceedButton:V.ProceedButton,Footer:_.Footer,SplitLayout:J.SplitLayout,Sidebar:K.Sidebar,SidebarSection:Q.SidebarSection,SidebarProjectList:X.SidebarProjectList,SidebarFavoritesList:Y.SidebarFavoritesList,ContentArea:Z.ContentArea,NavRow:$.NavRow,UserStoryImportDialog:ee.UserStoryImportDialog,ResizeHandle:re.ResizeHandle});exports.ReadFileCitationRenderer=e.default,exports.RCACitationRenderer=r.default,exports.RCACitationContent=t.default,exports.AppModCitationRenderer=o.default,exports.AppModCitationContent=s.default,exports.RequirementAIWrapper=i.default,exports.useRequirementAI=i.useRequirementAI,exports.UserStoryScreen=a.default,exports.UserStoryApprovalScreen=n.default,exports.RichTextEditor=p.default,exports.UserStoryWithCitation=u.default,exports.SubFeatureBlock=d.default,exports.AtomicButton=c.default,exports.SidebarOpenIcon=m.SidebarOpenIcon,exports.SidebarCloseIcon=S.SidebarCloseIcon,exports.StreamingScreenSidebar=l.default,exports.AiReasoningCitationContent=f.default,exports.useStreamContentHandler=q.useStreamContentHandler,exports.extractBlockStreams=R.extractBlockStreams,exports.extractDescription=R.extractDescription,exports.processAIReasoningFromBlocks=R.processAIReasoningFromBlocks,exports.processUserStoryValue=R.processUserStoryValue,exports.handleAcceptAllChanges=I.handleAcceptAllChanges,exports.handleDiffEditApplied=I.handleDiffEditApplied,exports.handleDiscardAll=I.handleDiscardAll,exports.GapFilterBlock=y.GapFilterBlock,exports.hasAnyUpdatedTags=j.hasAnyUpdatedTags,exports.useDiffEditReviewMode=j.useDiffEditReviewMode,exports.UserStoryCardWrapper=x.UserStoryCardWrapper,exports.FileCitationRender=A.default,exports.WebCitationWithImageRenderer=U.default,exports.WebCitationRenderer=C.default,exports.StormeeCitationRenderer=h.default,exports.WaveformCitationRenderer=b.default,exports.ImageCitationRenderer=k.default,exports.GapRiskSidebar=g.default,exports.NoGapsFound=g.NoGapsFound,exports.useGapRiskSidebar=g.useGapRiskSidebar,exports.buildStoryWithGap=D.buildStoryWithGap,exports.updateGapInRawData=D.updateGapInRawData,exports.updateGapStory=D.updateGapStory,exports.buildStoryWithRisk=w.buildStoryWithRisk,exports.updateRiskInRawData=w.updateRiskInRawData,exports.updateStory=w.updateStory,exports.cloneUserStories=B.cloneUserStories,exports.createUserStoriesForApproval=B.createUserStoriesForApproval,exports.splitByHeaders=B.splitByHeaders,exports.transformApprovalToUserStory=B.transformApprovalToUserStory,exports.UserStoryImportDialog=ee.UserStoryImportDialog,exports.ResizeHandle=re.ResizeHandle,exports.useUSPContext=se.useUSPContext,exports.useUSPData=ie.useUSPData,exports.usePanelResize=ae.usePanelResize,exports.darkTheme=ne.darkTheme,exports.lightTheme=ne.lightTheme,exports.themeToStyle=ne.themeToStyle,exports.uspColorPalette=ne.uspColorPalette,exports.uspVSCodeLightTheme=ne.uspVSCodeLightTheme,exports.vscodeTheme=ne.vscodeTheme,exports.UserStoryPicker=pe;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as n,Fragment as i}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import e from"./icons/FileCodeIcon.js";var r=function(r){var a=r.title;r.citation;var l=r.customStyles;r.customColors;var c=r.customIcons;r.editorConfig,r.fileCallback;var p=(null==c?void 0:c.readFileCitationIcon)||n(e,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return n(o,{inLineCitation:!0,citationTitle:a+"",citationIcon:n(i,{}),citationComponent:n(i,{}),chevronDownComponent:p,chevronUpComponent:p,styles:{pillButton:t({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==l?void 0:l.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{r as default};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as o,Fragment as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as o,Fragment as i}from"react/jsx-runtime";import n from"./GeneratedCodeCitation.module.css.js";import{ChevronDown as e,ChevronUp as r}from"lucide-react";import l from"../../CitationRenderer/CitationRenderer.js";var m=function(m){var a,c;return o(l,{inLineCitation:!0,citationTitle:m.title,citationIcon:o(i,{}),citationComponent:o(i,{}),chevronDownComponent:o(e,{}),chevronUpComponent:o(r,{}),styles:{pillButton:t(t({},n.pillButton),null===(a=m.customStyles)||void 0===a?void 0:a.pill),citationContent:t(t({},n.citationContent),null===(c=m.customStyles)||void 0===c?void 0:c.content)}})};export{m as default};
|
|
2
2
|
//# sourceMappingURL=GeneratedCodeCitation.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as ReadFileCitationRenderer}from"./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js";export{default as
|
|
1
|
+
export{default as ReadFileCitationRenderer}from"./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js";export{default as RCACitationRenderer}from"./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js";export{default as RCACitationContent}from"./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js";export{default as AppModCitationRenderer}from"./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js";export{default as AppModCitationContent}from"./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js";export{default as RequirementAIWrapper,useRequirementAI}from"./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js";export{default as UserStoryScreen}from"./features/RequirementAI/components/story-screen/UserStoryScreen.js";export{default as UserStoryApprovalScreen}from"./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js";export{default as RichTextEditor}from"./features/RequirementAI/components/RichTextEditor/RichTextEditor.js";export{default as UserStoryWithCitation}from"./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js";export{default as SubFeatureBlock}from"./features/RequirementAI/components/story-screen/SubfeatureBlock.js";export{default as AtomicButton}from"./features/RequirementAI/shared/AtomicButton.js";export{SidebarOpenIcon}from"./features/RequirementAI/icons/SidebarOpenIcon.js";export{SidebarCloseIcon}from"./features/RequirementAI/icons/SidebarCloseIcon.js";export{default as StreamingScreenSidebar}from"./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js";export{default as AiReasoningCitationContent}from"./features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js";export{useStreamContentHandler}from"./features/RequirementAI/hooks/useStreamContentHandler.js";export{extractBlockStreams,extractDescription,processAIReasoningFromBlocks,processUserStoryValue}from"./features/RequirementAI/utils/proccess-stream.utils.js";export{handleAcceptAllChanges,handleDiffEditApplied,handleDiscardAll}from"./features/RequirementAI/utils/diff-edit.utils.js";export{GapFilterBlock}from"./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js";export{hasAnyUpdatedTags,useDiffEditReviewMode}from"./features/RequirementAI/hooks/useDiffEditReviewMode.js";export{UserStoryCardWrapper}from"./features/RequirementAI/components/UserStoryCard/UserStoryCard.js";export{default as FileCitationRender}from"./features/RequirementAI/components/citations/file-citation/FileCitationRender.js";export{default as WebCitationWithImageRenderer}from"./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js";export{default as WebCitationRenderer}from"./features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js";export{default as StormeeCitationRenderer}from"./features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js";export{default as WaveformCitationRenderer}from"./features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js";export{default as ImageCitationRenderer}from"./features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js";export{default as GapRiskSidebar,NoGapsFound,useGapRiskSidebar}from"./features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js";export{buildStoryWithGap,updateGapInRawData,updateGapStory}from"./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js";export{buildStoryWithRisk,updateRiskInRawData,updateStory}from"./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js";export{cloneUserStories,createUserStoriesForApproval,splitByHeaders,transformApprovalToUserStory}from"./features/RequirementAI/utils/userstory-approval-transform.utils.js";import{UserStoryPickerRoot as e}from"./features/UserStoryImport/UserStoryPicker.js";import{Header as t}from"./features/UserStoryImport/components/Header.js";import{Toolbar as r}from"./features/UserStoryImport/components/Toolbar.js";import{SearchInput as o}from"./features/UserStoryImport/components/SearchInput.js";import{BrowseProjectsButton as s}from"./features/UserStoryImport/components/BrowseProjectsButton.js";import{SectionHeading as a}from"./features/UserStoryImport/components/SectionHeading.js";import{CardGrid as n}from"./features/UserStoryImport/components/CardGrid.js";import{UserStoryCard as i}from"./features/UserStoryImport/components/UserStoryCard.js";import{ProjectCard as m}from"./features/UserStoryImport/components/ProjectCard.js";import{Badge as p}from"./features/UserStoryImport/components/Badge.js";import{BackNav as u}from"./features/UserStoryImport/components/BackNav.js";import{SortDropdown as f}from"./features/UserStoryImport/components/SortDropdown.js";import{ShowMore as c}from"./features/UserStoryImport/components/ShowMore.js";import{ProceedButton as d}from"./features/UserStoryImport/components/ProceedButton.js";import{Footer as S}from"./features/UserStoryImport/components/Footer.js";import{SplitLayout as l}from"./features/UserStoryImport/components/SplitLayout.js";import{Sidebar as R}from"./features/UserStoryImport/components/Sidebar.js";import{SidebarSection as I}from"./features/UserStoryImport/components/SidebarSection.js";import{SidebarProjectList as j}from"./features/UserStoryImport/components/SidebarProjectList.js";import{SidebarFavoritesList as y}from"./features/UserStoryImport/components/SidebarFavoritesList.js";import{ContentArea as A}from"./features/UserStoryImport/components/ContentArea.js";import{NavRow as U}from"./features/UserStoryImport/components/NavRow.js";import{UserStoryImportDialog as C}from"./features/UserStoryImport/components/UserStoryImportDialog.js";export{UserStoryImportDialog}from"./features/UserStoryImport/components/UserStoryImportDialog.js";import{ResizeHandle as x}from"./features/UserStoryImport/components/ResizeHandle.js";export{ResizeHandle}from"./features/UserStoryImport/components/ResizeHandle.js";import{ScopeDropdown as q}from"./features/UserStoryImport/components/ScopeDropdown.js";import{TypeDropdown as b}from"./features/UserStoryImport/components/TypeDropdown.js";export{useUSPContext}from"./features/UserStoryImport/UserStoryPicker.context.js";export{useUSPData}from"./features/UserStoryImport/hooks/useUSPData.js";export{usePanelResize}from"./features/UserStoryImport/components/usePanelResize.js";export{darkTheme,lightTheme,themeToStyle,uspColorPalette,uspVSCodeLightTheme,vscodeTheme}from"./features/UserStoryImport/UserStoryPicker.theme.js";var h=Object.assign(e,{Header:t,Toolbar:r,SearchInput:o,BrowseProjectsButton:s,SectionHeading:a,CardGrid:n,UserStoryCard:i,ProjectCard:m,Badge:p,BackNav:u,SortDropdown:f,ScopeDropdown:q,TypeDropdown:b,ShowMore:c,ProceedButton:d,Footer:S,SplitLayout:l,Sidebar:R,SidebarSection:I,SidebarProjectList:j,SidebarFavoritesList:y,ContentArea:A,NavRow:U,UserStoryImportDialog:C,ResizeHandle:x});export{h as UserStoryPicker};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadFileCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ReadFileCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAExD,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAqDrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as ReadFileCitationRenderer } from "./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer";
|
|
2
|
-
export { default as ReadFileCitationContent } from "./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent";
|
|
3
2
|
export type { ReadFileCitationRendererProps, ReadFileCitationColors, ReadFileCitationEditorConfig, ReadFileCitationFileCallback, } from "./features/RequirementAI/components/citations/readfile-citation/types";
|
|
4
3
|
export { default as RCACitationRenderer } from "./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer";
|
|
5
4
|
export { default as RCACitationContent } from "./features/RequirementAI/components/citations/rca-citation/RCACitationContent";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,0FAA0F,CAAC;AAC/I,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,0FAA0F,CAAC;AAC/I,YAAY,EACV,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,gFAAgF,CAAC;AAChI,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+EAA+E,CAAC;AAC9H,YAAY,EACV,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,sFAAsF,CAAC;AACzI,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,qFAAqF,CAAC;AACvI,YAAY,EACV,2BAA2B,EAC3B,cAAc,GACf,MAAM,qEAAqE,CAAC;AAC7E,YAAY,EACV,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,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ement-ai",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.62",
|
|
4
4
|
"author": "Saptyadeep Bhattacharjee",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"FileCitationContent": ["dist/types/src/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts"],
|
|
30
30
|
"WebCitationWithImageContent": ["dist/types/src/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts"],
|
|
31
31
|
"ReadFileCitationRenderer": ["dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts"],
|
|
32
|
-
"ReadFileCitationContent": ["dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts"],
|
|
33
32
|
"ReadFileCitationTypes": ["dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts"],
|
|
34
33
|
"RCACitationRenderer": ["dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.d.ts"],
|
|
35
34
|
"RCACitationContent": ["dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationContent.d.ts"],
|
|
@@ -183,11 +182,6 @@
|
|
|
183
182
|
"require": "./dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js",
|
|
184
183
|
"types": "./dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts"
|
|
185
184
|
},
|
|
186
|
-
"./ReadFileCitationContent": {
|
|
187
|
-
"import": "./dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js",
|
|
188
|
-
"require": "./dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js",
|
|
189
|
-
"types": "./dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts"
|
|
190
|
-
},
|
|
191
185
|
"./ReadFileCitationTypes": {
|
|
192
186
|
"import": "./dist/features/RequirementAI/components/citations/readfile-citation/types.js",
|
|
193
187
|
"require": "./dist/cjs/features/RequirementAI/components/citations/readfile-citation/types.js",
|
|
@@ -479,7 +473,6 @@
|
|
|
479
473
|
"@craco/craco": "^7.1.0",
|
|
480
474
|
"@emotion/react": "^11.13.5",
|
|
481
475
|
"@emotion/styled": "^11.13.0",
|
|
482
|
-
"@monaco-editor/react": "^4.7.0",
|
|
483
476
|
"@mui/icons-material": "^6.5.0",
|
|
484
477
|
"@mui/material": "^6.5.0",
|
|
485
478
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
@@ -524,7 +517,6 @@
|
|
|
524
517
|
"peerDependencies": {
|
|
525
518
|
"@emotion/react": "^11.13.5",
|
|
526
519
|
"@emotion/styled": "^11.13.0",
|
|
527
|
-
"@monaco-editor/react": "^4.7.0",
|
|
528
520
|
"@mui/icons-material": "^6.5.0",
|
|
529
521
|
"@mui/material": "^6.5.0",
|
|
530
522
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
@@ -532,7 +524,6 @@
|
|
|
532
524
|
"@react-pdf-viewer/search": "^3.12.0",
|
|
533
525
|
"@react-pdf-viewer/zoom": "^3.12.0",
|
|
534
526
|
"highlight.js": "^11.11.1",
|
|
535
|
-
"monaco-editor": "^0.55.1",
|
|
536
527
|
"pdfjs-dist": "^3.11.174",
|
|
537
528
|
"react": ">=16.8.0 <19.0.0",
|
|
538
529
|
"react-dom": ">=16.8.0 <19.0.0",
|
|
@@ -567,9 +558,6 @@
|
|
|
567
558
|
"react-player": {
|
|
568
559
|
"optional": true
|
|
569
560
|
},
|
|
570
|
-
"@monaco-editor/react": {
|
|
571
|
-
"optional": true
|
|
572
|
-
},
|
|
573
561
|
"react-reader": {
|
|
574
562
|
"optional": true
|
|
575
563
|
},
|
|
@@ -589,7 +577,6 @@
|
|
|
589
577
|
"lexical": "^0.41.0",
|
|
590
578
|
"lodash": "^4.17.23",
|
|
591
579
|
"lucide-react": "^0.562.0",
|
|
592
|
-
"monaco-editor": "^0.55.1",
|
|
593
580
|
"pdf-collaborative-tool": "^0.7.0",
|
|
594
581
|
"radix-ui": "^1.4.3",
|
|
595
582
|
"react-icons": "^5.6.0",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("monaco-editor"),r=require("./ReadFileCitationContent.module.css.js"),o=require("./icons/ExternalLinkIcon.js");function a(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)}var l=a(i);"undefined"!=typeof self&&(self.MonacoEnvironment=e.__assign(e.__assign({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var s=!1,u=function(){if(!s&&"undefined"!=typeof document)try{var e=document.createElement("div");e.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none;",document.body.appendChild(e),l.editor.create(e,{value:"",language:"plaintext",automaticLayout:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},overviewRulerLanes:0,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}).dispose(),document.body.removeChild(e),s=!0}catch(e){s=!0}};u(),"undefined"!=typeof window&&(window.addEventListener("error",function(e){var n=e.message||"";if(n.includes("Worker")||n.includes("Monaco"))return e.preventDefault(),e.stopImmediatePropagation(),!1},!0),window.addEventListener("unhandledrejection",function(e){var n,t=(null===(n=e.reason)||void 0===n?void 0:n.message)||String(e.reason||"");(t.includes("Worker")||t.includes("Monaco"))&&(e.preventDefault(),e.stopImmediatePropagation())},!0));var c={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},d={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},h={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},f=function(e){return h[e.toLowerCase()]||e},g=function(i){var o=i.code,a=i.language,s=i.theme,c=i.fontSize,d=i.fontFamily,h=i.height,g=i.highlightRanges,m=i.backgroundColor,v=i.editorWrapperStyle,p=t.useRef(null),b=t.useRef(null),y=t.useRef(!1);return t.useEffect(function(){y.current=!1,u();var e=setTimeout(function(){var e=p.current;if(e&&!y.current&&!b.current)try{l.editor.setTheme(s);var n=l.editor.create(e,{value:o,language:f(a),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:c,lineHeight:20,fontFamily:d,lineNumbers:"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:4,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0});if(b.current=n,g.length>0){var t=g.map(function(e){var n=e[0],t=e[1];return{range:new l.Range(n,1,t,1),options:{isWholeLine:!0,className:r.default.highlightedLine,linesDecorationsClassName:r.default.highlightedLineDecoration}}});n.createDecorationsCollection(t);var i=g[0];i&&requestAnimationFrame(function(){!y.current&&b.current&&n.revealLineInCenter(i[0])})}}catch(e){}},50);return function(){if(y.current=!0,clearTimeout(e),b.current){try{b.current.dispose()}catch(e){}b.current=null}}},[]),t.useEffect(function(){try{l.editor.setTheme(s)}catch(e){}},[s]),n.jsx("div",e.__assign({className:r.default.editorWrapper,style:e.__assign({height:"".concat(h,"px"),backgroundColor:m},v)},{children:n.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})}))};exports.default=function(i){var a=i.citation,l=i.customStyles,s=i.customColors,u=i.customIcons,h=i.editorConfig,f=i.fileCallback,m=t.useMemo(function(){return e.__assign(e.__assign({},c),s)},[s]),v=t.useMemo(function(){return e.__assign(e.__assign({},d),h)},[h]),p=t.useRef(null),b=t.useRef(!1),y=a.customMetadata.content||"",_=a.customMetadata.highlighted_text,x=t.useMemo(function(){if(!_)return{};try{var e=_.trim();return e.startsWith("```")&&(e=(e=e.replace(/^```\w*\n?/,"")).replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[_]),j=t.useMemo(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(y));){var i=e[1]||"javascript",r=e[2].trim(),o=e[3].trim();r&&o&&n.push({filePath:r,code:o,language:i})}return n},[y]),C=t.useCallback(function(e){return(x[e]||[]).map(function(e){var n=e.split("-").map(Number),t=n[0];return[t,n.length>1?n[1]:t]})},[x]),w=t.useMemo(function(){for(var e=0;e<j.length;e++){if(C(j[e].filePath).length>0)return e}return-1},[j,C]),k=w>=0,M=t.useCallback(function(e,n){return C(e).map(function(e){var t=e[0],i=e[1];return t>n?[0,0]:[t,Math.min(i,n)]}).filter(function(e){var n=e[0],t=e[1];return n>0&&t>=n})},[C]),N=t.useCallback(function(e){var n=20*e.split("\n").length+16+4;return Math.min(Math.max(n,v.minHeight),v.maxHeight)},[v.minHeight,v.maxHeight]);t.useEffect(function(){if(k&&!b.current&&j.length>0&&(null==f?void 0:f.autoOpenFirstHighlighted)&&(null==f?void 0:f.onOpenFile)){var e=j[w],n=M(e.filePath,e.code.split("\n").length);b.current=!0;var t=setTimeout(function(){f.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[k,w,j,M,f]),t.useEffect(function(){b.current=!1},[y]),t.useEffect(function(){if(!(w<0)){var e=setTimeout(function(){var e;null===(e=p.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[w,_]);var L=t.useCallback(function(e,n){if(null==f?void 0:f.onOpenFile){var t=M(e,n);f.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[M,f]),O=!!(null==f?void 0:f.onOpenFile),S=(null==u?void 0:u.readFileCitationIcon)||n.jsx(o.default,{style:{width:"14px",height:"14px"}});return 0===j.length?n.jsx("div",e.__assign({className:r.default.emptyState,style:e.__assign({color:m.inactiveText},null==l?void 0:l.emptyState)},{children:"No code content available"})):n.jsx("div",e.__assign({className:r.default.container,style:null==l?void 0:l.container},{children:j.map(function(t,i){var o,a=C(t.filePath),s=a.length>0,u=i===w,c=N(t.code),d=t.filePath.split("/").pop(),h=t.code.split("\n").length,f=M(t.filePath,h);return n.jsxs("div",e.__assign({ref:u?p:void 0,"data-highlighted":s?"true":void 0,"data-first-highlighted":u?"true":void 0,className:r.default.blockContainer,style:e.__assign({border:"1px solid ".concat(m.border)},null==l?void 0:l.blockContainer)},{children:[n.jsxs("div",e.__assign({className:r.default.header,style:e.__assign({backgroundColor:s?m.highlightBg:m.headerBg,borderBottom:"1px solid ".concat(m.border),color:s?m.highlightGutter:m.foreground},s?null==l?void 0:l.headerHighlighted:null==l?void 0:l.header)},{children:[n.jsxs("div",e.__assign({className:r.default.headerLeft},{children:[n.jsx("span",e.__assign({className:r.default.fileName,title:t.filePath,style:null==l?void 0:l.fileName},{children:d})),O&&n.jsx("button",e.__assign({className:r.default.openFileButton,onClick:function(){return L(t.filePath,h)},title:"Open in editor","aria-label":"Open ".concat(d," in editor"),style:null==l?void 0:l.openFileButton},{children:S}))]})),s&&n.jsx("span",e.__assign({className:r.default.lineRanges,style:null==l?void 0:l.lineRanges},{children:(o=a,o.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))}))]})),n.jsx(g,{code:t.code,language:t.language,theme:v.theme,fontSize:v.fontSize,fontFamily:v.fontFamily,height:c,highlightRanges:f,backgroundColor:m.background,editorWrapperStyle:null==l?void 0:l.editorWrapper})]}),i)})}))};
|
|
2
|
-
//# sourceMappingURL=ReadFileCitationContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadFileCitationContent.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 e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ReadFileCitationContent-module_container__Oi3tV{display:flex;flex-direction:column;gap:12px;margin-top:4px}.ReadFileCitationContent-module_blockContainer__yGEX8{border-radius:4px;overflow:hidden}.ReadFileCitationContent-module_header__39-AD{align-items:center;display:flex;font-family:monospace;font-size:12px;gap:8px;justify-content:space-between;padding:6px 12px}.ReadFileCitationContent-module_headerLeft__WOyMV{align-items:center;display:flex;flex:1;gap:8px;min-width:0}.ReadFileCitationContent-module_fileName__ql9Qu{opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReadFileCitationContent-module_openFileButton__oqea1{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_openFileButton__oqea1:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_lineRanges__RIofb{flex-shrink:0;font-size:11px;max-width:300px;opacity:.7;overflow-x:auto;white-space:nowrap}.ReadFileCitationContent-module_editorWrapper__ab5Sg{overflow:hidden}.ReadFileCitationContent-module_highlightedLine__w6iv-{background-color:#3b82f626!important}.ReadFileCitationContent-module_highlightedLineDecoration__EykBL{background-color:#3b82f6;margin-left:0;width:3px!important}.ReadFileCitationContent-module_emptyState__34kcg{font-size:14px;padding:12px;text-align:center}.ReadFileCitationContent-module_loadingEditor__aOHYT{align-items:center;display:flex;font-size:14px;height:64px;justify-content:center}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={container:"ReadFileCitationContent-module_container__Oi3tV",blockContainer:"ReadFileCitationContent-module_blockContainer__yGEX8",header:"ReadFileCitationContent-module_header__39-AD",headerLeft:"ReadFileCitationContent-module_headerLeft__WOyMV",fileName:"ReadFileCitationContent-module_fileName__ql9Qu",openFileButton:"ReadFileCitationContent-module_openFileButton__oqea1",lineRanges:"ReadFileCitationContent-module_lineRanges__RIofb",editorWrapper:"ReadFileCitationContent-module_editorWrapper__ab5Sg",highlightedLine:"ReadFileCitationContent-module_highlightedLine__w6iv-",highlightedLineDecoration:"ReadFileCitationContent-module_highlightedLineDecoration__EykBL",emptyState:"ReadFileCitationContent-module_emptyState__34kcg",loadingEditor:"ReadFileCitationContent-module_loadingEditor__aOHYT"};
|
|
2
|
-
//# sourceMappingURL=ReadFileCitationContent.module.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadFileCitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime");exports.default=function(r){var t=r.className,i=r.style;return s.jsxs("svg",e.__assign({className:t,style:i,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[s.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),s.jsx("polyline",{points:"15 3 21 3 21 9"}),s.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}))};
|
|
2
|
-
//# sourceMappingURL=ExternalLinkIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalLinkIcon.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("@monaco-editor/react"),r=require("./CodeViewer.module.css.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(i);exports.default=function(i){var a=i.code,o=i.language,d=void 0===o?"typescript":o,l=i.readOnly,s=void 0!==l&&l,u=i.lineHeight,c=void 0===u?20:u,v=i.minHeight,g=void 0===v?60:v,h=i.maxHeight,m=void 0===h?600:h,p=a.split("\n").length,f=Math.min(m,Math.max(g,p*c+20));return t.jsx("div",e.__assign({className:r.default.container},{children:t.jsx(n.default,{height:"".concat(f,"px"),language:d,value:a,theme:"vs-dark",options:{readOnly:s,fontSize:14,lineHeight:c,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on"}})}))};
|
|
2
|
-
//# sourceMappingURL=CodeViewer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeViewer.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 e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".CodeViewer-module_container__n5W6V{background-color:#0d1117;border:1px solid #374151;border-radius:.75rem;overflow:hidden}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={container:"CodeViewer-module_container__n5W6V"};
|
|
2
|
-
//# sourceMappingURL=CodeViewer.module.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeViewer.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as n,jsxs as t}from"react/jsx-runtime";import{useMemo as i,useRef as r,useCallback as o,useEffect as a}from"react";import*as l from"monaco-editor";import c from"./ReadFileCitationContent.module.css.js";import s from"./icons/ExternalLinkIcon.js";"undefined"!=typeof self&&(self.MonacoEnvironment=e(e({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var u=!1,d=function(){if(!u&&"undefined"!=typeof document)try{var e=document.createElement("div");e.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none;",document.body.appendChild(e),l.editor.create(e,{value:"",language:"plaintext",automaticLayout:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},overviewRulerLanes:0,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}).dispose(),document.body.removeChild(e),u=!0}catch(e){u=!0}};d(),"undefined"!=typeof window&&(window.addEventListener("error",function(e){var n=e.message||"";if(n.includes("Worker")||n.includes("Monaco"))return e.preventDefault(),e.stopImmediatePropagation(),!1},!0),window.addEventListener("unhandledrejection",function(e){var n,t=(null===(n=e.reason)||void 0===n?void 0:n.message)||String(e.reason||"");(t.includes("Worker")||t.includes("Monaco"))&&(e.preventDefault(),e.stopImmediatePropagation())},!0));var h={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},m={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},f={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},g=function(e){return f[e.toLowerCase()]||e},p=function(t){var i=t.code,o=t.language,s=t.theme,u=t.fontSize,h=t.fontFamily,m=t.height,f=t.highlightRanges,p=t.backgroundColor,v=t.editorWrapperStyle,y=r(null),b=r(null),x=r(!1);return a(function(){x.current=!1,d();var e=setTimeout(function(){var e=y.current;if(e&&!x.current&&!b.current)try{l.editor.setTheme(s);var n=l.editor.create(e,{value:i,language:g(o),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:u,lineHeight:20,fontFamily:h,lineNumbers:"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:4,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0});if(b.current=n,f.length>0){var t=f.map(function(e){var n=e[0],t=e[1];return{range:new l.Range(n,1,t,1),options:{isWholeLine:!0,className:c.highlightedLine,linesDecorationsClassName:c.highlightedLineDecoration}}});n.createDecorationsCollection(t);var r=f[0];r&&requestAnimationFrame(function(){!x.current&&b.current&&n.revealLineInCenter(r[0])})}}catch(e){}},50);return function(){if(x.current=!0,clearTimeout(e),b.current){try{b.current.dispose()}catch(e){}b.current=null}}},[]),a(function(){try{l.editor.setTheme(s)}catch(e){}},[s]),n("div",e({className:c.editorWrapper,style:e({height:"".concat(m,"px"),backgroundColor:p},v)},{children:n("div",{ref:y,style:{width:"100%",height:"100%"}})}))},v=function(l){var u=l.citation,d=l.customStyles,f=l.customColors,g=l.customIcons,v=l.editorConfig,y=l.fileCallback,b=i(function(){return e(e({},h),f)},[f]),x=i(function(){return e(e({},m),v)},[v]),w=r(null),C=r(!1),N=u.customMetadata.content||"",L=u.customMetadata.highlighted_text,S=i(function(){if(!L)return{};try{var e=L.trim();return e.startsWith("```")&&(e=(e=e.replace(/^```\w*\n?/,"")).replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[L]),k=i(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(N));){var i=e[1]||"javascript",r=e[2].trim(),o=e[3].trim();r&&o&&n.push({filePath:r,code:o,language:i})}return n},[N]),F=o(function(e){return(S[e]||[]).map(function(e){var n=e.split("-").map(Number),t=n[0];return[t,n.length>1?n[1]:t]})},[S]),M=i(function(){for(var e=0;e<k.length;e++){if(F(k[e].filePath).length>0)return e}return-1},[k,F]),W=M>=0,j=o(function(e,n){return F(e).map(function(e){var t=e[0],i=e[1];return t>n?[0,0]:[t,Math.min(i,n)]}).filter(function(e){var n=e[0],t=e[1];return n>0&&t>=n})},[F]),O=o(function(e){var n=20*e.split("\n").length+16+4;return Math.min(Math.max(n,x.minHeight),x.maxHeight)},[x.minHeight,x.maxHeight]);a(function(){if(W&&!C.current&&k.length>0&&(null==y?void 0:y.autoOpenFirstHighlighted)&&(null==y?void 0:y.onOpenFile)){var e=k[M],n=j(e.filePath,e.code.split("\n").length);C.current=!0;var t=setTimeout(function(){y.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[W,M,k,j,y]),a(function(){C.current=!1},[N]),a(function(){if(!(M<0)){var e=setTimeout(function(){var e;null===(e=w.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[M,L]);var P=o(function(e,n){if(null==y?void 0:y.onOpenFile){var t=j(e,n);y.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[j,y]),B=!!(null==y?void 0:y.onOpenFile),R=(null==g?void 0:g.readFileCitationIcon)||n(s,{style:{width:"14px",height:"14px"}});return 0===k.length?n("div",e({className:c.emptyState,style:e({color:b.inactiveText},null==d?void 0:d.emptyState)},{children:"No code content available"})):n("div",e({className:c.container,style:null==d?void 0:d.container},{children:k.map(function(i,r){var o,a=F(i.filePath),l=a.length>0,s=r===M,u=O(i.code),h=i.filePath.split("/").pop(),m=i.code.split("\n").length,f=j(i.filePath,m);return t("div",e({ref:s?w:void 0,"data-highlighted":l?"true":void 0,"data-first-highlighted":s?"true":void 0,className:c.blockContainer,style:e({border:"1px solid ".concat(b.border)},null==d?void 0:d.blockContainer)},{children:[t("div",e({className:c.header,style:e({backgroundColor:l?b.highlightBg:b.headerBg,borderBottom:"1px solid ".concat(b.border),color:l?b.highlightGutter:b.foreground},l?null==d?void 0:d.headerHighlighted:null==d?void 0:d.header)},{children:[t("div",e({className:c.headerLeft},{children:[n("span",e({className:c.fileName,title:i.filePath,style:null==d?void 0:d.fileName},{children:h})),B&&n("button",e({className:c.openFileButton,onClick:function(){return P(i.filePath,m)},title:"Open in editor","aria-label":"Open ".concat(h," in editor"),style:null==d?void 0:d.openFileButton},{children:R}))]})),l&&n("span",e({className:c.lineRanges,style:null==d?void 0:d.lineRanges},{children:(o=a,o.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))}))]})),n(p,{code:i.code,language:i.language,theme:x.theme,fontSize:x.fontSize,fontFamily:x.fontFamily,height:u,highlightRanges:f,backgroundColor:b.background,editorWrapperStyle:null==d?void 0:d.editorWrapper})]}),r)})}))};export{v as default};
|
|
2
|
-
//# sourceMappingURL=ReadFileCitationContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadFileCitationContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e={container:"ReadFileCitationContent-module_container__Oi3tV",blockContainer:"ReadFileCitationContent-module_blockContainer__yGEX8",header:"ReadFileCitationContent-module_header__39-AD",headerLeft:"ReadFileCitationContent-module_headerLeft__WOyMV",fileName:"ReadFileCitationContent-module_fileName__ql9Qu",openFileButton:"ReadFileCitationContent-module_openFileButton__oqea1",lineRanges:"ReadFileCitationContent-module_lineRanges__RIofb",editorWrapper:"ReadFileCitationContent-module_editorWrapper__ab5Sg",highlightedLine:"ReadFileCitationContent-module_highlightedLine__w6iv-",highlightedLineDecoration:"ReadFileCitationContent-module_highlightedLineDecoration__EykBL",emptyState:"ReadFileCitationContent-module_emptyState__34kcg",loadingEditor:"ReadFileCitationContent-module_loadingEditor__aOHYT"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ReadFileCitationContent-module_container__Oi3tV{display:flex;flex-direction:column;gap:12px;margin-top:4px}.ReadFileCitationContent-module_blockContainer__yGEX8{border-radius:4px;overflow:hidden}.ReadFileCitationContent-module_header__39-AD{align-items:center;display:flex;font-family:monospace;font-size:12px;gap:8px;justify-content:space-between;padding:6px 12px}.ReadFileCitationContent-module_headerLeft__WOyMV{align-items:center;display:flex;flex:1;gap:8px;min-width:0}.ReadFileCitationContent-module_fileName__ql9Qu{opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReadFileCitationContent-module_openFileButton__oqea1{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_openFileButton__oqea1:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_lineRanges__RIofb{flex-shrink:0;font-size:11px;max-width:300px;opacity:.7;overflow-x:auto;white-space:nowrap}.ReadFileCitationContent-module_editorWrapper__ab5Sg{overflow:hidden}.ReadFileCitationContent-module_highlightedLine__w6iv-{background-color:#3b82f626!important}.ReadFileCitationContent-module_highlightedLineDecoration__EykBL{background-color:#3b82f6;margin-left:0;width:3px!important}.ReadFileCitationContent-module_emptyState__34kcg{font-size:14px;padding:12px;text-align:center}.ReadFileCitationContent-module_loadingEditor__aOHYT{align-items:center;display:flex;font-size:14px;height:64px;justify-content:center}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
2
|
-
//# sourceMappingURL=ReadFileCitationContent.module.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadFileCitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";var o=function(o){var i=o.className,n=o.style;return e("svg",t({className:i,style:n,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[r("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),r("polyline",{points:"15 3 21 3 21 9"}),r("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}))};export{o as default};
|
|
2
|
-
//# sourceMappingURL=ExternalLinkIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalLinkIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as i}from"react/jsx-runtime";import o from"@monaco-editor/react";import t from"./CodeViewer.module.css.js";function a(a){var n=a.code,r=a.language,m=void 0===r?"typescript":r,d=a.readOnly,l=void 0!==d&&d,s=a.lineHeight,c=void 0===s?20:s,p=a.minHeight,h=void 0===p?60:p,g=a.maxHeight,v=void 0===g?600:g,u=n.split("\n").length,f=Math.min(v,Math.max(h,u*c+20));return i("div",e({className:t.container},{children:i(o,{height:"".concat(f,"px"),language:m,value:n,theme:"vs-dark",options:{readOnly:l,fontSize:14,lineHeight:c,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on"}})}))}export{a as default};
|
|
2
|
-
//# sourceMappingURL=CodeViewer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeViewer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e={container:"CodeViewer-module_container__n5W6V"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".CodeViewer-module_container__n5W6V{background-color:#0d1117;border:1px solid #374151;border-radius:.75rem;overflow:hidden}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
|
|
2
|
-
//# sourceMappingURL=CodeViewer.module.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeViewer.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ReadFileCitationColors, ReadFileCitationEditorConfig, ReadFileCitationFileCallback } from "./types";
|
|
3
|
-
import { ReadFileCitation } from "../../../types/citation.type";
|
|
4
|
-
import { ReadFileCitationStyleGroup, UserStoryIcons } from "../../../types/aiReasoning.type";
|
|
5
|
-
interface ReadFileCitationContentProps {
|
|
6
|
-
citation: ReadFileCitation;
|
|
7
|
-
customStyles?: ReadFileCitationStyleGroup;
|
|
8
|
-
customColors?: ReadFileCitationColors;
|
|
9
|
-
customIcons?: UserStoryIcons;
|
|
10
|
-
editorConfig?: ReadFileCitationEditorConfig;
|
|
11
|
-
fileCallback?: ReadFileCitationFileCallback;
|
|
12
|
-
}
|
|
13
|
-
declare const ReadFileCitationContent: React.FC<ReadFileCitationContentProps>;
|
|
14
|
-
export default ReadFileCitationContent;
|
|
15
|
-
//# sourceMappingURL=ReadFileCitationContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadFileCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAGvE,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AA8F7F,UAAU,4BAA4B;IACpC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,YAAY,CAAC,EAAE,4BAA4B,CAAC;CAC7C;AAoND,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAiRnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface CodeViewerProps {
|
|
2
|
-
code: string;
|
|
3
|
-
language?: string;
|
|
4
|
-
readOnly?: boolean;
|
|
5
|
-
lineHeight?: number;
|
|
6
|
-
minHeight?: number;
|
|
7
|
-
maxHeight?: number;
|
|
8
|
-
}
|
|
9
|
-
export default function CodeViewer({ code, language, readOnly, lineHeight, minHeight, maxHeight, }: CodeViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=CodeViewer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeViewer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/CodeViewer.tsx"],"names":[],"mappings":"AAGA,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,QAAuB,EACvB,QAAgB,EAChB,UAAe,EACf,SAAc,EACd,SAAe,GAChB,EAAE,eAAe,2CA2BjB"}
|