@e-llm-studio/requirement-ai 0.0.67 → 0.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.module.css.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
- package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +3 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/hooks/useApprovalStatus.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/hooks/useDiffEditReviewMode.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/hooks/useDiffEditReviewMode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/ReqAiCitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +3 -1
- package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +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("react-dom"),a=require("monaco-editor"),r=require("./ReadFileCitationContent.module.css.js"),l=require("./icons/ExternalLinkIcon.js"),o=require("lucide-react");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(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 c=s(i),d=u(a);"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 h=!1,f=function(){if(!h&&"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),d.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),h=!0}catch(e){h=!0}};f(),"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 g={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},v={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"},p=function(e){return v[e.toLowerCase()]||e},y=function(i){var a=i.code,l=i.language,o=i.theme,s=i.fontSize,u=i.fontFamily,c=i.height,h=i.blueHighlightRanges,g=i.yellowHighlightRanges,m=i.backgroundColor,v=i.editorWrapperStyle,y=t.useRef(null),_=t.useRef(null),b=t.useRef(!1);return t.useEffect(function(){b.current=!1,f();var e=setTimeout(function(){var e,n=y.current;if(n&&!b.current&&!_.current)try{d.editor.setTheme(o);var t=d.editor.create(n,{value:a,language:p(l),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:s,lineHeight:20,fontFamily:u,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});_.current=t;var i=[];h.forEach(function(e){var n=e[0],t=e[1];i.push({range:new d.Range(n,1,t,1),options:{isWholeLine:!0,className:r.default.highlightedLine,linesDecorationsClassName:r.default.highlightedLineDecoration}})}),g.forEach(function(e){var n=e[0],t=e[1];i.push({range:new d.Range(n,1,t,1),options:{isWholeLine:!0,className:r.default.yellowHighlightedLine,linesDecorationsClassName:r.default.yellowHighlightedLineDecoration}})}),i.length>0&&t.createDecorationsCollection(i);var c=null!==(e=g[0])&&void 0!==e?e:h[0];c&&requestAnimationFrame(function(){!b.current&&_.current&&t.revealLineInCenter(c[0])})}catch(e){}},50);return function(){if(b.current=!0,clearTimeout(e),_.current){try{_.current.dispose()}catch(e){}_.current=null}}},[]),t.useEffect(function(){try{d.editor.setTheme(o)}catch(e){}},[o]),n.jsx("div",e.__assign({className:r.default.editorWrapper,style:e.__assign({height:"".concat(c,"px"),backgroundColor:m},v)},{children:n.jsx("div",{ref:y,style:{width:"100%",height:"100%"}})}))};exports.default=function(i){var a=i.citation,s=i.customStyles,u=i.customColors,d=i.customIcons,h=i.editorConfig,f=i.fileCallback,v=t.useMemo(function(){return e.__assign(e.__assign({},g),u)},[u]),p=t.useMemo(function(){return e.__assign(e.__assign({},m),h)},[h]),_=t.useState(!1),b=_[0],x=_[1],j=t.useRef(null),C=t.useRef(!1),w=a.customMetadata.content||"",N=a.customMetadata.highlighted_text,k=a.customMetadata.start_line,M=a.customMetadata.end_line,L=t.useMemo(function(){if(!N)return{};try{var e=N.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),{}}},[N]),O=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(w));){var i=e[1]||"javascript",a=e[2].trim(),r=e[3].trim();a&&r&&n.push({filePath:a,code:r,language:i})}return n},[w]),E=t.useCallback(function(e){return(L[e]||[]).map(function(e){var n=e.split("-").map(Number),t=n[0];return[t,n.length>1?n[1]:t]})},[L]),S=t.useMemo(function(){for(var e=0;e<O.length;e++){if(E(O[e].filePath).length>0)return e}return-1},[O,E]),R=S>=0,F=t.useCallback(function(e,n){return E(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})},[E]),P=t.useCallback(function(e){if(null==k||null==M)return[];var n=Math.max(1,0===k?1:k),t=Math.min(M,e);return n>t?[]:[[n,t]]},[k,M]);t.useEffect(function(){if(R&&!C.current&&O.length>0&&(null==f?void 0:f.autoOpenFirstHighlighted)&&(null==f?void 0:f.onOpenFile)){var e=O[S],n=F(e.filePath,e.code.split("\n").length);C.current=!0;var t=setTimeout(function(){f.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[R,S,O,F,f]),t.useEffect(function(){C.current=!1},[w]),t.useEffect(function(){if(!(S<0)){var e=setTimeout(function(){var e;null===(e=j.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[S,N]);var B=t.useCallback(function(e,n){if(null==f?void 0:f.onOpenFile){var t=F(e,n);f.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[F,f]),H=t.useCallback(function(){(null==f?void 0:f.onExpandClick)?f.onExpandClick({blocks:O,highlightMap:L}):x(!0)},[f,O,L]),W=!!(null==f?void 0:f.onOpenFile),z=(null==d?void 0:d.readFileCitationIcon)||n.jsx(l.default,{style:{width:"14px",height:"14px"}}),T=function(t){return O.map(function(i,a){var l,u,c=E(i.filePath),d=c.length>0,h=a===S,f=t?600:p.maxHeight,g=(l=20*i.code.split("\n").length+16+4,Math.min(Math.max(l,p.minHeight),f)),m=i.filePath.split("/").pop(),_=i.code.split("\n").length,b=F(i.filePath,_),x=P(_);return n.jsxs("div",e.__assign({ref:!t&&h?j:void 0,"data-highlighted":d?"true":void 0,"data-first-highlighted":h?"true":void 0,className:r.default.blockContainer,style:e.__assign({border:"1px solid ".concat(v.border)},null==s?void 0:s.blockContainer)},{children:[n.jsxs("div",e.__assign({className:r.default.header,style:e.__assign({backgroundColor:d?v.highlightBg:v.headerBg,borderBottom:"1px solid ".concat(v.border),color:d?v.highlightGutter:v.foreground},d?null==s?void 0:s.headerHighlighted:null==s?void 0:s.header)},{children:[n.jsxs("div",e.__assign({className:r.default.headerLeft},{children:[n.jsx("span",e.__assign({className:r.default.fileName,title:i.filePath,style:null==s?void 0:s.fileName},{children:m})),W&&n.jsx("button",e.__assign({className:r.default.openFileButton,onClick:function(){return B(i.filePath,_)},title:"Open in editor","aria-label":"Open ".concat(m," in editor"),style:null==s?void 0:s.openFileButton},{children:z}))]})),n.jsxs("div",e.__assign({className:r.default.headerRight},{children:[d&&n.jsx("span",e.__assign({className:r.default.lineRanges,style:null==s?void 0:s.lineRanges},{children:(u=c,u.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!t&&0===a&&n.jsx("button",e.__assign({className:r.default.expandButton,style:null==s?void 0:s.expandButton,onClick:H,title:"Expand","aria-label":"Expand code view"},{children:n.jsx(o.Maximize2,{size:13})}))]}))]})),n.jsx(y,{code:i.code,language:i.language,theme:p.theme,fontSize:p.fontSize,fontFamily:p.fontFamily,height:g,blueHighlightRanges:x,yellowHighlightRanges:b,backgroundColor:v.background,editorWrapperStyle:null==s?void 0:s.editorWrapper})]}),a)})};if(0===O.length)return n.jsx("div",e.__assign({className:r.default.emptyState,style:e.__assign({color:v.inactiveText},null==s?void 0:s.emptyState)},{children:"No code content available"}));var q=b?c.default.createPortal(n.jsx("div",e.__assign({className:r.default.modalOverlay,style:null==s?void 0:s.modalOverlay,onClick:function(e){e.target===e.currentTarget&&x(!1)}},{children:n.jsxs("div",e.__assign({className:r.default.modalContent,style:null==s?void 0:s.modalContent},{children:[n.jsxs("div",e.__assign({className:r.default.modalHeader,style:null==s?void 0:s.modalHeader},{children:[n.jsx("span",e.__assign({className:r.default.modalTitle,style:null==s?void 0:s.modalTitle},{children:1===O.length?O[0].filePath:"".concat(O.length," files")})),n.jsx("button",e.__assign({className:r.default.modalCloseButton,style:null==s?void 0:s.modalCloseButton,onClick:function(){return x(!1)},"aria-label":"Close expanded view"},{children:n.jsx(o.X,{size:16})}))]})),n.jsx("div",e.__assign({className:r.default.modalBody},{children:n.jsx("div",e.__assign({className:r.default.container,style:null==s?void 0:s.container},{children:T(!0)}))}))]}))})),document.body):null;return n.jsxs(n.Fragment,{children:[q,n.jsx("div",e.__assign({className:r.default.container,style:null==s?void 0:s.container},{children:T(!1)}))]})};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("react-dom"),r=require("monaco-editor"),a=require("./ReadFileCitationContent.module.css.js"),l=require("./icons/ExternalLinkIcon.js"),o=require("lucide-react");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(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 c=s(i),d=u(r);"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 f=!1,h=function(){if(!f&&"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),d.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),f=!0}catch(e){f=!0}};h(),"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 g=function(e){return"number"==typeof e&&Number.isFinite(e)},m=function(e,n){return g(e)&&g(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},v=function(e,n,t,i){var r,a=e[0],l=e[1];if(!Number.isFinite(a)||!Number.isFinite(l))return null;if(l<a&&(a=(r=[l,a])[0],l=r[1]),g(t)&&g(i)){var o=Math.max(a,t),s=Math.min(l,i);if(o>s)return null;var u=o-t+1,c=s-t+1,d=Math.max(1,u),f=Math.min(n,c);return d>f?null:[d,f]}var h=Math.max(1,a),m=Math.min(n,l);return h>m?null:[h,m]},p=function(e,n,t,i){if(0===e.length)return!1;var r=m(t,i);return!!r&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(r.start>n||r.end>n||Math.abs(r.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<r.start||n>r.end})))},b={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)"},y={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},_={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"},x=function(e){return _[e.toLowerCase()]||e},j=function(i){var r=i.code,l=i.language,o=i.theme,s=i.fontSize,u=i.fontFamily,c=i.height,f=i.blueHighlightRanges,g=i.yellowHighlightRanges,m=i.backgroundColor,v=i.editorWrapperStyle,p=i.lineNumberOffset,b=void 0===p?0:p,y=i.lineNumberDigits,_=t.useRef(null),j=t.useRef(null),N=t.useRef(!1);return t.useEffect(function(){N.current=!1,h();var e=setTimeout(function(){var e,n=_.current;if(n&&!N.current&&!j.current)try{d.editor.setTheme(o);var t=d.editor.create(n,{value:r,language:x(l),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:s,lineHeight:20,fontFamily:u,lineNumbers:function(e){return String(e+b)},folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,null!=y?y: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});j.current=t;var i=[];f.forEach(function(e){var n=e[0],t=e[1];i.push({range:new d.Range(n,1,t,1),options:{isWholeLine:!0,className:a.default.highlightedLine,linesDecorationsClassName:a.default.highlightedLineDecoration}})}),g.forEach(function(e){var n=e[0],t=e[1];i.push({range:new d.Range(n,1,t,1),options:{isWholeLine:!0,className:a.default.yellowHighlightedLine,linesDecorationsClassName:a.default.yellowHighlightedLineDecoration}})}),i.length>0&&t.createDecorationsCollection(i);var c=null!==(e=g[0])&&void 0!==e?e:f[0];c&&requestAnimationFrame(function(){!N.current&&j.current&&t.revealLineInCenter(c[0])})}catch(e){}},50);return function(){if(N.current=!0,clearTimeout(e),j.current){try{j.current.dispose()}catch(e){}j.current=null}}},[]),t.useEffect(function(){try{d.editor.setTheme(o)}catch(e){}},[o]),n.jsx("div",e.__assign({className:a.default.editorWrapper,style:e.__assign({height:"".concat(c,"px"),backgroundColor:m},v)},{children:n.jsx("div",{ref:_,style:{width:"100%",height:"100%"}})}))};exports.default=function(i){var r=i.citation,s=i.customStyles,u=i.customColors,d=i.customIcons,f=i.editorConfig,h=i.fileCallback,_=t.useMemo(function(){return e.__assign(e.__assign({},b),u)},[u]),x=t.useMemo(function(){return e.__assign(e.__assign({},y),f)},[f]),N=t.useState(!1),C=N[0],M=N[1],w=t.useRef(null),k=t.useRef(!1),O=r.customMetadata.content||"",L=r.customMetadata.highlighted_text,F=r.customMetadata.start_line,S=r.customMetadata.end_line,E=t.useMemo(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]),R=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(O));){var i=e[1]||"javascript",r=e[2].trim(),a=e[3].trim();r&&a&&n.push({filePath:r,code:a,language:i})}return n},[O]),P=t.useCallback(function(e){return(E[e]||[]).map(function(e){var n=e.split("-").map(function(e){return Number(e.trim())}),t=n[0],i=n.length>1?n[1]:t;return Number.isFinite(t)&&Number.isFinite(i)?[t,i]:null}).filter(function(e){return null!==e})},[E]),B=t.useMemo(function(){for(var e=function(e){var n=R[e],t=n.code.split("\n").length,i=P(n.filePath),r=p(i,t,F,S);if(i.map(function(e){return v(e,t,r?F:void 0,r?S:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<R.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[R,P,F,S]),H=B>=0,W=t.useCallback(function(e,n){var t=P(e),i=p(t,n,F,S);return t.map(function(e){return v(e,n,i?F:void 0,i?S:void 0)}).filter(function(e){return null!==e})},[P,F,S]),z=t.useCallback(function(e,n){if(null==F||null==S)return[];var t=n||function(e,n,t){var i=m(n,t);return!!i&&(i.start>e||i.end>e||Math.abs(i.length-e)<=1)}(e,F,S);if(t){var i=m(F,S);if(!i)return[];var r=Math.min(e,i.length);return r<1?[]:[[1,r]]}var a=Math.max(1,0===F?1:F),l=Math.min(S,e);return a>l?[]:[[a,l]]},[F,S]);t.useEffect(function(){if(H&&!k.current&&R.length>0&&(null==h?void 0:h.autoOpenFirstHighlighted)&&(null==h?void 0:h.onOpenFile)){var e=R[B],n=W(e.filePath,e.code.split("\n").length);k.current=!0;var t=setTimeout(function(){h.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[H,B,R,W,h]),t.useEffect(function(){k.current=!1},[O]),t.useEffect(function(){if(!(B<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)}}},[B,L]);var T=t.useCallback(function(e,n){if(null==h?void 0:h.onOpenFile){var t=W(e,n);h.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[W,h]),D=t.useCallback(function(){(null==h?void 0:h.onExpandClick)?h.onExpandClick({blocks:R,highlightMap:E}):M(!0)},[h,R,E]),q=!!(null==h?void 0:h.onOpenFile),I=(null==d?void 0:d.readFileCitationIcon)||n.jsx(l.default,{style:{width:"14px",height:"14px"}}),G=function(t){return R.map(function(i,r){var l,u,c=i.code.split("\n").length,d=P(i.filePath),f=p(d,c,F,S),h=d.map(function(e){return v(e,c,f?F:void 0,f?S:void 0)}).filter(function(e){return null!==e}),m=f&&g(F)?h.map(function(e){var n=e[0],t=e[1];return[n+F-1,t+F-1]}):h,b=h.length>0,y=r===B,N=t?600:x.maxHeight,C=(l=20*i.code.split("\n").length+16+4,Math.min(Math.max(l,x.minHeight),N)),M=i.filePath.split("/").pop(),k=z(c,f),O=f&&g(F)?F-1:0,L=O+c,E=String(Math.max(1,L)).length;return n.jsxs("div",e.__assign({ref:!t&&y?w:void 0,"data-highlighted":b?"true":void 0,"data-first-highlighted":y?"true":void 0,className:a.default.blockContainer,style:e.__assign({border:"1px solid ".concat(_.border)},null==s?void 0:s.blockContainer)},{children:[n.jsxs("div",e.__assign({className:a.default.header,style:e.__assign({backgroundColor:b?_.highlightBg:_.headerBg,borderBottom:"1px solid ".concat(_.border),color:b?_.highlightGutter:_.foreground},b?null==s?void 0:s.headerHighlighted:null==s?void 0:s.header)},{children:[n.jsxs("div",e.__assign({className:a.default.headerLeft},{children:[n.jsx("span",e.__assign({className:a.default.fileName,title:i.filePath,style:null==s?void 0:s.fileName},{children:M})),q&&n.jsx("button",e.__assign({className:a.default.openFileButton,onClick:function(){return T(i.filePath,c)},title:"Open in editor","aria-label":"Open ".concat(M," in editor"),style:null==s?void 0:s.openFileButton},{children:I}))]})),n.jsxs("div",e.__assign({className:a.default.headerRight},{children:[b&&n.jsx("span",e.__assign({className:a.default.lineRanges,style:null==s?void 0:s.lineRanges},{children:(u=m,u.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!t&&0===r&&n.jsx("button",e.__assign({className:a.default.expandButton,style:null==s?void 0:s.expandButton,onClick:D,title:"Expand","aria-label":"Expand code view"},{children:n.jsx(o.Maximize2,{size:13})}))]}))]})),n.jsx(j,{code:i.code,language:i.language,theme:x.theme,fontSize:x.fontSize,fontFamily:x.fontFamily,height:C,blueHighlightRanges:k,yellowHighlightRanges:h,backgroundColor:_.background,editorWrapperStyle:null==s?void 0:s.editorWrapper,lineNumberOffset:O,lineNumberDigits:E})]}),r)})};if(0===R.length)return n.jsx("div",e.__assign({className:a.default.emptyState,style:e.__assign({color:_.inactiveText},null==s?void 0:s.emptyState)},{children:"No code content available"}));var A=C?c.default.createPortal(n.jsx("div",e.__assign({className:a.default.modalOverlay,style:null==s?void 0:s.modalOverlay,onClick:function(e){e.target===e.currentTarget&&M(!1)}},{children:n.jsxs("div",e.__assign({className:a.default.modalContent,style:null==s?void 0:s.modalContent},{children:[n.jsxs("div",e.__assign({className:a.default.modalHeader,style:null==s?void 0:s.modalHeader},{children:[n.jsx("span",e.__assign({className:a.default.modalTitle,style:null==s?void 0:s.modalTitle},{children:1===R.length?R[0].filePath:"".concat(R.length," files")})),n.jsx("button",e.__assign({className:a.default.modalCloseButton,style:null==s?void 0:s.modalCloseButton,onClick:function(){return M(!1)},"aria-label":"Close expanded view"},{children:n.jsx(o.X,{size:16})}))]})),n.jsx("div",e.__assign({className:a.default.modalBody},{children:n.jsx("div",e.__assign({className:a.default.container,style:null==s?void 0:s.container},{children:G(!0)}))}))]}))})),document.body):null;return n.jsxs(n.Fragment,{children:[A,n.jsx("div",e.__assign({className:a.default.container,style:null==s?void 0:s.container},{children:G(!1)}))]})};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".CustomChatCrRedirection-module_outerWrapper__-8Du6{display:flex;flex-direction:column;gap:8px;width:100%}.CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH{cursor:not-allowed}.CustomChatCrRedirection-module_card__S2b3w{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:inline-flex;padding:8px 16px;width:100%}.CustomChatCrRedirection-module_cardInteractive__u-azG{cursor:
|
|
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(".CustomChatCrRedirection-module_outerWrapper__-8Du6{display:flex;flex-direction:column;gap:8px;width:100%}.CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH{cursor:not-allowed}.CustomChatCrRedirection-module_card__S2b3w{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:inline-flex;padding:8px 16px;width:100%}.CustomChatCrRedirection-module_cardInteractive__u-azG{cursor:default}.CustomChatCrRedirection-module_cardInteractive__u-azG:hover{background-color:#f9fafb}.CustomChatCrRedirection-module_cardDisabled__mc0Mk{cursor:default;opacity:.75}.CustomChatCrRedirection-module_leftSide__tYQAv{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;min-width:0}.CustomChatCrRedirection-module_textBlock__eUNwE{color:#1f2937;display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CustomChatCrRedirection-module_headerText__kswTw{color:#000;font-weight:700}.CustomChatCrRedirection-module_reasoningToggle__wm3EY{align-items:baseline;display:flex;flex-direction:row}.CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX{cursor:pointer}.CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_chevronIcon__tVy1m{height:16px;width:16px}.CustomChatCrRedirection-module_rightSide__JEdzU{align-items:center;display:flex;flex-shrink:0;gap:12px;margin-left:16px}.CustomChatCrRedirection-module_fixButton__Sr1BF{background-color:#5925dc;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:12px;font-weight:600;padding:4px 12px;transition:transform .1s ease}.CustomChatCrRedirection-module_clarifyButton__WZMnl{background-color:initial;border:none;color:#5925dc;cursor:pointer;font-size:14px;font-weight:400}.CustomChatCrRedirection-module_fixButton__Sr1BF:active:not(:disabled){transform:scale(.95)}.CustomChatCrRedirection-module_fixButtonDisabled__0RGvi{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_redirectIcon__ed7yQ{color:#4f46e5;cursor:pointer}.CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q{color:#d1d5db}.CustomChatCrRedirection-module_loaderWrapper__Go-1p{align-items:center;display:flex;justify-content:center;min-width:60px}.CustomChatCrRedirection-module_loaderIcon__csc6N{animation:CustomChatCrRedirection-module_spin__KWEdL 1s linear infinite!important;color:#5925dc}@keyframes CustomChatCrRedirection-module_spin__KWEdL{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.CustomChatCrRedirection-module_completeTickWrapper__yAD-Q{margin-right:5px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={outerWrapper:"CustomChatCrRedirection-module_outerWrapper__-8Du6",outerWrapperDisabled:"CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH",card:"CustomChatCrRedirection-module_card__S2b3w",cardInteractive:"CustomChatCrRedirection-module_cardInteractive__u-azG",cardDisabled:"CustomChatCrRedirection-module_cardDisabled__mc0Mk",leftSide:"CustomChatCrRedirection-module_leftSide__tYQAv",textBlock:"CustomChatCrRedirection-module_textBlock__eUNwE",headerText:"CustomChatCrRedirection-module_headerText__kswTw",reasoningToggle:"CustomChatCrRedirection-module_reasoningToggle__wm3EY",reasoningToggleActive:"CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX",reasoningToggleDisabled:"CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5",chevronIcon:"CustomChatCrRedirection-module_chevronIcon__tVy1m",rightSide:"CustomChatCrRedirection-module_rightSide__JEdzU",fixButton:"CustomChatCrRedirection-module_fixButton__Sr1BF",clarifyButton:"CustomChatCrRedirection-module_clarifyButton__WZMnl",fixButtonDisabled:"CustomChatCrRedirection-module_fixButtonDisabled__0RGvi",redirectIcon:"CustomChatCrRedirection-module_redirectIcon__ed7yQ",redirectIconDisabled:"CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q",loaderWrapper:"CustomChatCrRedirection-module_loaderWrapper__Go-1p",loaderIcon:"CustomChatCrRedirection-module_loaderIcon__csc6N",spin:"CustomChatCrRedirection-module_spin__KWEdL",completeTickWrapper:"CustomChatCrRedirection-module_completeTickWrapper__yAD-Q"};
|
|
2
2
|
//# sourceMappingURL=CustomChatCrRedirection.module.css.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"),r=require("rehype-raw"),o=require("./UserStoryWithCitation.module.css.js"),a=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),s=require("@mui/material"),d=require("../../shared/UpdatedAnimationContent.js"),u=require("../../shared/GeneratedCodeCitation.js"),c=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 m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=m(t),C=m(r),x=i.createContext(!1),y=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),j=i.createContext({rowId:""}),R=function(t){var r,a,l=t.children,s=t.node,d=i.useRef(Math.random().toString(36).slice(2)).current,u=i.useContext(y).expandedInfo,c=(null==u?void 0:u.rowId)===d,v=Array.isArray(null==s?void 0:s.children)?s.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(a=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r.style)&&void 0!==a?a: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})),c&&(null==u?void 0:u.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:v||1,className:o.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:o.default.tableExpandedCellInner},{children:n.jsx("div",{className:o.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(t){var r=t.message,m=t.isParent,j=t.scenario,S=t.showUserStoryDiff,w=void 0!==S&&S,I=t.aiReasoningsForBlock,b=t.isCitationLoadingDisplay,q=void 0!==b&&b,N=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=a.useMarkdownSearch(P,Q),J=V.search,K=V.clear,X=V.isMutatingRef,Y=i.useState("1"),Z=Y[0],ee=Y[1],ne=i.useState(null),ie=ne[0],te=ne[1],re=i.useRef(new Map),oe=i.useCallback(function(e,n){te(e&&n?{rowId:e,aiReason:n}:null)},[]),ae=U?$(U):0,le=i.useState([]),se=le[0],de=le[1],ue=i.useMemo(function(){return r?(e=r,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')})):r;var e,n},[r]);i.useEffect(function(){de(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:o.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:o.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:o.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:o.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:o.default.paragraph,style:null==A?void 0:A.paragraph},{children:t.children}))},updated:function(i){var t=i.node,r=e.__rest(i,["node"]);return n.jsx(d.default,e.__assign({},r,{showUserStoryDiff:w,currentUpdatedTagId:Z,setCurrentUpdatedTagId:ee,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:o.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:o.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:o.default.tableWrapper},{children:n.jsx("table",e.__assign({className:o.default.table,style:null==A?void 0:A.table},{children:t}))}))},tr:R,td:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,s=e.__rest(a,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},th:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,s=e.__rest(a,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},recommendation:function(i){var t;i.node;var r=e.__rest(i,["node"]),o="The AI has selected this content based on: ".concat((null===(t=null==r?void 0:r.children)||void 0===t?void 0:t[0])||"");return n.jsx(h.default,e.__assign({},r,{customStyles:null==A?void 0:A.recommendationBlock,label:o}))},a:function(t){var r,o,a;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===(r=s.split("$"))||void 0===r?void 0:r[0],u=null===(o=s.split("$"))||void 0===o?void 0:o[1];if("ai_reasoning"===d){var c=(null!==(a=w?T:D)&&void 0!==a?a:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)});if(c&&c.reason.length>0&&c.gap.length>0)return n.jsx(f.default,{aiReason:c,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,r=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:o.default.blockCode,style:null==A?void 0:A.code},{children:t}))}):n.jsx("code",e.__assign({className:o.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:o.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),r=(null==t?void 0:t.language)||"python",o=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(u.default,{title:"Generated Code",code:o,language:r,customStyles:{pill:null==A?void 0:A.generatedCodePill,content:null==A?void 0:A.generatedCodeContent}})}}},[se,D,L,Z,w,r,M]),ve=i.useRef([]),fe=i.useRef([]);return i.useEffect(function(){var n;if(P.current){if(!(null==z?void 0:z.length))return K(),ve.current=[],void(fe.current=[]);var i=z.length!==ve.current.length||z.some(function(e,n){return e!==ve.current[n]}),t=(null!==(n=null==G?void 0:G.length)&&void 0!==n?n:0)!==fe.current.length||(null!=G?G:[]).some(function(e,n){return e!==fe.current[n]});if(i||t){var r;ve.current=e.__spreadArray([],z,!0),fe.current=e.__spreadArray([],null!=G?G:[],!0);var o=null,a=function(){J(z.map(function(e){return e.replace(/\*/g,"")}))};if(0===(null==G?void 0:G.length))requestAnimationFrame(a);else{var l=P.current;(o=new MutationObserver(function(){X.current||(clearTimeout(r),r=setTimeout(function(){requestAnimationFrame(a)},50))})).observe(l,{childList:!0,subtree:!0}),requestAnimationFrame(a)}return function(){null==o||o.disconnect(),clearTimeout(r)}}}},[z,G]),n.jsx(y.Provider,e.__assign({value:{expandedInfo:ie,setExpanded:oe,reasonToRow:re}},{children:n.jsxs("div",e.__assign({ref:P,className:"".concat(o.default.container," ").concat("approving"!==j?o.default.wrapper:""," ").concat(N||""),style:null==A?void 0:A.container},{children:[n.jsx(p.default,e.__assign({components:ce,rehypePlugins:[C.default]},{children:ue})),ae>0&&n.jsx("div",e.__assign({className:o.default.confidenceScoreContainer,style:null==A?void 0:A.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:o.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,"%"]}))})),q&&n.jsx("div",e.__assign({className:o.default.citationLoader,style:null==A?void 0:A.citationLoaderContainer},{children:n.jsx(c.default,{customStyles:{container:null==A?void 0:A.citationLoadingContainer,icon:null==A?void 0:A.citationLoadingIcon,text:null==A?void 0:A.citationLoadingText}})})),m&&n.jsx("div",e.__assign({className:"flex mt-5"},{children:n.jsx(_.default,{})}))]}))}))};
|
|
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"),r=require("rehype-raw"),o=require("./UserStoryWithCitation.module.css.js"),a=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(r),x=i.createContext(!1),y=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),j=i.createContext({rowId:""}),R=function(t){var r,a,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!==(a=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r.style)&&void 0!==a?a: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:o.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:o.default.tableExpandedCellInner},{children:n.jsx("div",{className:o.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(t){var r=t.message,p=t.isParent,j=t.scenario,S=t.showUserStoryDiff,w=void 0!==S&&S,I=t.aiReasoningsForBlock,b=t.isCitationLoadingDisplay,q=void 0!==b&&b,A=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var N=t.customStyles,M=t.customIcons,T=t.aiReasoningDiffView,L=t.userStoryCitations,U=t.artifactId,k=t.isCraflow,P=t.onCraAccept,E=t.onCraReject,F=i.useRef(null),$=v.useRequirementAI(),B=$.userStory,D=$.getAvgScoreForStory,W=$.setUserStory,H=$.aiReasoning,z=$.setAiReasoning,G=$.customIcons,O=$.searchQueryList,Q=$.searchQueryReasoningIdList,V=null!=M?M:null==G?void 0:G.userStoryIcons,J=null==N?void 0:N.searchHighlight,K=a.useMarkdownSearch(F,J),X=K.search,Y=K.clear,Z=K.isMutatingRef,ee=i.useState("1"),ne=ee[0],ie=ee[1],te=i.useState(null),re=te[0],oe=te[1],ae=i.useRef(new Map),le=i.useCallback(function(e,n){oe(e&&n?{rowId:e,aiReason:n}:null)},[]),se=U?D(U):0,de=i.useState([]),ce=de[0],ue=de[1],ve=i.useMemo(function(){return r?(e=r,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')})):r;var e,n},[r]);i.useEffect(function(){ue(I||H)},[I,H]);var fe=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:o.default.heading1,style:null==N?void 0:N.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:o.default.heading2,style:null==N?void 0:N.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:o.default.heading3,style:null==N?void 0:N.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:o.default.bold,style:null==N?void 0:N.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:o.default.paragraph,style:null==N?void 0:N.paragraph},{children:t.children}))},updated:function(i){var t=i.node,r=e.__rest(i,["node"]);return n.jsx(d.default,e.__assign({},r,{showUserStoryDiff:w,currentUpdatedTagId:ne,setCurrentUpdatedTagId:ie,userStory:B,setUserStory:W,setAiReasoning:z,node:t,isCraflow:k,onCraAccept:P,onCraReject:E,customStyles:null==N?void 0:N.updatedContent}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:o.default.orderedList,style:null==N?void 0:N.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:o.default.unorderedList,style:null==N?void 0:N.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:o.default.tableWrapper},{children:n.jsx("table",e.__assign({className:o.default.table,style:null==N?void 0:N.table},{children:t}))}))},tr:R,td:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,s=e.__rest(a,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},th:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,s=e.__rest(a,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},recommendation:function(i){var t;i.node;var r=e.__rest(i,["node"]),o="The AI has selected this content based on: ".concat((null===(t=null==r?void 0:r.children)||void 0===t?void 0:t[0])||"");return n.jsx(h.default,e.__assign({},r,{customStyles:null==N?void 0:N.recommendationBlock,label:o}))},a:function(t){var r,o,a;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===(r=s.split("$"))||void 0===r?void 0:r[0],c=null===(o=s.split("$"))||void 0===o?void 0:o[1];if("ai_reasoning"===d){var u=(null!==(a=w?T:H)&&void 0!==a?a:[]).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:V,customStyles:{aiReasoningContent:null==N?void 0:N.aiReasoningContent,aiReasoningAccordion:null==N?void 0:N.aiReasoningAccordion,aiReasoningMarkdown:null==N?void 0:N.aiReasoningMarkdown,aiReasoningPill:null==N?void 0:N.aiReasoningPill,webCitation:null==N?void 0:N.webCitation,stormeeCitation:null==N?void 0:N.stormeeCitation,waveformCitation:null==N?void 0:N.waveformCitation,imageCitation:null==N?void 0:N.imageCitation,fileCitation:null==N?void 0:N.fileCitation,appModCitation:null==N?void 0:N.appModCitation,rcaCitation:null==N?void 0:N.rcaCitation,readFileCitation:null==N?void 0:N.readFileCitation,loadingCitations:null==N?void 0:N.loadingCitations,chatCitation:null==N?void 0:N.chatCitation}})}return null},code:function(i){i.inline;var t=i.children,r=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:o.default.blockCode,style:null==N?void 0:N.code},{children:t}))}):n.jsx("code",e.__assign({className:o.default.inlineCode,style:null==N?void 0:N.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:o.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),r=(null==t?void 0:t.language)||"python",o=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:o,language:r,customStyles:{pill:null==N?void 0:N.generatedCodePill,content:null==N?void 0:N.generatedCodeContent}})}}},[ce,H,L,ne,w,r,M]),ge=i.useRef([]),he=i.useRef([]);return i.useEffect(function(){var n;if(F.current){if(!(null==O?void 0:O.length))return Y(),ge.current=[],void(he.current=[]);var i=O.length!==ge.current.length||O.some(function(e,n){return e!==ge.current[n]}),t=(null!==(n=null==Q?void 0:Q.length)&&void 0!==n?n:0)!==he.current.length||(null!=Q?Q:[]).some(function(e,n){return e!==he.current[n]});if(i||t){var r;ge.current=e.__spreadArray([],O,!0),he.current=e.__spreadArray([],null!=Q?Q:[],!0);var o=null,a=function(){X(O.map(function(e){return e.replace(/\*/g,"")}))};if(0===(null==Q?void 0:Q.length))requestAnimationFrame(a);else{var l=F.current;(o=new MutationObserver(function(){Z.current||(clearTimeout(r),r=setTimeout(function(){requestAnimationFrame(a)},50))})).observe(l,{childList:!0,subtree:!0}),requestAnimationFrame(a)}return function(){null==o||o.disconnect(),clearTimeout(r)}}}},[O,Q]),n.jsx(y.Provider,e.__assign({value:{expandedInfo:re,setExpanded:le,reasonToRow:ae}},{children:n.jsxs("div",e.__assign({ref:F,className:"".concat(o.default.container," ").concat("approving"!==j?o.default.wrapper:""," ").concat(A||""),style:null==N?void 0:N.container},{children:[n.jsx(m.default,e.__assign({components:fe,rehypePlugins:[C.default]},{children:ve})),se>0&&n.jsx("div",e.__assign({className:o.default.confidenceScoreContainer,style:null==N?void 0:N.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:o.default.confidenceScore,style:null==N?void 0:N.confidenceScore},{children:[n.jsx(g.default,{size:14,color:(null==N?void 0:N.confidenceScoreIconColor)||"#166534"}),se,"%"]}))})),q&&n.jsx("div",e.__assign({className:o.default.citationLoader,style:null==N?void 0:N.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==N?void 0:N.citationLoadingContainer,icon:null==N?void 0:N.citationLoadingIcon,text:null==N?void 0:N.citationLoadingText}})})),p&&n.jsx("div",e.__assign({className:"flex mt-5"},{children:n.jsx(_.default,{})}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react"),t=require("../utils/userstory-approval.utils.js"),r=function(r){var o=r.userStoryForApproval,s=r.selectedUserStoryForApproval,l=r.userStoryIndex,i=r.callbacks,n=r.labels,c=r.onSaveUserStory,u=a.useCallback(function(e,a,t,r){i.onShowNotification?i.onShowNotification(e,a,t,r):console.log("[".concat(e.toUpperCase(),"] ").concat(a,": ").concat(t))},[i]);a.useEffect(function(){var a;if(s){var r=t.getApprovalStatus(s);if(s.approval_status!==r){var o=e.__assign(e.__assign({},s),{approval_status:r});c(l,o),null===(a=i.onApprovalStatusChange)||void 0===a||a.call(i,l,r)}}},[s,l,i]),a.useEffect(function(){
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react"),t=require("../utils/userstory-approval.utils.js"),r=function(r){var o=r.userStoryForApproval,s=r.selectedUserStoryForApproval,l=r.userStoryIndex,i=r.callbacks,n=r.labels,c=r.onSaveUserStory,u=a.useCallback(function(e,a,t,r){i.onShowNotification?i.onShowNotification(e,a,t,r):console.log("[".concat(e.toUpperCase(),"] ").concat(a,": ").concat(t))},[i]);a.useEffect(function(){var a;if(s){var r=t.getApprovalStatus(s);if(s.approval_status!==r){var o=e.__assign(e.__assign({},s),{approval_status:r});c(l,o),null===(a=i.onApprovalStatusChange)||void 0===a||a.call(i,l,r)}}},[s,l,i]),a.useEffect(function(){(null==o?void 0:o.length)&&t.areAllUserStoriesApproved(o)&&v()},[o]),a.useEffect(function(){var e;null===(e=i.onSaveState)||void 0===e||e.call(i,o)},[]);var v=a.useCallback(function(){return e.__awaiter(void 0,void 0,void 0,function(){var a;return e.__generator(this,function(e){switch(e.label){case 0:u("info",n.savingArtifact,"Please wait while we save the artifact",3e3),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,null===(a=i.onAllApproved)||void 0===a?void 0:a.call(i,o)];case 2:return e.sent(),u("success",n.artifactSavedTitle,n.artifactSavedMessage,3e3),[3,4];case 3:return e.sent(),u("error",n.saveFailedTitle,n.saveFailedMessage,3e3),[3,4];case 4:return[2]}})})},[o,i,n,u]);return{handleAllApproved:v,showNotification:u}};exports.default=r,exports.useApprovalStatus=r;
|
|
2
2
|
//# sourceMappingURL=useApprovalStatus.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");function r(e){var r=function(e){for(var t=0,u=e;t<u.length;t++){var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");function r(e){var r=function(e){for(var t=0,u=e;t<u.length;t++){var n=u[t];if((new DOMParser).parseFromString(n.value,"text/html").querySelector("updated"))return!0;if(n.sub_features&&n.sub_features.length>0&&r(n.sub_features))return!0}return!1};return r(e)}exports.hasAnyUpdatedTags=r,exports.hasUpdatedTagsInMarkdown=function(e){return!(!e||"string"!=typeof e)&&null!==(new DOMParser).parseFromString(e,"text/html").querySelector("updated")},exports.useDiffEditReviewMode=function(t){var u=e.useState(!1),n=u[0],a=u[1];return e.useEffect(function(){var e=r(t);a(e)},[t]),n};
|
|
2
2
|
//# sourceMappingURL=useDiffEditReviewMode.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("react/jsx-runtime"),o=require("react"),e=require("../components/citations/web-citation/WebCitationWithImageRenderer.js"),n=require("../components/citations/web-citation/WebCitationRenderer.js"),a=require("../components/citations/stormee-citation/StormeeCitationRenderer.js"),s=require("../components/citations/audio-citation/WaveformCitationRenderer.js"),l=require("../components/citations/image-citation/ImageCitationRenderer.js"),c=require("../components/citations/file-citation/FileCitationRender.js"),d=require("../components/citations/appmod-citation/AppmodCitationRenderer.js"),u=require("../components/citations/rca-citation/RCACitationRenderer.js"),r=require("../components/citations/readfile-citation/ReadFileCitationRenderer.js"),m=require("../components/citations/audio-citation/components/AudioCitationIcon.js"),v=require("../components/RequirementAIWrapper/RequirementAIWrapper.js"),p=require("./ReqAiCitationRenderer.module.css.js");exports.default=function(_){var g,f,j,x,C,b,y,q,S,R,I,h,F,M,k,w,A,W=_.href;_.panelRef;var L=_.children;_.customStyles;var $=_.citationStyles,N=_.customIcons,O=v.useRequirementAI(),J=O.citationConfig,P=O.citations,U="";try{U=JSON.parse('"'.concat(W,'"'))}catch(t){console.warn("error in parsing reasoning a tag",t),U=W}var z=null===(f=null===(g=U.split("$"))||void 0===g?void 0:g[0])||void 0===f?void 0:f.replace(/^[\\"\s]+|[\\"\s]+$/g,""),B=null===(x=null===(j=U.split("$"))||void 0===j?void 0:j[1])||void 0===x?void 0:x.replace(/^[\\"\s]+|[\\"\s]+$/g,""),D=("appmode_citations"===z?(null==P?void 0:P.appmod_citations)||[]:"image_citations"===z?(null==P?void 0:P.image_citations)||[]:"audio_citations"===z?(null==P?void 0:P.audio_citations)||[]:"document_citations"===z?(null==P?void 0:P.file_citations)||[]:"rca_citations"===z?(null==P?void 0:P.rca_citations)||[]:"web_citations"===z?(null==P?void 0:P.web_citations)||[]:"code_generated"===z?(null==P?void 0:P.code_generated)||[]:"
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("react/jsx-runtime"),o=require("react"),e=require("../components/citations/web-citation/WebCitationWithImageRenderer.js"),n=require("../components/citations/web-citation/WebCitationRenderer.js"),a=require("../components/citations/stormee-citation/StormeeCitationRenderer.js"),s=require("../components/citations/audio-citation/WaveformCitationRenderer.js"),l=require("../components/citations/image-citation/ImageCitationRenderer.js"),c=require("../components/citations/file-citation/FileCitationRender.js"),d=require("../components/citations/appmod-citation/AppmodCitationRenderer.js"),u=require("../components/citations/rca-citation/RCACitationRenderer.js"),r=require("../components/citations/readfile-citation/ReadFileCitationRenderer.js"),m=require("../components/citations/audio-citation/components/AudioCitationIcon.js"),v=require("../components/RequirementAIWrapper/RequirementAIWrapper.js"),p=require("./ReqAiCitationRenderer.module.css.js");exports.default=function(_){var g,f,j,x,C,b,y,q,S,R,I,h,F,M,k,w,A,W=_.href;_.panelRef;var L=_.children;_.customStyles;var $=_.citationStyles,N=_.customIcons,O=v.useRequirementAI(),J=O.citationConfig,P=O.citations,U="";try{U=JSON.parse('"'.concat(W,'"'))}catch(t){console.warn("error in parsing reasoning a tag",t),U=W}var z=null===(f=null===(g=U.split("$"))||void 0===g?void 0:g[0])||void 0===f?void 0:f.replace(/^[\\"\s]+|[\\"\s]+$/g,""),B=null===(x=null===(j=U.split("$"))||void 0===j?void 0:j[1])||void 0===x?void 0:x.replace(/^[\\"\s]+|[\\"\s]+$/g,""),D=("appmode_citation"===z||"appmode_citations"===z?(null==P?void 0:P.appmod_citations)||[]:"image_citation"===z||"image_citations"===z?(null==P?void 0:P.image_citations)||[]:"audio_citation"===z||"audio_citations"===z?(null==P?void 0:P.audio_citations)||[]:"document_citation"===z||"document_citations"===z?(null==P?void 0:P.file_citations)||[]:"rca_citation"===z||"rca_citations"===z?(null==P?void 0:P.rca_citations)||[]:"web_citation"===z||"web_citations"===z?(null==P?void 0:P.web_citations)||[]:"code_generated"===z?(null==P?void 0:P.code_generated)||[]:"readfile_citation"===z||"readfile_citations"===z?(null==P?void 0:P.readfile_citations)||[]:("gpt_citation"===z||"gpt_citations"===z)&&(null==P?void 0:P.gpt_citations)||[]).find(function(t){return t.citation_number===decodeURIComponent(B)});return console.log("testing::citation::list",D),"image_citation"!==z||D?"web_citation"===(null===(C=null==D?void 0:D.customMetadata)||void 0===C?void 0:C.type)?(null===(b=D.customMetadata)||void 0===b?void 0:b.screenshot_url)?i.jsx(e.default,{title:L,citation:D,customStyles:null==$?void 0:$.webCitation,customIcons:N}):i.jsx(n.default,{label:L,url:null===(y=D.customMetadata)||void 0===y?void 0:y.link,customStyles:null==$?void 0:$.webCitation,customIcons:N}):"audio_transcript"===(null===(q=null==D?void 0:D.customMetadata)||void 0===q?void 0:q.type)?"stormee"===(null==D?void 0:D.customMetadata.audio_citation_mode)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(a.default,{title:"".concat(L),citation:D,customStyles:null==$?void 0:$.stormeeCitation,customIcons:N})})):i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(s.default,{title:"".concat(L),citation:D,customStyles:null==$?void 0:$.waveformCitation,customIcons:N})})):"image_citation"===(null==D?void 0:D.customMetadata.type)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(l.default,{title:"".concat(L),citation:D,customIcons:N,customStyles:null==$?void 0:$.imageCitation})})):"book_citation_doc"===(null===(S=null==D?void 0:D.customMetadata)||void 0===S?void 0:S.type)||"book_citation_pdf"===(null==D?void 0:D.customMetadata.type)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(c.default,{title:"".concat(L),citation:D,customIcons:N,customStyles:null==$?void 0:$.fileCitation})})):"app_mod_rag_question"===(null===(R=null==D?void 0:D.customMetadata)||void 0===R?void 0:R.type)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(d.default,{title:"".concat(L),citation:D,customIcons:N,customStyles:null==$?void 0:$.appModCitation,codeLinkConfig:null===(I=null==J?void 0:J.appMod)||void 0===I?void 0:I.codeLinkConfig,isLoading:null===(h=null==J?void 0:J.appMod)||void 0===h?void 0:h.isLoading})})):"rca_citation"===(null===(F=null==D?void 0:D.customMetadata)||void 0===F?void 0:F.type)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(u.default,{title:"".concat(L),citation:D,customIcons:N,customStyles:null==$?void 0:$.rcaCitation})})):"readfile_citation"===(null===(M=null==D?void 0:D.customMetadata)||void 0===M?void 0:M.type)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(r.default,{title:"".concat(L),citation:D,customIcons:N,customStyles:null==$?void 0:$.readFileCitation,fileCallback:null===(k=null==J?void 0:J.readFile)||void 0===k?void 0:k.fileCallback,editorConfig:null===(w=null==J?void 0:J.readFile)||void 0===w?void 0:w.editorConfig,customColors:null===(A=null==J?void 0:J.readFile)||void 0===A?void 0:A.customColors})})):i.jsxs("span",t.__assign({className:p.default.container},{children:[i.jsx("span",t.__assign({className:p.default.text},{children:L})),i.jsxs("span",{children:[" ","audio_citations"===z?i.jsx(m.default,{}):i.jsx(i.Fragment,{})]})]})):i.jsx(i.Fragment,{})};
|
|
2
2
|
//# sourceMappingURL=ReqAiCitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("lucide-react"),r=require("react"),i=require("./UpdatedAnimationContent.module.css.js");exports.default=function(o){var u,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("lucide-react"),r=require("react"),i=require("./UpdatedAnimationContent.module.css.js");exports.default=function(o){var l,u,a,s,d,c,v,f,p=o.isCraflow,g=o.onCraAccept,m=o.onCraReject,h=o.showUserStoryDiff,y=void 0!==h&&h,_=o.currentUpdatedTagId,S=o.setCurrentUpdatedTagId;o.node;var x=o.userStory,N=o.setUserStory,j=o.setAiReasoning,T=o.customStyles,C=o.customIcons,M=e.__rest(o,["isCraflow","onCraAccept","onCraReject","showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),b=r.useState(!1),w=b[0],U=b[1],I=r.useState(null),q=I[0],A=I[1],L=r.useRef(null),z=r.useRef(null),E=null!==(l=null==T?void 0:T.iconSize)&&void 0!==l?l:16,R=null!==(u=null==T?void 0:T.actionIconSize)&&void 0!==u?u:E;r.useEffect(function(){if(z.current){var e=setTimeout(function(){var e=z.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[_]);var B=null===(d=null===(s=null===(a=null==M?void 0:M.children)||void 0===a?void 0:a.filter(function(e){return"string"!=typeof e}).find(function(e){return"deleted"===(null==e?void 0:e.type)}))||void 0===s?void 0:s.props)||void 0===d?void 0:d.children,H=null===(f=null===(v=null===(c=null==M?void 0:M.children)||void 0===c?void 0:c.filter(function(e){return"string"!=typeof e}).find(function(e){return"changed"===(null==e?void 0:e.type)}))||void 0===v?void 0:v.props)||void 0===f?void 0:f.children;function O(n,t,r){var i=JSON.parse(JSON.stringify(n)),o=function(e,n){var t=function(e){for(var r=0,i=e;r<i.length;r++){var o=i[r];if((new DOMParser).parseFromString(o.value,"text/html").querySelector('updated[id="'.concat(n,'"]')))return o;if(o.sub_features&&o.sub_features.length>0){var l=t(o.sub_features);if(l)return l}}return null};return t(e)}(i,t);if(!o)return console.warn("No user story found with updated id: ".concat(t)),!1;var l=(new DOMParser).parseFromString(o.value,"text/html"),u=l.querySelector('updated[id="'.concat(t,'"]'));if(!u)return console.warn("No <updated> block found with id: ".concat(t)),!1;var a,s=u.innerHTML,d=u.querySelector("deleted"),c=u.querySelector("changed"),v=d?d.innerHTML.trim():null,f=c?c.innerHTML.trim():null,p="";if("reject"===r){var g=(a=(v||f||"").match(/ai_reasoning\$(\d+)/))?parseInt(a[1],10):null;null!==g&&j(function(n){var t=n.map(function(n){return e.__assign({},n)}),r="".concat(g,"-legacy"),i=t.find(function(e){var n;return(null===(n=e.id)||void 0===n?void 0:n.toString())===r});if(i){var o=i.id.toString().replace("-legacy","");t=t.filter(function(e){return e.id.toString()!==o}),i.id=o}return e.__spreadArray([],t,!0)})}"accept"===r?p=v&&f?f:v&&!f?"":!v&&f?f:s:"reject"===r&&(p=v&&f||v&&!f?v:!v&&f?"":s);var m=l.createElement("div");m.innerHTML=p;var h=Array.from(m.childNodes);u.replaceWith.apply(u,h);var y=new XMLSerializer;return o.value=y.serializeToString(l),N(i),S(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),!0}var k=function(n){var t=(null==T?void 0:T.actionButton)||{},r=q===n&&(null==T?void 0:T.actionButtonHover)||{};return e.__assign(e.__assign({},t),r)};return n.jsxs("div",e.__assign({},M,{className:i.default.container,style:null==T?void 0:T.container,onMouseEnter:function(){L.current&&(clearTimeout(L.current),L.current=null),U(!0)},onMouseLeave:function(){L.current=setTimeout(function(){U(!1),L.current=null},2e3)},ref:(null==M?void 0:M.id)===_?z:null},{children:[w&&!y&&n.jsxs("span",e.__assign({className:i.default.hoverActions,style:null==T?void 0:T.hoverActions,onMouseEnter:function(){return U(!0)}},{children:[n.jsx("button",e.__assign({className:i.default.actionButton,style:k("undo"),onMouseEnter:function(){return A("undo")},onMouseLeave:function(){return A(null)},onClick:function(){p&&m?m(null==M?void 0:M.id):O(x,null==M?void 0:M.id,"reject"),U(!1)}},{children:(null==C?void 0:C.undo)?C.undo:n.jsx(t.Undo,{size:R,color:null==T?void 0:T.undoIconColor,className:i.default.hw})})),n.jsx("span",{className:i.default.divider,style:null==T?void 0:T.divider}),n.jsx("button",e.__assign({className:i.default.actionButton,style:k("accept"),onMouseEnter:function(){return A("accept")},onMouseLeave:function(){return A(null)},onClick:function(){p&&g?g(null==M?void 0:M.id):O(x,null==M?void 0:M.id,"accept"),U(!1)}},{children:(null==C?void 0:C.accept)?C.accept:n.jsx(t.ThumbsUp,{size:R,color:null==T?void 0:T.thumbsUpIconColor,className:i.default.hw})}))]})),B&&n.jsx("div",e.__assign({className:i.default.deletedContainer,style:null==T?void 0:T.deletedContainer},{children:n.jsx("div",e.__assign({className:i.default.deletedText,style:null==T?void 0:T.deletedText},{children:B}))})),H&&n.jsx("div",e.__assign({className:i.default.changedContainer,style:null==T?void 0:T.changedContainer},{children:n.jsx("div",e.__assign({className:i.default.changedText,style:null==T?void 0:T.changedText},{children:H}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=UpdatedAnimationContent.js.map
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js"),r=require("./features/RequirementAI/components/citations/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"),
|
|
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"),w=require("./features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js"),D=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.hasUpdatedTagsInMarkdown=x.hasUpdatedTagsInMarkdown,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=w.default,exports.NoGapsFound=w.NoGapsFound,exports.useGapRiskSidebar=w.useGapRiskSidebar,exports.buildStoryWithGap=D.buildStoryWithGap,exports.updateGapInRawData=D.updateGapInRawData,exports.updateGapStory=D.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 e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useMemo as o,useState as r,useRef as l,useCallback as a,useEffect as c}from"react";import s from"react-dom";import*as u from"monaco-editor";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as m,Maximize2 as g}from"lucide-react";"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 f=!1,v=function(){if(!f&&"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),u.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),f=!0}catch(e){f=!0}};v(),"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 p={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)"},y={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},b={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"},C=function(e){return b[e.toLowerCase()]||e},x=function(t){var i=t.code,o=t.language,r=t.theme,a=t.fontSize,s=t.fontFamily,h=t.height,m=t.blueHighlightRanges,g=t.yellowHighlightRanges,f=t.backgroundColor,p=t.editorWrapperStyle,y=l(null),b=l(null),x=l(!1);return c(function(){x.current=!1,v();var e=setTimeout(function(){var e,n=y.current;if(n&&!x.current&&!b.current)try{u.editor.setTheme(r);var t=u.editor.create(n,{value:i,language:C(o),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:a,lineHeight:20,fontFamily:s,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});b.current=t;var l=[];m.forEach(function(e){var n=e[0],t=e[1];l.push({range:new u.Range(n,1,t,1),options:{isWholeLine:!0,className:d.highlightedLine,linesDecorationsClassName:d.highlightedLineDecoration}})}),g.forEach(function(e){var n=e[0],t=e[1];l.push({range:new u.Range(n,1,t,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),l.length>0&&t.createDecorationsCollection(l);var c=null!==(e=g[0])&&void 0!==e?e:m[0];c&&requestAnimationFrame(function(){!x.current&&b.current&&t.revealLineInCenter(c[0])})}catch(e){}},50);return function(){if(x.current=!0,clearTimeout(e),b.current){try{b.current.dispose()}catch(e){}b.current=null}}},[]),c(function(){try{u.editor.setTheme(r)}catch(e){}},[r]),n("div",e({className:d.editorWrapper,style:e({height:"".concat(h,"px"),backgroundColor:f},p)},{children:n("div",{ref:y,style:{width:"100%",height:"100%"}})}))},N=function(u){var f=u.citation,v=u.customStyles,b=u.customColors,C=u.customIcons,N=u.editorConfig,w=u.fileCallback,k=o(function(){return e(e({},p),b)},[b]),L=o(function(){return e(e({},y),N)},[N]),M=r(!1),S=M[0],F=M[1],B=l(null),H=l(!1),O=f.customMetadata.content||"",W=f.customMetadata.highlighted_text,E=f.customMetadata.start_line,P=f.customMetadata.end_line,R=o(function(){if(!W)return{};try{var e=W.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),{}}},[W]),j=o(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(O));){var i=e[1]||"javascript",o=e[2].trim(),r=e[3].trim();o&&r&&n.push({filePath:o,code:r,language:i})}return n},[O]),T=a(function(e){return(R[e]||[]).map(function(e){var n=e.split("-").map(Number),t=n[0];return[t,n.length>1?n[1]:t]})},[R]),z=o(function(){for(var e=0;e<j.length;e++){if(T(j[e].filePath).length>0)return e}return-1},[j,T]),D=z>=0,I=a(function(e,n){return T(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})},[T]),_=a(function(e){if(null==E||null==P)return[];var n=Math.max(1,0===E?1:E),t=Math.min(P,e);return n>t?[]:[[n,t]]},[E,P]);c(function(){if(D&&!H.current&&j.length>0&&(null==w?void 0:w.autoOpenFirstHighlighted)&&(null==w?void 0:w.onOpenFile)){var e=j[z],n=I(e.filePath,e.code.split("\n").length);H.current=!0;var t=setTimeout(function(){w.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[D,z,j,I,w]),c(function(){H.current=!1},[O]),c(function(){if(!(z<0)){var e=setTimeout(function(){var e;null===(e=B.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[z,W]);var q=a(function(e,n){if(null==w?void 0:w.onOpenFile){var t=I(e,n);w.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[I,w]),G=a(function(){(null==w?void 0:w.onExpandClick)?w.onExpandClick({blocks:j,highlightMap:R}):F(!0)},[w,j,R]),A=!!(null==w?void 0:w.onOpenFile),J=(null==C?void 0:C.readFileCitationIcon)||n(h,{style:{width:"14px",height:"14px"}}),V=function(i){return j.map(function(o,r){var l,a,c=T(o.filePath),s=c.length>0,u=r===z,h=i?600:L.maxHeight,m=(l=20*o.code.split("\n").length+16+4,Math.min(Math.max(l,L.minHeight),h)),f=o.filePath.split("/").pop(),p=o.code.split("\n").length,y=I(o.filePath,p),b=_(p);return t("div",e({ref:!i&&u?B:void 0,"data-highlighted":s?"true":void 0,"data-first-highlighted":u?"true":void 0,className:d.blockContainer,style:e({border:"1px solid ".concat(k.border)},null==v?void 0:v.blockContainer)},{children:[t("div",e({className:d.header,style:e({backgroundColor:s?k.highlightBg:k.headerBg,borderBottom:"1px solid ".concat(k.border),color:s?k.highlightGutter:k.foreground},s?null==v?void 0:v.headerHighlighted:null==v?void 0:v.header)},{children:[t("div",e({className:d.headerLeft},{children:[n("span",e({className:d.fileName,title:o.filePath,style:null==v?void 0:v.fileName},{children:f})),A&&n("button",e({className:d.openFileButton,onClick:function(){return q(o.filePath,p)},title:"Open in editor","aria-label":"Open ".concat(f," in editor"),style:null==v?void 0:v.openFileButton},{children:J}))]})),t("div",e({className:d.headerRight},{children:[s&&n("span",e({className:d.lineRanges,style:null==v?void 0:v.lineRanges},{children:(a=c,a.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!i&&0===r&&n("button",e({className:d.expandButton,style:null==v?void 0:v.expandButton,onClick:G,title:"Expand","aria-label":"Expand code view"},{children:n(g,{size:13})}))]}))]})),n(x,{code:o.code,language:o.language,theme:L.theme,fontSize:L.fontSize,fontFamily:L.fontFamily,height:m,blueHighlightRanges:b,yellowHighlightRanges:y,backgroundColor:k.background,editorWrapperStyle:null==v?void 0:v.editorWrapper})]}),r)})};if(0===j.length)return n("div",e({className:d.emptyState,style:e({color:k.inactiveText},null==v?void 0:v.emptyState)},{children:"No code content available"}));var $=S?s.createPortal(n("div",e({className:d.modalOverlay,style:null==v?void 0:v.modalOverlay,onClick:function(e){e.target===e.currentTarget&&F(!1)}},{children:t("div",e({className:d.modalContent,style:null==v?void 0:v.modalContent},{children:[t("div",e({className:d.modalHeader,style:null==v?void 0:v.modalHeader},{children:[n("span",e({className:d.modalTitle,style:null==v?void 0:v.modalTitle},{children:1===j.length?j[0].filePath:"".concat(j.length," files")})),n("button",e({className:d.modalCloseButton,style:null==v?void 0:v.modalCloseButton,onClick:function(){return F(!1)},"aria-label":"Close expanded view"},{children:n(m,{size:16})}))]})),n("div",e({className:d.modalBody},{children:n("div",e({className:d.container,style:null==v?void 0:v.container},{children:V(!0)}))}))]}))})),document.body):null;return t(i,{children:[$,n("div",e({className:d.container,style:null==v?void 0:v.container},{children:V(!1)}))]})};export{N as default};
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useMemo as r,useState as o,useRef as l,useCallback as a,useEffect as u}from"react";import c from"react-dom";import*as s from"monaco-editor";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as m,Maximize2 as f}from"lucide-react";"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 g=!1,v=function(){if(!g&&"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),s.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),g=!0}catch(e){g=!0}};v(),"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 p=function(e){return"number"==typeof e&&Number.isFinite(e)},y=function(e,n){return p(e)&&p(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},b=function(e,n,t,i){var r,o=e[0],l=e[1];if(!Number.isFinite(o)||!Number.isFinite(l))return null;if(l<o&&(o=(r=[l,o])[0],l=r[1]),p(t)&&p(i)){var a=Math.max(o,t),u=Math.min(l,i);if(a>u)return null;var c=a-t+1,s=u-t+1,d=Math.max(1,c),h=Math.min(n,s);return d>h?null:[d,h]}var m=Math.max(1,o),f=Math.min(n,l);return m>f?null:[m,f]},N=function(e,n,t,i){if(0===e.length)return!1;var r=y(t,i);return!!r&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(r.start>n||r.end>n||Math.abs(r.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<r.start||n>r.end})))},x={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)"},C={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},w={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"},M=function(e){return w[e.toLowerCase()]||e},k=function(t){var i=t.code,r=t.language,o=t.theme,a=t.fontSize,c=t.fontFamily,h=t.height,m=t.blueHighlightRanges,f=t.yellowHighlightRanges,g=t.backgroundColor,p=t.editorWrapperStyle,y=t.lineNumberOffset,b=void 0===y?0:y,N=t.lineNumberDigits,x=l(null),C=l(null),w=l(!1);return u(function(){w.current=!1,v();var e=setTimeout(function(){var e,n=x.current;if(n&&!w.current&&!C.current)try{s.editor.setTheme(o);var t=s.editor.create(n,{value:i,language:M(r),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:a,lineHeight:20,fontFamily:c,lineNumbers:function(e){return String(e+b)},folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,null!=N?N: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});C.current=t;var l=[];m.forEach(function(e){var n=e[0],t=e[1];l.push({range:new s.Range(n,1,t,1),options:{isWholeLine:!0,className:d.highlightedLine,linesDecorationsClassName:d.highlightedLineDecoration}})}),f.forEach(function(e){var n=e[0],t=e[1];l.push({range:new s.Range(n,1,t,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),l.length>0&&t.createDecorationsCollection(l);var u=null!==(e=f[0])&&void 0!==e?e:m[0];u&&requestAnimationFrame(function(){!w.current&&C.current&&t.revealLineInCenter(u[0])})}catch(e){}},50);return function(){if(w.current=!0,clearTimeout(e),C.current){try{C.current.dispose()}catch(e){}C.current=null}}},[]),u(function(){try{s.editor.setTheme(o)}catch(e){}},[o]),n("div",e({className:d.editorWrapper,style:e({height:"".concat(h,"px"),backgroundColor:g},p)},{children:n("div",{ref:x,style:{width:"100%",height:"100%"}})}))},L=function(s){var g=s.citation,v=s.customStyles,w=s.customColors,M=s.customIcons,L=s.editorConfig,F=s.fileCallback,S=r(function(){return e(e({},x),w)},[w]),O=r(function(){return e(e({},C),L)},[L]),B=o(!1),H=B[0],W=B[1],j=l(null),E=l(!1),R=g.customMetadata.content||"",P=g.customMetadata.highlighted_text,T=g.customMetadata.start_line,z=g.customMetadata.end_line,D=r(function(){if(!P)return{};try{var e=P.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),{}}},[P]),I=r(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(R));){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},[R]),_=a(function(e){return(D[e]||[]).map(function(e){var n=e.split("-").map(function(e){return Number(e.trim())}),t=n[0],i=n.length>1?n[1]:t;return Number.isFinite(t)&&Number.isFinite(i)?[t,i]:null}).filter(function(e){return null!==e})},[D]),q=r(function(){for(var e=function(e){var n=I[e],t=n.code.split("\n").length,i=_(n.filePath),r=N(i,t,T,z);if(i.map(function(e){return b(e,t,r?T:void 0,r?z:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<I.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[I,_,T,z]),G=q>=0,A=a(function(e,n){var t=_(e),i=N(t,n,T,z);return t.map(function(e){return b(e,n,i?T:void 0,i?z:void 0)}).filter(function(e){return null!==e})},[_,T,z]),J=a(function(e,n){if(null==T||null==z)return[];var t=n||function(e,n,t){var i=y(n,t);return!!i&&(i.start>e||i.end>e||Math.abs(i.length-e)<=1)}(e,T,z);if(t){var i=y(T,z);if(!i)return[];var r=Math.min(e,i.length);return r<1?[]:[[1,r]]}var o=Math.max(1,0===T?1:T),l=Math.min(z,e);return o>l?[]:[[o,l]]},[T,z]);u(function(){if(G&&!E.current&&I.length>0&&(null==F?void 0:F.autoOpenFirstHighlighted)&&(null==F?void 0:F.onOpenFile)){var e=I[q],n=A(e.filePath,e.code.split("\n").length);E.current=!0;var t=setTimeout(function(){F.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[G,q,I,A,F]),u(function(){E.current=!1},[R]),u(function(){if(!(q<0)){var e=setTimeout(function(){var e;null===(e=j.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[q,P]);var V=a(function(e,n){if(null==F?void 0:F.onOpenFile){var t=A(e,n);F.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[A,F]),$=a(function(){(null==F?void 0:F.onExpandClick)?F.onExpandClick({blocks:I,highlightMap:D}):W(!0)},[F,I,D]),K=!!(null==F?void 0:F.onOpenFile),Q=(null==M?void 0:M.readFileCitationIcon)||n(h,{style:{width:"14px",height:"14px"}}),U=function(i){return I.map(function(r,o){var l,a,u=r.code.split("\n").length,c=_(r.filePath),s=N(c,u,T,z),h=c.map(function(e){return b(e,u,s?T:void 0,s?z:void 0)}).filter(function(e){return null!==e}),m=s&&p(T)?h.map(function(e){var n=e[0],t=e[1];return[n+T-1,t+T-1]}):h,g=h.length>0,y=o===q,x=i?600:O.maxHeight,C=(l=20*r.code.split("\n").length+16+4,Math.min(Math.max(l,O.minHeight),x)),w=r.filePath.split("/").pop(),M=J(u,s),L=s&&p(T)?T-1:0,F=L+u,B=String(Math.max(1,F)).length;return t("div",e({ref:!i&&y?j:void 0,"data-highlighted":g?"true":void 0,"data-first-highlighted":y?"true":void 0,className:d.blockContainer,style:e({border:"1px solid ".concat(S.border)},null==v?void 0:v.blockContainer)},{children:[t("div",e({className:d.header,style:e({backgroundColor:g?S.highlightBg:S.headerBg,borderBottom:"1px solid ".concat(S.border),color:g?S.highlightGutter:S.foreground},g?null==v?void 0:v.headerHighlighted:null==v?void 0:v.header)},{children:[t("div",e({className:d.headerLeft},{children:[n("span",e({className:d.fileName,title:r.filePath,style:null==v?void 0:v.fileName},{children:w})),K&&n("button",e({className:d.openFileButton,onClick:function(){return V(r.filePath,u)},title:"Open in editor","aria-label":"Open ".concat(w," in editor"),style:null==v?void 0:v.openFileButton},{children:Q}))]})),t("div",e({className:d.headerRight},{children:[g&&n("span",e({className:d.lineRanges,style:null==v?void 0:v.lineRanges},{children:(a=m,a.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!i&&0===o&&n("button",e({className:d.expandButton,style:null==v?void 0:v.expandButton,onClick:$,title:"Expand","aria-label":"Expand code view"},{children:n(f,{size:13})}))]}))]})),n(k,{code:r.code,language:r.language,theme:O.theme,fontSize:O.fontSize,fontFamily:O.fontFamily,height:C,blueHighlightRanges:M,yellowHighlightRanges:h,backgroundColor:S.background,editorWrapperStyle:null==v?void 0:v.editorWrapper,lineNumberOffset:L,lineNumberDigits:B})]}),o)})};if(0===I.length)return n("div",e({className:d.emptyState,style:e({color:S.inactiveText},null==v?void 0:v.emptyState)},{children:"No code content available"}));var X=H?c.createPortal(n("div",e({className:d.modalOverlay,style:null==v?void 0:v.modalOverlay,onClick:function(e){e.target===e.currentTarget&&W(!1)}},{children:t("div",e({className:d.modalContent,style:null==v?void 0:v.modalContent},{children:[t("div",e({className:d.modalHeader,style:null==v?void 0:v.modalHeader},{children:[n("span",e({className:d.modalTitle,style:null==v?void 0:v.modalTitle},{children:1===I.length?I[0].filePath:"".concat(I.length," files")})),n("button",e({className:d.modalCloseButton,style:null==v?void 0:v.modalCloseButton,onClick:function(){return W(!1)},"aria-label":"Close expanded view"},{children:n(m,{size:16})}))]})),n("div",e({className:d.modalBody},{children:n("div",e({className:d.container,style:null==v?void 0:v.container},{children:U(!0)}))}))]}))})),document.body):null;return t(i,{children:[X,n("div",e({className:d.container,style:null==v?void 0:v.container},{children:U(!1)}))]})};export{L as default};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationContent.js.map
|
package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.module.css.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={outerWrapper:"CustomChatCrRedirection-module_outerWrapper__-8Du6",outerWrapperDisabled:"CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH",card:"CustomChatCrRedirection-module_card__S2b3w",cardInteractive:"CustomChatCrRedirection-module_cardInteractive__u-azG",cardDisabled:"CustomChatCrRedirection-module_cardDisabled__mc0Mk",leftSide:"CustomChatCrRedirection-module_leftSide__tYQAv",textBlock:"CustomChatCrRedirection-module_textBlock__eUNwE",headerText:"CustomChatCrRedirection-module_headerText__kswTw",reasoningToggle:"CustomChatCrRedirection-module_reasoningToggle__wm3EY",reasoningToggleActive:"CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX",reasoningToggleDisabled:"CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5",chevronIcon:"CustomChatCrRedirection-module_chevronIcon__tVy1m",rightSide:"CustomChatCrRedirection-module_rightSide__JEdzU",fixButton:"CustomChatCrRedirection-module_fixButton__Sr1BF",clarifyButton:"CustomChatCrRedirection-module_clarifyButton__WZMnl",fixButtonDisabled:"CustomChatCrRedirection-module_fixButtonDisabled__0RGvi",redirectIcon:"CustomChatCrRedirection-module_redirectIcon__ed7yQ",redirectIconDisabled:"CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q",loaderWrapper:"CustomChatCrRedirection-module_loaderWrapper__Go-1p",loaderIcon:"CustomChatCrRedirection-module_loaderIcon__csc6N",spin:"CustomChatCrRedirection-module_spin__KWEdL",completeTickWrapper:"CustomChatCrRedirection-module_completeTickWrapper__yAD-Q"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".CustomChatCrRedirection-module_outerWrapper__-8Du6{display:flex;flex-direction:column;gap:8px;width:100%}.CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH{cursor:not-allowed}.CustomChatCrRedirection-module_card__S2b3w{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:inline-flex;padding:8px 16px;width:100%}.CustomChatCrRedirection-module_cardInteractive__u-azG{cursor:
|
|
1
|
+
var e={outerWrapper:"CustomChatCrRedirection-module_outerWrapper__-8Du6",outerWrapperDisabled:"CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH",card:"CustomChatCrRedirection-module_card__S2b3w",cardInteractive:"CustomChatCrRedirection-module_cardInteractive__u-azG",cardDisabled:"CustomChatCrRedirection-module_cardDisabled__mc0Mk",leftSide:"CustomChatCrRedirection-module_leftSide__tYQAv",textBlock:"CustomChatCrRedirection-module_textBlock__eUNwE",headerText:"CustomChatCrRedirection-module_headerText__kswTw",reasoningToggle:"CustomChatCrRedirection-module_reasoningToggle__wm3EY",reasoningToggleActive:"CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX",reasoningToggleDisabled:"CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5",chevronIcon:"CustomChatCrRedirection-module_chevronIcon__tVy1m",rightSide:"CustomChatCrRedirection-module_rightSide__JEdzU",fixButton:"CustomChatCrRedirection-module_fixButton__Sr1BF",clarifyButton:"CustomChatCrRedirection-module_clarifyButton__WZMnl",fixButtonDisabled:"CustomChatCrRedirection-module_fixButtonDisabled__0RGvi",redirectIcon:"CustomChatCrRedirection-module_redirectIcon__ed7yQ",redirectIconDisabled:"CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q",loaderWrapper:"CustomChatCrRedirection-module_loaderWrapper__Go-1p",loaderIcon:"CustomChatCrRedirection-module_loaderIcon__csc6N",spin:"CustomChatCrRedirection-module_spin__KWEdL",completeTickWrapper:"CustomChatCrRedirection-module_completeTickWrapper__yAD-Q"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".CustomChatCrRedirection-module_outerWrapper__-8Du6{display:flex;flex-direction:column;gap:8px;width:100%}.CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH{cursor:not-allowed}.CustomChatCrRedirection-module_card__S2b3w{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:inline-flex;padding:8px 16px;width:100%}.CustomChatCrRedirection-module_cardInteractive__u-azG{cursor:default}.CustomChatCrRedirection-module_cardInteractive__u-azG:hover{background-color:#f9fafb}.CustomChatCrRedirection-module_cardDisabled__mc0Mk{cursor:default;opacity:.75}.CustomChatCrRedirection-module_leftSide__tYQAv{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;min-width:0}.CustomChatCrRedirection-module_textBlock__eUNwE{color:#1f2937;display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CustomChatCrRedirection-module_headerText__kswTw{color:#000;font-weight:700}.CustomChatCrRedirection-module_reasoningToggle__wm3EY{align-items:baseline;display:flex;flex-direction:row}.CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX{cursor:pointer}.CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_chevronIcon__tVy1m{height:16px;width:16px}.CustomChatCrRedirection-module_rightSide__JEdzU{align-items:center;display:flex;flex-shrink:0;gap:12px;margin-left:16px}.CustomChatCrRedirection-module_fixButton__Sr1BF{background-color:#5925dc;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:12px;font-weight:600;padding:4px 12px;transition:transform .1s ease}.CustomChatCrRedirection-module_clarifyButton__WZMnl{background-color:initial;border:none;color:#5925dc;cursor:pointer;font-size:14px;font-weight:400}.CustomChatCrRedirection-module_fixButton__Sr1BF:active:not(:disabled){transform:scale(.95)}.CustomChatCrRedirection-module_fixButtonDisabled__0RGvi{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_redirectIcon__ed7yQ{color:#4f46e5;cursor:pointer}.CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q{color:#d1d5db}.CustomChatCrRedirection-module_loaderWrapper__Go-1p{align-items:center;display:flex;justify-content:center;min-width:60px}.CustomChatCrRedirection-module_loaderIcon__csc6N{animation:CustomChatCrRedirection-module_spin__KWEdL 1s linear infinite!important;color:#5925dc}@keyframes CustomChatCrRedirection-module_spin__KWEdL{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.CustomChatCrRedirection-module_completeTickWrapper__yAD-Q{margin-right:5px}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=CustomChatCrRedirection.module.css.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,__spreadArray as o}from"tslib";import{jsx as i,jsxs as r}from"react/jsx-runtime";import{createContext as t,useRef as l,useState as a,useCallback as d,useMemo as c,useEffect as s,useContext as u}from"react";import v from"react-markdown";import m from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as f}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as g}from"@mui/material";import C from"../../shared/UpdatedAnimationContent.js";import y from"../../shared/GeneratedCodeCitation.js";import
|
|
1
|
+
import{__rest as e,__assign as n,__spreadArray as o}from"tslib";import{jsx as i,jsxs as r}from"react/jsx-runtime";import{createContext as t,useRef as l,useState as a,useCallback as d,useMemo as c,useEffect as s,useContext as u}from"react";import v from"react-markdown";import m from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as f}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as g}from"@mui/material";import C from"../../shared/UpdatedAnimationContent.js";import y from"../../shared/GeneratedCodeCitation.js";import R from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import w from"../ai-reasoning/AiReasoningCitation.js";import I from"../../icons/RelevanceScoreIcon.js";import b from"../RecommendationBlock/RecommendationBlock.js";import N from"../UserStoryCard/AttachedContext.js";var A=t(!1),x=t({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),j=t({rowId:""}),L=function(e){var o,t,a=e.children,d=e.node,c=l(Math.random().toString(36).slice(2)).current,s=u(x).expandedInfo,v=(null==s?void 0:s.rowId)===c,m=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(t=null===(o=null==d?void 0:d.properties)||void 0===o?void 0:o.style)&&void 0!==t?t:void 0;return r(j.Provider,n({value:{rowId:c}},{children:[i("tr",n({style:f?{cssText:f}:void 0},{children:a})),v&&(null==s?void 0:s.aiReason)&&i("tr",n({style:{width:"100%"}},{children:i("td",n({colSpan:m||1,className:h.tableExpandedCell},{children:i("div",n({className:h.tableExpandedCellInner},{children:i("div",{className:h.tableExpandedCellContent})}))}))}))]}))},T=function(t){var j=t.message,T=t.isParent,U=t.scenario,M=t.showUserStoryDiff,k=void 0!==M&&M,P=t.aiReasoningsForBlock,E=t.isCitationLoadingDisplay,F=void 0!==E&&E,q=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var $=t.customStyles,B=t.customIcons,D=t.aiReasoningDiffView,W=t.userStoryCitations,H=t.artifactId,_=t.isCraflow,z=t.onCraAccept,G=t.onCraReject,Q=l(null),O=S(),V=O.userStory,J=O.getAvgScoreForStory,K=O.setUserStory,X=O.aiReasoning,Y=O.setAiReasoning,Z=O.customIcons,ee=O.searchQueryList,ne=O.searchQueryReasoningIdList,oe=null!=B?B:null==Z?void 0:Z.userStoryIcons,ie=null==$?void 0:$.searchHighlight,re=f(Q,ie),te=re.search,le=re.clear,ae=re.isMutatingRef,de=a("1"),ce=de[0],se=de[1],ue=a(null),ve=ue[0],me=ue[1],he=l(new Map),fe=d(function(e,n){me(e&&n?{rowId:e,aiReason:n}:null)},[]),pe=H?J(H):0,ge=a([]),Ce=ge[0],ye=ge[1],Re=c(function(){return j?(e=j,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')})):j;var e,n},[j]);s(function(){ye(P||X)},[P,X]);var Se=c(function(){return{h1:function(o){o.node;var r=e(o,["node"]);return i("h1",n({className:h.heading1,style:null==$?void 0:$.heading1},{children:r.children}))},h2:function(o){o.node;var r=e(o,["node"]);return i("h2",n({className:h.heading2,style:null==$?void 0:$.heading2},{children:r.children}))},h3:function(o){o.node;var r=e(o,["node"]);return i("h3",n({className:h.heading3,style:null==$?void 0:$.heading3},{children:r.children}))},b:function(o){o.node;var r=e(o,["node"]);return i("b",n({className:h.bold,style:null==$?void 0:$.bold},{children:null==r?void 0:r.children}))},p:function(o){o.node;var r=e(o,["node"]);return i("p",n({},r,{className:h.paragraph,style:null==$?void 0:$.paragraph},{children:r.children}))},updated:function(o){var r=o.node,t=e(o,["node"]);return i(C,n({},t,{showUserStoryDiff:k,currentUpdatedTagId:ce,setCurrentUpdatedTagId:se,userStory:V,setUserStory:K,setAiReasoning:Y,node:r,isCraflow:_,onCraAccept:z,onCraReject:G,customStyles:null==$?void 0:$.updatedContent}))},ol:function(o){o.node;var r=e(o,["node"]);return i("ol",n({className:h.orderedList,style:null==$?void 0:$.olist},{children:null==r?void 0:r.children}))},ul:function(o){o.node;var r=e(o,["node"]);return i("ul",n({className:h.unorderedList,style:null==$?void 0:$.ulist},{children:null==r?void 0:r.children}))},table:function(e){var o=e.children;return i("div",n({className:h.tableWrapper},{children:i("table",n({className:h.table,style:null==$?void 0:$.table},{children:o}))}))},tr:L,td:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(A.Provider,n({value:!0},{children:i("td",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(A.Provider,n({value:!0},{children:i("th",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},recommendation:function(o){var r;o.node;var t=e(o,["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 i(b,n({},t,{customStyles:null==$?void 0:$.recommendationBlock,label:l}))},a:function(n){var o,r,t;n.inline,n.children,n.node;var l=e(n,["inline","children","node"]);u(A)||null==l||l.table;var a="".concat(null==l?void 0:l.href),d=null===(o=a.split("$"))||void 0===o?void 0:o[0],c=null===(r=a.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===d){var s=(null!==(t=k?D:X)&&void 0!==t?t:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)});if(s&&s.reason.length>0&&s.gap.length>0)return i(w,{aiReason:s,isSourceHasHighlight:!1,customIcons:oe,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(o){o.inline;var r=o.children,t=o.className;return o.node,e(o,["inline","children","className","node"]),/language-(\w+)/.exec(t||"")||(null==t?void 0:t.includes("language-"))?i("div",{children:i("code",n({className:h.blockCode,style:null==$?void 0:$.code},{children:r}))}):i("code",n({className:h.inlineCode,style:null==$?void 0:$.code},{children:r}))},learned:function(e){var o=e.children;return i(g,n({title:o,placement:"top"},{children:i(p,{size:16,className:h.learned})}))},generatedcode:function(n){n.node;var o=e(n,["node"]),r=(null==o?void 0:o.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}(o);return i(y,{title:"Generated Code",code:t,language:r,customStyles:{pill:null==$?void 0:$.generatedCodePill,content:null==$?void 0:$.generatedCodeContent}})}}},[Ce,X,W,ce,k,j,B]),we=l([]),Ie=l([]);return s(function(){var e;if(Q.current){if(!(null==ee?void 0:ee.length))return le(),we.current=[],void(Ie.current=[]);var n=ee.length!==we.current.length||ee.some(function(e,n){return e!==we.current[n]}),i=(null!==(e=null==ne?void 0:ne.length)&&void 0!==e?e:0)!==Ie.current.length||(null!=ne?ne:[]).some(function(e,n){return e!==Ie.current[n]});if(n||i){var r;we.current=o([],ee,!0),Ie.current=o([],null!=ne?ne:[],!0);var t=null,l=function(){te(ee.map(function(e){return e.replace(/\*/g,"")}))};if(0===(null==ne?void 0:ne.length))requestAnimationFrame(l);else{var a=Q.current;(t=new MutationObserver(function(){ae.current||(clearTimeout(r),r=setTimeout(function(){requestAnimationFrame(l)},50))})).observe(a,{childList:!0,subtree:!0}),requestAnimationFrame(l)}return function(){null==t||t.disconnect(),clearTimeout(r)}}}},[ee,ne]),i(x.Provider,n({value:{expandedInfo:ve,setExpanded:fe,reasonToRow:he}},{children:r("div",n({ref:Q,className:"".concat(h.container," ").concat("approving"!==U?h.wrapper:""," ").concat(q||""),style:null==$?void 0:$.container},{children:[i(v,n({components:Se,rehypePlugins:[m]},{children:Re})),pe>0&&i("div",n({className:h.confidenceScoreContainer,style:null==$?void 0:$.confidenceScoreContainer},{children:r("span",n({className:h.confidenceScore,style:null==$?void 0:$.confidenceScore},{children:[i(I,{size:14,color:(null==$?void 0:$.confidenceScoreIconColor)||"#166534"}),pe,"%"]}))})),F&&i("div",n({className:h.citationLoader,style:null==$?void 0:$.citationLoaderContainer},{children:i(R,{customStyles:{container:null==$?void 0:$.citationLoadingContainer,icon:null==$?void 0:$.citationLoadingIcon,text:null==$?void 0:$.citationLoadingText}})})),T&&i("div",n({className:"flex mt-5"},{children:i(N,{})}))]}))}))};export{T as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as a,__awaiter as t,__generator as e}from"tslib";import{useCallback as o,useEffect as r}from"react";import{getApprovalStatus as
|
|
1
|
+
import{__assign as a,__awaiter as t,__generator as e}from"tslib";import{useCallback as o,useEffect as r}from"react";import{getApprovalStatus as n,areAllUserStoriesApproved as i}from"../utils/userstory-approval.utils.js";var l=function(l){var s=l.userStoryForApproval,c=l.selectedUserStoryForApproval,v=l.userStoryIndex,u=l.callbacks,p=l.labels,f=l.onSaveUserStory,d=o(function(a,t,e,o){u.onShowNotification?u.onShowNotification(a,t,e,o):console.log("[".concat(a.toUpperCase(),"] ").concat(t,": ").concat(e))},[u]);r(function(){var t;if(c){var e=n(c);if(c.approval_status!==e){var o=a(a({},c),{approval_status:e});f(v,o),null===(t=u.onApprovalStatusChange)||void 0===t||t.call(u,v,e)}}},[c,v,u]),r(function(){(null==s?void 0:s.length)&&i(s)&&S()},[s]),r(function(){var a;null===(a=u.onSaveState)||void 0===a||a.call(u,s)},[]);var S=o(function(){return t(void 0,void 0,void 0,function(){var a;return e(this,function(t){switch(t.label){case 0:d("info",p.savingArtifact,"Please wait while we save the artifact",3e3),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,null===(a=u.onAllApproved)||void 0===a?void 0:a.call(u,s)];case 2:return t.sent(),d("success",p.artifactSavedTitle,p.artifactSavedMessage,3e3),[3,4];case 3:return t.sent(),d("error",p.saveFailedTitle,p.saveFailedMessage,3e3),[3,4];case 4:return[2]}})})},[s,u,p,d]);return{handleAllApproved:S,showNotification:d}};export{l as default,l as useApprovalStatus};
|
|
2
2
|
//# sourceMappingURL=useApprovalStatus.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useState as r,useEffect as e}from"react";function t(r){var e=function(r){for(var t=0,
|
|
1
|
+
import{useState as r,useEffect as e}from"react";function t(r){var e=function(r){for(var t=0,n=r;t<n.length;t++){var u=n[t];if((new DOMParser).parseFromString(u.value,"text/html").querySelector("updated"))return!0;if(u.sub_features&&u.sub_features.length>0&&e(u.sub_features))return!0}return!1};return e(r)}function n(r){return!(!r||"string"!=typeof r)&&null!==(new DOMParser).parseFromString(r,"text/html").querySelector("updated")}function u(n){var u=r(!1),a=u[0],o=u[1];return e(function(){var r=t(n);o(r)},[n]),a}export{t as hasAnyUpdatedTags,n as hasUpdatedTagsInMarkdown,u as useDiffEditReviewMode};
|
|
2
2
|
//# sourceMappingURL=useDiffEditReviewMode.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as i,Fragment as o,jsxs as n}from"react/jsx-runtime";import{Suspense as a}from"react";import e from"../components/citations/web-citation/WebCitationWithImageRenderer.js";import
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as i,Fragment as o,jsxs as n}from"react/jsx-runtime";import{Suspense as a}from"react";import e from"../components/citations/web-citation/WebCitationWithImageRenderer.js";import c from"../components/citations/web-citation/WebCitationRenderer.js";import l from"../components/citations/stormee-citation/StormeeCitationRenderer.js";import d from"../components/citations/audio-citation/WaveformCitationRenderer.js";import s from"../components/citations/image-citation/ImageCitationRenderer.js";import r from"../components/citations/file-citation/FileCitationRender.js";import m from"../components/citations/appmod-citation/AppmodCitationRenderer.js";import u from"../components/citations/rca-citation/RCACitationRenderer.js";import p from"../components/citations/readfile-citation/ReadFileCitationRenderer.js";import v from"../components/citations/audio-citation/components/AudioCitationIcon.js";import{useRequirementAI as f}from"../components/RequirementAIWrapper/RequirementAIWrapper.js";import _ from"./ReqAiCitationRenderer.module.css.js";var C=function(C){var g,b,y,R,I,h,k,M,j,S,w,A,F,W,q,L,$,x=C.href;C.panelRef;var N=C.children;C.customStyles;var J=C.citationStyles,O=C.customIcons,U=f(),z=U.citationConfig,B=U.citations,D="";try{D=JSON.parse('"'.concat(x,'"'))}catch(t){console.warn("error in parsing reasoning a tag",t),D=x}var E=null===(b=null===(g=D.split("$"))||void 0===g?void 0:g[0])||void 0===b?void 0:b.replace(/^[\\"\s]+|[\\"\s]+$/g,""),G=null===(R=null===(y=D.split("$"))||void 0===y?void 0:y[1])||void 0===R?void 0:R.replace(/^[\\"\s]+|[\\"\s]+$/g,""),H=("appmode_citation"===E||"appmode_citations"===E?(null==B?void 0:B.appmod_citations)||[]:"image_citation"===E||"image_citations"===E?(null==B?void 0:B.image_citations)||[]:"audio_citation"===E||"audio_citations"===E?(null==B?void 0:B.audio_citations)||[]:"document_citation"===E||"document_citations"===E?(null==B?void 0:B.file_citations)||[]:"rca_citation"===E||"rca_citations"===E?(null==B?void 0:B.rca_citations)||[]:"web_citation"===E||"web_citations"===E?(null==B?void 0:B.web_citations)||[]:"code_generated"===E?(null==B?void 0:B.code_generated)||[]:"readfile_citation"===E||"readfile_citations"===E?(null==B?void 0:B.readfile_citations)||[]:("gpt_citation"===E||"gpt_citations"===E)&&(null==B?void 0:B.gpt_citations)||[]).find(function(t){return t.citation_number===decodeURIComponent(G)});return console.log("testing::citation::list",H),"image_citation"!==E||H?"web_citation"===(null===(I=null==H?void 0:H.customMetadata)||void 0===I?void 0:I.type)?(null===(h=H.customMetadata)||void 0===h?void 0:h.screenshot_url)?i(e,{title:N,citation:H,customStyles:null==J?void 0:J.webCitation,customIcons:O}):i(c,{label:N,url:null===(k=H.customMetadata)||void 0===k?void 0:k.link,customStyles:null==J?void 0:J.webCitation,customIcons:O}):"audio_transcript"===(null===(M=null==H?void 0:H.customMetadata)||void 0===M?void 0:M.type)?"stormee"===(null==H?void 0:H.customMetadata.audio_citation_mode)?i(a,t({fallback:i(o,{})},{children:i(l,{title:"".concat(N),citation:H,customStyles:null==J?void 0:J.stormeeCitation,customIcons:O})})):i(a,t({fallback:i(o,{})},{children:i(d,{title:"".concat(N),citation:H,customStyles:null==J?void 0:J.waveformCitation,customIcons:O})})):"image_citation"===(null==H?void 0:H.customMetadata.type)?i(a,t({fallback:i(o,{})},{children:i(s,{title:"".concat(N),citation:H,customIcons:O,customStyles:null==J?void 0:J.imageCitation})})):"book_citation_doc"===(null===(j=null==H?void 0:H.customMetadata)||void 0===j?void 0:j.type)||"book_citation_pdf"===(null==H?void 0:H.customMetadata.type)?i(a,t({fallback:i(o,{})},{children:i(r,{title:"".concat(N),citation:H,customIcons:O,customStyles:null==J?void 0:J.fileCitation})})):"app_mod_rag_question"===(null===(S=null==H?void 0:H.customMetadata)||void 0===S?void 0:S.type)?i(a,t({fallback:i(o,{})},{children:i(m,{title:"".concat(N),citation:H,customIcons:O,customStyles:null==J?void 0:J.appModCitation,codeLinkConfig:null===(w=null==z?void 0:z.appMod)||void 0===w?void 0:w.codeLinkConfig,isLoading:null===(A=null==z?void 0:z.appMod)||void 0===A?void 0:A.isLoading})})):"rca_citation"===(null===(F=null==H?void 0:H.customMetadata)||void 0===F?void 0:F.type)?i(a,t({fallback:i(o,{})},{children:i(u,{title:"".concat(N),citation:H,customIcons:O,customStyles:null==J?void 0:J.rcaCitation})})):"readfile_citation"===(null===(W=null==H?void 0:H.customMetadata)||void 0===W?void 0:W.type)?i(a,t({fallback:i(o,{})},{children:i(p,{title:"".concat(N),citation:H,customIcons:O,customStyles:null==J?void 0:J.readFileCitation,fileCallback:null===(q=null==z?void 0:z.readFile)||void 0===q?void 0:q.fileCallback,editorConfig:null===(L=null==z?void 0:z.readFile)||void 0===L?void 0:L.editorConfig,customColors:null===($=null==z?void 0:z.readFile)||void 0===$?void 0:$.customColors})})):n("span",t({className:_.container},{children:[i("span",t({className:_.text},{children:N})),n("span",{children:[" ",i("audio_citations"===E?v:o,{})]})]})):i(o,{})};export{C as default};
|
|
2
2
|
//# sourceMappingURL=ReqAiCitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as n,__assign as e,__spreadArray as r}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Undo as i,ThumbsUp as l}from"lucide-react";import{useState as u,useRef as c,useEffect as a}from"react";import d from"./UpdatedAnimationContent.module.css.js";var s=function(s){var v,f,m,p,h,y,g,S,N=s.isCraflow,T=s.
|
|
1
|
+
import{__rest as n,__assign as e,__spreadArray as r}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Undo as i,ThumbsUp as l}from"lucide-react";import{useState as u,useRef as c,useEffect as a}from"react";import d from"./UpdatedAnimationContent.module.css.js";var s=function(s){var v,f,m,p,h,y,g,S,N=s.isCraflow,C=s.onCraAccept,T=s.onCraReject,M=s.showUserStoryDiff,w=void 0!==M&&M,b=s.currentUpdatedTagId,I=s.setCurrentUpdatedTagId;s.node;var U=s.userStory,x=s.setUserStory,A=s.setAiReasoning,L=s.customStyles,j=s.customIcons,z=n(s,["isCraflow","onCraAccept","onCraReject","showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),B=u(!1),E=B[0],H=B[1],k=u(null),q=k[0],D=k[1],O=c(null),R=c(null),_=null!==(v=null==L?void 0:L.iconSize)&&void 0!==v?v:16,F=null!==(f=null==L?void 0:L.actionIconSize)&&void 0!==f?f:_;a(function(){if(R.current){var n=setTimeout(function(){var n=R.current;n&&(n.style.scrollMarginBottom="20px",n.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(n)}}},[b]);var J=null===(h=null===(p=null===(m=null==z?void 0:z.children)||void 0===m?void 0:m.filter(function(n){return"string"!=typeof n}).find(function(n){return"deleted"===(null==n?void 0:n.type)}))||void 0===p?void 0:p.props)||void 0===h?void 0:h.children,P=null===(S=null===(g=null===(y=null==z?void 0:z.children)||void 0===y?void 0:y.filter(function(n){return"string"!=typeof n}).find(function(n){return"changed"===(null==n?void 0:n.type)}))||void 0===g?void 0:g.props)||void 0===S?void 0:S.children;function V(n,t,o){var i=JSON.parse(JSON.stringify(n)),l=function(n,e){var r=function(n){for(var t=0,o=n;t<o.length;t++){var i=o[t];if((new DOMParser).parseFromString(i.value,"text/html").querySelector('updated[id="'.concat(e,'"]')))return i;if(i.sub_features&&i.sub_features.length>0){var l=r(i.sub_features);if(l)return l}}return null};return r(n)}(i,t);if(!l)return console.warn("No user story found with updated id: ".concat(t)),!1;var u=(new DOMParser).parseFromString(l.value,"text/html"),c=u.querySelector('updated[id="'.concat(t,'"]'));if(!c)return console.warn("No <updated> block found with id: ".concat(t)),!1;var a,d=c.innerHTML,s=c.querySelector("deleted"),v=c.querySelector("changed"),f=s?s.innerHTML.trim():null,m=v?v.innerHTML.trim():null,p="";if("reject"===o){var h=(a=(f||m||"").match(/ai_reasoning\$(\d+)/))?parseInt(a[1],10):null;null!==h&&A(function(n){var t=n.map(function(n){return e({},n)}),o="".concat(h,"-legacy"),i=t.find(function(n){var e;return(null===(e=n.id)||void 0===e?void 0:e.toString())===o});if(i){var l=i.id.toString().replace("-legacy","");t=t.filter(function(n){return n.id.toString()!==l}),i.id=l}return r([],t,!0)})}"accept"===o?p=f&&m?m:f&&!m?"":!f&&m?m:d:"reject"===o&&(p=f&&m||f&&!m?f:!f&&m?"":d);var y=u.createElement("div");y.innerHTML=p;var g=Array.from(y.childNodes);c.replaceWith.apply(c,g);var S=new XMLSerializer;return l.value=S.serializeToString(u),x(i),I(function(n){return Number.isNaN(Number(n))?n:String(Number(n)+1)}),!0}var W=function(n){var r=(null==L?void 0:L.actionButton)||{},t=q===n&&(null==L?void 0:L.actionButtonHover)||{};return e(e({},r),t)};return t("div",e({},z,{className:d.container,style:null==L?void 0:L.container,onMouseEnter:function(){O.current&&(clearTimeout(O.current),O.current=null),H(!0)},onMouseLeave:function(){O.current=setTimeout(function(){H(!1),O.current=null},2e3)},ref:(null==z?void 0:z.id)===b?R:null},{children:[E&&!w&&t("span",e({className:d.hoverActions,style:null==L?void 0:L.hoverActions,onMouseEnter:function(){return H(!0)}},{children:[o("button",e({className:d.actionButton,style:W("undo"),onMouseEnter:function(){return D("undo")},onMouseLeave:function(){return D(null)},onClick:function(){N&&T?T(null==z?void 0:z.id):V(U,null==z?void 0:z.id,"reject"),H(!1)}},{children:(null==j?void 0:j.undo)?j.undo:o(i,{size:F,color:null==L?void 0:L.undoIconColor,className:d.hw})})),o("span",{className:d.divider,style:null==L?void 0:L.divider}),o("button",e({className:d.actionButton,style:W("accept"),onMouseEnter:function(){return D("accept")},onMouseLeave:function(){return D(null)},onClick:function(){N&&C?C(null==z?void 0:z.id):V(U,null==z?void 0:z.id,"accept"),H(!1)}},{children:(null==j?void 0:j.accept)?j.accept:o(l,{size:F,color:null==L?void 0:L.thumbsUpIconColor,className:d.hw})}))]})),J&&o("div",e({className:d.deletedContainer,style:null==L?void 0:L.deletedContainer},{children:o("div",e({className:d.deletedText,style:null==L?void 0:L.deletedText},{children:J}))})),P&&o("div",e({className:d.changedContainer,style:null==L?void 0:L.changedContainer},{children:o("div",e({className:d.changedText,style:null==L?void 0:L.changedText},{children:P}))}))]}))};export{s as default};
|
|
2
2
|
//# sourceMappingURL=UpdatedAnimationContent.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as ReadFileCitationRenderer}from"./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js";export{default as 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};
|
|
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,hasUpdatedTagsInMarkdown,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":"ReadFileCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,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;AA+F7F,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;
|
|
1
|
+
{"version":3,"file":"ReadFileCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,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;AA+F7F,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;AA4TD,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA6ZnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -60,7 +60,9 @@ interface UserStoryWithCitationsProps {
|
|
|
60
60
|
aiReasoningDiffView?: TAIReasoning[];
|
|
61
61
|
userStoryCitations?: any;
|
|
62
62
|
isCraflow?: boolean;
|
|
63
|
+
onCraAccept?: (updatedId: string) => void;
|
|
64
|
+
onCraReject?: (updatedId: string) => void;
|
|
63
65
|
}
|
|
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;
|
|
66
|
+
declare const UserStoryWithCitations: ({ message, isParent, scenario, showUserStoryDiff, aiReasoningsForBlock, isCitationLoadingDisplay, className, highConfidenceIcon, lowConfidenceIcon, customStyles, customIcons, aiReasoningDiffView, userStoryCitations, artifactId, isCraflow, onCraAccept, onCraReject, }: UserStoryWithCitationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
65
67
|
export default UserStoryWithCitations;
|
|
66
68
|
//# 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,wBA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,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,iCAAiC,CAAC;IAEjD,WAAW,CAAC,EAAE,cAAc,CAAC;IAI7B,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,kBAAkB,CAAC,EAAE,GAAG,CAAC;IAKzB,SAAS,CAAC,EAAE,OAAO,CAAA;
|
|
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,CAAC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa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AAC,EAAE,kBAAkB,CAAC;IAClC,mBAAmB,CAAC,EAAE;QACpB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KACjC,CAAA;CACF;AAED,UAAU,2BAA2B;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,YAAY,EAAE,CAAC;IACtC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,iCAAiC,CAAC;IAEjD,WAAW,CAAC,EAAE,cAAc,CAAC;IAI7B,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,kBAAkB,CAAC,EAAE,GAAG,CAAC;IAKzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAmHD,QAAA,MAAM,sBAAsB,+QAczB,2BAA2B,4CA4Y7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useApprovalStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useApprovalStatus.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,gCAAgC,EAChC,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;AAM3C,UAAU,sBAAsB;IAC9B,oBAAoB,EAAE,qBAAqB,EAAE,CAAC;IAC9C,4BAA4B,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAChE,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,gCAAgC,CAAC;IAC5C,MAAM,EAAE,QAAQ,CAAC,6BAA6B,CAAC,CAAC;IAChD,eAAe,EAAE,CACf,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,qBAAqB,KACpC,IAAI,CAAC;CACX;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,gHAO3B,sBAAsB;;yCAMD,gBAAgB,SAC3B,MAAM,WACJ,MAAM,aACJ,MAAM;
|
|
1
|
+
{"version":3,"file":"useApprovalStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useApprovalStatus.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,gCAAgC,EAChC,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;AAM3C,UAAU,sBAAsB;IAC9B,oBAAoB,EAAE,qBAAqB,EAAE,CAAC;IAC9C,4BAA4B,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAChE,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,gCAAgC,CAAC;IAC5C,MAAM,EAAE,QAAQ,CAAC,6BAA6B,CAAC,CAAC;IAChD,eAAe,EAAE,CACf,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,qBAAqB,KACpC,IAAI,CAAC;CACX;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,gHAO3B,sBAAsB;;yCAMD,gBAAgB,SAC3B,MAAM,WACJ,MAAM,aACJ,MAAM;CA0FtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDiffEditReviewMode.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useDiffEditReviewMode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAsBtE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACjC,WAAW,EAAE,UAAU,EAAE,GAC1B,OAAO,CAUT"}
|
|
1
|
+
{"version":3,"file":"useDiffEditReviewMode.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useDiffEditReviewMode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAsBtE;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CASlE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACjC,WAAW,EAAE,UAAU,EAAE,GAC1B,OAAO,CAUT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReqAiCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/ReqAiCitationRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"ReqAiCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/ReqAiCitationRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAM5G,QAAA,MAAM,qBAAqB;UASnB,MAAM;;cAGF,GAAG;;;;MAIX,WAmNH,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -36,8 +36,10 @@ interface UpdatedAnimatedContentProps {
|
|
|
36
36
|
customStyles?: UpdatedAnimatedContentStyles;
|
|
37
37
|
customIcons?: UpdatedAnimatedContentIcons;
|
|
38
38
|
isCraflow?: boolean;
|
|
39
|
+
onCraAccept?: (updatedId: string) => void;
|
|
40
|
+
onCraReject?: (updatedId: string) => void;
|
|
39
41
|
[key: string]: any;
|
|
40
42
|
}
|
|
41
|
-
declare const UpdatedAnimatedContent: ({ isCraflow, showUserStoryDiff, currentUpdatedTagId, setCurrentUpdatedTagId, node, userStory, setUserStory, setAiReasoning, customStyles, customIcons, ...props }: UpdatedAnimatedContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare const UpdatedAnimatedContent: ({ isCraflow, onCraAccept, onCraReject, showUserStoryDiff, currentUpdatedTagId, setCurrentUpdatedTagId, node, userStory, setUserStory, setAiReasoning, customStyles, customIcons, ...props }: UpdatedAnimatedContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
44
|
export default UpdatedAnimatedContent;
|
|
43
45
|
//# sourceMappingURL=UpdatedAnimationContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdatedAnimationContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/UpdatedAnimationContent.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,WAAW,4BAA4B;IACzC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxC,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,WAAW,CAAC,EAAE,K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,GAAG,CAAC;CACtB;AAED,QAAA,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"UpdatedAnimationContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/UpdatedAnimationContent.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,WAAW,4BAA4B;IACzC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxC,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IACxC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,UAAU,2BAA2B;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACrE,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACjE,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,QAAA,MAAM,sBAAsB,gMAczB,2BAA2B,4CA0V7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -31,7 +31,7 @@ export type { GapFilterStyles } from "./features/RequirementAI/types/gapFilterSt
|
|
|
31
31
|
export type { IGetCitationsByBlock, BlockStreamItem, SetRedisParams, } from "./features/RequirementAI/types/streaming-block.type";
|
|
32
32
|
export { handleDiffEditApplied, handleDiscardAll, handleAcceptAllChanges } from "./features/RequirementAI/utils/diff-edit.utils";
|
|
33
33
|
export { GapFilterBlock } from "./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock";
|
|
34
|
-
export { useDiffEditReviewMode, hasAnyUpdatedTags } from "./features/RequirementAI/hooks/useDiffEditReviewMode";
|
|
34
|
+
export { useDiffEditReviewMode, hasAnyUpdatedTags, hasUpdatedTagsInMarkdown } from "./features/RequirementAI/hooks/useDiffEditReviewMode";
|
|
35
35
|
export { UserStoryCardWrapper } from "./features/RequirementAI/components/UserStoryCard/UserStoryCard";
|
|
36
36
|
export { default as FileCitationRender } from "./features/RequirementAI/components/citations/file-citation/FileCitationRender";
|
|
37
37
|
export { default as WebCitationWithImageRenderer } from "./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer";
|
|
@@ -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,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,yFAAyF,CAAC;AAC7I,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,CAAC;AACjH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