@e-llm-studio/requirement-ai 0.0.62 → 0.0.63
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/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +2 -0
- package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js.map +1 -0
- package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +2 -0
- package/dist/cjs/features/RequirementAI/shared/CodeViewer.js.map +1 -0
- package/dist/cjs/features/RequirementAI/shared/CodeViewer.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/shared/CodeViewer.module.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +2 -0
- package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +2 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +2 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +2 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js.map +1 -0
- package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +2 -0
- package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js.map +1 -0
- package/dist/features/RequirementAI/shared/CodeViewer.js +2 -0
- package/dist/features/RequirementAI/shared/CodeViewer.js.map +1 -0
- package/dist/features/RequirementAI/shared/CodeViewer.module.css.js +2 -0
- package/dist/features/RequirementAI/shared/CodeViewer.module.css.js.map +1 -0
- package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
- package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +2 -0
- package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +5 -2
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/AttachedContext.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/AttachedContext.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/icons/MeetingHighlightsIcon.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/icons/MeetingHighlightsIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/CodeViewer.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/shared/CodeViewer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts +10 -0
- package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +14 -1
package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("../../store/ref.context.js"),i=n.createContext(null);exports.default=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("../../store/ref.context.js"),i=n.createContext(null);exports.default=function(s){var o=s.children,a=s.userStory,u=s.setUserStory,c=s.aiReasoning,l=s.setAiReasoning,f=s.citations,g=s.setCitations,d=s.apiCachingConfig,h=s.customStyles,v=s.customIcons,C=s.searchQueryList,p=s.searchQueryReasoningIdList,y=s.citationConfig,m=s.chatHistory,R=s.chatCitationConfigs,x=s.gptCitationConfigs,A=s.aiReasoningAccordionOpenStates,I=s.persistedDataFiles,S=n.useMemo(function(){if(0===a.length||0===c.length)return Array(a.length).fill(0);var e=Array.from({length:a.length},function(){return[]});return c.forEach(function(t){var n=Number(t.relevance_score);if(!(isNaN(n)||n<=0)){var r="ai_reasoning$".concat(t.id),i=a.findIndex(function(e){var t;return e.value.includes(r)||(null===(t=e.sub_features)||void 0===t?void 0:t.some(function(e){return e.value.includes(r)}))});-1!==i&&e[i].push(n)}}),e.map(function(e){return 0===e.length?0:Math.round(e.reduce(function(e,t){return e+t},0)/e.length)})},[a,c]),q=n.useCallback(function(e){var t,n=a.findIndex(function(t){return t.artifactId===e});return-1===n?0:null!==(t=S[n])&&void 0!==t?t:0},[a,S]);return t.jsx(i.Provider,e.__assign({value:{chatHistory:m,userStory:a,setUserStory:u,aiReasoning:c,setAiReasoning:l,citations:f,setCitations:g,apiCachingConfig:d,customStyles:h,customIcons:v,searchQueryList:C,searchQueryReasoningIdList:p,citationConfig:y,getAvgScoreForStory:q,chatCitationConfigs:R,gptCitationConfigs:x,aiReasoningAccordionOpenStates:A,persistedDataFiles:I}},{children:t.jsx(r.RefProvider,{children:o})}))},exports.useRequirementAI=function(){var e=n.useContext(i);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};
|
|
2
2
|
//# sourceMappingURL=RequirementAIWrapper.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react"),s=require("../RequirementAIWrapper/RequirementAIWrapper.js"),a=require("@mui/material"),i=require("../../utils/userStoryAttachedContext.utils.js"),o=function(e){return["mp4","mov","webm","mkv"].includes(e)?t.jsx(r.Video,{size:24}):["mp3","wav","ogg","m4a","aac"].includes(e)?t.jsx(r.Headphones,{size:24}):["png","jpg","jpeg","svg","webp","gif"].includes(e)?t.jsx(r.ImageIcon,{size:24}):["pdf","docx","doc","txt","rtf","pages"].includes(e)?t.jsx(r.FileText,{size:24}):t.jsx(r.FileCode,{size:24})},l=function(o){var l=o.item,c=o.isLast,u=o.getIconByExtension,d=s.useRequirementAI().apiCachingConfig,m=d.queryClient,g=d.useGetSignedUrlQuery,x=d.useGetSignedUrlMutation,p=d.getProjectFileUrl,h=n.useState(!1),f=h[0],v=h[1],b=n.useState(""),j=b[0],w=b[1],y=null==p?void 0:p(l.path),_=["getSignedUrl",y],k=g(y,_).data,N=x(y),C=N.mutate,E=N.isPending;n.useEffect(function(){if(!y)return w("Please provide valid gsUtilPath."),void v(!0);m.getQueryData(_)||k||C({gsUtilPath:y})},[y]);return t.jsxs("div",e.__assign({className:"\n group flex items-start gap-4 p-4 mx-2 rounded-[8px] transition-colors\n hover:bg-gray-50 border-b border-transparent\n ".concat(c?"":"border-gray-100","\n ")},{children:[t.jsx("div",e.__assign({className:"mt-1 p-2 bg-violet-50 rounded-[8px] text-violet-500"},{children:i.GetFileIcon(l.extension,l.title.toUpperCase())||u(l.extension)})),t.jsxs("div",e.__assign({className:"flex-1 min-w-0"},{children:[t.jsx("h3",e.__assign({className:"text-[15px] font-semibold text-gray-900 truncate group-hover:text-violet-600 transition-colors"},{children:l.title})),t.jsx("p",e.__assign({className:"text-sm text-gray-500 mt-0.5"},{children:l.metadata}))]})),t.jsx("div",e.__assign({onClick:function(t){return e.__awaiter(void 0,void 0,void 0,function(){var n,r,s,a,i,o,c;return e.__generator(this,function(e){switch(e.label){case 0:t.stopPropagation(),e.label=1;case 1:return e.trys.push([1,4,,5]),(n=k||m.getQueryData(_))?"json"!==l.extension.toLowerCase()?(window.open(n,"_blank"),[2]):[4,fetch(n)]:(E||C({gsUtilPath:y}),[2]);case 2:if(!(r=e.sent()).ok)throw new Error("Failed to fetch artifact JSON");return[4,r.json()];case 3:return s=e.sent(),a=s.id,i=s.modeName,a&&i?(o="".concat(window.location.origin,"/artifact/").concat(a,"/mode/").concat(i),window.open(o,"_blank"),[3,5]):(window.open(n,"_blank"),[2]);case 4:return c=e.sent(),console.error("Redirect failed:",c),window.open(k,"_blank"),[3,5];case 5:return[2]}})})},className:"text-gray-400 hover:text-violet-600 cursor-pointer self-center p-2 rounded-[4px] hover:bg-white transition-all"},{children:E?t.jsx(r.Loader2,{size:24,className:"animate-spin text-gray-500"}):t.jsx(r.ExternalLink,{size:24,className:k?"text-gray-500":""})})),t.jsx(a.Snackbar,e.__assign({open:f,autoHideDuration:3e3,onClose:function(){return v(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"}},{children:t.jsxs(a.Alert,e.__assign({onClose:function(){return v(!1)},severity:"error",sx:{width:"100%"}},{children:[t.jsx(a.AlertTitle,{children:"Error"}),j]}))}))]}))};exports.default=function(){var a=n.useState(!1),c=a[0],u=a[1],d=n.useRef(null),m=n.useRef(null),g=s.useRequirementAI().persistedDataFiles;n.useEffect(function(){var e=function(e){m.current&&!m.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]);var x=n.useMemo(function(){var e=[];return g?(Object.entries(g).forEach(function(t){var n=t[0],r=t[1];Array.isArray(r)&&r.forEach(function(t){var r,s=t.filesFromProject;if(s){var a,o=s.name,l=(null===(r=s.type)||void 0===r?void 0:r.toLowerCase())||"",c=(a=s.uploadTime)?new Date(a).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):"";e.push({id:s.url,category:n,title:o,extension:l,metadata:"".concat(c," • ").concat(i.getDisplayFileType(l,o)),path:s.url,uploadTime:s.uploadTime})}})}),e):e},[g]);return n.useEffect(function(){var e=function(e){d.current&&!d.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),t.jsxs("div",e.__assign({className:"flex flex-col items-end"},{children:[t.jsxs("div",e.__assign({className:"relative inline-block text-left",ref:m},{children:[t.jsxs("button",e.__assign({onClick:function(e){e.stopPropagation(),u(!c)},className:"\n flex items-center gap-2 px-4 py-2 rounded-[8px] border transition-all duration-200\n bg-white border-gray-300 text-gray-700 hover:bg-gray-50 shadow-sm\n "},{children:[t.jsx(r.BookOpen,{size:18,className:"text-gray-600"}),t.jsxs("span",e.__assign({className:"font-medium"},{children:["Attached Context(",x.length,")"]})),c?t.jsx(r.ChevronUp,{size:18}):t.jsx(r.ChevronDown,{size:18})]})),c&&t.jsxs("div",e.__assign({className:"absolute left-0 mt-2 w-[420px] bg-white rounded-[12px] shadow-xl border border-gray-100 z-50 overflow-hidden",style:{animation:"slideIn 0.2s ease-out"}},{children:[t.jsx("div",e.__assign({className:"max-h-[300px] overflow-y-auto py-2 custom-scrollbar"},{children:x.length>0?x.map(function(e,n){return t.jsx(l,{item:e,isLast:n===x.length-1,getIconByExtension:o},e.id)}):t.jsx("div",e.__assign({className:"p-8 text-center text-gray-400 text-sm"},{children:"No attachments found"}))})),x.length>4&&t.jsx("div",{className:"h-4 bg-gradient-to-t from-gray-50/50 to-transparent pointer-events-none"})]}))]})),t.jsx("style",{children:"\n @keyframes slideIn {\n from { opacity: 0; transform: translateY(-10px) scale(0.98); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n .custom-scrollbar::-webkit-scrollbar {\n width: 6px;\n }\n .custom-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n }\n .custom-scrollbar::-webkit-scrollbar-thumb {\n background: #e5e7eb;\n border-radius: 10px;\n }\n .custom-scrollbar::-webkit-scrollbar-thumb:hover {\n background: #d1d5db;\n }\n "})]}))};
|
|
2
|
+
//# sourceMappingURL=AttachedContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachedContext.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadFileCitationContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadFileCitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -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"),i=require("../../../../CitationRenderer/CitationRenderer.js"),n=require("./icons/FileCodeIcon.js"),o=require("./ReadFileCitationContent.js");exports.default=function(r){var a=r.title,l=r.citation,s=r.customStyles,c=r.customColors,u=r.customIcons,d=r.editorConfig,p=r.fileCallback,m=(null==u?void 0:u.readFileCitationIcon)||t.jsx(n.default,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),C=a+"";return t.jsx(i.default,{inLineCitation:!0,citationTitle:C,citationIcon:t.jsx(t.Fragment,{}),citationComponent:t.jsx(o.default,{citation:l,customStyles:s,customColors:c,customIcons:u,editorConfig:d,fileCallback:p}),chevronDownComponent:m,chevronUpComponent:m,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==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationRenderer.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalLinkIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),a=require("../RequirementAIWrapper/RequirementAIWrapper.js"),n=require("../../utils/userstory-approval-transform.utils.js"),o=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),s=require("./components/ContentSegment/ContentSegment.js"),l=require("./components/ApprovalBadge/ApprovalBadge.js"),d=require("./UserStoryApprovalScreen.module.css.js"),c=require("../../icons/CheckIcon.js"),u=require("../../icons/BookmarkIcon.js"),v=require("./components/ApprovalSidebar/ApprovalSidebar.js"),p=require("lucide-react"),S=require("./UserStoryApprovalContext.js"),f={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},g={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},h=Object.assign(function(s){var l,c=s.artifactTitleIds,u=s.config,v=void 0===u?{}:u,p=s.callbacks,h=void 0===p?{}:p,m=s.labels,_=void 0===m?{}:m,A=s.isDisabled,y=void 0!==A&&A,b=s.children,I=s.classNames,C=s.selectedArtifactId,x=a.useRequirementAI(),j=x.userStory,U=x.customStyles,w=e.__assign(e.__assign({},f),v),k=e.__assign(e.__assign({},g),_),E=r.useState([]),q=E[0],N=E[1],F=r.useState(""),T=F[0],D=F[1],R=r.useState(""),B=R[0],M=R[1],P=r.useState(!1),W=P[0],O=P[1],V=r.useState(!0),z=V[0],L=V[1],H=r.useRef(void 0),G=r.useCallback(function(e,t,r,a){h.onShowNotification?h.onShowNotification(e,t,r,a):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(r))},[h]),Y=r.useCallback(function(e){h.onScrollToElement?h.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[h]),J=r.useMemo(function(){var e=q.findIndex(function(e){return e.artifactId===T});return e>=0?e:0},[q,T]),K=q[J];r.useEffect(function(){H.current=K},[K]),r.useEffect(function(){var e;(null==j?void 0:j.length)&&(null===(e=h.onInitialize)||void 0===e||e.call(h),1===j.length&&L(!1),j.length>0&&!T&&D(C||j[0].artifactId))},[j,C]),r.useEffect(function(){C&&C!==T&&D(C)},[C,T]),r.useEffect(function(){var e=n.createUserStoriesForApproval(n.cloneUserStories(j));N(e)},[]),r.useEffect(function(){if(K){var e=o.getFirstNonApprovedSegmentId(K,"");M(e)}},[null==K?void 0:K.artifactId]);var Q=r.useCallback(function(t,r){N(function(a){var n=e.__spreadArray([],a,!0);if("APPROVED"===r.approval_status&&"APPROVED"!==a[t].approval_status){var i=o.getFirstUnapprovedStoryId(a,r.artifactId);i&&D(i)}return n[t]=r,n})},[]),X=r.useCallback(function(e){var t=H.current;if(t){var r=o.getFirstNonApprovedSegmentId(t,e);"NA"!==r&&(M(""),setTimeout(function(){M(r)},0))}},[]);i.useApprovalStatus({userStoryForApproval:q,selectedUserStoryForApproval:K,userStoryIndex:J,callbacks:h,labels:k,onSaveUserStory:Q});var Z=e.__assign({height:w.containerHeight},w.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),$={userStoryForApproval:q,setUserStoryForApproval:N,selectedStoryArtifactId:T,setSelectedStoryArtifactId:D,selectedUserStoryIndex:J,selectedUserStoryForApproval:K,currentContentId:B,setCurrentContentId:M,isEditingSegment:W,setIsEditingSegment:O,isSidebarExpanded:z,setIsSidebarExpanded:L,artifactTitleIds:c,config:w,labels:k,callbacks:h,isDisabled:y,handleSaveUserStory:Q,handleUpdateContentId:X,showNotification:G,scrollToElement:Y};return t.jsx(S.UserStoryApprovalScreenContext.Provider,e.__assign({value:$},{children:t.jsx("div",e.__assign({className:"".concat(d.default.container," ").concat((null==I?void 0:I.container)||""),style:e.__assign(e.__assign({},Z),null===(l=null==U?void 0:U.approvalScreen)||void 0===l?void 0:l.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var r=e.Component,a=e.config,n=e.className,o=S.useUserStoryApprovalScreen(),i=o.isSidebarExpanded,s=o.selectedStoryArtifactId,l=o.setSelectedStoryArtifactId,d=o.userStoryForApproval,c=o.isEditingSegment,u=o.artifactTitleIds;return r?t.jsx(r,{isSidebarExpanded:i,selectedStoryArtifactId:s,setSelectedStoryArtifactId:l,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:a,className:n})},SidebarToggle:function(r){var a=r.OpenIcon,n=r.CloseIcon,o=r.className,i=void 0===o?"":o,s=S.useUserStoryApprovalScreen(),l=s.isSidebarExpanded,c=s.setIsSidebarExpanded,u=a||p.SidebarOpenIcon,v=n||p.SidebarCloseIcon;return t.jsx("div",e.__assign({className:"".concat(d.default.sidebarToggleWrapper," ").concat(i)},{children:t.jsx("button",e.__assign({onClick:function(){return c(function(e){return!e})},className:d.default.sidebarToggleBtn,"aria-label":l?"Collapse sidebar":"Expand sidebar",type:"button"},{children:l?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(n){var i,s,v,p,f,g,h,m,_,A,y,b,I,C,x,j,U,w,k,E,q,N=n.children,F=n.ButtonComponent,T=n.hideApproveAll,D=void 0!==T&&T,R=n.pageTitle,B=void 0===R?"Review Generated Requirements":R,M=n.pageDescription,P=void 0===M?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":M,W=S.useUserStoryApprovalScreen(),O=W.selectedUserStoryForApproval,V=W.selectedUserStoryIndex,z=W.artifactTitleIds,L=W.labels,H=W.config,G=W.isDisabled,Y=W.isEditingSegment,J=W.handleSaveUserStory,K=W.setCurrentContentId,Q=W.showNotification,X=a.useRequirementAI().customStyles,Z=r.useCallback(function(){if(O)if(Y)Q("warn","Warning!",L.unsavedChangesWarning,3e3);else{var e=o.approveAllSegments(O);J(V,e),K("")}},[O,V,Y,L,J,K,Q]);if(!O)return null;var $=z[V]||"",ee="APPROVED"===O.approval_status;return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(s=null===(i=null==X?void 0:X.approvalScreen)||void 0===i?void 0:i.content)||void 0===s?void 0:s.content),"data-lsc-ui-page-title":B,"data-lsc-ui-page-description":P},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(f=null===(p=null===(v=null==X?void 0:X.approvalScreen)||void 0===v?void 0:v.body)||void 0===p?void 0:p.contentSegment)||void 0===f?void 0:f.header)},{children:[t.jsxs("div",e.__assign({className:d.default.headerLeft,style:e.__assign({},null===(h=null===(g=null==X?void 0:X.approvalScreen)||void 0===g?void 0:g.content)||void 0===h?void 0:h.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(A=null===(_=null===(m=null==X?void 0:X.approvalScreen)||void 0===m?void 0:m.body)||void 0===_?void 0:_.contentSegment)||void 0===A?void 0:A.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(I=null===(b=null===(y=null==X?void 0:X.approvalScreen)||void 0===y?void 0:y.body)||void 0===b?void 0:b.contentSegment)||void 0===I?void 0:I.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(j=null===(x=null===(C=null==X?void 0:X.approvalScreen)||void 0===C?void 0:C.body)||void 0===x?void 0:x.contentSegment)||void 0===j?void 0:j.headerArtifactId)},{children:$}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(U=null==X?void 0:X.approvalScreen)||void 0===U?void 0:U.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==O?void 0:O.title}))]})),!D&&H.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:ee?t.jsx(l.ApprovalBadge,{status:"APPROVED",label:L.approved}):F?t.jsx(F,e.__assign({type:"fill",onClick:Z,isDisable:G,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:L.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:Z,disabled:G,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(q=null===(E=null==X?void 0:X.approvalScreen)||void 0===E?void 0:E.content)||void 0===q?void 0:q.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))}))]})),N]}))},Body:function(n){var o,i,l,c=n.children,u=n.EditorComponent,v=n.ViewerComponent,p=S.useUserStoryApprovalScreen(),f=p.selectedUserStoryForApproval,g=p.selectedUserStoryIndex,h=p.artifactTitleIds,m=p.handleSaveUserStory,_=a.useRequirementAI().customStyles,A=r.useCallback(function(e){m(g,e)},[g,m]),y=r.useCallback(function(t,r){var a;if(f){var n=e.__assign(e.__assign({},f),{sub_features:null===(a=f.sub_features)||void 0===a?void 0:a.map(function(e,a){return a===t?r:e})});m(g,n)}},[f,g,m]),b=r.useCallback(function(t){var r;if(f){var a=e.__assign(e.__assign({},f),{sub_features:null===(r=f.sub_features)||void 0===r?void 0:r.filter(function(e,r){return r!==t})});m(g,a)}},[f,g,m]);if(!f)return null;var I=h[g]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(o=null==_?void 0:_.approvalScreen)||void 0===o?void 0:o.body)||void 0===i?void 0:i.container)},{children:[t.jsx(s.ContentSegment,{userStoryForApproval:f,artifactTitleId:I,onSaveMainStoryContent:A,EditorComponent:u,ViewerComponent:v}),null===(l=f.sub_features)||void 0===l?void 0:l.map(function(e,r){return t.jsx(s.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+r)),isSubFeature:!0,subFeatureIndex:r,onSaveSubFeature:y,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=h;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),a=require("../RequirementAIWrapper/RequirementAIWrapper.js"),n=require("../../utils/userstory-approval-transform.utils.js"),o=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),s=require("./components/ContentSegment/ContentSegment.js"),l=require("./components/ApprovalBadge/ApprovalBadge.js"),d=require("./UserStoryApprovalScreen.module.css.js"),c=require("../../icons/CheckIcon.js"),u=require("../../icons/BookmarkIcon.js"),v=require("./components/ApprovalSidebar/ApprovalSidebar.js"),p=require("lucide-react"),S=require("./UserStoryApprovalContext.js"),g={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},f={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},h=Object.assign(function(s){var l,c=s.artifactTitleIds,u=s.config,v=void 0===u?{}:u,p=s.callbacks,h=void 0===p?{}:p,m=s.labels,_=void 0===m?{}:m,A=s.isDisabled,y=void 0!==A&&A,b=s.children,I=s.classNames,C=s.selectedArtifactId,x=a.useRequirementAI(),j=x.userStory,U=x.customStyles,w=e.__assign(e.__assign({},g),v),k=e.__assign(e.__assign({},f),_),E=r.useState([]),q=E[0],N=E[1],F=r.useState(""),T=F[0],D=F[1],R=r.useState(""),B=R[0],M=R[1],P=r.useState(!1),W=P[0],O=P[1],V=r.useState(!0),z=V[0],L=V[1],H=r.useRef(void 0),G=r.useCallback(function(e,t,r,a){h.onShowNotification?h.onShowNotification(e,t,r,a):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(r))},[h]),Y=r.useCallback(function(e){h.onScrollToElement?h.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[h]),J=r.useMemo(function(){var e=q.findIndex(function(e){return e.artifactId===T});return e>=0?e:0},[q,T]),K=q[J];r.useEffect(function(){H.current=K},[K]),r.useEffect(function(){var e;if(null==j?void 0:j.length){null===(e=h.onInitialize)||void 0===e||e.call(h),1===j.length&&L(!1),j.length>0&&!T&&D(C||j[0].artifactId);var t=n.createUserStoriesForApproval(n.cloneUserStories(j));N(t)}},[j,C]),r.useEffect(function(){C&&C!==T&&D(C)},[C,T]),r.useEffect(function(){if(K){var e=o.getFirstNonApprovedSegmentId(K,"");M(e)}},[null==K?void 0:K.artifactId]);var Q=r.useCallback(function(t,r){N(function(a){var n=e.__spreadArray([],a,!0);if("APPROVED"===r.approval_status&&"APPROVED"!==a[t].approval_status){var i=o.getFirstUnapprovedStoryId(a,r.artifactId);i&&D(i)}return n[t]=r,n})},[]),X=r.useCallback(function(e){var t=H.current;if(t){var r=o.getFirstNonApprovedSegmentId(t,e);"NA"!==r&&(M(""),setTimeout(function(){M(r)},0))}},[]);i.useApprovalStatus({userStoryForApproval:q,selectedUserStoryForApproval:K,userStoryIndex:J,callbacks:h,labels:k,onSaveUserStory:Q});var Z=e.__assign({height:w.containerHeight},w.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),$={userStoryForApproval:q,setUserStoryForApproval:N,selectedStoryArtifactId:T,setSelectedStoryArtifactId:D,selectedUserStoryIndex:J,selectedUserStoryForApproval:K,currentContentId:B,setCurrentContentId:M,isEditingSegment:W,setIsEditingSegment:O,isSidebarExpanded:z,setIsSidebarExpanded:L,artifactTitleIds:c,config:w,labels:k,callbacks:h,isDisabled:y,handleSaveUserStory:Q,handleUpdateContentId:X,showNotification:G,scrollToElement:Y};return t.jsx(S.UserStoryApprovalScreenContext.Provider,e.__assign({value:$},{children:t.jsx("div",e.__assign({className:"".concat(d.default.container," ").concat((null==I?void 0:I.container)||""),style:e.__assign(e.__assign({},Z),null===(l=null==U?void 0:U.approvalScreen)||void 0===l?void 0:l.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var r=e.Component,a=e.config,n=e.className,o=S.useUserStoryApprovalScreen(),i=o.isSidebarExpanded,s=o.selectedStoryArtifactId,l=o.setSelectedStoryArtifactId,d=o.userStoryForApproval,c=o.isEditingSegment,u=o.artifactTitleIds;return r?t.jsx(r,{isSidebarExpanded:i,selectedStoryArtifactId:s,setSelectedStoryArtifactId:l,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:a,className:n})},SidebarToggle:function(r){var a=r.OpenIcon,n=r.CloseIcon,o=r.className,i=void 0===o?"":o,s=S.useUserStoryApprovalScreen(),l=s.isSidebarExpanded,c=s.setIsSidebarExpanded,u=a||p.SidebarOpenIcon,v=n||p.SidebarCloseIcon;return t.jsx("div",e.__assign({className:"".concat(d.default.sidebarToggleWrapper," ").concat(i)},{children:t.jsx("button",e.__assign({onClick:function(){return c(function(e){return!e})},className:d.default.sidebarToggleBtn,"aria-label":l?"Collapse sidebar":"Expand sidebar",type:"button"},{children:l?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(n){var i,s,v,p,g,f,h,m,_,A,y,b,I,C,x,j,U,w,k,E,q,N=n.children,F=n.ButtonComponent,T=n.hideApproveAll,D=void 0!==T&&T,R=n.pageTitle,B=void 0===R?"Review Generated Requirements":R,M=n.pageDescription,P=void 0===M?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":M,W=S.useUserStoryApprovalScreen(),O=W.selectedUserStoryForApproval,V=W.selectedUserStoryIndex,z=W.artifactTitleIds,L=W.labels,H=W.config,G=W.isDisabled,Y=W.isEditingSegment,J=W.handleSaveUserStory,K=W.setCurrentContentId,Q=W.showNotification,X=a.useRequirementAI().customStyles,Z=r.useCallback(function(){if(O)if(Y)Q("warn","Warning!",L.unsavedChangesWarning,3e3);else{var e=o.approveAllSegments(O);J(V,e),K("")}},[O,V,Y,L,J,K,Q]);if(!O)return null;var $=z[V]||"",ee="APPROVED"===O.approval_status;return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(s=null===(i=null==X?void 0:X.approvalScreen)||void 0===i?void 0:i.content)||void 0===s?void 0:s.content),"data-lsc-ui-page-title":B,"data-lsc-ui-page-description":P},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(g=null===(p=null===(v=null==X?void 0:X.approvalScreen)||void 0===v?void 0:v.body)||void 0===p?void 0:p.contentSegment)||void 0===g?void 0:g.header)},{children:[t.jsxs("div",e.__assign({className:d.default.headerLeft,style:e.__assign({},null===(h=null===(f=null==X?void 0:X.approvalScreen)||void 0===f?void 0:f.content)||void 0===h?void 0:h.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(A=null===(_=null===(m=null==X?void 0:X.approvalScreen)||void 0===m?void 0:m.body)||void 0===_?void 0:_.contentSegment)||void 0===A?void 0:A.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(I=null===(b=null===(y=null==X?void 0:X.approvalScreen)||void 0===y?void 0:y.body)||void 0===b?void 0:b.contentSegment)||void 0===I?void 0:I.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(j=null===(x=null===(C=null==X?void 0:X.approvalScreen)||void 0===C?void 0:C.body)||void 0===x?void 0:x.contentSegment)||void 0===j?void 0:j.headerArtifactId)},{children:$}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(U=null==X?void 0:X.approvalScreen)||void 0===U?void 0:U.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==O?void 0:O.title}))]})),!D&&H.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:ee?t.jsx(l.ApprovalBadge,{status:"APPROVED",label:L.approved}):F?t.jsx(F,e.__assign({type:"fill",onClick:Z,isDisable:G,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:L.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:Z,disabled:G,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(q=null===(E=null==X?void 0:X.approvalScreen)||void 0===E?void 0:E.content)||void 0===q?void 0:q.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))}))]})),N]}))},Body:function(n){var o,i,l,c=n.children,u=n.EditorComponent,v=n.ViewerComponent,p=S.useUserStoryApprovalScreen(),g=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,m=p.handleSaveUserStory,_=a.useRequirementAI().customStyles,A=r.useCallback(function(e){m(f,e)},[f,m]),y=r.useCallback(function(t,r){var a;if(g){var n=e.__assign(e.__assign({},g),{sub_features:null===(a=g.sub_features)||void 0===a?void 0:a.map(function(e,a){return a===t?r:e})});m(f,n)}},[g,f,m]),b=r.useCallback(function(t){var r;if(g){var a=e.__assign(e.__assign({},g),{sub_features:null===(r=g.sub_features)||void 0===r?void 0:r.filter(function(e,r){return r!==t})});m(f,a)}},[g,f,m]);if(!g)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(o=null==_?void 0:_.approvalScreen)||void 0===o?void 0:o.body)||void 0===i?void 0:i.container)},{children:[t.jsx(s.ContentSegment,{userStoryForApproval:g,artifactTitleId:I,onSaveMainStoryContent:A,EditorComponent:u,ViewerComponent:v}),null===(l=g.sub_features)||void 0===l?void 0:l.map(function(e,r){return t.jsx(s.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+r)),isSubFeature:!0,subFeatureIndex:r,onSaveSubFeature:y,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=h;
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalScreen.js.map
|
package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),o=require("rehype-raw"),a=require("./UserStoryWithCitation.module.css.js"),r=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),o=require("rehype-raw"),a=require("./UserStoryWithCitation.module.css.js"),r=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),s=require("@mui/material"),d=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("../ai-reasoning/AiReasoningCitation.js"),g=require("../../icons/RelevanceScoreIcon.js"),h=require("../RecommendationBlock/RecommendationBlock.js"),_=require("../UserStoryCard/AttachedContext.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=p(t),C=p(o),x=i.createContext(!1),y=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),j=i.createContext({rowId:""}),S=function(t){var o,r,l=t.children,s=t.node,d=i.useRef(Math.random().toString(36).slice(2)).current,c=i.useContext(y).expandedInfo,u=(null==c?void 0:c.rowId)===d,v=Array.isArray(null==s?void 0:s.children)?s.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(r=null===(o=null==s?void 0:s.properties)||void 0===o?void 0:o.style)&&void 0!==r?r:void 0;return n.jsxs(j.Provider,e.__assign({value:{rowId:d}},{children:[n.jsx("tr",e.__assign({style:f?{cssText:f}:void 0},{children:l})),u&&(null==c?void 0:c.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:v||1,className:a.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellInner},{children:n.jsx("div",{className:a.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(t){var o=t.message,p=t.isParent,j=t.scenario,R=t.showUserStoryDiff,w=void 0!==R&&R,I=t.aiReasoningsForBlock,b=t.isCitationLoadingDisplay,N=void 0!==b&&b,q=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var A=t.customStyles,M=t.customIcons,T=t.aiReasoningDiffView,L=t.userStoryCitations,U=t.artifactId,k=t.isCraflow,P=i.useRef(null),E=v.useRequirementAI(),F=E.userStory,$=E.getAvgScoreForStory,B=E.setUserStory,D=E.aiReasoning,W=E.setAiReasoning,H=E.customIcons,z=E.searchQueryList,G=E.searchQueryReasoningIdList,O=null!=M?M:null==H?void 0:H.userStoryIcons,Q=null==A?void 0:A.searchHighlight,V=r.useMarkdownSearch(P,Q),J=V.search,K=V.clear,X=i.useState("1"),Y=X[0],Z=X[1],ee=i.useState(null),ne=ee[0],ie=ee[1],te=i.useRef(new Map),oe=i.useCallback(function(e,n){ie(e&&n?{rowId:e,aiReason:n}:null)},[]),ae=U?$(U):0,re=i.useState([]),le=re[0],se=re[1],de=i.useMemo(function(){return o?(e=o,n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),e.replace(n,"\n\n<$1>\n\n").replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")}).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})):o;var e,n},[o]);i.useEffect(function(){se(I||D)},[I,D]);var ce=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:a.default.heading1,style:null==A?void 0:A.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:a.default.heading2,style:null==A?void 0:A.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:a.default.heading3,style:null==A?void 0:A.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:a.default.bold,style:null==A?void 0:A.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:a.default.paragraph,style:null==A?void 0:A.paragraph},{children:t.children}))},updated:function(i){var t=i.node,o=e.__rest(i,["node"]);return n.jsx(d.default,e.__assign({},o,{showUserStoryDiff:w,currentUpdatedTagId:Y,setCurrentUpdatedTagId:Z,userStory:F,setUserStory:B,setAiReasoning:W,node:t,isCraflow:k,customStyles:null==A?void 0:A.updatedContent}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:a.default.orderedList,style:null==A?void 0:A.olist},{children:null==t?void 0:t.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:a.default.unorderedList,style:null==A?void 0:A.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:a.default.tableWrapper},{children:n.jsx("table",e.__assign({className:a.default.table,style:null==A?void 0:A.table},{children:t}))}))},tr:S,td:function(i){var t,o=i.node,a=i.children,r=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},l=r.style,s=e.__rest(r,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:a}))}))},th:function(i){var t,o=i.node,a=i.children,r=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},l=r.style,s=e.__rest(r,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:a}))}))},recommendation:function(i){var t;i.node;var o=e.__rest(i,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==o?void 0:o.children)||void 0===t?void 0:t[0])||"");return n.jsx(h.default,e.__assign({},o,{customStyles:null==A?void 0:A.recommendationBlock,label:a}))},a:function(t){var o,a,r;t.inline,t.children,t.node;var l=e.__rest(t,["inline","children","node"]);i.useContext(x)||null==l||l.table;var s="".concat(null==l?void 0:l.href),d=null===(o=s.split("$"))||void 0===o?void 0:o[0],c=null===(a=s.split("$"))||void 0===a?void 0:a[1];if("ai_reasoning"===d){var u=(null!==(r=w?T:D)&&void 0!==r?r:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)});if(u&&u.reason.length>0&&u.gap.length>0)return n.jsx(f.default,{aiReason:u,isSourceHasHighlight:!1,customIcons:O,customStyles:{aiReasoningContent:null==A?void 0:A.aiReasoningContent,aiReasoningAccordion:null==A?void 0:A.aiReasoningAccordion,aiReasoningMarkdown:null==A?void 0:A.aiReasoningMarkdown,aiReasoningPill:null==A?void 0:A.aiReasoningPill,webCitation:null==A?void 0:A.webCitation,stormeeCitation:null==A?void 0:A.stormeeCitation,waveformCitation:null==A?void 0:A.waveformCitation,imageCitation:null==A?void 0:A.imageCitation,fileCitation:null==A?void 0:A.fileCitation,appModCitation:null==A?void 0:A.appModCitation,rcaCitation:null==A?void 0:A.rcaCitation,readFileCitation:null==A?void 0:A.readFileCitation,loadingCitations:null==A?void 0:A.loadingCitations,chatCitation:null==A?void 0:A.chatCitation}})}return null},code:function(i){i.inline;var t=i.children,o=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:a.default.blockCode,style:null==A?void 0:A.code},{children:t}))}):n.jsx("code",e.__assign({className:a.default.inlineCode,style:null==A?void 0:A.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(s.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(l.Info,{size:16,className:a.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),o=(null==t?void 0:t.language)||"python",a=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(t);return n.jsx(c.default,{title:"Generated Code",code:a,language:o,customStyles:{pill:null==A?void 0:A.generatedCodePill,content:null==A?void 0:A.generatedCodeContent}})}}},[le,D,L,Y,w,o,M]);return i.useEffect(function(){if(P.current){if(null==z?void 0:z.length){var e;if(0===(null==G?void 0:G.length))requestAnimationFrame(function(){J(z.map(function(e){return e.replace(/\*/g,"")}))});else{var n=P.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){J(z.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}K()}},[z,G]),n.jsx(y.Provider,e.__assign({value:{expandedInfo:ne,setExpanded:oe,reasonToRow:te}},{children:n.jsxs("div",e.__assign({ref:P,className:"".concat(a.default.container," ").concat("approving"!==j?a.default.wrapper:""," ").concat(q||""),style:null==A?void 0:A.container},{children:[n.jsx(m.default,e.__assign({components:ce,rehypePlugins:[C.default]},{children:de})),ae>0&&n.jsx("div",e.__assign({className:a.default.confidenceScoreContainer,style:null==A?void 0:A.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:a.default.confidenceScore,style:null==A?void 0:A.confidenceScore},{children:[n.jsx(g.default,{size:14,color:(null==A?void 0:A.confidenceScoreIconColor)||"#166534"}),ae,"%"]}))})),N&&n.jsx("div",e.__assign({className:a.default.citationLoader,style:null==A?void 0:A.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==A?void 0:A.citationLoadingContainer,icon:null==A?void 0:A.citationLoadingIcon,text:null==A?void 0:A.citationLoadingText}})})),p&&n.jsx("div",e.__assign({className:"flex mt-5"},{children:n.jsx(_.default,{})}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime");exports.default=function(t){return s.jsxs("svg",e.__assign({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[s.jsx("path",{d:"M18.5998 18.0004C18.9598 16.897 19.3576 16.4989 20.3998 16.2004C19.3576 15.9019 18.9598 15.5038 18.5998 14.4004C18.2398 15.5038 17.842 15.9019 16.7998 16.2004C17.842 16.4989 18.2398 16.897 18.5998 18.0004Z",stroke:"#2546F0",strokeWidth:.6,strokeLinejoin:"round"}),s.jsx("line",{x1:12.3,y1:5.7,x2:17.7,y2:5.7,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),s.jsx("line",{x1:12.3,y1:8.10039,x2:17.7,y2:8.10039,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),s.jsx("line",{x1:12.3,y1:10.5008,x2:17.7,y2:10.5008,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),s.jsx("line",{x1:6.3,y1:12.9012,x2:12.9,y2:12.9012,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),s.jsx("line",{x1:6.3,y1:15.3016,x2:12.9,y2:15.3016,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),s.jsx("line",{x1:6.3,y1:17.702,x2:12.9,y2:17.702,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),s.jsxs("g",e.__assign({clipPath:"url(#clip0_696_41387)"},{children:[s.jsx("path",{d:"M8.33806 4.94727H3.66272C2.96666 4.94727 2.40039 5.51356 2.40039 6.20961V9.09338C2.40039 9.78944 2.96666 10.3557 3.66272 10.3557L6.64066 10.3557L8.06621 11.7813C8.11452 11.8296 8.17907 11.8552 8.24479 11.8552C8.27731 11.8552 8.31011 11.8489 8.34133 11.836C8.43568 11.7969 8.4972 11.7049 8.4972 11.6027V10.3457C9.11844 10.2673 9.60039 9.73555 9.60039 9.09338V6.20961C9.60039 5.51356 9.03412 4.94727 8.33806 4.94727ZM9.09546 9.0934C9.09546 9.51104 8.7557 9.8508 8.33806 9.8508H8.24473C8.10531 9.8508 7.99226 9.96386 7.99226 10.1033V10.9932L6.92377 9.92474C6.87643 9.87738 6.81224 9.8508 6.74525 9.8508H3.66272C3.24508 9.8508 2.90532 9.51104 2.90532 9.0934V6.20963C2.90532 5.792 3.24508 5.45224 3.66272 5.45224H8.33806C8.7557 5.45224 9.09546 5.792 9.09546 6.20963V9.0934Z",fill:"#2546F0"}),s.jsx("path",{d:"M7.85548 6.73438H4.13918C3.99976 6.73438 3.88672 6.8474 3.88672 6.98684C3.88672 7.12626 3.99976 7.23931 4.13918 7.23931H7.85548C7.9949 7.23931 8.10795 7.12626 8.10795 6.98684C8.10795 6.8474 7.99492 6.73438 7.85548 6.73438Z",fill:"#2546F0"}),s.jsx("path",{d:"M7.85548 8.14648H4.13918C3.99976 8.14648 3.88672 8.25951 3.88672 8.39895C3.88672 8.53839 3.99976 8.65142 4.13918 8.65142H7.85548C7.9949 8.65142 8.10795 8.53837 8.10795 8.39895C8.10795 8.25953 7.99492 8.14648 7.85548 8.14648Z",fill:"#2546F0"})]})),s.jsx("path",{d:"M18.2451 2.41309C19.4553 2.53606 20.3994 3.55819 20.3994 4.80078V14.4004H19.2002V18H20.3994V19.2002C20.399 20.4424 19.455 21.465 18.2451 21.5879L18 21.6006H6L5.75391 21.5879C4.54443 21.4645 3.6 20.4421 3.59961 19.2002V12H4.7998V19.2002C4.80023 19.8623 5.33788 20.4 6 20.4004H18C18.6623 20.4002 19.1988 19.8624 19.1992 19.2002V4.80078C19.1992 4.13817 18.6626 3.6008 18 3.60059H6C5.33781 3.60101 4.80012 4.13759 4.7998 4.7998H3.59961C3.59991 3.55784 4.54446 2.53652 5.75391 2.41309L6 2.40039H18L18.2451 2.41309Z",fill:"#2546F0"}),s.jsx("defs",{children:s.jsx("clipPath",e.__assign({id:"clip0_696_41387"},{children:s.jsx("rect",{width:7.2,height:7.2,fill:"white",transform:"translate(2.40039 4.80078)"})}))})]}))};
|
|
2
|
+
//# sourceMappingURL=MeetingHighlightsIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MeetingHighlightsIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("@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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeViewer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeViewer.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -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("../../CitationRenderer/CitationRenderer.js");exports.default=function(
|
|
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("./CodeViewer.js"),r=require("../../CitationRenderer/CitationRenderer.js");exports.default=function(s){var a,l;return t.jsx(r.default,{inLineCitation:!0,citationTitle:s.title,citationIcon:t.jsx(t.Fragment,{}),citationComponent:t.jsx(o.default,{code:s.code,language:s.language,readOnly:!0}),chevronDownComponent:t.jsx(i.ChevronDown,{}),chevronUpComponent:t.jsx(i.ChevronUp,{}),styles:{pillButton:e.__assign(e.__assign({},n.default.pillButton),null===(a=s.customStyles)||void 0===a?void 0:a.pill),citationContent:e.__assign(e.__assign({},n.default.citationContent),null===(l=s.customStyles)||void 0===l?void 0:l.content)}})};
|
|
2
2
|
//# sourceMappingURL=GeneratedCodeCitation.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("lucide-react"),t=require("../icons/MeetingHighlightsIcon.js"),i={thinkingBulbIcon:"https://storymod-assests.pages.dev/ThinkingBulbIcon.gif",brainStormIcon:"https://storymod-assests.pages.dev/brainstorm.gif",brainStormCropped:"https://storymod-assests.pages.dev/brainstorm-cropped.gif",stormeeCitationIcon:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",rcaCitationIcon:"https://storymod-assests.pages.dev/appmod-icon.svg"};exports.GetFileIcon=function(a,r){switch(null==a?void 0:a.toLowerCase()){case"mp3":case"wav":case"audio":return e.jsx(s.AudioLines,{className:"h-5 w-5 text-indigo-600",size:24});case"png":case"jpg":case"jpeg":case"image":case"heic":case"heif":return e.jsx(s.Image,{className:"h-5 w-5 text-purple-500",size:24});case"mp4":case"avi":case"mov":case"video":return e.jsx(s.Clapperboard,{className:"h-5 w-5 text-rose-500",size:24});case"pdf":return e.jsx(s.FileText,{className:"h-5 w-5 text-red-500",size:24});case"doc":case"docx":return e.jsx(s.FileText,{className:"h-5 w-5 text-blue-600",size:24});case"txt":return e.jsx(s.FileText,{className:"h-5 w-5 text-gray-600",size:24});case"json":if(null==r?void 0:r.startsWith("ST_"))return e.jsx("img",{src:i.stormeeCitationIcon,style:{mixBlendMode:"multiply"},className:"w-7 h-7"});if(null==r?void 0:r.startsWith("MH_"))return e.jsx(t.default,{});break;default:return e.jsx(s.FileText,{className:"h-5 w-5 text-yellow-600",size:24})}},exports.assetList=i,exports.getDisplayFileType=function(e,s){if("json"===(null==e?void 0:e.toLowerCase())){if(null==s?void 0:s.startsWith("ST_"))return"Stormee";if(null==s?void 0:s.startsWith("MH_"))return"Meeting Highlights"}return e};
|
|
2
|
+
//# sourceMappingURL=userStoryAttachedContext.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userStoryAttachedContext.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
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/rca-citation/RCACitationRenderer.js"),
|
|
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/readfile-citation/ReadFileCitationContent.js"),t=require("./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js"),o=require("./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js"),s=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js"),i=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js"),a=require("./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js"),n=require("./features/RequirementAI/components/story-screen/UserStoryScreen.js"),p=require("./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js"),u=require("./features/RequirementAI/components/RichTextEditor/RichTextEditor.js"),d=require("./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js"),c=require("./features/RequirementAI/components/story-screen/SubfeatureBlock.js"),m=require("./features/RequirementAI/shared/AtomicButton.js"),S=require("./features/RequirementAI/icons/SidebarOpenIcon.js"),l=require("./features/RequirementAI/icons/SidebarCloseIcon.js"),f=require("./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js"),R=require("./features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js"),q=require("./features/RequirementAI/hooks/useStreamContentHandler.js"),I=require("./features/RequirementAI/utils/proccess-stream.utils.js"),y=require("./features/RequirementAI/utils/diff-edit.utils.js"),j=require("./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js"),x=require("./features/RequirementAI/hooks/useDiffEditReviewMode.js"),A=require("./features/RequirementAI/components/UserStoryCard/UserStoryCard.js"),C=require("./features/RequirementAI/components/citations/file-citation/FileCitationRender.js"),U=require("./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js"),h=require("./features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js"),b=require("./features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js"),k=require("./features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js"),g=require("./features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js"),D=require("./features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js"),w=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js"),B=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js"),P=require("./features/RequirementAI/utils/userstory-approval-transform.utils.js"),v=require("./features/UserStoryImport/UserStoryPicker.js"),T=require("./features/UserStoryImport/components/Header.js"),F=require("./features/UserStoryImport/components/Toolbar.js"),G=require("./features/UserStoryImport/components/SearchInput.js"),W=require("./features/UserStoryImport/components/BrowseProjectsButton.js"),H=require("./features/UserStoryImport/components/SectionHeading.js"),L=require("./features/UserStoryImport/components/CardGrid.js"),M=require("./features/UserStoryImport/components/UserStoryCard.js"),z=require("./features/UserStoryImport/components/ProjectCard.js"),E=require("./features/UserStoryImport/components/Badge.js"),N=require("./features/UserStoryImport/components/BackNav.js"),O=require("./features/UserStoryImport/components/SortDropdown.js"),V=require("./features/UserStoryImport/components/ShowMore.js"),_=require("./features/UserStoryImport/components/ProceedButton.js"),J=require("./features/UserStoryImport/components/Footer.js"),K=require("./features/UserStoryImport/components/SplitLayout.js"),Q=require("./features/UserStoryImport/components/Sidebar.js"),X=require("./features/UserStoryImport/components/SidebarSection.js"),Y=require("./features/UserStoryImport/components/SidebarProjectList.js"),Z=require("./features/UserStoryImport/components/SidebarFavoritesList.js"),$=require("./features/UserStoryImport/components/ContentArea.js"),ee=require("./features/UserStoryImport/components/NavRow.js"),re=require("./features/UserStoryImport/components/UserStoryImportDialog.js"),te=require("./features/UserStoryImport/components/ResizeHandle.js"),oe=require("./features/UserStoryImport/components/ScopeDropdown.js"),se=require("./features/UserStoryImport/components/TypeDropdown.js"),ie=require("./features/UserStoryImport/UserStoryPicker.context.js"),ae=require("./features/UserStoryImport/hooks/useUSPData.js"),ne=require("./features/UserStoryImport/components/usePanelResize.js"),pe=require("./features/UserStoryImport/UserStoryPicker.theme.js"),ue=Object.assign(v.UserStoryPickerRoot,{Header:T.Header,Toolbar:F.Toolbar,SearchInput:G.SearchInput,BrowseProjectsButton:W.BrowseProjectsButton,SectionHeading:H.SectionHeading,CardGrid:L.CardGrid,UserStoryCard:M.UserStoryCard,ProjectCard:z.ProjectCard,Badge:E.Badge,BackNav:N.BackNav,SortDropdown:O.SortDropdown,ScopeDropdown:oe.ScopeDropdown,TypeDropdown:se.TypeDropdown,ShowMore:V.ShowMore,ProceedButton:_.ProceedButton,Footer:J.Footer,SplitLayout:K.SplitLayout,Sidebar:Q.Sidebar,SidebarSection:X.SidebarSection,SidebarProjectList:Y.SidebarProjectList,SidebarFavoritesList:Z.SidebarFavoritesList,ContentArea:$.ContentArea,NavRow:ee.NavRow,UserStoryImportDialog:re.UserStoryImportDialog,ResizeHandle:te.ResizeHandle});exports.ReadFileCitationRenderer=e.default,exports.ReadFileCitationContent=r.default,exports.RCACitationRenderer=t.default,exports.RCACitationContent=o.default,exports.AppModCitationRenderer=s.default,exports.AppModCitationContent=i.default,exports.RequirementAIWrapper=a.default,exports.useRequirementAI=a.useRequirementAI,exports.UserStoryScreen=n.default,exports.UserStoryApprovalScreen=p.default,exports.RichTextEditor=u.default,exports.UserStoryWithCitation=d.default,exports.SubFeatureBlock=c.default,exports.AtomicButton=m.default,exports.SidebarOpenIcon=S.SidebarOpenIcon,exports.SidebarCloseIcon=l.SidebarCloseIcon,exports.StreamingScreenSidebar=f.default,exports.AiReasoningCitationContent=R.default,exports.useStreamContentHandler=q.useStreamContentHandler,exports.extractBlockStreams=I.extractBlockStreams,exports.extractDescription=I.extractDescription,exports.processAIReasoningFromBlocks=I.processAIReasoningFromBlocks,exports.processUserStoryValue=I.processUserStoryValue,exports.handleAcceptAllChanges=y.handleAcceptAllChanges,exports.handleDiffEditApplied=y.handleDiffEditApplied,exports.handleDiscardAll=y.handleDiscardAll,exports.GapFilterBlock=j.GapFilterBlock,exports.hasAnyUpdatedTags=x.hasAnyUpdatedTags,exports.useDiffEditReviewMode=x.useDiffEditReviewMode,exports.UserStoryCardWrapper=A.UserStoryCardWrapper,exports.FileCitationRender=C.default,exports.WebCitationWithImageRenderer=U.default,exports.WebCitationRenderer=h.default,exports.StormeeCitationRenderer=b.default,exports.WaveformCitationRenderer=k.default,exports.ImageCitationRenderer=g.default,exports.GapRiskSidebar=D.default,exports.NoGapsFound=D.NoGapsFound,exports.useGapRiskSidebar=D.useGapRiskSidebar,exports.buildStoryWithGap=w.buildStoryWithGap,exports.updateGapInRawData=w.updateGapInRawData,exports.updateGapStory=w.updateGapStory,exports.buildStoryWithRisk=B.buildStoryWithRisk,exports.updateRiskInRawData=B.updateRiskInRawData,exports.updateStory=B.updateStory,exports.cloneUserStories=P.cloneUserStories,exports.createUserStoriesForApproval=P.createUserStoriesForApproval,exports.splitByHeaders=P.splitByHeaders,exports.transformApprovalToUserStory=P.transformApprovalToUserStory,exports.UserStoryImportDialog=re.UserStoryImportDialog,exports.ResizeHandle=te.ResizeHandle,exports.useUSPContext=ie.useUSPContext,exports.useUSPData=ae.useUSPData,exports.usePanelResize=ne.usePanelResize,exports.darkTheme=pe.darkTheme,exports.lightTheme=pe.lightTheme,exports.themeToStyle=pe.themeToStyle,exports.uspColorPalette=pe.uspColorPalette,exports.uspVSCodeLightTheme=pe.uspVSCodeLightTheme,exports.vscodeTheme=pe.vscodeTheme,exports.UserStoryPicker=ue;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as n}from"react/jsx-runtime";import{createContext as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as n}from"react/jsx-runtime";import{createContext as e,useMemo as i,useCallback as r,useContext as o}from"react";import{RefProvider as a}from"../../store/ref.context.js";var s=e(null),u=function(e){var o=e.children,u=e.userStory,c=e.setUserStory,f=e.aiReasoning,g=e.setAiReasoning,l=e.citations,d=e.setCitations,h=e.apiCachingConfig,m=e.customStyles,p=e.customIcons,v=e.searchQueryList,C=e.searchQueryReasoningIdList,y=e.citationConfig,R=e.chatHistory,S=e.chatCitationConfigs,A=e.gptCitationConfigs,I=e.aiReasoningAccordionOpenStates,x=e.persistedDataFiles,b=i(function(){if(0===u.length||0===f.length)return Array(u.length).fill(0);var t=Array.from({length:u.length},function(){return[]});return f.forEach(function(n){var e=Number(n.relevance_score);if(!(isNaN(e)||e<=0)){var i="ai_reasoning$".concat(n.id),r=u.findIndex(function(t){var n;return t.value.includes(i)||(null===(n=t.sub_features)||void 0===n?void 0:n.some(function(t){return t.value.includes(i)}))});-1!==r&&t[r].push(e)}}),t.map(function(t){return 0===t.length?0:Math.round(t.reduce(function(t,n){return t+n},0)/t.length)})},[u,f]),L=r(function(t){var n,e=u.findIndex(function(n){return n.artifactId===t});return-1===e?0:null!==(n=b[e])&&void 0!==n?n:0},[u,b]);return n(s.Provider,t({value:{chatHistory:R,userStory:u,setUserStory:c,aiReasoning:f,setAiReasoning:g,citations:l,setCitations:d,apiCachingConfig:h,customStyles:m,customIcons:p,searchQueryList:v,searchQueryReasoningIdList:C,citationConfig:y,getAvgScoreForStory:L,chatCitationConfigs:S,gptCitationConfigs:A,aiReasoningAccordionOpenStates:I,persistedDataFiles:x}},{children:n(a,{children:o})}))},c=function(){var t=o(s);if(!t)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return t};export{u as default,c as useRequirementAI};
|
|
2
2
|
//# sourceMappingURL=RequirementAIWrapper.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__awaiter as t,__generator as r}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import{useState as a,useRef as i,useEffect as s,useMemo as c}from"react";import{BookOpen as l,ChevronUp as d,ChevronDown as u,Video as m,Headphones as p,ImageIcon as g,FileText as h,FileCode as f,Loader2 as v,ExternalLink as b}from"lucide-react";import{useRequirementAI as x}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{Snackbar as w,Alert as y,AlertTitle as N}from"@mui/material";import{getDisplayFileType as k,GetFileIcon as C}from"../../utils/userStoryAttachedContext.utils.js";var z=function(e){return["mp4","mov","webm","mkv"].includes(e)?o(m,{size:24}):["mp3","wav","ogg","m4a","aac"].includes(e)?o(p,{size:24}):["png","jpg","jpeg","svg","webp","gif"].includes(e)?o(g,{size:24}):["pdf","docx","doc","txt","rtf","pages"].includes(e)?o(h,{size:24}):o(f,{size:24})},j=function(i){var c=i.item,l=i.isLast,d=i.getIconByExtension,u=x().apiCachingConfig,m=u.queryClient,p=u.useGetSignedUrlQuery,g=u.useGetSignedUrlMutation,h=u.getProjectFileUrl,f=a(!1),k=f[0],z=f[1],j=a(""),E=j[0],L=j[1],P=null==h?void 0:h(c.path),U=["getSignedUrl",P],A=p(P,U).data,D=g(P),I=D.mutate,S=D.isPending;s(function(){if(!P)return L("Please provide valid gsUtilPath."),void z(!0);m.getQueryData(U)||A||I({gsUtilPath:P})},[P]);return n("div",e({className:"\n group flex items-start gap-4 p-4 mx-2 rounded-[8px] transition-colors\n hover:bg-gray-50 border-b border-transparent\n ".concat(l?"":"border-gray-100","\n ")},{children:[o("div",e({className:"mt-1 p-2 bg-violet-50 rounded-[8px] text-violet-500"},{children:C(c.extension,c.title.toUpperCase())||d(c.extension)})),n("div",e({className:"flex-1 min-w-0"},{children:[o("h3",e({className:"text-[15px] font-semibold text-gray-900 truncate group-hover:text-violet-600 transition-colors"},{children:c.title})),o("p",e({className:"text-sm text-gray-500 mt-0.5"},{children:c.metadata}))]})),o("div",e({onClick:function(e){return t(void 0,void 0,void 0,function(){var t,n,o,a,i,s,l;return r(this,function(r){switch(r.label){case 0:e.stopPropagation(),r.label=1;case 1:return r.trys.push([1,4,,5]),(t=A||m.getQueryData(U))?"json"!==c.extension.toLowerCase()?(window.open(t,"_blank"),[2]):[4,fetch(t)]:(S||I({gsUtilPath:P}),[2]);case 2:if(!(n=r.sent()).ok)throw new Error("Failed to fetch artifact JSON");return[4,n.json()];case 3:return o=r.sent(),a=o.id,i=o.modeName,a&&i?(s="".concat(window.location.origin,"/artifact/").concat(a,"/mode/").concat(i),window.open(s,"_blank"),[3,5]):(window.open(t,"_blank"),[2]);case 4:return l=r.sent(),console.error("Redirect failed:",l),window.open(A,"_blank"),[3,5];case 5:return[2]}})})},className:"text-gray-400 hover:text-violet-600 cursor-pointer self-center p-2 rounded-[4px] hover:bg-white transition-all"},{children:S?o(v,{size:24,className:"animate-spin text-gray-500"}):o(b,{size:24,className:A?"text-gray-500":""})})),o(w,e({open:k,autoHideDuration:3e3,onClose:function(){return z(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"}},{children:n(y,e({onClose:function(){return z(!1)},severity:"error",sx:{width:"100%"}},{children:[o(N,{children:"Error"}),E]}))}))]}))},E=function(){var t=a(!1),r=t[0],m=t[1],p=i(null),g=i(null),h=x().persistedDataFiles;s(function(){var e=function(e){g.current&&!g.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]);var f=c(function(){var e=[];return h?(Object.entries(h).forEach(function(t){var r=t[0],n=t[1];Array.isArray(n)&&n.forEach(function(t){var n,o=t.filesFromProject;if(o){var a,i=o.name,s=(null===(n=o.type)||void 0===n?void 0:n.toLowerCase())||"",c=(a=o.uploadTime)?new Date(a).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):"";e.push({id:o.url,category:r,title:i,extension:s,metadata:"".concat(c," • ").concat(k(s,i)),path:o.url,uploadTime:o.uploadTime})}})}),e):e},[h]);return s(function(){var e=function(e){p.current&&!p.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),n("div",e({className:"flex flex-col items-end"},{children:[n("div",e({className:"relative inline-block text-left",ref:g},{children:[n("button",e({onClick:function(e){e.stopPropagation(),m(!r)},className:"\n flex items-center gap-2 px-4 py-2 rounded-[8px] border transition-all duration-200\n bg-white border-gray-300 text-gray-700 hover:bg-gray-50 shadow-sm\n "},{children:[o(l,{size:18,className:"text-gray-600"}),n("span",e({className:"font-medium"},{children:["Attached Context(",f.length,")"]})),o(r?d:u,{size:18})]})),r&&n("div",e({className:"absolute left-0 mt-2 w-[420px] bg-white rounded-[12px] shadow-xl border border-gray-100 z-50 overflow-hidden",style:{animation:"slideIn 0.2s ease-out"}},{children:[o("div",e({className:"max-h-[300px] overflow-y-auto py-2 custom-scrollbar"},{children:f.length>0?f.map(function(e,t){return o(j,{item:e,isLast:t===f.length-1,getIconByExtension:z},e.id)}):o("div",e({className:"p-8 text-center text-gray-400 text-sm"},{children:"No attachments found"}))})),f.length>4&&o("div",{className:"h-4 bg-gradient-to-t from-gray-50/50 to-transparent pointer-events-none"})]}))]})),o("style",{children:"\n @keyframes slideIn {\n from { opacity: 0; transform: translateY(-10px) scale(0.98); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n .custom-scrollbar::-webkit-scrollbar {\n width: 6px;\n }\n .custom-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n }\n .custom-scrollbar::-webkit-scrollbar-thumb {\n background: #e5e7eb;\n border-radius: 10px;\n }\n .custom-scrollbar::-webkit-scrollbar-thumb:hover {\n background: #d1d5db;\n }\n "})]}))};export{E as default};
|
|
2
|
+
//# sourceMappingURL=AttachedContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachedContext.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadFileCitationContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadFileCitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as i,Fragment as o}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import e from"./icons/FileCodeIcon.js";import r from"./ReadFileCitationContent.js";var a=function(a){var l=a.title,c=a.citation,s=a.customStyles,m=a.customColors,p=a.customIcons,d=a.editorConfig,u=a.fileCallback,C=(null==p?void 0:p.readFileCitationIcon)||i(e,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return i(n,{inLineCitation:!0,citationTitle:l+"",citationIcon:i(o,{}),citationComponent:i(r,{citation:c,customStyles:s,customColors:m,customIcons:p,editorConfig:d,fileCallback:u}),chevronDownComponent:C,chevronUpComponent:C,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==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{a as default};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationRenderer.js.map
|
package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalLinkIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as a,useMemo as l,useEffect as s}from"react";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as p,getFirstUnapprovedStoryId as u,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as m}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as A}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as b}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as w,useUserStoryApprovalScreen as T}from"./UserStoryApprovalContext.js";var E={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},N={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},U=Object.assign(function(r){var f,S=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,A=r.callbacks,b=void 0===A?{}:A,I=r.labels,C=void 0===I?{}:I,T=r.isDisabled,U=void 0!==T&&T,x=r.children,F=r.classNames,k=r.selectedArtifactId,D=d(),j=D.userStory,B=D.customStyles,R=e(e({},E),y),P=e(e({},N),C),W=n([]),M=W[0],V=W[1],_=n(""),q=_[0],O=_[1],z=n(""),L=z[0],H=z[1],G=n(!1),Y=G[0],J=G[1],K=n(!0),Q=K[0],X=K[1],Z=i(void 0),$=a(function(e,t,o,r){b.onShowNotification?b.onShowNotification(e,t,o,r):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(o))},[b]),ee=a(function(e){b.onScrollToElement?b.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[b]),te=l(function(){var e=M.findIndex(function(e){return e.artifactId===q});return e>=0?e:0},[M,q]),oe=M[te];s(function(){Z.current=oe},[oe]),s(function(){var e;(null==j?void 0:j.length)
|
|
1
|
+
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as a,useMemo as l,useEffect as s}from"react";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as p,getFirstUnapprovedStoryId as u,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as m}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as A}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as b}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as w,useUserStoryApprovalScreen as T}from"./UserStoryApprovalContext.js";var E={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},N={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},U=Object.assign(function(r){var f,S=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,A=r.callbacks,b=void 0===A?{}:A,I=r.labels,C=void 0===I?{}:I,T=r.isDisabled,U=void 0!==T&&T,x=r.children,F=r.classNames,k=r.selectedArtifactId,D=d(),j=D.userStory,B=D.customStyles,R=e(e({},E),y),P=e(e({},N),C),W=n([]),M=W[0],V=W[1],_=n(""),q=_[0],O=_[1],z=n(""),L=z[0],H=z[1],G=n(!1),Y=G[0],J=G[1],K=n(!0),Q=K[0],X=K[1],Z=i(void 0),$=a(function(e,t,o,r){b.onShowNotification?b.onShowNotification(e,t,o,r):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(o))},[b]),ee=a(function(e){b.onScrollToElement?b.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[b]),te=l(function(){var e=M.findIndex(function(e){return e.artifactId===q});return e>=0?e:0},[M,q]),oe=M[te];s(function(){Z.current=oe},[oe]),s(function(){var e;if(null==j?void 0:j.length){null===(e=b.onInitialize)||void 0===e||e.call(b),1===j.length&&X(!1),j.length>0&&!q&&O(k||j[0].artifactId);var t=c(v(j));V(t)}},[j,k]),s(function(){k&&k!==q&&O(k)},[k,q]),s(function(){if(oe){var e=p(oe,"");H(e)}},[null==oe?void 0:oe.artifactId]);var re=a(function(e,o){V(function(r){var n=t([],r,!0);if("APPROVED"===o.approval_status&&"APPROVED"!==r[e].approval_status){var i=u(r,o.artifactId);i&&O(i)}return n[e]=o,n})},[]),ne=a(function(e){var t=Z.current;if(t){var o=p(t,e);"NA"!==o&&(H(""),setTimeout(function(){H(o)},0))}},[]);m({userStoryForApproval:M,selectedUserStoryForApproval:oe,userStoryIndex:te,callbacks:b,labels:P,onSaveUserStory:re});var ie=e({height:R.containerHeight},R.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),ae={userStoryForApproval:M,setUserStoryForApproval:V,selectedStoryArtifactId:q,setSelectedStoryArtifactId:O,selectedUserStoryIndex:te,selectedUserStoryForApproval:oe,currentContentId:L,setCurrentContentId:H,isEditingSegment:Y,setIsEditingSegment:J,isSidebarExpanded:Q,setIsSidebarExpanded:X,artifactTitleIds:S,config:R,labels:P,callbacks:b,isDisabled:U,handleSaveUserStory:re,handleUpdateContentId:ne,showNotification:$,scrollToElement:ee};return o(w.Provider,e({value:ae},{children:o("div",e({className:"".concat(g.container," ").concat((null==F?void 0:F.container)||""),style:e(e({},ie),null===(f=null==B?void 0:B.approvalScreen)||void 0===f?void 0:f.wrapperContainer)},{children:x}))}))},{Sidebar:function(e){var t=e.Component,r=e.config,n=e.className,i=T(),a=i.isSidebarExpanded,l=i.selectedStoryArtifactId,s=i.setSelectedStoryArtifactId,d=i.userStoryForApproval,c=i.isEditingSegment,v=i.artifactTitleIds;return t?o(t,{isSidebarExpanded:a,selectedStoryArtifactId:l,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:v}):o(b,{config:r,className:n})},SidebarToggle:function(t){var r=t.OpenIcon,n=t.CloseIcon,i=t.className,a=void 0===i?"":i,l=T(),s=l.isSidebarExpanded,d=l.setIsSidebarExpanded,c=r||I,v=n||C;return o("div",e({className:"".concat(g.sidebarToggleWrapper," ").concat(a)},{children:o("button",e({onClick:function(){return d(function(e){return!e})},className:g.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:o(s?v:c,{})}))}))},Content:function(t){var n,i,l,s,c,v,p,u,m,S,b,I,C,w,E,N,U,x,F,k,D,j=t.children,B=t.ButtonComponent,R=t.hideApproveAll,P=void 0!==R&&R,W=t.pageTitle,M=void 0===W?"Review Generated Requirements":W,V=t.pageDescription,_=void 0===V?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":V,q=T(),O=q.selectedUserStoryForApproval,z=q.selectedUserStoryIndex,L=q.artifactTitleIds,H=q.labels,G=q.config,Y=q.isDisabled,J=q.isEditingSegment,K=q.handleSaveUserStory,Q=q.setCurrentContentId,X=q.showNotification,Z=d().customStyles,$=a(function(){if(O)if(J)X("warn","Warning!",H.unsavedChangesWarning,3e3);else{var e=f(O);K(z,e),Q("")}},[O,z,J,H,K,Q,X]);if(!O)return null;var ee=L[z]||"",te="APPROVED"===O.approval_status;return r("div",e({className:g.content,style:e({},null===(i=null===(n=null==Z?void 0:Z.approvalScreen)||void 0===n?void 0:n.content)||void 0===i?void 0:i.content),"data-lsc-ui-page-title":M,"data-lsc-ui-page-description":_},{children:[r("div",e({className:g.header,style:e({},null===(c=null===(s=null===(l=null==Z?void 0:Z.approvalScreen)||void 0===l?void 0:l.body)||void 0===s?void 0:s.contentSegment)||void 0===c?void 0:c.header)},{children:[r("div",e({className:g.headerLeft,style:e({},null===(p=null===(v=null==Z?void 0:Z.approvalScreen)||void 0===v?void 0:v.content)||void 0===p?void 0:p.headerLeft)},{children:[r("div",e({className:g.headerMeta,style:e({},null===(S=null===(m=null===(u=null==Z?void 0:Z.approvalScreen)||void 0===u?void 0:u.body)||void 0===m?void 0:m.contentSegment)||void 0===S?void 0:S.headerMeta)},{children:[o(A,{size:16,color:(null===(C=null===(I=null===(b=null==Z?void 0:Z.approvalScreen)||void 0===b?void 0:b.body)||void 0===I?void 0:I.contentSegment)||void 0===C?void 0:C.bookMarkColor)||"#8C8C8C"}),o("h2",e({className:g.headerArtifactId,style:e({},null===(N=null===(E=null===(w=null==Z?void 0:Z.approvalScreen)||void 0===w?void 0:w.body)||void 0===E?void 0:E.contentSegment)||void 0===N?void 0:N.headerArtifactId)},{children:ee}))]})),o("p",e({className:g.headerTitle,style:e({},null===(F=null===(x=null===(U=null==Z?void 0:Z.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerTitle)},{children:null==O?void 0:O.title}))]})),!P&&G.showApproveAllButton&&o("div",e({className:g.headerRight},{children:te?o(h,{status:"APPROVED",label:H.approved}):B?o(B,e({type:"fill",onClick:$,isDisable:Y,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:H.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:r("div",e({className:g.approveAllContent},{children:[o(y,{size:16,color:"white"}),o("span",{children:H.approveAll})]}))})):r("button",e({onClick:$,disabled:Y,className:g.approveAllButtonDefault,style:e({},null===(D=null===(k=null==Z?void 0:Z.approvalScreen)||void 0===k?void 0:k.content)||void 0===D?void 0:D.approveAllButtonDefault)},{children:[o(y,{size:16,color:"white"}),o("span",{children:H.approveAll})]}))}))]})),j]}))},Body:function(t){var n,i,l,s=t.children,c=t.EditorComponent,v=t.ViewerComponent,p=T(),u=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,m=p.artifactTitleIds,h=p.handleSaveUserStory,y=d().customStyles,A=a(function(e){h(f,e)},[f,h]),b=a(function(t,o){var r;if(u){var n=e(e({},u),{sub_features:null===(r=u.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===t?o:e})});h(f,n)}},[u,f,h]),I=a(function(t){var o;if(u){var r=e(e({},u),{sub_features:null===(o=u.sub_features)||void 0===o?void 0:o.filter(function(e,o){return o!==t})});h(f,r)}},[u,f,h]);if(!u)return null;var C=m[f]||"";return r("div",e({className:g.body,style:e({},null===(i=null===(n=null==y?void 0:y.approvalScreen)||void 0===n?void 0:n.body)||void 0===i?void 0:i.container)},{children:[o(S,{userStoryForApproval:u,artifactTitleId:C,onSaveMainStoryContent:A,EditorComponent:c,ViewerComponent:v}),null===(l=u.sub_features)||void 0===l?void 0:l.map(function(e,t){return o(S,{userStoryForApproval:e,artifactTitleId:"".concat(C," - ").concat(String.fromCharCode(65+t)),isSubFeature:!0,subFeatureIndex:t,onSaveSubFeature:b,onDeleteSubFeature:I,EditorComponent:c,ViewerComponent:v},e.artifactId)}),s]}))}});export{U as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalScreen.js.map
|
package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as n}from"tslib";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{createContext as r,useRef as t,useState as l,useCallback as a,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import
|
|
1
|
+
import{__rest as e,__assign as n}from"tslib";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{createContext as r,useRef as t,useState as l,useCallback as a,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import m from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as h}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as f}from"@mui/material";import g from"../../shared/UpdatedAnimationContent.js";import C from"../../shared/GeneratedCodeCitation.js";import y from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import w from"../ai-reasoning/AiReasoningCitation.js";import R from"../../icons/RelevanceScoreIcon.js";import I from"../RecommendationBlock/RecommendationBlock.js";import b from"../UserStoryCard/AttachedContext.js";var N=r(!1),x=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),A=r({rowId:""}),j=function(e){var r,l,a=e.children,d=e.node,c=t(Math.random().toString(36).slice(2)).current,u=s(x).expandedInfo,v=(null==u?void 0:u.rowId)===c,h=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,p=null!==(l=null===(r=null==d?void 0:d.properties)||void 0===r?void 0:r.style)&&void 0!==l?l:void 0;return i(A.Provider,n({value:{rowId:c}},{children:[o("tr",n({style:p?{cssText:p}:void 0},{children:a})),v&&(null==u?void 0:u.aiReason)&&o("tr",n({style:{width:"100%"}},{children:o("td",n({colSpan:h||1,className:m.tableExpandedCell},{children:o("div",n({className:m.tableExpandedCellInner},{children:o("div",{className:m.tableExpandedCellContent})}))}))}))]}))},L=function(r){var A=r.message,L=r.isParent,T=r.scenario,U=r.showUserStoryDiff,k=void 0!==U&&U,M=r.aiReasoningsForBlock,P=r.isCitationLoadingDisplay,E=void 0!==P&&P,F=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var $=r.customStyles,q=r.customIcons,B=r.aiReasoningDiffView,D=r.userStoryCitations,W=r.artifactId,H=r.isCraflow,_=t(null),z=S(),G=z.userStory,Q=z.getAvgScoreForStory,O=z.setUserStory,V=z.aiReasoning,J=z.setAiReasoning,K=z.customIcons,X=z.searchQueryList,Y=z.searchQueryReasoningIdList,Z=null!=q?q:null==K?void 0:K.userStoryIcons,ee=null==$?void 0:$.searchHighlight,ne=h(_,ee),oe=ne.search,ie=ne.clear,re=l("1"),te=re[0],le=re[1],ae=l(null),de=ae[0],ce=ae[1],se=t(new Map),ue=a(function(e,n){ce(e&&n?{rowId:e,aiReason:n}:null)},[]),ve=W?Q(W):0,me=l([]),he=me[0],pe=me[1],fe=d(function(){return A?(e=A,n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),e.replace(n,"\n\n<$1>\n\n").replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var o=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(o,"</deleted>")}).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,o){var i=btoa(encodeURIComponent(o.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(i,'"></generatedCode>\n\n')})):A;var e,n},[A]);c(function(){pe(M||V)},[M,V]);var ge=d(function(){return{h1:function(i){i.node;var r=e(i,["node"]);return o("h1",n({className:m.heading1,style:null==$?void 0:$.heading1},{children:r.children}))},h2:function(i){i.node;var r=e(i,["node"]);return o("h2",n({className:m.heading2,style:null==$?void 0:$.heading2},{children:r.children}))},h3:function(i){i.node;var r=e(i,["node"]);return o("h3",n({className:m.heading3,style:null==$?void 0:$.heading3},{children:r.children}))},b:function(i){i.node;var r=e(i,["node"]);return o("b",n({className:m.bold,style:null==$?void 0:$.bold},{children:null==r?void 0:r.children}))},p:function(i){i.node;var r=e(i,["node"]);return o("p",n({},r,{className:m.paragraph,style:null==$?void 0:$.paragraph},{children:r.children}))},updated:function(i){var r=i.node,t=e(i,["node"]);return o(g,n({},t,{showUserStoryDiff:k,currentUpdatedTagId:te,setCurrentUpdatedTagId:le,userStory:G,setUserStory:O,setAiReasoning:J,node:r,isCraflow:H,customStyles:null==$?void 0:$.updatedContent}))},ol:function(i){i.node;var r=e(i,["node"]);return o("ol",n({className:m.orderedList,style:null==$?void 0:$.olist},{children:null==r?void 0:r.children}))},ul:function(i){i.node;var r=e(i,["node"]);return o("ul",n({className:m.unorderedList,style:null==$?void 0:$.ulist},{children:null==r?void 0:r.children}))},table:function(e){var i=e.children;return o("div",n({className:m.tableWrapper},{children:o("table",n({className:m.table,style:null==$?void 0:$.table},{children:i}))}))},tr:j,td:function(i){var r,t=i.node,l=i.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return o(N.Provider,n({value:!0},{children:o("td",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(i){var r,t=i.node,l=i.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return o(N.Provider,n({value:!0},{children:o("th",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},recommendation:function(i){var r;i.node;var t=e(i,["node"]),l="The AI has selected this content based on: ".concat((null===(r=null==t?void 0:t.children)||void 0===r?void 0:r[0])||"");return o(I,n({},t,{customStyles:null==$?void 0:$.recommendationBlock,label:l}))},a:function(n){var i,r,t;n.inline,n.children,n.node;var l=e(n,["inline","children","node"]);s(N)||null==l||l.table;var a="".concat(null==l?void 0:l.href),d=null===(i=a.split("$"))||void 0===i?void 0:i[0],c=null===(r=a.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===d){var u=(null!==(t=k?B:V)&&void 0!==t?t:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)});if(u&&u.reason.length>0&&u.gap.length>0)return o(w,{aiReason:u,isSourceHasHighlight:!1,customIcons:Z,customStyles:{aiReasoningContent:null==$?void 0:$.aiReasoningContent,aiReasoningAccordion:null==$?void 0:$.aiReasoningAccordion,aiReasoningMarkdown:null==$?void 0:$.aiReasoningMarkdown,aiReasoningPill:null==$?void 0:$.aiReasoningPill,webCitation:null==$?void 0:$.webCitation,stormeeCitation:null==$?void 0:$.stormeeCitation,waveformCitation:null==$?void 0:$.waveformCitation,imageCitation:null==$?void 0:$.imageCitation,fileCitation:null==$?void 0:$.fileCitation,appModCitation:null==$?void 0:$.appModCitation,rcaCitation:null==$?void 0:$.rcaCitation,readFileCitation:null==$?void 0:$.readFileCitation,loadingCitations:null==$?void 0:$.loadingCitations,chatCitation:null==$?void 0:$.chatCitation}})}return null},code:function(i){i.inline;var r=i.children,t=i.className;return i.node,e(i,["inline","children","className","node"]),/language-(\w+)/.exec(t||"")||(null==t?void 0:t.includes("language-"))?o("div",{children:o("code",n({className:m.blockCode,style:null==$?void 0:$.code},{children:r}))}):o("code",n({className:m.inlineCode,style:null==$?void 0:$.code},{children:r}))},learned:function(e){var i=e.children;return o(f,n({title:i,placement:"top"},{children:o(p,{size:16,className:m.learned})}))},generatedcode:function(n){n.node;var i=e(n,["node"]),r=(null==i?void 0:i.language)||"python",t=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var o=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(o).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?o(e.props.children):""};n=o(e.children)}}catch(o){console.error("Error decoding generated code:",o),n=String(e.children)}return n}(i);return o(C,{title:"Generated Code",code:t,language:r,customStyles:{pill:null==$?void 0:$.generatedCodePill,content:null==$?void 0:$.generatedCodeContent}})}}},[he,V,D,te,k,A,q]);return c(function(){if(_.current){if(null==X?void 0:X.length){var e;if(0===(null==Y?void 0:Y.length))requestAnimationFrame(function(){oe(X.map(function(e){return e.replace(/\*/g,"")}))});else{var n=_.current,o=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){o.disconnect(),requestAnimationFrame(function(){oe(X.map(function(e){return e.replace(/\*/g,"")}))})},50)});o.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}ie()}},[X,Y]),o(x.Provider,n({value:{expandedInfo:de,setExpanded:ue,reasonToRow:se}},{children:i("div",n({ref:_,className:"".concat(m.container," ").concat("approving"!==T?m.wrapper:""," ").concat(F||""),style:null==$?void 0:$.container},{children:[o(u,n({components:ge,rehypePlugins:[v]},{children:fe})),ve>0&&o("div",n({className:m.confidenceScoreContainer,style:null==$?void 0:$.confidenceScoreContainer},{children:i("span",n({className:m.confidenceScore,style:null==$?void 0:$.confidenceScore},{children:[o(R,{size:14,color:(null==$?void 0:$.confidenceScoreIconColor)||"#166534"}),ve,"%"]}))})),E&&o("div",n({className:m.citationLoader,style:null==$?void 0:$.citationLoaderContainer},{children:o(y,{customStyles:{container:null==$?void 0:$.citationLoadingContainer,icon:null==$?void 0:$.citationLoadingIcon,text:null==$?void 0:$.citationLoadingText}})})),L&&o("div",n({className:"flex mt-5"},{children:o(b,{})}))]}))}))};export{L as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";var i=function(i){return e("svg",t({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{children:[r("path",{d:"M18.5998 18.0004C18.9598 16.897 19.3576 16.4989 20.3998 16.2004C19.3576 15.9019 18.9598 15.5038 18.5998 14.4004C18.2398 15.5038 17.842 15.9019 16.7998 16.2004C17.842 16.4989 18.2398 16.897 18.5998 18.0004Z",stroke:"#2546F0",strokeWidth:.6,strokeLinejoin:"round"}),r("line",{x1:12.3,y1:5.7,x2:17.7,y2:5.7,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),r("line",{x1:12.3,y1:8.10039,x2:17.7,y2:8.10039,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),r("line",{x1:12.3,y1:10.5008,x2:17.7,y2:10.5008,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),r("line",{x1:6.3,y1:12.9012,x2:12.9,y2:12.9012,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),r("line",{x1:6.3,y1:15.3016,x2:12.9,y2:15.3016,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),r("line",{x1:6.3,y1:17.702,x2:12.9,y2:17.702,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),e("g",t({clipPath:"url(#clip0_696_41387)"},{children:[r("path",{d:"M8.33806 4.94727H3.66272C2.96666 4.94727 2.40039 5.51356 2.40039 6.20961V9.09338C2.40039 9.78944 2.96666 10.3557 3.66272 10.3557L6.64066 10.3557L8.06621 11.7813C8.11452 11.8296 8.17907 11.8552 8.24479 11.8552C8.27731 11.8552 8.31011 11.8489 8.34133 11.836C8.43568 11.7969 8.4972 11.7049 8.4972 11.6027V10.3457C9.11844 10.2673 9.60039 9.73555 9.60039 9.09338V6.20961C9.60039 5.51356 9.03412 4.94727 8.33806 4.94727ZM9.09546 9.0934C9.09546 9.51104 8.7557 9.8508 8.33806 9.8508H8.24473C8.10531 9.8508 7.99226 9.96386 7.99226 10.1033V10.9932L6.92377 9.92474C6.87643 9.87738 6.81224 9.8508 6.74525 9.8508H3.66272C3.24508 9.8508 2.90532 9.51104 2.90532 9.0934V6.20963C2.90532 5.792 3.24508 5.45224 3.66272 5.45224H8.33806C8.7557 5.45224 9.09546 5.792 9.09546 6.20963V9.0934Z",fill:"#2546F0"}),r("path",{d:"M7.85548 6.73438H4.13918C3.99976 6.73438 3.88672 6.8474 3.88672 6.98684C3.88672 7.12626 3.99976 7.23931 4.13918 7.23931H7.85548C7.9949 7.23931 8.10795 7.12626 8.10795 6.98684C8.10795 6.8474 7.99492 6.73438 7.85548 6.73438Z",fill:"#2546F0"}),r("path",{d:"M7.85548 8.14648H4.13918C3.99976 8.14648 3.88672 8.25951 3.88672 8.39895C3.88672 8.53839 3.99976 8.65142 4.13918 8.65142H7.85548C7.9949 8.65142 8.10795 8.53837 8.10795 8.39895C8.10795 8.25953 7.99492 8.14648 7.85548 8.14648Z",fill:"#2546F0"})]})),r("path",{d:"M18.2451 2.41309C19.4553 2.53606 20.3994 3.55819 20.3994 4.80078V14.4004H19.2002V18H20.3994V19.2002C20.399 20.4424 19.455 21.465 18.2451 21.5879L18 21.6006H6L5.75391 21.5879C4.54443 21.4645 3.6 20.4421 3.59961 19.2002V12H4.7998V19.2002C4.80023 19.8623 5.33788 20.4 6 20.4004H18C18.6623 20.4002 19.1988 19.8624 19.1992 19.2002V4.80078C19.1992 4.13817 18.6626 3.6008 18 3.60059H6C5.33781 3.60101 4.80012 4.13759 4.7998 4.7998H3.59961C3.59991 3.55784 4.54446 2.53652 5.75391 2.41309L6 2.40039H18L18.2451 2.41309Z",fill:"#2546F0"}),r("defs",{children:r("clipPath",t({id:"clip0_696_41387"},{children:r("rect",{width:7.2,height:7.2,fill:"white",transform:"translate(2.40039 4.80078)"})}))})]}))};export{i as default};
|
|
2
|
+
//# sourceMappingURL=MeetingHighlightsIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MeetingHighlightsIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeViewer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeViewer.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -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 n}from"react/jsx-runtime";import e from"./GeneratedCodeCitation.module.css.js";import{ChevronDown as i,ChevronUp as r}from"lucide-react";import l from"./CodeViewer.js";import a from"../../CitationRenderer/CitationRenderer.js";var m=function(m){var c,d;return o(a,{inLineCitation:!0,citationTitle:m.title,citationIcon:o(n,{}),citationComponent:o(l,{code:m.code,language:m.language,readOnly:!0}),chevronDownComponent:o(i,{}),chevronUpComponent:o(r,{}),styles:{pillButton:t(t({},e.pillButton),null===(c=m.customStyles)||void 0===c?void 0:c.pill),citationContent:t(t({},e.citationContent),null===(d=m.customStyles)||void 0===d?void 0:d.content)}})};export{m as default};
|
|
2
2
|
//# sourceMappingURL=GeneratedCodeCitation.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{FileText as s,Clapperboard as t,Image as a,AudioLines as i}from"lucide-react";import r from"../icons/MeetingHighlightsIcon.js";var o={thinkingBulbIcon:"https://storymod-assests.pages.dev/ThinkingBulbIcon.gif",brainStormIcon:"https://storymod-assests.pages.dev/brainstorm.gif",brainStormCropped:"https://storymod-assests.pages.dev/brainstorm-cropped.gif",stormeeCitationIcon:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",rcaCitationIcon:"https://storymod-assests.pages.dev/appmod-icon.svg"},n=function(n,c){switch(null==n?void 0:n.toLowerCase()){case"mp3":case"wav":case"audio":return e(i,{className:"h-5 w-5 text-indigo-600",size:24});case"png":case"jpg":case"jpeg":case"image":case"heic":case"heif":return e(a,{className:"h-5 w-5 text-purple-500",size:24});case"mp4":case"avi":case"mov":case"video":return e(t,{className:"h-5 w-5 text-rose-500",size:24});case"pdf":return e(s,{className:"h-5 w-5 text-red-500",size:24});case"doc":case"docx":return e(s,{className:"h-5 w-5 text-blue-600",size:24});case"txt":return e(s,{className:"h-5 w-5 text-gray-600",size:24});case"json":if(null==c?void 0:c.startsWith("ST_"))return e("img",{src:o.stormeeCitationIcon,style:{mixBlendMode:"multiply"},className:"w-7 h-7"});if(null==c?void 0:c.startsWith("MH_"))return e(r,{});break;default:return e(s,{className:"h-5 w-5 text-yellow-600",size:24})}},c=function(e,s){if("json"===(null==e?void 0:e.toLowerCase())){if(null==s?void 0:s.startsWith("ST_"))return"Stormee";if(null==s?void 0:s.startsWith("MH_"))return"Meeting Highlights"}return e};export{n as GetFileIcon,o as assetList,c as getDisplayFileType};
|
|
2
|
+
//# sourceMappingURL=userStoryAttachedContext.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userStoryAttachedContext.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
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 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
|
|
1
|
+
export{default as ReadFileCitationRenderer}from"./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js";export{default as ReadFileCitationContent}from"./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.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 C}from"./features/UserStoryImport/components/NavRow.js";import{UserStoryImportDialog as U}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:C,UserStoryImportDialog:U,ResizeHandle:x});export{h as UserStoryPicker};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAEvJ,QAAA,MAAM,iBAAiB,+CA89DtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoK3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
import { IUserStory } from "../../interfaces/userstory.interface";
|
|
2
|
+
import { IOrganizedFiles, IUserStory } from "../../interfaces/userstory.interface";
|
|
3
3
|
import { AiReasonAccordionStyles, AiReasoningAccordionStates, AiReasoningContentStyles, AppModCitationStyleGroup, CitationStyleGroup, FileCitationStyles, ImageCitationStyles, MarkdownCustomStyles, RCACitationStyleGroup, ReadFileCitationStyleGroup, StormeeCitationStyles, TAIReasoning, UserStoryIcons, WaveformCitationStyles } from "../../types/aiReasoning.type";
|
|
4
4
|
import { CitationConfig, IChatHistoryItem, UserStoryCitations } from "../../interfaces/citation.interface";
|
|
5
5
|
import { UpdatedAnimatedContentStyles, UpdatedAnimatedContentIcons } from "../../shared/UpdatedAnimationContent";
|
|
@@ -254,6 +254,7 @@ interface IRequirementAIContext {
|
|
|
254
254
|
useExtractAudioPeaksQuery: (gsUtilPath: string, cacheKey: string[]) => any;
|
|
255
255
|
useGetVideoSignedUrlMutation: (gsUtilPath: string) => any;
|
|
256
256
|
useGetVideoSignedUrlQuery: (gsUtilPath: string, cacheKey: string[]) => any;
|
|
257
|
+
getProjectFileUrl?: (gsUtilPath: string) => any;
|
|
257
258
|
};
|
|
258
259
|
customStyles?: RequirementAICustomStyles;
|
|
259
260
|
customIcons?: {
|
|
@@ -262,6 +263,7 @@ interface IRequirementAIContext {
|
|
|
262
263
|
};
|
|
263
264
|
citationConfig?: CitationConfig;
|
|
264
265
|
aiReasoningAccordionOpenStates?: AiReasoningAccordionStates;
|
|
266
|
+
persistedDataFiles?: IOrganizedFiles | null;
|
|
265
267
|
}
|
|
266
268
|
interface RequirementAIWrapperProps {
|
|
267
269
|
children: ReactNode;
|
|
@@ -287,8 +289,9 @@ interface RequirementAIWrapperProps {
|
|
|
287
289
|
customIcons?: IRequirementAIContext["customIcons"];
|
|
288
290
|
citationConfig?: CitationConfig;
|
|
289
291
|
aiReasoningAccordionOpenStates?: AiReasoningAccordionStates;
|
|
292
|
+
persistedDataFiles?: IOrganizedFiles | null;
|
|
290
293
|
}
|
|
291
|
-
declare const RequirementAIWrapper: ({ children, userStory, setUserStory, aiReasoning, setAiReasoning, citations, setCitations, apiCachingConfig, customStyles, customIcons, searchQueryList, searchQueryReasoningIdList, citationConfig, chatHistory, chatCitationConfigs, gptCitationConfigs, aiReasoningAccordionOpenStates }: RequirementAIWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
294
|
+
declare const RequirementAIWrapper: ({ children, userStory, setUserStory, aiReasoning, setAiReasoning, citations, setCitations, apiCachingConfig, customStyles, customIcons, searchQueryList, searchQueryReasoningIdList, citationConfig, chatHistory, chatCitationConfigs, gptCitationConfigs, aiReasoningAccordionOpenStates, persistedDataFiles }: RequirementAIWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
292
295
|
export declare const useRequirementAI: () => IRequirementAIContext;
|
|
293
296
|
export default RequirementAIWrapper;
|
|
294
297
|
//# sourceMappingURL=RequirementAIWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/Requir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,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEvE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,0BAA0B,EAAE,MAAM,EAAE,CAAC;IAErC,gBAAgB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;IACrD,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,8BAA8B,CAAC,EAAE,0BAA0B,CAAC;CAC7D;AAID,QAAA,MAAM,oBAAoB,gSAkBvB,yBAAyB,4CAiE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAwB,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE3G,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACjH,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAE7G,MAAM,WAAW,y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5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/dist/types/src/features/RequirementAI/components/UserStoryCard/AttachedContext.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachedContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/AttachedContext.tsx"],"names":[],"mappings":";AAiLA;;GAEG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EA2H5B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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 +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":";AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAExD,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA4DrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -61,6 +61,6 @@ interface UserStoryWithCitationsProps {
|
|
|
61
61
|
userStoryCitations?: any;
|
|
62
62
|
isCraflow?: boolean;
|
|
63
63
|
}
|
|
64
|
-
declare const UserStoryWithCitations: ({ message, scenario, showUserStoryDiff, aiReasoningsForBlock, isCitationLoadingDisplay, className, highConfidenceIcon, lowConfidenceIcon, customStyles, customIcons, aiReasoningDiffView, userStoryCitations, artifactId, isCraflow }: UserStoryWithCitationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
declare const UserStoryWithCitations: ({ message, isParent, scenario, showUserStoryDiff, aiReasoningsForBlock, isCitationLoadingDisplay, className, highConfidenceIcon, lowConfidenceIcon, customStyles, customIcons, aiReasoningDiffView, userStoryCitations, artifactId, isCraflow }: UserStoryWithCitationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
65
65
|
export default UserStoryWithCitations;
|
|
66
66
|
//# sourceMappingURL=UserStoryWithCitation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACrW,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACrW,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AA2BzI,MAAM,WAAW,iCAAiC;IAChD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAA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B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MeetingHighlightsIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/icons/MeetingHighlightsIcon.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,qBAAqB,UAAW,GAAG,4CAkGtC,CAAC;AACF,eAAe,qBAAqB,CAAC"}
|
|
@@ -277,4 +277,16 @@ export type IUpdatedAIReasoning = {
|
|
|
277
277
|
};
|
|
278
278
|
relevance_score: number;
|
|
279
279
|
};
|
|
280
|
+
export interface IProjectFile {
|
|
281
|
+
name: string;
|
|
282
|
+
type: string;
|
|
283
|
+
url: string;
|
|
284
|
+
uploadTime: string;
|
|
285
|
+
}
|
|
286
|
+
export interface IFileWithInstructions {
|
|
287
|
+
filesFromProject: IProjectFile;
|
|
288
|
+
instructions: string[];
|
|
289
|
+
}
|
|
290
|
+
export type DataSourceCategory = "image" | "meetingRecording" | "document";
|
|
291
|
+
export type IOrganizedFiles = Record<DataSourceCategory, IFileWithInstructions[]>;
|
|
280
292
|
//# sourceMappingURL=userstory.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userstory.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/userstory.interface.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACnJ,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,MAAM,WAAW,UAAU;IAEzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,U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"file":"userstory.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/userstory.interface.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACnJ,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,MAAM,WAAW,UAAU;IAEzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC;IAG5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,CAAC;AAEzE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,2BAA2B;IAC3B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AO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE;QACN,MAAM,EAAE,KAAK,GAAG,QAAQ,CAAC;QACzB,KAAK,EAAE,MAAM,CAAA;KACd,CAAC;IACF,GAAG,EAAE;QACH,MAAM,EAAE,KAAK,GAAG,QAAQ,CAAC;QACzB,KAAK,EAAE,MAAM,CAAA;KACd,CAAC;IACF,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,YAAY,CAAC;IAC/B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,kBAAkB,GAClB,UAAU,CAAC;AAEf,MAAM,MAAM,eAAe,GAAG,MAAM,CAClC,kBAAkB,EAClB,qBAAqB,EAAE,CACxB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const assetList: {
|
|
2
|
+
thinkingBulbIcon: string;
|
|
3
|
+
brainStormIcon: string;
|
|
4
|
+
brainStormCropped: string;
|
|
5
|
+
stormeeCitationIcon: string;
|
|
6
|
+
rcaCitationIcon: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const GetFileIcon: (type: string, displayName?: string) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
9
|
+
export declare const getDisplayFileType: (type: string, displayName?: string) => string;
|
|
10
|
+
//# sourceMappingURL=userStoryAttachedContext.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userStoryAttachedContext.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/userStoryAttachedContext.utils.tsx"],"names":[],"mappings":"AAWE,eAAO,MAAM,SAAS;;;;;;CAMvB,CAAA;AAEC,eAAO,MAAM,WAAW,SAAU,MAAM,gBAAgB,MAAM,wDAiD7D,CAAA;AAED,eAAO,MAAM,kBAAkB,SAAU,MAAM,gBAAgB,MAAM,KAAG,MAMvE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
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";
|
|
2
3
|
export type { ReadFileCitationRendererProps, ReadFileCitationColors, ReadFileCitationEditorConfig, ReadFileCitationFileCallback, } from "./features/RequirementAI/components/citations/readfile-citation/types";
|
|
3
4
|
export { default as RCACitationRenderer } from "./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer";
|
|
4
5
|
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,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,GACzB,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,+EAA+E,CAAC;AAChI,OAAO,EAAE,gBAAgB,EAAE,MAAM,+EAA+E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AE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAGjF,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAGtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AACpG,YAAY,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAGrI,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACrH,OAAO,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,YAAY,GACb,MAAM,kDAAkD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-llm-studio/requirement-ai",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.63",
|
|
4
4
|
"author": "Saptyadeep Bhattacharjee",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,6 +29,7 @@
|
|
|
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"],
|
|
32
33
|
"ReadFileCitationTypes": ["dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts"],
|
|
33
34
|
"RCACitationRenderer": ["dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.d.ts"],
|
|
34
35
|
"RCACitationContent": ["dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationContent.d.ts"],
|
|
@@ -182,6 +183,11 @@
|
|
|
182
183
|
"require": "./dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js",
|
|
183
184
|
"types": "./dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts"
|
|
184
185
|
},
|
|
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
|
+
},
|
|
185
191
|
"./ReadFileCitationTypes": {
|
|
186
192
|
"import": "./dist/features/RequirementAI/components/citations/readfile-citation/types.js",
|
|
187
193
|
"require": "./dist/cjs/features/RequirementAI/components/citations/readfile-citation/types.js",
|
|
@@ -473,6 +479,7 @@
|
|
|
473
479
|
"@craco/craco": "^7.1.0",
|
|
474
480
|
"@emotion/react": "^11.13.5",
|
|
475
481
|
"@emotion/styled": "^11.13.0",
|
|
482
|
+
"@monaco-editor/react": "^4.7.0",
|
|
476
483
|
"@mui/icons-material": "^6.5.0",
|
|
477
484
|
"@mui/material": "^6.5.0",
|
|
478
485
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
@@ -517,6 +524,7 @@
|
|
|
517
524
|
"peerDependencies": {
|
|
518
525
|
"@emotion/react": "^11.13.5",
|
|
519
526
|
"@emotion/styled": "^11.13.0",
|
|
527
|
+
"@monaco-editor/react": "^4.7.0",
|
|
520
528
|
"@mui/icons-material": "^6.5.0",
|
|
521
529
|
"@mui/material": "^6.5.0",
|
|
522
530
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
@@ -524,6 +532,7 @@
|
|
|
524
532
|
"@react-pdf-viewer/search": "^3.12.0",
|
|
525
533
|
"@react-pdf-viewer/zoom": "^3.12.0",
|
|
526
534
|
"highlight.js": "^11.11.1",
|
|
535
|
+
"monaco-editor": "^0.55.1",
|
|
527
536
|
"pdfjs-dist": "^3.11.174",
|
|
528
537
|
"react": ">=16.8.0 <19.0.0",
|
|
529
538
|
"react-dom": ">=16.8.0 <19.0.0",
|
|
@@ -558,6 +567,9 @@
|
|
|
558
567
|
"react-player": {
|
|
559
568
|
"optional": true
|
|
560
569
|
},
|
|
570
|
+
"@monaco-editor/react": {
|
|
571
|
+
"optional": true
|
|
572
|
+
},
|
|
561
573
|
"react-reader": {
|
|
562
574
|
"optional": true
|
|
563
575
|
},
|
|
@@ -577,6 +589,7 @@
|
|
|
577
589
|
"lexical": "^0.41.0",
|
|
578
590
|
"lodash": "^4.17.23",
|
|
579
591
|
"lucide-react": "^0.562.0",
|
|
592
|
+
"monaco-editor": "^0.55.1",
|
|
580
593
|
"pdf-collaborative-tool": "^0.7.0",
|
|
581
594
|
"radix-ui": "^1.4.3",
|
|
582
595
|
"react-icons": "^5.6.0",
|