@e-llm-studio/requirement-ai 0.0.77 → 0.0.78

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.
Files changed (21) hide show
  1. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  6. package/dist/cjs/index.js +1 -1
  7. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  8. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  9. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  10. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  11. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  14. package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts +10 -0
  15. package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts.map +1 -1
  16. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.d.ts.map +1 -1
  17. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
  18. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts.map +1 -1
  19. package/dist/types/src/index.d.ts +1 -0
  20. package/dist/types/src/index.d.ts.map +1 -1
  21. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),i=require("./CitationRenderer.module.css.js");exports.default=function(o){var a=o.inLineCitation,s=o.citationTitle,r=o.citationIcon,l=o.chevronUpComponent,c=o.chevronDownComponent,u=o.additionalCallbackForPillButton,d=o.citationComponent,p=o.styles,v=void 0===p?{}:p,f=o.isOpen,_=o.onToggle,m=n.useState(!1),C=m[0],g=m[1],j=void 0!==f?f:C;return e.jsxs(e.Fragment,{children:[e.jsxs("span",t.__assign({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),u&&u(),_?_():void 0===f&&g(function(t){return!t})}(t)},className:i.default.pillButton,style:v.pillButton},{children:[r,e.jsx("span",t.__assign({style:v.citationTitle},{children:s})),a&&(j?l:c)]})),a&&j&&e.jsx("div",t.__assign({className:i.default.citationWrapper,style:v.citationWrapper},{children:e.jsx("div",t.__assign({className:i.default.citationContent,style:v.citationContent},{children:d}))}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),i=require("./CitationRenderer.module.css.js"),o=new Map;exports.collapseAllCitations=function(){o.clear()},exports.collapseCitationsByIds=function(t){t.forEach(function(t){return o.delete(t)})},exports.default=function(a){var s=a.inLineCitation,r=a.citationTitle,l=a.citationId,c=a.citationIcon,u=a.chevronUpComponent,d=a.chevronDownComponent,p=a.additionalCallbackForPillButton,f=a.citationComponent,v=a.styles,x=void 0===v?{}:v,C=a.isOpen,_=a.onToggle,g=a.defaultExpanded,h=void 0!==g&&g,m=void 0!==C,j=l||r,y=n.useState(function(){return j&&o.has(j)?o.get(j):h}),q=y[0],B=y[1],b=m?C:q;return e.jsxs(e.Fragment,{children:[e.jsxs("span",t.__assign({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),p&&p(),_?_():m||B(function(t){var e=!t;return j&&o.set(j,e),e})}(t)},className:i.default.pillButton,style:x.pillButton},{children:[c,e.jsx("span",t.__assign({style:x.citationTitle},{children:r})),s&&(b?u:d)]})),s&&b&&e.jsx("div",t.__assign({className:i.default.citationWrapper,style:x.citationWrapper},{children:e.jsx("div",t.__assign({className:i.default.citationContent,style:x.citationContent},{children:f}))}))]})};
2
2
  //# sourceMappingURL=CitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("./AiReasoningCitationContent.js"),n=require("react"),o=require("../../icons/CognitiveDecision.js"),s=require("../../../CitationRenderer/CitationRenderer.js"),r=function(){return i.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",style:{verticalAlign:"bottom",marginLeft:"1px"}},{children:i.jsx("polyline",{points:"18 15 12 9 6 15"})}))},l=function(){return i.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",style:{verticalAlign:"bottom",marginLeft:"1px"}},{children:i.jsx("polyline",{points:"6 9 12 15 18 9"})}))};exports.default=function(a){var c=a.isSourceHasHighlight,u=a.aiReason,d=a.citationTitle,f=void 0===d?"":d,g=a.customStyles,p=a.customIcons,x=a.onSelectProceed,h=a.isDisableProceedButton,v=n.useState((null==u?void 0:u.isOpen)||c||!1),m=v[0],j=v[1],C=(null==p?void 0:p.highConfidence)||i.jsx(o.default,{});return i.jsx(s.default,{inLineCitation:!0,isOpen:m,onToggle:function(){j(!m)},citationTitle:f,citationIcon:C,citationComponent:i.jsx(t.default,{aiReason:u,customStyles:g,customIcons:p,onSelectProceed:x,isDisableProceedButton:h}),chevronDownComponent:i.jsx(l,{}),chevronUpComponent:i.jsx(r,{}),styles:{pillButton:e.__assign({margin:"0px",padding:"4px 8px",fontSize:"15px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"flex-end",background:"#ffffffff",fontWeight:"700",gap:"1.5px",border:"none"},null==g?void 0:g.aiReasoningPill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("./AiReasoningCitationContent.js"),n=require("../../icons/CognitiveDecision.js"),o=require("../../../CitationRenderer/CitationRenderer.js"),s=function(){return i.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",style:{verticalAlign:"bottom",marginLeft:"1px"}},{children:i.jsx("polyline",{points:"18 15 12 9 6 15"})}))},r=function(){return i.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",style:{verticalAlign:"bottom",marginLeft:"1px"}},{children:i.jsx("polyline",{points:"6 9 12 15 18 9"})}))};exports.default=function(l){var a=l.isSourceHasHighlight,c=l.aiReason,d=l.citationTitle,u=void 0===d?"":d,f=l.customStyles,p=l.customIcons,g=l.onSelectProceed,x=l.isDisableProceedButton,h=(null==p?void 0:p.highConfidence)||i.jsx(n.default,{});return i.jsx(o.default,{inLineCitation:!0,citationId:"ai-reasoning-".concat(c.id),citationTitle:u,citationIcon:h,defaultExpanded:(null==c?void 0:c.isOpen)||a||!1,citationComponent:i.jsx(t.default,{aiReason:c,customStyles:f,customIcons:p,onSelectProceed:g,isDisableProceedButton:x}),chevronDownComponent:i.jsx(r,{}),chevronUpComponent:i.jsx(s,{}),styles:{pillButton:e.__assign({margin:"0px",padding:"4px 8px",fontSize:"15px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"flex-end",background:"#ffffffff",fontWeight:"700",gap:"1.5px",border:"none"},null==f?void 0:f.aiReasoningPill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
2
2
  //# sourceMappingURL=AiReasoningCitation.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("react"),i=require("react-dom"),r=require("monaco-editor"),a=require("./ReadFileCitationContent.module.css.js"),l=require("./icons/ExternalLinkIcon.js"),o=require("lucide-react"),s=require("./CustomFileIcon.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(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 d=u(i),f=c(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 h=!1,m=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),f.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}};m(),"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)},v=function(e,n){return g(e)&&g(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},p=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]},b=function(e,n,t,i){if(0===e.length)return!1;var r=v(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})))},y={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)"},x={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"},j=function(e){return _[e.toLowerCase()]||e},C=function(i){var r=i.code,l=i.language,o=i.theme,s=i.fontSize,u=i.fontFamily,c=i.height,d=i.yellowHighlightRanges,h=i.backgroundColor,g=i.editorWrapperStyle,v=i.lineNumberOffset,p=void 0===v?0:v,b=i.lineNumberDigits,y=t.useRef(null),x=t.useRef(null),_=t.useRef(!1);return t.useEffect(function(){_.current=!1,m();var e=setTimeout(function(){var e=y.current;if(e&&!_.current&&!x.current)try{f.editor.setTheme(o);var n=f.editor.create(e,{value:r,language:j(l),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:s,lineHeight:20,fontFamily:u,lineNumbers:function(e){return String(e+p)},folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,null!=b?b: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});x.current=n;var t=[];d.forEach(function(e){var n=e[0],i=e[1];t.push({range:new f.Range(n,1,i,1),options:{isWholeLine:!0,className:a.default.yellowHighlightedLine,linesDecorationsClassName:a.default.yellowHighlightedLineDecoration}})}),t.length>0&&n.createDecorationsCollection(t);var i=d[0];i&&requestAnimationFrame(function(){!_.current&&x.current&&n.revealLineInCenter(i[0])})}catch(e){}},50);return function(){if(_.current=!0,clearTimeout(e),x.current){try{x.current.dispose()}catch(e){}x.current=null}}},[]),t.useEffect(function(){try{f.editor.setTheme(o)}catch(e){}},[o]),n.jsx("div",e.__assign({className:a.default.editorWrapper,style:e.__assign({height:"".concat(c,"px"),backgroundColor:h},g)},{children:n.jsx("div",{ref:y,style:{width:"100%",height:"100%"}})}))};exports.default=function(i){var r=i.citation,u=i.customStyles,c=i.customColors,f=i.customIcons,h=i.editorConfig,m=i.fileCallback,_=t.useMemo(function(){return e.__assign(e.__assign({},y),c)},[c]),j=t.useMemo(function(){return e.__assign(e.__assign({},x),h)},[h]),N=t.useState(!1),M=N[0],w=N[1],k=t.useRef(null),O=t.useRef(!1),F=r.customMetadata.content||"",S=r.customMetadata.highlighted_text,L=r.customMetadata.start_line,E=r.customMetadata.end_line,P=g(L)?L+1:L,R=t.useMemo(function(){if(!S)return{};try{var e=S.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),{}}},[S]),T=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(F));){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},[F]),B=t.useCallback(function(e){return(R[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})},[R]),z=t.useMemo(function(){for(var e=function(e){var n=T[e],t=n.code.split("\n").length,i=B(n.filePath),r=b(i,t,P,E);if(i.map(function(e){return p(e,t,r?P:void 0,r?E:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<T.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[T,B,P,E]),W=z>=0,H=t.useCallback(function(e,n){var t=B(e),i=b(t,n,P,E);return t.map(function(e){return p(e,n,i?P:void 0,i?E:void 0)}).filter(function(e){return null!==e})},[B,P,E]),q=t.useCallback(function(e,n){var t=B(e);if(b(t,n,P,E)){var i=v(P,E);return i?t.map(function(e){var n=e[0],t=e[1],r=n<=t?[n,t]:[t,n],a=Math.max(r[0],i.start),l=Math.min(r[1],i.end);return a>l?null:[a,l]}).filter(function(e){return null!==e}):[]}return H(e,n)},[B,H,P,E]);t.useEffect(function(){if(W&&!O.current&&T.length>0&&(null==m?void 0:m.autoOpenFirstHighlighted)&&(null==m?void 0:m.onOpenFile)){var e=T[z],n=q(e.filePath,e.code.split("\n").length);O.current=!0;var t=setTimeout(function(){m.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[W,z,T,H,m]),t.useEffect(function(){O.current=!1},[F]),t.useEffect(function(){if(!(z<0)){var e=setTimeout(function(){var e;null===(e=k.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[z,S]);var D=t.useCallback(function(e,n){if(null==m?void 0:m.onOpenFile){var t=q(e,n);m.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[q,m]),I=t.useCallback(function(){(null==m?void 0:m.onExpandClick)?m.onExpandClick({blocks:T,highlightMap:R}):w(!0)},[m,T,R]),G=!!(null==m?void 0:m.onOpenFile),A=(null==f?void 0:f.readFileCitationIcon)||n.jsx(l.default,{style:{width:"14px",height:"14px"}}),J=function(t){return T.map(function(i,r){var l,s,c=i.code.split("\n").length,d=B(i.filePath),f=b(d,c,P,E),h=d.map(function(e){return p(e,c,f?P:void 0,f?E:void 0)}).filter(function(e){return null!==e}),m=f&&g(P)?h.map(function(e){var n=e[0],t=e[1];return[n+P-1,t+P-1]}):h,v=h.length>0,y=r===z,x=t?600:j.maxHeight,N=(l=20*i.code.split("\n").length+16+4,Math.min(Math.max(l,j.minHeight),x)),M=i.filePath.split("/").pop(),w=f&&g(P)?P-1:0,O=w+c,F=String(Math.max(1,O)).length;return n.jsxs("div",e.__assign({ref:!t&&y?k:void 0,"data-highlighted":v?"true":void 0,"data-first-highlighted":y?"true":void 0,className:a.default.blockContainer,style:e.__assign({border:"1px solid ".concat(_.border)},null==u?void 0:u.blockContainer)},{children:[n.jsxs("div",e.__assign({className:a.default.header,style:e.__assign({backgroundColor:v?_.highlightBg:_.headerBg,borderBottom:"1px solid ".concat(_.border),color:v?_.highlightGutter:_.foreground},v?null==u?void 0:u.headerHighlighted:null==u?void 0:u.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==u?void 0:u.fileName,onClick:function(){return D(i.filePath,c)}},{children:M})),G&&n.jsx("button",e.__assign({className:a.default.openFileButton,onClick:function(){return D(i.filePath,c)},title:"Open in editor","aria-label":"Open ".concat(M," in editor"),style:null==u?void 0:u.openFileButton},{children:A}))]})),n.jsxs("div",e.__assign({className:a.default.headerRight},{children:[v&&n.jsx("span",e.__assign({className:a.default.lineRanges,style:null==u?void 0:u.lineRanges},{children:(s=m,s.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==u?void 0:u.expandButton,onClick:I,title:"Expand","aria-label":"Expand code view"},{children:n.jsx(o.Maximize2,{size:13})}))]}))]})),n.jsx(C,{code:i.code,language:i.language,theme:j.theme,fontSize:j.fontSize,fontFamily:j.fontFamily,height:N,yellowHighlightRanges:h,backgroundColor:_.background,editorWrapperStyle:null==u?void 0:u.editorWrapper,lineNumberOffset:w,lineNumberDigits:F})]}),r)})};if(0===T.length)return n.jsx("div",e.__assign({className:a.default.emptyState,style:e.__assign({color:_.inactiveText},null==u?void 0:u.emptyState)},{children:"No code content available"}));var V=M?d.default.createPortal(n.jsx("div",e.__assign({className:a.default.modalOverlay,style:null==u?void 0:u.modalOverlay,onClick:function(e){e.target===e.currentTarget&&w(!1)}},{children:n.jsxs("div",e.__assign({className:a.default.modalContent,style:null==u?void 0:u.modalContent},{children:[n.jsxs("div",e.__assign({className:a.default.modalHeader,style:null==u?void 0:u.modalHeader},{children:[n.jsx("span",e.__assign({className:a.default.modalTitle,style:null==u?void 0:u.modalTitle},{children:1===T.length?n.jsxs("span",e.__assign({className:a.default.modalTitleContent},{children:[n.jsx(s.default,{name:T[0].filePath,size:"15px"}),n.jsx("span",e.__assign({className:a.default.modalTitleText},{children:T[0].filePath}))]})):"".concat(T.length," files")})),n.jsx("button",e.__assign({className:a.default.modalCloseButton,style:null==u?void 0:u.modalCloseButton,onClick:function(){return w(!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==u?void 0:u.container},{children:J(!0)}))}))]}))})),document.body):null;return n.jsxs(n.Fragment,{children:[V,n.jsx("div",e.__assign({className:a.default.container,style:null==u?void 0:u.container},{children:J(!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"),a=require("@monaco-editor/react"),l=require("./ReadFileCitationContent.module.css.js"),r=require("./icons/ExternalLinkIcon.js"),o=require("lucide-react"),s=require("./CustomFileIcon.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(i),d=u(a),h=function(e){return"number"==typeof e&&Number.isFinite(e)},f=function(e,n){return h(e)&&h(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},m=function(e,n,t,i){var a,l=e[0],r=e[1];if(!Number.isFinite(l)||!Number.isFinite(r))return null;if(r<l&&(l=(a=[r,l])[0],r=a[1]),h(t)&&h(i)){var o=Math.max(l,t),s=Math.min(r,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 m=Math.max(1,l),g=Math.min(n,r);return m>g?null:[m,g]},g=function(e,n,t,i){if(0===e.length)return!1;var a=f(t,i);return!!a&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(a.start>n||a.end>n||Math.abs(a.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<a.start||n>a.end})))},v={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)"},p={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"};exports.default=function(i){var a=i.citation,u=i.customStyles,x=i.customColors,b=i.customIcons,y=i.editorConfig,j=i.fileCallback,C=t.useMemo(function(){return e.__assign(e.__assign({},v),x)},[x]),N=t.useMemo(function(){return e.__assign(e.__assign({},p),y)},[y]),M=t.useState(!1),k=M[0],F=M[1],w=t.useRef(null),S=t.useRef(!1),O=a.customMetadata.content||"",L=a.customMetadata.highlighted_text,B=a.customMetadata.start_line,P=a.customMetadata.end_line,T=h(B)?B+1:B,q=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]),H=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",a=e[2].trim(),l=e[3].trim();a&&l&&n.push({filePath:a,code:l,language:i})}return n},[O]),z=t.useCallback(function(e){return(q[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})},[q]),R=t.useMemo(function(){for(var e=function(e){var n=H[e],t=n.code.split("\n").length,i=z(n.filePath),a=g(i,t,T,P);if(i.map(function(e){return m(e,t,a?T:void 0,a?P:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<H.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[H,z,T,P]),E=R>=0,W=t.useCallback(function(e,n){var t=z(e),i=g(t,n,T,P);return t.map(function(e){return m(e,n,i?T:void 0,i?P:void 0)}).filter(function(e){return null!==e})},[z,T,P]),I=t.useCallback(function(e,n){var t=z(e);if(g(t,n,T,P)){var i=f(T,P);return i?t.map(function(e){var n=e[0],t=e[1],a=n<=t?[n,t]:[t,n],l=Math.max(a[0],i.start),r=Math.min(a[1],i.end);return l>r?null:[l,r]}).filter(function(e){return null!==e}):[]}return W(e,n)},[z,W,T,P]);t.useEffect(function(){if(E&&!S.current&&H.length>0&&(null==j?void 0:j.autoOpenFirstHighlighted)&&(null==j?void 0:j.onOpenFile)){var e=H[R],n=I(e.filePath,e.code.split("\n").length);S.current=!0;var t=setTimeout(function(){j.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[E,R,H,W,j]),t.useEffect(function(){S.current=!1},[O]),t.useEffect(function(){if(!(R<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)}}},[R,L]);var D=t.useCallback(function(e,n){if(null==j?void 0:j.onOpenFile){var t=I(e,n);j.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[I,j]),G=t.useCallback(function(){(null==j?void 0:j.onExpandClick)?j.onExpandClick({blocks:H,highlightMap:q}):F(!0)},[j,H,q]),A=!!(null==j?void 0:j.onOpenFile),J=(null==b?void 0:b.readFileCitationIcon)||n.jsx(r.default,{style:{width:"14px",height:"14px"}}),V=t.useCallback(function(e,n,t,i){var a=[];if(t.forEach(function(e){var t=e[0],i=e[1];a.push({range:new n.Range(t,1,i,1),options:{isWholeLine:!0,className:l.default.yellowHighlightedLine,linesDecorationsClassName:l.default.yellowHighlightedLineDecoration}})}),a.length>0)try{e.createDecorationsCollection(a)}catch(e){console.warn("Failed to create decorations:",e)}var r=t[0];r&&requestAnimationFrame(function(){e.revealLineInCenter(r[0])}),i>0&&e.updateOptions({lineNumbers:function(e){return String(e+i)}})},[]),X=function(t){return H.map(function(i,a){var r,s,c,f=i.code.split("\n").length,v=z(i.filePath),p=g(v,f,T,P),x=v.map(function(e){return m(e,f,p?T:void 0,p?P:void 0)}).filter(function(e){return null!==e}),b=p&&h(T)?x.map(function(e){var n=e[0],t=e[1];return[n+T-1,t+T-1]}):x,y=x.length>0,j=a===R,M=t?600:N.maxHeight,k=(r=20*i.code.split("\n").length+16+4,Math.min(Math.max(r,N.minHeight),M)),F=i.filePath.split("/").pop(),S=p&&h(T)?T-1:0,O=S+f,L=String(Math.max(1,O)).length;return n.jsxs("div",e.__assign({ref:!t&&j?w:void 0,"data-highlighted":y?"true":void 0,"data-first-highlighted":j?"true":void 0,className:l.default.blockContainer,style:e.__assign({border:"1px solid ".concat(C.border)},null==u?void 0:u.blockContainer)},{children:[n.jsxs("div",e.__assign({className:l.default.header,style:e.__assign({backgroundColor:y?C.highlightBg:C.headerBg,borderBottom:"1px solid ".concat(C.border),color:y?C.highlightGutter:C.foreground},y?null==u?void 0:u.headerHighlighted:null==u?void 0:u.header)},{children:[n.jsxs("div",e.__assign({className:l.default.headerLeft},{children:[n.jsx("span",e.__assign({className:l.default.fileName,title:i.filePath,style:null==u?void 0:u.fileName,onClick:function(){return D(i.filePath,f)}},{children:F})),A&&n.jsx("button",e.__assign({className:l.default.openFileButton,onClick:function(){return D(i.filePath,f)},title:"Open in editor","aria-label":"Open ".concat(F," in editor"),style:null==u?void 0:u.openFileButton},{children:J}))]})),n.jsxs("div",e.__assign({className:l.default.headerRight},{children:[y&&n.jsx("span",e.__assign({className:l.default.lineRanges,style:null==u?void 0:u.lineRanges},{children:(c=b,c.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:l.default.expandButton,style:null==u?void 0:u.expandButton,onClick:G,title:"Expand","aria-label":"Expand code view"},{children:n.jsx(o.Maximize2,{size:13})}))]}))]})),n.jsx("div",e.__assign({className:l.default.editorWrapper,style:e.__assign({height:"".concat(k,"px"),backgroundColor:C.background},null==u?void 0:u.editorWrapper)},{children:n.jsx(d.default,{height:"100%",language:(s=i.language,_[s.toLowerCase()]||s),value:i.code,theme:N.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:N.fontSize,lineHeight:20,fontFamily:N.fontFamily,lineNumbers:S>0?function(e){return String(e+S)}:"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,L),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},onMount:function(e,n){return V(e,n,x,S)},loading:n.jsx("div",e.__assign({className:l.default.editorLoading,style:{color:C.inactiveText}},{children:"Loading editor..."}))})}))]}),a)})};if(0===H.length)return n.jsx("div",e.__assign({className:l.default.emptyState,style:e.__assign({color:C.inactiveText},null==u?void 0:u.emptyState)},{children:"No code content available"}));var $=k?c.default.createPortal(n.jsx("div",e.__assign({className:l.default.modalOverlay,style:null==u?void 0:u.modalOverlay,onClick:function(e){e.target===e.currentTarget&&F(!1)}},{children:n.jsxs("div",e.__assign({className:l.default.modalContent,style:null==u?void 0:u.modalContent},{children:[n.jsxs("div",e.__assign({className:l.default.modalHeader,style:null==u?void 0:u.modalHeader},{children:[n.jsx("span",e.__assign({className:l.default.modalTitle,style:null==u?void 0:u.modalTitle},{children:1===H.length?n.jsxs("span",e.__assign({className:l.default.modalTitleContent},{children:[n.jsx(s.default,{name:H[0].filePath,size:"15px"}),n.jsx("span",e.__assign({className:l.default.modalTitleText},{children:H[0].filePath}))]})):"".concat(H.length," files")})),n.jsx("button",e.__assign({className:l.default.modalCloseButton,style:null==u?void 0:u.modalCloseButton,onClick:function(){return F(!1)},"aria-label":"Close expanded view"},{children:n.jsx(o.X,{size:16})}))]})),n.jsx("div",e.__assign({className:l.default.modalBody},{children:n.jsx("div",e.__assign({className:l.default.container,style:null==u?void 0:u.container},{children:X(!0)}))}))]}))})),document.body):null;return n.jsxs(n.Fragment,{children:[$,n.jsx("div",e.__assign({className:l.default.container,style:null==u?void 0:u.container},{children:X(!1)}))]})};
2
2
  //# sourceMappingURL=ReadFileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("../../../../CitationRenderer/CitationRenderer.js"),n=require("./icons/FileCodeIcon.js"),o=require("./ReadFileCitationContent.js");exports.default=function(r){var a=r.title,l=r.citation,s=r.customStyles,c=r.customColors,u=r.customIcons,d=r.editorConfig,p=r.fileCallback,m=(null==u?void 0:u.readFileCitationIcon)||t.jsx(n.default,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),C=a+"⁠";return t.jsx(i.default,{inLineCitation:!0,citationTitle:C,citationIcon:t.jsx(t.Fragment,{}),citationComponent:t.jsx(o.default,{citation:l,customStyles:s,customColors:c,customIcons:u,editorConfig:d,fileCallback:p}),chevronDownComponent:m,chevronUpComponent:m,styles:{pillButton:e.__assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("../../../../CitationRenderer/CitationRenderer.js"),n=require("./icons/FileCodeIcon.js"),o=require("./ReadFileCitationContent.js");exports.default=function(r){var a=r.title,l=r.citation,s=r.customStyles,c=r.customColors,u=r.customIcons,d=r.editorConfig,p=r.fileCallback,m=(null==u?void 0:u.readFileCitationIcon)||t.jsx(n.default,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),C=a+"⁠";return t.jsx(i.default,{inLineCitation:!0,citationTitle:C,citationId:"readfile-".concat(l.citation_number),citationIcon:t.jsx(t.Fragment,{}),citationComponent:t.jsx(o.default,{citation:l,customStyles:s,customColors:c,customIcons:u,editorConfig:d,fileCallback:p}),chevronDownComponent:m,chevronUpComponent:m,styles:{pillButton:e.__assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
2
2
  //# sourceMappingURL=ReadFileCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),o=require("react/jsx-runtime"),e=require("react"),l=require("./ContentBlock.module.css.js"),t=require("../../../../icons/CheckIcon.js"),i=require("../../../../icons/PencilIcon.js"),d=require("../../../../icons/TrashIcon.js"),c=require("../../UserStoryApprovalContext.js"),v=require("../../../RequirementAIWrapper/RequirementAIWrapper.js"),a=function(a){var s,u,r,p,g,_,S,m,y,b,f,x,k,C,B,h,j,I,A,N,q,T,w,D,E,R,M,W,z,U,F,P,V,H,L,O,G,J,K,Q,X,Y,Z,$,nn,on,en,ln,tn,dn,cn,vn,an,sn,un,rn,pn,gn,_n,Sn,mn,yn,bn,fn,xn,kn,Cn,Bn,hn,jn,In,An,Nn,qn,Tn,wn,Dn,En,Rn,Mn,Wn=a.segment,zn=a.segmentIndex,Un=a.isSubFeature,Fn=void 0!==Un&&Un,Pn=a.onSaveContent,Vn=a.onApproveContent,Hn=a.onDeleteContent,Ln=a.EditorComponent,On=a.ViewerComponent,Gn=c.useUserStoryApprovalScreen(),Jn=Gn.currentContentId,Kn=Gn.handleUpdateContentId,Qn=Gn.isDisabled,Xn=Gn.isEditingSegment,Yn=Gn.setIsEditingSegment,Zn=Gn.config,$n=Gn.labels,no=Gn.showNotification,oo=v.useRequirementAI(),eo=oo.customStyles,lo=oo.customIcons,to=e.useState(!1),io=to[0],co=to[1],vo=e.useRef(Wn.content),ao=e.useRef(null),so=e.useState(0),uo=so[0],ro=so[1],po=Wn.contentId===Jn,go=e.useCallback(function(){if(ao.current){var n=ao.current;n.style.scrollMarginTop="".concat(90,"px"),n.scrollIntoView({behavior:"smooth",block:"start"})}},[]);e.useEffect(function(){if(0!==uo){var n=setTimeout(function(){go()},150);return function(){return clearTimeout(n)}}},[uo,go]),e.useEffect(function(){vo.current=Wn.content},[Wn.content]);var _o=e.useCallback(function(){vo.current=Wn.content,co(!0),Yn(!0),ro(function(n){return n+1})},[Wn.content,Yn]),So=e.useCallback(function(){vo.current=Wn.content,co(!1),Yn(!1)},[Wn.content,Yn]),mo=e.useCallback(function(n,o){vo.current=o},[]),yo=e.useCallback(function(){var n=vo.current;(null==n?void 0:n.trim())?(co(!1),Yn(!1),Pn(zn,n)):no("warn","Warning!",$n.emptyContentWarning,3e3)},[zn,Pn,Yn,no,$n.emptyContentWarning]),bo=e.useCallback(function(){Vn(zn),Kn(Wn.contentId)},[zn,Wn.contentId,Vn,Kn]),fo=e.useCallback(function(){null==Hn||Hn(zn)},[zn,Hn]),xo=[l.default.container,po?l.default.containerActive:l.default.containerDefault].join(" "),ko=null===(r=null===(u=null===(s=null==eo?void 0:eo.approvalScreen)||void 0===s?void 0:s.body)||void 0===u?void 0:u.contentSegment)||void 0===r?void 0:r.contentBlock,Co=po?(null==ko?void 0:ko.currentSegementContainer)||{boxShadow:"0px 4px 14.3px 0px rgba(151, 71, 255, 0.3), 0px -4px 34.7px 0px rgba(51, 210, 255, 0.05)"}:(null==ko?void 0:ko.containerDefault)||{};return o.jsxs("div",n.__assign({className:xo,style:Co,ref:ao},{children:[Wn.isApproved&&o.jsxs("div",n.__assign({className:l.default.approvedBadge,style:n.__assign({},null===(S=null===(_=null===(g=null===(p=null==eo?void 0:eo.approvalScreen)||void 0===p?void 0:p.body)||void 0===g?void 0:g.contentSegment)||void 0===_?void 0:_.contentBlock)||void 0===S?void 0:S.approvedBadge)},{children:[o.jsx("span",{children:$n.approved}),o.jsx(t.CheckIcon,{size:16,color:null===(f=null===(b=null===(y=null===(m=null==eo?void 0:eo.approvalScreen)||void 0===m?void 0:m.body)||void 0===y?void 0:y.contentSegment)||void 0===b?void 0:b.contentBlock)||void 0===f?void 0:f.checkIconColor})]})),o.jsx("div",n.__assign({className:l.default.contentArea,style:n.__assign({},null===(B=null===(C=null===(k=null===(x=null==eo?void 0:eo.approvalScreen)||void 0===x?void 0:x.body)||void 0===k?void 0:k.contentSegment)||void 0===C?void 0:C.contentBlock)||void 0===B?void 0:B.contentArea)},{children:io&&Ln?o.jsx(Ln,{minHeight:"100%",height:"100%",type:"string",value:Wn.content||"",handleUpdateState:mo,doNotShowBorderInViewMode:!1,mode:"edit"}):On?o.jsx(On,{message:Wn.content||"",scenario:"approving",customStyles:n.__assign({},null===(h=null==eo?void 0:eo.userStoryScreenStyles)||void 0===h?void 0:h.userStoryContentStyles),customIcons:n.__assign({},null==lo?void 0:lo.userStoryIcons)}):o.jsx("div",{className:l.default.contentFallback,dangerouslySetInnerHTML:{__html:Wn.content||""}})})),io?o.jsxs("div",n.__assign({className:l.default.editActionsContainer,style:n.__assign({},null===(fn=null===(bn=null===(yn=null===(mn=null==eo?void 0:eo.approvalScreen)||void 0===mn?void 0:mn.body)||void 0===yn?void 0:yn.contentSegment)||void 0===bn?void 0:bn.contentBlock)||void 0===fn?void 0:fn.editActionsContainer)},{children:[o.jsx("button",n.__assign({onClick:So,className:l.default.outlineButton,style:n.__assign(n.__assign({},null===(Bn=null===(Cn=null===(kn=null===(xn=null==eo?void 0:eo.approvalScreen)||void 0===xn?void 0:xn.body)||void 0===kn?void 0:kn.contentSegment)||void 0===Cn?void 0:Cn.contentBlock)||void 0===Bn?void 0:Bn.outlineButton),null===(An=null===(In=null===(jn=null===(hn=null==eo?void 0:eo.approvalScreen)||void 0===hn?void 0:hn.body)||void 0===jn?void 0:jn.contentSegment)||void 0===In?void 0:In.contentBlock)||void 0===An?void 0:An.cancelButton)},{children:$n.cancel})),o.jsx("button",n.__assign({onClick:yo,className:l.default.outlineButton,style:n.__assign(n.__assign({},null===(wn=null===(Tn=null===(qn=null===(Nn=null==eo?void 0:eo.approvalScreen)||void 0===Nn?void 0:Nn.body)||void 0===qn?void 0:qn.contentSegment)||void 0===Tn?void 0:Tn.contentBlock)||void 0===wn?void 0:wn.outlineButton),null===(Mn=null===(Rn=null===(En=null===(Dn=null==eo?void 0:eo.approvalScreen)||void 0===Dn?void 0:Dn.body)||void 0===En?void 0:En.contentSegment)||void 0===Rn?void 0:Rn.contentBlock)||void 0===Mn?void 0:Mn.saveButton)},{children:$n.save}))]})):o.jsx("div",n.__assign({className:l.default.actionsContainer,style:n.__assign({},null===(N=null===(A=null===(I=null===(j=null==eo?void 0:eo.approvalScreen)||void 0===j?void 0:j.body)||void 0===I?void 0:I.contentSegment)||void 0===A?void 0:A.contentBlock)||void 0===N?void 0:N.actionsContainer)},{children:o.jsxs("div",n.__assign({className:l.default.actionsRow,style:n.__assign({},null===(D=null===(w=null===(T=null===(q=null==eo?void 0:eo.approvalScreen)||void 0===q?void 0:q.body)||void 0===T?void 0:T.contentSegment)||void 0===w?void 0:w.contentBlock)||void 0===D?void 0:D.actionsRow)},{children:[!Xn&&Zn.allowEditing&&o.jsxs("button",n.__assign({onClick:_o,className:l.default.actionButton,style:n.__assign({},null===(W=null===(M=null===(R=null===(E=null==eo?void 0:eo.approvalScreen)||void 0===E?void 0:E.body)||void 0===R?void 0:R.contentSegment)||void 0===M?void 0:M.contentBlock)||void 0===W?void 0:W.actionButton)},{children:[o.jsx("span",n.__assign({className:l.default.actionText,style:n.__assign({},null===(P=null===(F=null===(U=null===(z=null==eo?void 0:eo.approvalScreen)||void 0===z?void 0:z.body)||void 0===U?void 0:U.contentSegment)||void 0===F?void 0:F.contentBlock)||void 0===P?void 0:P.actionText)},{children:$n.correctMe})),o.jsx(i.PencilIcon,{size:16,color:(null===(O=null===(L=null===(H=null===(V=null==eo?void 0:eo.approvalScreen)||void 0===V?void 0:V.body)||void 0===H?void 0:H.contentSegment)||void 0===L?void 0:L.contentBlock)||void 0===O?void 0:O.pencilIcon)||"#5928ED"})]})),!Wn.isApproved&&o.jsxs("button",n.__assign({disabled:Qn,onClick:bo,style:n.__assign({},null===(Q=null===(K=null===(J=null===(G=null==eo?void 0:eo.approvalScreen)||void 0===G?void 0:G.body)||void 0===J?void 0:J.contentSegment)||void 0===K?void 0:K.contentBlock)||void 0===Q?void 0:Q.approveButton),className:"".concat(l.default.actionButton," ").concat(Qn?l.default.actionDisabled:"")},{children:[o.jsx("span",n.__assign({className:(null==ko?void 0:ko.approveText)?"":Qn?l.default.actionTextDisabled:l.default.actionText,style:n.__assign({},null==ko?void 0:ko.approveText)},{children:$n.approve})),o.jsx("span",n.__assign({style:n.__assign({},null===($=null===(Z=null===(Y=null===(X=null==eo?void 0:eo.approvalScreen)||void 0===X?void 0:X.body)||void 0===Y?void 0:Y.contentSegment)||void 0===Z?void 0:Z.contentBlock)||void 0===$?void 0:$.approveIconStyle)},{children:o.jsx(t.CheckIcon,{size:16,color:Qn?(null===(ln=null===(en=null===(on=null===(nn=null==eo?void 0:eo.approvalScreen)||void 0===nn?void 0:nn.body)||void 0===on?void 0:on.contentSegment)||void 0===en?void 0:en.contentBlock)||void 0===ln?void 0:ln.disableApproveIconColor)||"#9CA3AF":(null===(vn=null===(cn=null===(dn=null===(tn=null==eo?void 0:eo.approvalScreen)||void 0===tn?void 0:tn.body)||void 0===dn?void 0:dn.contentSegment)||void 0===cn?void 0:cn.contentBlock)||void 0===vn?void 0:vn.approveIconColor)||"#5928ED"})}))]})),Fn&&Zn.allowDeletion&&o.jsxs("button",n.__assign({onClick:fo,className:l.default.deleteButton,style:n.__assign({},null===(rn=null===(un=null===(sn=null===(an=null==eo?void 0:eo.approvalScreen)||void 0===an?void 0:an.body)||void 0===sn?void 0:sn.contentSegment)||void 0===un?void 0:un.contentBlock)||void 0===rn?void 0:rn.deleteButton)},{children:[o.jsx("span",{children:$n.delete}),o.jsx(d.TrashIcon,{size:16,color:(null===(Sn=null===(_n=null===(gn=null===(pn=null==eo?void 0:eo.approvalScreen)||void 0===pn?void 0:pn.body)||void 0===gn?void 0:gn.contentSegment)||void 0===_n?void 0:_n.contentBlock)||void 0===Sn?void 0:Sn.deleteIconColor)||"#ed3f28"})]}))]}))}))]}))};exports.ContentBlock=a,exports.default=a;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),o=require("react/jsx-runtime"),e=require("react"),l=require("./ContentBlock.module.css.js"),t=require("../../../../icons/CheckIcon.js"),i=require("../../../../icons/PencilIcon.js"),d=require("../../../../icons/TrashIcon.js"),c=require("../../UserStoryApprovalContext.js"),v=require("../../../RequirementAIWrapper/RequirementAIWrapper.js"),a=function(a){var s,u,r,p,g,_,m,S,f,y,b,x,k,C,B,h,j,I,A,N,T,q,w,D,E,R,M,W,z,U,V,F,P,H,L,O,G,J,K,Q,X,Y,Z,$,nn,on,en,ln,tn,dn,cn,vn,an,sn,un,rn,pn,gn,_n,mn,Sn,fn,yn,bn,xn,kn,Cn,Bn,hn,jn,In,An,Nn,Tn,qn,wn,Dn,En,Rn,Mn,Wn=a.segment,zn=a.segmentIndex,Un=a.isSubFeature,Vn=void 0!==Un&&Un,Fn=a.onSaveContent,Pn=a.onApproveContent,Hn=a.onDeleteContent,Ln=a.EditorComponent,On=a.ViewerComponent,Gn=c.useUserStoryApprovalScreen(),Jn=Gn.currentContentId,Kn=Gn.handleUpdateContentId,Qn=Gn.isDisabled,Xn=Gn.isEditingSegment,Yn=Gn.setIsEditingSegment,Zn=Gn.config,$n=Gn.labels,no=Gn.showNotification,oo=v.useRequirementAI(),eo=oo.customStyles,lo=oo.customIcons,to=e.useState(!1),io=to[0],co=to[1],vo=e.useRef(Wn.content),ao=e.useRef(null),so=e.useState(0),uo=so[0],ro=so[1],po=Wn.contentId===Jn,go=e.useCallback(function(){if(ao.current){var n=ao.current;n.style.scrollMarginTop="".concat(90,"px"),n.scrollIntoView({behavior:"smooth",block:"start"})}},[]),_o=e.useCallback(function(){if(ao.current){var n=ao.current;n.style.scrollMarginBottom="".concat(90,"px"),n.scrollIntoView({behavior:"smooth",block:"end"})}},[]);e.useEffect(function(){if(po&&ao.current&&!io){var n=setTimeout(function(){_o()},200);return function(){return clearTimeout(n)}}},[Jn,po,io,_o]),e.useEffect(function(){if(0!==uo){var n=setTimeout(function(){go()},150);return function(){return clearTimeout(n)}}},[uo,go]),e.useEffect(function(){vo.current=Wn.content},[Wn.content]);var mo=e.useCallback(function(){vo.current=Wn.content,co(!0),Yn(!0),ro(function(n){return n+1})},[Wn.content,Yn]),So=e.useCallback(function(){vo.current=Wn.content,co(!1),Yn(!1)},[Wn.content,Yn]),fo=e.useCallback(function(n,o){vo.current=o},[]),yo=e.useCallback(function(){var n=vo.current;(null==n?void 0:n.trim())?(co(!1),Yn(!1),Fn(zn,n)):no("warn","Warning!",$n.emptyContentWarning,3e3)},[zn,Fn,Yn,no,$n.emptyContentWarning]),bo=e.useCallback(function(){Pn(zn),Kn(Wn.contentId)},[zn,Wn.contentId,Pn,Kn]),xo=e.useCallback(function(){null==Hn||Hn(zn)},[zn,Hn]),ko=[l.default.container,po?l.default.containerActive:l.default.containerDefault].join(" "),Co=null===(r=null===(u=null===(s=null==eo?void 0:eo.approvalScreen)||void 0===s?void 0:s.body)||void 0===u?void 0:u.contentSegment)||void 0===r?void 0:r.contentBlock,Bo=po?(null==Co?void 0:Co.currentSegementContainer)||{boxShadow:"0px 4px 14.3px 0px rgba(151, 71, 255, 0.3), 0px -4px 34.7px 0px rgba(51, 210, 255, 0.05)"}:(null==Co?void 0:Co.containerDefault)||{};return o.jsxs("div",n.__assign({className:ko,style:Bo,ref:ao},{children:[Wn.isApproved&&o.jsxs("div",n.__assign({className:l.default.approvedBadge,style:n.__assign({},null===(m=null===(_=null===(g=null===(p=null==eo?void 0:eo.approvalScreen)||void 0===p?void 0:p.body)||void 0===g?void 0:g.contentSegment)||void 0===_?void 0:_.contentBlock)||void 0===m?void 0:m.approvedBadge)},{children:[o.jsx("span",{children:$n.approved}),o.jsx(t.CheckIcon,{size:16,color:null===(b=null===(y=null===(f=null===(S=null==eo?void 0:eo.approvalScreen)||void 0===S?void 0:S.body)||void 0===f?void 0:f.contentSegment)||void 0===y?void 0:y.contentBlock)||void 0===b?void 0:b.checkIconColor})]})),o.jsx("div",n.__assign({className:l.default.contentArea,style:n.__assign({},null===(B=null===(C=null===(k=null===(x=null==eo?void 0:eo.approvalScreen)||void 0===x?void 0:x.body)||void 0===k?void 0:k.contentSegment)||void 0===C?void 0:C.contentBlock)||void 0===B?void 0:B.contentArea)},{children:io&&Ln?o.jsx(Ln,{minHeight:"100%",height:"100%",type:"string",value:Wn.content||"",handleUpdateState:fo,doNotShowBorderInViewMode:!1,mode:"edit"}):On?o.jsx(On,{message:Wn.content||"",scenario:"approving",customStyles:n.__assign({},null===(h=null==eo?void 0:eo.userStoryScreenStyles)||void 0===h?void 0:h.userStoryContentStyles),customIcons:n.__assign({},null==lo?void 0:lo.userStoryIcons)}):o.jsx("div",{className:l.default.contentFallback,dangerouslySetInnerHTML:{__html:Wn.content||""}})})),io?o.jsxs("div",n.__assign({className:l.default.editActionsContainer,style:n.__assign({},null===(bn=null===(yn=null===(fn=null===(Sn=null==eo?void 0:eo.approvalScreen)||void 0===Sn?void 0:Sn.body)||void 0===fn?void 0:fn.contentSegment)||void 0===yn?void 0:yn.contentBlock)||void 0===bn?void 0:bn.editActionsContainer)},{children:[o.jsx("button",n.__assign({onClick:So,className:l.default.outlineButton,style:n.__assign(n.__assign({},null===(Bn=null===(Cn=null===(kn=null===(xn=null==eo?void 0:eo.approvalScreen)||void 0===xn?void 0:xn.body)||void 0===kn?void 0:kn.contentSegment)||void 0===Cn?void 0:Cn.contentBlock)||void 0===Bn?void 0:Bn.outlineButton),null===(An=null===(In=null===(jn=null===(hn=null==eo?void 0:eo.approvalScreen)||void 0===hn?void 0:hn.body)||void 0===jn?void 0:jn.contentSegment)||void 0===In?void 0:In.contentBlock)||void 0===An?void 0:An.cancelButton)},{children:$n.cancel})),o.jsx("button",n.__assign({onClick:yo,className:l.default.outlineButton,style:n.__assign(n.__assign({},null===(wn=null===(qn=null===(Tn=null===(Nn=null==eo?void 0:eo.approvalScreen)||void 0===Nn?void 0:Nn.body)||void 0===Tn?void 0:Tn.contentSegment)||void 0===qn?void 0:qn.contentBlock)||void 0===wn?void 0:wn.outlineButton),null===(Mn=null===(Rn=null===(En=null===(Dn=null==eo?void 0:eo.approvalScreen)||void 0===Dn?void 0:Dn.body)||void 0===En?void 0:En.contentSegment)||void 0===Rn?void 0:Rn.contentBlock)||void 0===Mn?void 0:Mn.saveButton)},{children:$n.save}))]})):o.jsx("div",n.__assign({className:l.default.actionsContainer,style:n.__assign({},null===(N=null===(A=null===(I=null===(j=null==eo?void 0:eo.approvalScreen)||void 0===j?void 0:j.body)||void 0===I?void 0:I.contentSegment)||void 0===A?void 0:A.contentBlock)||void 0===N?void 0:N.actionsContainer)},{children:o.jsxs("div",n.__assign({className:l.default.actionsRow,style:n.__assign({},null===(D=null===(w=null===(q=null===(T=null==eo?void 0:eo.approvalScreen)||void 0===T?void 0:T.body)||void 0===q?void 0:q.contentSegment)||void 0===w?void 0:w.contentBlock)||void 0===D?void 0:D.actionsRow)},{children:[!Xn&&Zn.allowEditing&&o.jsxs("button",n.__assign({onClick:mo,className:l.default.actionButton,style:n.__assign({},null===(W=null===(M=null===(R=null===(E=null==eo?void 0:eo.approvalScreen)||void 0===E?void 0:E.body)||void 0===R?void 0:R.contentSegment)||void 0===M?void 0:M.contentBlock)||void 0===W?void 0:W.actionButton)},{children:[o.jsx("span",n.__assign({className:l.default.actionText,style:n.__assign({},null===(F=null===(V=null===(U=null===(z=null==eo?void 0:eo.approvalScreen)||void 0===z?void 0:z.body)||void 0===U?void 0:U.contentSegment)||void 0===V?void 0:V.contentBlock)||void 0===F?void 0:F.actionText)},{children:$n.correctMe})),o.jsx(i.PencilIcon,{size:16,color:(null===(O=null===(L=null===(H=null===(P=null==eo?void 0:eo.approvalScreen)||void 0===P?void 0:P.body)||void 0===H?void 0:H.contentSegment)||void 0===L?void 0:L.contentBlock)||void 0===O?void 0:O.pencilIcon)||"#5928ED"})]})),!Wn.isApproved&&o.jsxs("button",n.__assign({disabled:Qn,onClick:bo,style:n.__assign({},null===(Q=null===(K=null===(J=null===(G=null==eo?void 0:eo.approvalScreen)||void 0===G?void 0:G.body)||void 0===J?void 0:J.contentSegment)||void 0===K?void 0:K.contentBlock)||void 0===Q?void 0:Q.approveButton),className:"".concat(l.default.actionButton," ").concat(Qn?l.default.actionDisabled:"")},{children:[o.jsx("span",n.__assign({className:(null==Co?void 0:Co.approveText)?"":Qn?l.default.actionTextDisabled:l.default.actionText,style:n.__assign({},null==Co?void 0:Co.approveText)},{children:$n.approve})),o.jsx("span",n.__assign({style:n.__assign({},null===($=null===(Z=null===(Y=null===(X=null==eo?void 0:eo.approvalScreen)||void 0===X?void 0:X.body)||void 0===Y?void 0:Y.contentSegment)||void 0===Z?void 0:Z.contentBlock)||void 0===$?void 0:$.approveIconStyle)},{children:o.jsx(t.CheckIcon,{size:16,color:Qn?(null===(ln=null===(en=null===(on=null===(nn=null==eo?void 0:eo.approvalScreen)||void 0===nn?void 0:nn.body)||void 0===on?void 0:on.contentSegment)||void 0===en?void 0:en.contentBlock)||void 0===ln?void 0:ln.disableApproveIconColor)||"#9CA3AF":(null===(vn=null===(cn=null===(dn=null===(tn=null==eo?void 0:eo.approvalScreen)||void 0===tn?void 0:tn.body)||void 0===dn?void 0:dn.contentSegment)||void 0===cn?void 0:cn.contentBlock)||void 0===vn?void 0:vn.approveIconColor)||"#5928ED"})}))]})),Vn&&Zn.allowDeletion&&o.jsxs("button",n.__assign({onClick:xo,className:l.default.deleteButton,style:n.__assign({},null===(rn=null===(un=null===(sn=null===(an=null==eo?void 0:eo.approvalScreen)||void 0===an?void 0:an.body)||void 0===sn?void 0:sn.contentSegment)||void 0===un?void 0:un.contentBlock)||void 0===rn?void 0:rn.deleteButton)},{children:[o.jsx("span",{children:$n.delete}),o.jsx(d.TrashIcon,{size:16,color:(null===(mn=null===(_n=null===(gn=null===(pn=null==eo?void 0:eo.approvalScreen)||void 0===pn?void 0:pn.body)||void 0===gn?void 0:gn.contentSegment)||void 0===_n?void 0:_n.contentBlock)||void 0===mn?void 0:mn.deleteIconColor)||"#ed3f28"})]}))]}))}))]}))};exports.ContentBlock=a,exports.default=a;
2
2
  //# sourceMappingURL=ContentBlock.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"),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;
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"),C=require("./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js"),x=require("./features/RequirementAI/hooks/useDiffEditReviewMode.js"),j=require("./features/RequirementAI/components/UserStoryCard/UserStoryCard.js"),A=require("./features/RequirementAI/components/citations/file-citation/FileCitationRender.js"),U=require("./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js"),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"),B=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js"),D=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=require("./features/CitationRenderer/CitationRenderer.js"),de=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=C.GapFilterBlock,exports.hasAnyUpdatedTags=x.hasAnyUpdatedTags,exports.hasUpdatedTagsInMarkdown=x.hasUpdatedTagsInMarkdown,exports.useDiffEditReviewMode=x.useDiffEditReviewMode,exports.UserStoryCardWrapper=j.UserStoryCardWrapper,exports.FileCitationRender=A.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=B.buildStoryWithGap,exports.updateGapInRawData=B.updateGapInRawData,exports.updateGapStory=B.updateGapStory,exports.buildStoryWithRisk=D.buildStoryWithRisk,exports.updateRiskInRawData=D.updateRiskInRawData,exports.updateStory=D.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.CitationRenderer=ue.default,exports.collapseAllCitations=ue.collapseAllCitations,exports.collapseCitationsByIds=ue.collapseCitationsByIds,exports.UserStoryPicker=de;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsxs as n,Fragment as i,jsx as o}from"react/jsx-runtime";import{useState as e}from"react";import r from"./CitationRenderer.module.css.js";var a=function(a){var l=a.inLineCitation,c=a.citationTitle,s=a.citationIcon,p=a.chevronUpComponent,m=a.chevronDownComponent,d=a.additionalCallbackForPillButton,u=a.citationComponent,f=a.styles,v=void 0===f?{}:f,C=a.isOpen,h=a.onToggle,y=e(!1),g=y[0],B=y[1],N=void 0!==C?C:g;return n(i,{children:[n("span",t({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),d&&d(),h?h():void 0===C&&B(function(t){return!t})}(t)},className:r.pillButton,style:v.pillButton},{children:[s,o("span",t({style:v.citationTitle},{children:c})),l&&(N?p:m)]})),l&&N&&o("div",t({className:r.citationWrapper,style:v.citationWrapper},{children:o("div",t({className:r.citationContent,style:v.citationContent},{children:u}))}))]})};export{a as default};
1
+ import{__assign as t}from"tslib";import{jsxs as n,Fragment as i,jsx as o}from"react/jsx-runtime";import{useState as e}from"react";import r from"./CitationRenderer.module.css.js";var a=new Map,c=function(){a.clear()},l=function(t){t.forEach(function(t){return a.delete(t)})},s=function(c){var l=c.inLineCitation,s=c.citationTitle,p=c.citationId,u=c.citationIcon,d=c.chevronUpComponent,f=c.chevronDownComponent,m=c.additionalCallbackForPillButton,v=c.citationComponent,h=c.styles,C=void 0===h?{}:h,y=c.isOpen,g=c.onToggle,x=c.defaultExpanded,B=void 0!==x&&x,N=void 0!==y,T=p||s,b=e(function(){return T&&a.has(T)?a.get(T):B}),j=b[0],k=b[1],w=N?y:j;return n(i,{children:[n("span",t({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),m&&m(),g?g():N||k(function(t){var n=!t;return T&&a.set(T,n),n})}(t)},className:r.pillButton,style:C.pillButton},{children:[u,o("span",t({style:C.citationTitle},{children:s})),l&&(w?d:f)]})),l&&w&&o("div",t({className:r.citationWrapper,style:C.citationWrapper},{children:o("div",t({className:r.citationContent,style:C.citationContent},{children:v}))}))]})};export{c as collapseAllCitations,l as collapseCitationsByIds,s as default};
2
2
  //# sourceMappingURL=CitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as i}from"tslib";import{jsx as t}from"react/jsx-runtime";import n from"./AiReasoningCitationContent.js";import{useState as o}from"react";import e from"../../icons/CognitiveDecision.js";import r from"../../../CitationRenderer/CitationRenderer.js";var l=function(){return t("svg",i({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",style:{verticalAlign:"bottom",marginLeft:"1px"}},{children:t("polyline",{points:"18 15 12 9 6 15"})}))},s=function(){return t("svg",i({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",style:{verticalAlign:"bottom",marginLeft:"1px"}},{children:t("polyline",{points:"6 9 12 15 18 9"})}))},a=function(a){var c=a.isSourceHasHighlight,p=a.aiReason,f=a.citationTitle,d=void 0===f?"":f,m=a.customStyles,g=a.customIcons,u=a.onSelectProceed,h=a.isDisableProceedButton,v=o((null==p?void 0:p.isOpen)||c||!1),x=v[0],C=v[1],b=(null==g?void 0:g.highConfidence)||t(e,{});return t(r,{inLineCitation:!0,isOpen:x,onToggle:function(){C(!x)},citationTitle:d,citationIcon:b,citationComponent:t(n,{aiReason:p,customStyles:m,customIcons:g,onSelectProceed:u,isDisableProceedButton:h}),chevronDownComponent:t(s,{}),chevronUpComponent:t(l,{}),styles:{pillButton:i({margin:"0px",padding:"4px 8px",fontSize:"15px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"flex-end",background:"#ffffffff",fontWeight:"700",gap:"1.5px",border:"none"},null==m?void 0:m.aiReasoningPill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{a as default};
1
+ import{__assign as i}from"tslib";import{jsx as t}from"react/jsx-runtime";import n from"./AiReasoningCitationContent.js";import o from"../../icons/CognitiveDecision.js";import e from"../../../CitationRenderer/CitationRenderer.js";var r=function(){return t("svg",i({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",style:{verticalAlign:"bottom",marginLeft:"1px"}},{children:t("polyline",{points:"18 15 12 9 6 15"})}))},l=function(){return t("svg",i({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",style:{verticalAlign:"bottom",marginLeft:"1px"}},{children:t("polyline",{points:"6 9 12 15 18 9"})}))},a=function(a){var s=a.isSourceHasHighlight,c=a.aiReason,d=a.citationTitle,p=void 0===d?"":d,f=a.customStyles,m=a.customIcons,g=a.onSelectProceed,u=a.isDisableProceedButton,h=(null==m?void 0:m.highConfidence)||t(o,{});return t(e,{inLineCitation:!0,citationId:"ai-reasoning-".concat(c.id),citationTitle:p,citationIcon:h,defaultExpanded:(null==c?void 0:c.isOpen)||s||!1,citationComponent:t(n,{aiReason:c,customStyles:f,customIcons:m,onSelectProceed:g,isDisableProceedButton:u}),chevronDownComponent:t(l,{}),chevronUpComponent:t(r,{}),styles:{pillButton:i({margin:"0px",padding:"4px 8px",fontSize:"15px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"flex-end",background:"#ffffffff",fontWeight:"700",gap:"1.5px",border:"none"},null==f?void 0:f.aiReasoningPill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{a as default};
2
2
  //# sourceMappingURL=AiReasoningCitation.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 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";import v from"./CustomFileIcon.js";"undefined"!=typeof self&&(self.MonacoEnvironment=e(e({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var g=!1,p=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}};p(),"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 y=function(e){return"number"==typeof e&&Number.isFinite(e)},b=function(e,n){return y(e)&&y(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},N=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]),y(t)&&y(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]},x=function(e,n,t,i){if(0===e.length)return!1;var r=b(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})))},C={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},w={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},M={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"},k=function(e){return M[e.toLowerCase()]||e},F=function(t){var i=t.code,r=t.language,o=t.theme,a=t.fontSize,c=t.fontFamily,h=t.height,m=t.yellowHighlightRanges,f=t.backgroundColor,v=t.editorWrapperStyle,g=t.lineNumberOffset,y=void 0===g?0:g,b=t.lineNumberDigits,N=l(null),x=l(null),C=l(!1);return u(function(){C.current=!1,p();var e=setTimeout(function(){var e=N.current;if(e&&!C.current&&!x.current)try{s.editor.setTheme(o);var n=s.editor.create(e,{value:i,language:k(r),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:a,lineHeight:20,fontFamily:c,lineNumbers:function(e){return String(e+y)},folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,null!=b?b: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});x.current=n;var t=[];m.forEach(function(e){var n=e[0],i=e[1];t.push({range:new s.Range(n,1,i,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),t.length>0&&n.createDecorationsCollection(t);var l=m[0];l&&requestAnimationFrame(function(){!C.current&&x.current&&n.revealLineInCenter(l[0])})}catch(e){}},50);return function(){if(C.current=!0,clearTimeout(e),x.current){try{x.current.dispose()}catch(e){}x.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:f},v)},{children:n("div",{ref:N,style:{width:"100%",height:"100%"}})}))},S=function(s){var g=s.citation,p=s.customStyles,M=s.customColors,k=s.customIcons,S=s.editorConfig,L=s.fileCallback,O=r(function(){return e(e({},C),M)},[M]),T=r(function(){return e(e({},w),S)},[S]),j=o(!1),B=j[0],P=j[1],W=l(null),E=l(!1),H=g.customMetadata.content||"",z=g.customMetadata.highlighted_text,R=g.customMetadata.start_line,D=g.customMetadata.end_line,I=y(R)?R+1:R,_=r(function(){if(!z)return{};try{var e=z.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),{}}},[z]),q=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(H));){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},[H]),G=a(function(e){return(_[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})},[_]),A=r(function(){for(var e=function(e){var n=q[e],t=n.code.split("\n").length,i=G(n.filePath),r=x(i,t,I,D);if(i.map(function(e){return N(e,t,r?I:void 0,r?D:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<q.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[q,G,I,D]),J=A>=0,V=a(function(e,n){var t=G(e),i=x(t,n,I,D);return t.map(function(e){return N(e,n,i?I:void 0,i?D:void 0)}).filter(function(e){return null!==e})},[G,I,D]),$=a(function(e,n){var t=G(e);if(x(t,n,I,D)){var i=b(I,D);return i?t.map(function(e){var n=e[0],t=e[1],r=n<=t?[n,t]:[t,n],o=Math.max(r[0],i.start),l=Math.min(r[1],i.end);return o>l?null:[o,l]}).filter(function(e){return null!==e}):[]}return V(e,n)},[G,V,I,D]);u(function(){if(J&&!E.current&&q.length>0&&(null==L?void 0:L.autoOpenFirstHighlighted)&&(null==L?void 0:L.onOpenFile)){var e=q[A],n=$(e.filePath,e.code.split("\n").length);E.current=!0;var t=setTimeout(function(){L.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[J,A,q,V,L]),u(function(){E.current=!1},[H]),u(function(){if(!(A<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)}}},[A,z]);var K=a(function(e,n){if(null==L?void 0:L.onOpenFile){var t=$(e,n);L.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[$,L]),Q=a(function(){(null==L?void 0:L.onExpandClick)?L.onExpandClick({blocks:q,highlightMap:_}):P(!0)},[L,q,_]),U=!!(null==L?void 0:L.onOpenFile),X=(null==k?void 0:k.readFileCitationIcon)||n(h,{style:{width:"14px",height:"14px"}}),Y=function(i){return q.map(function(r,o){var l,a,u=r.code.split("\n").length,c=G(r.filePath),s=x(c,u,I,D),h=c.map(function(e){return N(e,u,s?I:void 0,s?D:void 0)}).filter(function(e){return null!==e}),m=s&&y(I)?h.map(function(e){var n=e[0],t=e[1];return[n+I-1,t+I-1]}):h,v=h.length>0,g=o===A,b=i?600:T.maxHeight,C=(l=20*r.code.split("\n").length+16+4,Math.min(Math.max(l,T.minHeight),b)),w=r.filePath.split("/").pop(),M=s&&y(I)?I-1:0,k=M+u,S=String(Math.max(1,k)).length;return t("div",e({ref:!i&&g?W:void 0,"data-highlighted":v?"true":void 0,"data-first-highlighted":g?"true":void 0,className:d.blockContainer,style:e({border:"1px solid ".concat(O.border)},null==p?void 0:p.blockContainer)},{children:[t("div",e({className:d.header,style:e({backgroundColor:v?O.highlightBg:O.headerBg,borderBottom:"1px solid ".concat(O.border),color:v?O.highlightGutter:O.foreground},v?null==p?void 0:p.headerHighlighted:null==p?void 0:p.header)},{children:[t("div",e({className:d.headerLeft},{children:[n("span",e({className:d.fileName,title:r.filePath,style:null==p?void 0:p.fileName,onClick:function(){return K(r.filePath,u)}},{children:w})),U&&n("button",e({className:d.openFileButton,onClick:function(){return K(r.filePath,u)},title:"Open in editor","aria-label":"Open ".concat(w," in editor"),style:null==p?void 0:p.openFileButton},{children:X}))]})),t("div",e({className:d.headerRight},{children:[v&&n("span",e({className:d.lineRanges,style:null==p?void 0:p.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==p?void 0:p.expandButton,onClick:Q,title:"Expand","aria-label":"Expand code view"},{children:n(f,{size:13})}))]}))]})),n(F,{code:r.code,language:r.language,theme:T.theme,fontSize:T.fontSize,fontFamily:T.fontFamily,height:C,yellowHighlightRanges:h,backgroundColor:O.background,editorWrapperStyle:null==p?void 0:p.editorWrapper,lineNumberOffset:M,lineNumberDigits:S})]}),o)})};if(0===q.length)return n("div",e({className:d.emptyState,style:e({color:O.inactiveText},null==p?void 0:p.emptyState)},{children:"No code content available"}));var Z=B?c.createPortal(n("div",e({className:d.modalOverlay,style:null==p?void 0:p.modalOverlay,onClick:function(e){e.target===e.currentTarget&&P(!1)}},{children:t("div",e({className:d.modalContent,style:null==p?void 0:p.modalContent},{children:[t("div",e({className:d.modalHeader,style:null==p?void 0:p.modalHeader},{children:[n("span",e({className:d.modalTitle,style:null==p?void 0:p.modalTitle},{children:1===q.length?t("span",e({className:d.modalTitleContent},{children:[n(v,{name:q[0].filePath,size:"15px"}),n("span",e({className:d.modalTitleText},{children:q[0].filePath}))]})):"".concat(q.length," files")})),n("button",e({className:d.modalCloseButton,style:null==p?void 0:p.modalCloseButton,onClick:function(){return P(!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==p?void 0:p.container},{children:Y(!0)}))}))]}))})),document.body):null;return t(i,{children:[Z,n("div",e({className:d.container,style:null==p?void 0:p.container},{children:Y(!1)}))]})};export{S 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 l,useRef as o,useCallback as a,useEffect as c}from"react";import u from"react-dom";import s from"@monaco-editor/react";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as m,Maximize2 as f}from"lucide-react";import v from"./CustomFileIcon.js";var g=function(e){return"number"==typeof e&&Number.isFinite(e)},p=function(e,n){return g(e)&&g(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},y=function(e,n,t,i){var r,l=e[0],o=e[1];if(!Number.isFinite(l)||!Number.isFinite(o))return null;if(o<l&&(l=(r=[o,l])[0],o=r[1]),g(t)&&g(i)){var a=Math.max(l,t),c=Math.min(o,i);if(a>c)return null;var u=a-t+1,s=c-t+1,d=Math.max(1,u),h=Math.min(n,s);return d>h?null:[d,h]}var m=Math.max(1,l),f=Math.min(n,o);return m>f?null:[m,f]},b=function(e,n,t,i){if(0===e.length)return!1;var r=p(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})))},N={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)"},x={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},C={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},F=function(F){var M=F.citation,k=F.customStyles,w=F.customColors,S=F.customIcons,L=F.editorConfig,O=F.fileCallback,B=r(function(){return e(e({},N),w)},[w]),j=r(function(){return e(e({},x),L)},[L]),P=l(!1),T=P[0],H=P[1],z=o(null),R=o(!1),W=M.customMetadata.content||"",I=M.customMetadata.highlighted_text,E=M.customMetadata.start_line,_=M.customMetadata.end_line,D=g(E)?E+1:E,q=r(function(){if(!I)return{};try{var e=I.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),{}}},[I]),G=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(W));){var i=e[1]||"javascript",r=e[2].trim(),l=e[3].trim();r&&l&&n.push({filePath:r,code:l,language:i})}return n},[W]),A=a(function(e){return(q[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})},[q]),J=r(function(){for(var e=function(e){var n=G[e],t=n.code.split("\n").length,i=A(n.filePath),r=b(i,t,D,_);if(i.map(function(e){return y(e,t,r?D:void 0,r?_:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<G.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[G,A,D,_]),V=J>=0,$=a(function(e,n){var t=A(e),i=b(t,n,D,_);return t.map(function(e){return y(e,n,i?D:void 0,i?_:void 0)}).filter(function(e){return null!==e})},[A,D,_]),K=a(function(e,n){var t=A(e);if(b(t,n,D,_)){var i=p(D,_);return i?t.map(function(e){var n=e[0],t=e[1],r=n<=t?[n,t]:[t,n],l=Math.max(r[0],i.start),o=Math.min(r[1],i.end);return l>o?null:[l,o]}).filter(function(e){return null!==e}):[]}return $(e,n)},[A,$,D,_]);c(function(){if(V&&!R.current&&G.length>0&&(null==O?void 0:O.autoOpenFirstHighlighted)&&(null==O?void 0:O.onOpenFile)){var e=G[J],n=K(e.filePath,e.code.split("\n").length);R.current=!0;var t=setTimeout(function(){O.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[V,J,G,$,O]),c(function(){R.current=!1},[W]),c(function(){if(!(J<0)){var e=setTimeout(function(){var e;null===(e=z.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[J,I]);var Q=a(function(e,n){if(null==O?void 0:O.onOpenFile){var t=K(e,n);O.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[K,O]),U=a(function(){(null==O?void 0:O.onExpandClick)?O.onExpandClick({blocks:G,highlightMap:q}):H(!0)},[O,G,q]),X=!!(null==O?void 0:O.onOpenFile),Y=(null==S?void 0:S.readFileCitationIcon)||n(h,{style:{width:"14px",height:"14px"}}),Z=a(function(e,n,t,i){var r=[];if(t.forEach(function(e){var t=e[0],i=e[1];r.push({range:new n.Range(t,1,i,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),r.length>0)try{e.createDecorationsCollection(r)}catch(e){console.warn("Failed to create decorations:",e)}var l=t[0];l&&requestAnimationFrame(function(){e.revealLineInCenter(l[0])}),i>0&&e.updateOptions({lineNumbers:function(e){return String(e+i)}})},[]),ee=function(i){return G.map(function(r,l){var o,a,c,u=r.code.split("\n").length,h=A(r.filePath),m=b(h,u,D,_),v=h.map(function(e){return y(e,u,m?D:void 0,m?_:void 0)}).filter(function(e){return null!==e}),p=m&&g(D)?v.map(function(e){var n=e[0],t=e[1];return[n+D-1,t+D-1]}):v,N=v.length>0,x=l===J,F=i?600:j.maxHeight,M=(o=20*r.code.split("\n").length+16+4,Math.min(Math.max(o,j.minHeight),F)),w=r.filePath.split("/").pop(),S=m&&g(D)?D-1:0,L=S+u,O=String(Math.max(1,L)).length;return t("div",e({ref:!i&&x?z:void 0,"data-highlighted":N?"true":void 0,"data-first-highlighted":x?"true":void 0,className:d.blockContainer,style:e({border:"1px solid ".concat(B.border)},null==k?void 0:k.blockContainer)},{children:[t("div",e({className:d.header,style:e({backgroundColor:N?B.highlightBg:B.headerBg,borderBottom:"1px solid ".concat(B.border),color:N?B.highlightGutter:B.foreground},N?null==k?void 0:k.headerHighlighted:null==k?void 0:k.header)},{children:[t("div",e({className:d.headerLeft},{children:[n("span",e({className:d.fileName,title:r.filePath,style:null==k?void 0:k.fileName,onClick:function(){return Q(r.filePath,u)}},{children:w})),X&&n("button",e({className:d.openFileButton,onClick:function(){return Q(r.filePath,u)},title:"Open in editor","aria-label":"Open ".concat(w," in editor"),style:null==k?void 0:k.openFileButton},{children:Y}))]})),t("div",e({className:d.headerRight},{children:[N&&n("span",e({className:d.lineRanges,style:null==k?void 0:k.lineRanges},{children:(c=p,c.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!i&&0===l&&n("button",e({className:d.expandButton,style:null==k?void 0:k.expandButton,onClick:U,title:"Expand","aria-label":"Expand code view"},{children:n(f,{size:13})}))]}))]})),n("div",e({className:d.editorWrapper,style:e({height:"".concat(M,"px"),backgroundColor:B.background},null==k?void 0:k.editorWrapper)},{children:n(s,{height:"100%",language:(a=r.language,C[a.toLowerCase()]||a),value:r.code,theme:j.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:j.fontSize,lineHeight:20,fontFamily:j.fontFamily,lineNumbers:S>0?function(e){return String(e+S)}:"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,O),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},onMount:function(e,n){return Z(e,n,v,S)},loading:n("div",e({className:d.editorLoading,style:{color:B.inactiveText}},{children:"Loading editor..."}))})}))]}),l)})};if(0===G.length)return n("div",e({className:d.emptyState,style:e({color:B.inactiveText},null==k?void 0:k.emptyState)},{children:"No code content available"}));var ne=T?u.createPortal(n("div",e({className:d.modalOverlay,style:null==k?void 0:k.modalOverlay,onClick:function(e){e.target===e.currentTarget&&H(!1)}},{children:t("div",e({className:d.modalContent,style:null==k?void 0:k.modalContent},{children:[t("div",e({className:d.modalHeader,style:null==k?void 0:k.modalHeader},{children:[n("span",e({className:d.modalTitle,style:null==k?void 0:k.modalTitle},{children:1===G.length?t("span",e({className:d.modalTitleContent},{children:[n(v,{name:G[0].filePath,size:"15px"}),n("span",e({className:d.modalTitleText},{children:G[0].filePath}))]})):"".concat(G.length," files")})),n("button",e({className:d.modalCloseButton,style:null==k?void 0:k.modalCloseButton,onClick:function(){return H(!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==k?void 0:k.container},{children:ee(!0)}))}))]}))})),document.body):null;return t(i,{children:[ne,n("div",e({className:d.container,style:null==k?void 0:k.container},{children:ee(!1)}))]})};export{F as default};
2
2
  //# sourceMappingURL=ReadFileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as i,Fragment as o}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import e from"./icons/FileCodeIcon.js";import r from"./ReadFileCitationContent.js";var a=function(a){var l=a.title,c=a.citation,s=a.customStyles,m=a.customColors,p=a.customIcons,d=a.editorConfig,u=a.fileCallback,C=(null==p?void 0:p.readFileCitationIcon)||i(e,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return i(n,{inLineCitation:!0,citationTitle:l+"⁠",citationIcon:i(o,{}),citationComponent:i(r,{citation:c,customStyles:s,customColors:m,customIcons:p,editorConfig:d,fileCallback:u}),chevronDownComponent:C,chevronUpComponent:C,styles:{pillButton:t({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{a as default};
1
+ import{__assign as t}from"tslib";import{jsx as i,Fragment as o}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import e from"./icons/FileCodeIcon.js";import r from"./ReadFileCitationContent.js";var a=function(a){var l=a.title,c=a.citation,s=a.customStyles,m=a.customColors,p=a.customIcons,d=a.editorConfig,u=a.fileCallback,C=(null==p?void 0:p.readFileCitationIcon)||i(e,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return i(n,{inLineCitation:!0,citationTitle:l+"⁠",citationId:"readfile-".concat(c.citation_number),citationIcon:i(o,{}),citationComponent:i(r,{citation:c,customStyles:s,customColors:m,customIcons:p,editorConfig:d,fileCallback:u}),chevronDownComponent:C,chevronUpComponent:C,styles:{pillButton:t({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{a as default};
2
2
  //# sourceMappingURL=ReadFileCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsxs as n,jsx as l}from"react/jsx-runtime";import{useState as e,useRef as t,useCallback as i,useEffect as d}from"react";import v from"./ContentBlock.module.css.js";import{CheckIcon as c}from"../../../../icons/CheckIcon.js";import{PencilIcon as r}from"../../../../icons/PencilIcon.js";import{TrashIcon as u}from"../../../../icons/TrashIcon.js";import{useUserStoryApprovalScreen as a}from"../../UserStoryApprovalContext.js";import{useRequirementAI as s}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";var p=function(p){var m,S,y,g,b,B,f,h,k,C,I,x,N,A,w,T,D,j,E,W,z,M,R,F,U,V,q,H,_,L,P,G,J,K,O,Q,X,Y,Z,$,oo,no,lo,eo,to,io,vo,co,ro,uo,ao,so,po,mo,So,yo,go,bo,Bo,fo,ho,ko,Co,Io,xo,No,Ao,wo,To,Do,jo,Eo,Wo,zo,Mo,Ro,Fo,Uo,Vo,qo,Ho=p.segment,_o=p.segmentIndex,Lo=p.isSubFeature,Po=void 0!==Lo&&Lo,Go=p.onSaveContent,Jo=p.onApproveContent,Ko=p.onDeleteContent,Oo=p.EditorComponent,Qo=p.ViewerComponent,Xo=a(),Yo=Xo.currentContentId,Zo=Xo.handleUpdateContentId,$o=Xo.isDisabled,on=Xo.isEditingSegment,nn=Xo.setIsEditingSegment,ln=Xo.config,en=Xo.labels,tn=Xo.showNotification,dn=s(),vn=dn.customStyles,cn=dn.customIcons,rn=e(!1),un=rn[0],an=rn[1],sn=t(Ho.content),pn=t(null),mn=e(0),Sn=mn[0],yn=mn[1],gn=Ho.contentId===Yo,bn=i(function(){if(pn.current){var o=pn.current;o.style.scrollMarginTop="".concat(90,"px"),o.scrollIntoView({behavior:"smooth",block:"start"})}},[]);d(function(){if(0!==Sn){var o=setTimeout(function(){bn()},150);return function(){return clearTimeout(o)}}},[Sn,bn]),d(function(){sn.current=Ho.content},[Ho.content]);var Bn=i(function(){sn.current=Ho.content,an(!0),nn(!0),yn(function(o){return o+1})},[Ho.content,nn]),fn=i(function(){sn.current=Ho.content,an(!1),nn(!1)},[Ho.content,nn]),hn=i(function(o,n){sn.current=n},[]),kn=i(function(){var o=sn.current;(null==o?void 0:o.trim())?(an(!1),nn(!1),Go(_o,o)):tn("warn","Warning!",en.emptyContentWarning,3e3)},[_o,Go,nn,tn,en.emptyContentWarning]),Cn=i(function(){Jo(_o),Zo(Ho.contentId)},[_o,Ho.contentId,Jo,Zo]),In=i(function(){null==Ko||Ko(_o)},[_o,Ko]),xn=[v.container,gn?v.containerActive:v.containerDefault].join(" "),Nn=null===(y=null===(S=null===(m=null==vn?void 0:vn.approvalScreen)||void 0===m?void 0:m.body)||void 0===S?void 0:S.contentSegment)||void 0===y?void 0:y.contentBlock,An=gn?(null==Nn?void 0:Nn.currentSegementContainer)||{boxShadow:"0px 4px 14.3px 0px rgba(151, 71, 255, 0.3), 0px -4px 34.7px 0px rgba(51, 210, 255, 0.05)"}:(null==Nn?void 0:Nn.containerDefault)||{};return n("div",o({className:xn,style:An,ref:pn},{children:[Ho.isApproved&&n("div",o({className:v.approvedBadge,style:o({},null===(f=null===(B=null===(b=null===(g=null==vn?void 0:vn.approvalScreen)||void 0===g?void 0:g.body)||void 0===b?void 0:b.contentSegment)||void 0===B?void 0:B.contentBlock)||void 0===f?void 0:f.approvedBadge)},{children:[l("span",{children:en.approved}),l(c,{size:16,color:null===(I=null===(C=null===(k=null===(h=null==vn?void 0:vn.approvalScreen)||void 0===h?void 0:h.body)||void 0===k?void 0:k.contentSegment)||void 0===C?void 0:C.contentBlock)||void 0===I?void 0:I.checkIconColor})]})),l("div",o({className:v.contentArea,style:o({},null===(w=null===(A=null===(N=null===(x=null==vn?void 0:vn.approvalScreen)||void 0===x?void 0:x.body)||void 0===N?void 0:N.contentSegment)||void 0===A?void 0:A.contentBlock)||void 0===w?void 0:w.contentArea)},{children:un&&Oo?l(Oo,{minHeight:"100%",height:"100%",type:"string",value:Ho.content||"",handleUpdateState:hn,doNotShowBorderInViewMode:!1,mode:"edit"}):Qo?l(Qo,{message:Ho.content||"",scenario:"approving",customStyles:o({},null===(T=null==vn?void 0:vn.userStoryScreenStyles)||void 0===T?void 0:T.userStoryContentStyles),customIcons:o({},null==cn?void 0:cn.userStoryIcons)}):l("div",{className:v.contentFallback,dangerouslySetInnerHTML:{__html:Ho.content||""}})})),un?n("div",o({className:v.editActionsContainer,style:o({},null===(Io=null===(Co=null===(ko=null===(ho=null==vn?void 0:vn.approvalScreen)||void 0===ho?void 0:ho.body)||void 0===ko?void 0:ko.contentSegment)||void 0===Co?void 0:Co.contentBlock)||void 0===Io?void 0:Io.editActionsContainer)},{children:[l("button",o({onClick:fn,className:v.outlineButton,style:o(o({},null===(wo=null===(Ao=null===(No=null===(xo=null==vn?void 0:vn.approvalScreen)||void 0===xo?void 0:xo.body)||void 0===No?void 0:No.contentSegment)||void 0===Ao?void 0:Ao.contentBlock)||void 0===wo?void 0:wo.outlineButton),null===(Eo=null===(jo=null===(Do=null===(To=null==vn?void 0:vn.approvalScreen)||void 0===To?void 0:To.body)||void 0===Do?void 0:Do.contentSegment)||void 0===jo?void 0:jo.contentBlock)||void 0===Eo?void 0:Eo.cancelButton)},{children:en.cancel})),l("button",o({onClick:kn,className:v.outlineButton,style:o(o({},null===(Ro=null===(Mo=null===(zo=null===(Wo=null==vn?void 0:vn.approvalScreen)||void 0===Wo?void 0:Wo.body)||void 0===zo?void 0:zo.contentSegment)||void 0===Mo?void 0:Mo.contentBlock)||void 0===Ro?void 0:Ro.outlineButton),null===(qo=null===(Vo=null===(Uo=null===(Fo=null==vn?void 0:vn.approvalScreen)||void 0===Fo?void 0:Fo.body)||void 0===Uo?void 0:Uo.contentSegment)||void 0===Vo?void 0:Vo.contentBlock)||void 0===qo?void 0:qo.saveButton)},{children:en.save}))]})):l("div",o({className:v.actionsContainer,style:o({},null===(W=null===(E=null===(j=null===(D=null==vn?void 0:vn.approvalScreen)||void 0===D?void 0:D.body)||void 0===j?void 0:j.contentSegment)||void 0===E?void 0:E.contentBlock)||void 0===W?void 0:W.actionsContainer)},{children:n("div",o({className:v.actionsRow,style:o({},null===(F=null===(R=null===(M=null===(z=null==vn?void 0:vn.approvalScreen)||void 0===z?void 0:z.body)||void 0===M?void 0:M.contentSegment)||void 0===R?void 0:R.contentBlock)||void 0===F?void 0:F.actionsRow)},{children:[!on&&ln.allowEditing&&n("button",o({onClick:Bn,className:v.actionButton,style:o({},null===(H=null===(q=null===(V=null===(U=null==vn?void 0:vn.approvalScreen)||void 0===U?void 0:U.body)||void 0===V?void 0:V.contentSegment)||void 0===q?void 0:q.contentBlock)||void 0===H?void 0:H.actionButton)},{children:[l("span",o({className:v.actionText,style:o({},null===(G=null===(P=null===(L=null===(_=null==vn?void 0:vn.approvalScreen)||void 0===_?void 0:_.body)||void 0===L?void 0:L.contentSegment)||void 0===P?void 0:P.contentBlock)||void 0===G?void 0:G.actionText)},{children:en.correctMe})),l(r,{size:16,color:(null===(Q=null===(O=null===(K=null===(J=null==vn?void 0:vn.approvalScreen)||void 0===J?void 0:J.body)||void 0===K?void 0:K.contentSegment)||void 0===O?void 0:O.contentBlock)||void 0===Q?void 0:Q.pencilIcon)||"#5928ED"})]})),!Ho.isApproved&&n("button",o({disabled:$o,onClick:Cn,style:o({},null===($=null===(Z=null===(Y=null===(X=null==vn?void 0:vn.approvalScreen)||void 0===X?void 0:X.body)||void 0===Y?void 0:Y.contentSegment)||void 0===Z?void 0:Z.contentBlock)||void 0===$?void 0:$.approveButton),className:"".concat(v.actionButton," ").concat($o?v.actionDisabled:"")},{children:[l("span",o({className:(null==Nn?void 0:Nn.approveText)?"":$o?v.actionTextDisabled:v.actionText,style:o({},null==Nn?void 0:Nn.approveText)},{children:en.approve})),l("span",o({style:o({},null===(eo=null===(lo=null===(no=null===(oo=null==vn?void 0:vn.approvalScreen)||void 0===oo?void 0:oo.body)||void 0===no?void 0:no.contentSegment)||void 0===lo?void 0:lo.contentBlock)||void 0===eo?void 0:eo.approveIconStyle)},{children:l(c,{size:16,color:$o?(null===(co=null===(vo=null===(io=null===(to=null==vn?void 0:vn.approvalScreen)||void 0===to?void 0:to.body)||void 0===io?void 0:io.contentSegment)||void 0===vo?void 0:vo.contentBlock)||void 0===co?void 0:co.disableApproveIconColor)||"#9CA3AF":(null===(so=null===(ao=null===(uo=null===(ro=null==vn?void 0:vn.approvalScreen)||void 0===ro?void 0:ro.body)||void 0===uo?void 0:uo.contentSegment)||void 0===ao?void 0:ao.contentBlock)||void 0===so?void 0:so.approveIconColor)||"#5928ED"})}))]})),Po&&ln.allowDeletion&&n("button",o({onClick:In,className:v.deleteButton,style:o({},null===(yo=null===(So=null===(mo=null===(po=null==vn?void 0:vn.approvalScreen)||void 0===po?void 0:po.body)||void 0===mo?void 0:mo.contentSegment)||void 0===So?void 0:So.contentBlock)||void 0===yo?void 0:yo.deleteButton)},{children:[l("span",{children:en.delete}),l(u,{size:16,color:(null===(fo=null===(Bo=null===(bo=null===(go=null==vn?void 0:vn.approvalScreen)||void 0===go?void 0:go.body)||void 0===bo?void 0:bo.contentSegment)||void 0===Bo?void 0:Bo.contentBlock)||void 0===fo?void 0:fo.deleteIconColor)||"#ed3f28"})]}))]}))}))]}))};export{p as ContentBlock,p as default};
1
+ import{__assign as o}from"tslib";import{jsxs as n,jsx as l}from"react/jsx-runtime";import{useState as e,useRef as t,useCallback as i,useEffect as d}from"react";import v from"./ContentBlock.module.css.js";import{CheckIcon as c}from"../../../../icons/CheckIcon.js";import{PencilIcon as r}from"../../../../icons/PencilIcon.js";import{TrashIcon as u}from"../../../../icons/TrashIcon.js";import{useUserStoryApprovalScreen as a}from"../../UserStoryApprovalContext.js";import{useRequirementAI as s}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";var p=function(p){var m,S,y,g,b,f,B,h,k,C,I,x,N,A,T,w,D,j,E,M,W,z,R,V,F,U,q,H,_,L,P,G,J,K,O,Q,X,Y,Z,$,oo,no,lo,eo,to,io,vo,co,ro,uo,ao,so,po,mo,So,yo,go,bo,fo,Bo,ho,ko,Co,Io,xo,No,Ao,To,wo,Do,jo,Eo,Mo,Wo,zo,Ro,Vo,Fo,Uo,qo,Ho=p.segment,_o=p.segmentIndex,Lo=p.isSubFeature,Po=void 0!==Lo&&Lo,Go=p.onSaveContent,Jo=p.onApproveContent,Ko=p.onDeleteContent,Oo=p.EditorComponent,Qo=p.ViewerComponent,Xo=a(),Yo=Xo.currentContentId,Zo=Xo.handleUpdateContentId,$o=Xo.isDisabled,on=Xo.isEditingSegment,nn=Xo.setIsEditingSegment,ln=Xo.config,en=Xo.labels,tn=Xo.showNotification,dn=s(),vn=dn.customStyles,cn=dn.customIcons,rn=e(!1),un=rn[0],an=rn[1],sn=t(Ho.content),pn=t(null),mn=e(0),Sn=mn[0],yn=mn[1],gn=Ho.contentId===Yo,bn=i(function(){if(pn.current){var o=pn.current;o.style.scrollMarginTop="".concat(90,"px"),o.scrollIntoView({behavior:"smooth",block:"start"})}},[]),fn=i(function(){if(pn.current){var o=pn.current;o.style.scrollMarginBottom="".concat(90,"px"),o.scrollIntoView({behavior:"smooth",block:"end"})}},[]);d(function(){if(gn&&pn.current&&!un){var o=setTimeout(function(){fn()},200);return function(){return clearTimeout(o)}}},[Yo,gn,un,fn]),d(function(){if(0!==Sn){var o=setTimeout(function(){bn()},150);return function(){return clearTimeout(o)}}},[Sn,bn]),d(function(){sn.current=Ho.content},[Ho.content]);var Bn=i(function(){sn.current=Ho.content,an(!0),nn(!0),yn(function(o){return o+1})},[Ho.content,nn]),hn=i(function(){sn.current=Ho.content,an(!1),nn(!1)},[Ho.content,nn]),kn=i(function(o,n){sn.current=n},[]),Cn=i(function(){var o=sn.current;(null==o?void 0:o.trim())?(an(!1),nn(!1),Go(_o,o)):tn("warn","Warning!",en.emptyContentWarning,3e3)},[_o,Go,nn,tn,en.emptyContentWarning]),In=i(function(){Jo(_o),Zo(Ho.contentId)},[_o,Ho.contentId,Jo,Zo]),xn=i(function(){null==Ko||Ko(_o)},[_o,Ko]),Nn=[v.container,gn?v.containerActive:v.containerDefault].join(" "),An=null===(y=null===(S=null===(m=null==vn?void 0:vn.approvalScreen)||void 0===m?void 0:m.body)||void 0===S?void 0:S.contentSegment)||void 0===y?void 0:y.contentBlock,Tn=gn?(null==An?void 0:An.currentSegementContainer)||{boxShadow:"0px 4px 14.3px 0px rgba(151, 71, 255, 0.3), 0px -4px 34.7px 0px rgba(51, 210, 255, 0.05)"}:(null==An?void 0:An.containerDefault)||{};return n("div",o({className:Nn,style:Tn,ref:pn},{children:[Ho.isApproved&&n("div",o({className:v.approvedBadge,style:o({},null===(B=null===(f=null===(b=null===(g=null==vn?void 0:vn.approvalScreen)||void 0===g?void 0:g.body)||void 0===b?void 0:b.contentSegment)||void 0===f?void 0:f.contentBlock)||void 0===B?void 0:B.approvedBadge)},{children:[l("span",{children:en.approved}),l(c,{size:16,color:null===(I=null===(C=null===(k=null===(h=null==vn?void 0:vn.approvalScreen)||void 0===h?void 0:h.body)||void 0===k?void 0:k.contentSegment)||void 0===C?void 0:C.contentBlock)||void 0===I?void 0:I.checkIconColor})]})),l("div",o({className:v.contentArea,style:o({},null===(T=null===(A=null===(N=null===(x=null==vn?void 0:vn.approvalScreen)||void 0===x?void 0:x.body)||void 0===N?void 0:N.contentSegment)||void 0===A?void 0:A.contentBlock)||void 0===T?void 0:T.contentArea)},{children:un&&Oo?l(Oo,{minHeight:"100%",height:"100%",type:"string",value:Ho.content||"",handleUpdateState:kn,doNotShowBorderInViewMode:!1,mode:"edit"}):Qo?l(Qo,{message:Ho.content||"",scenario:"approving",customStyles:o({},null===(w=null==vn?void 0:vn.userStoryScreenStyles)||void 0===w?void 0:w.userStoryContentStyles),customIcons:o({},null==cn?void 0:cn.userStoryIcons)}):l("div",{className:v.contentFallback,dangerouslySetInnerHTML:{__html:Ho.content||""}})})),un?n("div",o({className:v.editActionsContainer,style:o({},null===(Io=null===(Co=null===(ko=null===(ho=null==vn?void 0:vn.approvalScreen)||void 0===ho?void 0:ho.body)||void 0===ko?void 0:ko.contentSegment)||void 0===Co?void 0:Co.contentBlock)||void 0===Io?void 0:Io.editActionsContainer)},{children:[l("button",o({onClick:hn,className:v.outlineButton,style:o(o({},null===(To=null===(Ao=null===(No=null===(xo=null==vn?void 0:vn.approvalScreen)||void 0===xo?void 0:xo.body)||void 0===No?void 0:No.contentSegment)||void 0===Ao?void 0:Ao.contentBlock)||void 0===To?void 0:To.outlineButton),null===(Eo=null===(jo=null===(Do=null===(wo=null==vn?void 0:vn.approvalScreen)||void 0===wo?void 0:wo.body)||void 0===Do?void 0:Do.contentSegment)||void 0===jo?void 0:jo.contentBlock)||void 0===Eo?void 0:Eo.cancelButton)},{children:en.cancel})),l("button",o({onClick:Cn,className:v.outlineButton,style:o(o({},null===(Ro=null===(zo=null===(Wo=null===(Mo=null==vn?void 0:vn.approvalScreen)||void 0===Mo?void 0:Mo.body)||void 0===Wo?void 0:Wo.contentSegment)||void 0===zo?void 0:zo.contentBlock)||void 0===Ro?void 0:Ro.outlineButton),null===(qo=null===(Uo=null===(Fo=null===(Vo=null==vn?void 0:vn.approvalScreen)||void 0===Vo?void 0:Vo.body)||void 0===Fo?void 0:Fo.contentSegment)||void 0===Uo?void 0:Uo.contentBlock)||void 0===qo?void 0:qo.saveButton)},{children:en.save}))]})):l("div",o({className:v.actionsContainer,style:o({},null===(M=null===(E=null===(j=null===(D=null==vn?void 0:vn.approvalScreen)||void 0===D?void 0:D.body)||void 0===j?void 0:j.contentSegment)||void 0===E?void 0:E.contentBlock)||void 0===M?void 0:M.actionsContainer)},{children:n("div",o({className:v.actionsRow,style:o({},null===(V=null===(R=null===(z=null===(W=null==vn?void 0:vn.approvalScreen)||void 0===W?void 0:W.body)||void 0===z?void 0:z.contentSegment)||void 0===R?void 0:R.contentBlock)||void 0===V?void 0:V.actionsRow)},{children:[!on&&ln.allowEditing&&n("button",o({onClick:Bn,className:v.actionButton,style:o({},null===(H=null===(q=null===(U=null===(F=null==vn?void 0:vn.approvalScreen)||void 0===F?void 0:F.body)||void 0===U?void 0:U.contentSegment)||void 0===q?void 0:q.contentBlock)||void 0===H?void 0:H.actionButton)},{children:[l("span",o({className:v.actionText,style:o({},null===(G=null===(P=null===(L=null===(_=null==vn?void 0:vn.approvalScreen)||void 0===_?void 0:_.body)||void 0===L?void 0:L.contentSegment)||void 0===P?void 0:P.contentBlock)||void 0===G?void 0:G.actionText)},{children:en.correctMe})),l(r,{size:16,color:(null===(Q=null===(O=null===(K=null===(J=null==vn?void 0:vn.approvalScreen)||void 0===J?void 0:J.body)||void 0===K?void 0:K.contentSegment)||void 0===O?void 0:O.contentBlock)||void 0===Q?void 0:Q.pencilIcon)||"#5928ED"})]})),!Ho.isApproved&&n("button",o({disabled:$o,onClick:In,style:o({},null===($=null===(Z=null===(Y=null===(X=null==vn?void 0:vn.approvalScreen)||void 0===X?void 0:X.body)||void 0===Y?void 0:Y.contentSegment)||void 0===Z?void 0:Z.contentBlock)||void 0===$?void 0:$.approveButton),className:"".concat(v.actionButton," ").concat($o?v.actionDisabled:"")},{children:[l("span",o({className:(null==An?void 0:An.approveText)?"":$o?v.actionTextDisabled:v.actionText,style:o({},null==An?void 0:An.approveText)},{children:en.approve})),l("span",o({style:o({},null===(eo=null===(lo=null===(no=null===(oo=null==vn?void 0:vn.approvalScreen)||void 0===oo?void 0:oo.body)||void 0===no?void 0:no.contentSegment)||void 0===lo?void 0:lo.contentBlock)||void 0===eo?void 0:eo.approveIconStyle)},{children:l(c,{size:16,color:$o?(null===(co=null===(vo=null===(io=null===(to=null==vn?void 0:vn.approvalScreen)||void 0===to?void 0:to.body)||void 0===io?void 0:io.contentSegment)||void 0===vo?void 0:vo.contentBlock)||void 0===co?void 0:co.disableApproveIconColor)||"#9CA3AF":(null===(so=null===(ao=null===(uo=null===(ro=null==vn?void 0:vn.approvalScreen)||void 0===ro?void 0:ro.body)||void 0===uo?void 0:uo.contentSegment)||void 0===ao?void 0:ao.contentBlock)||void 0===so?void 0:so.approveIconColor)||"#5928ED"})}))]})),Po&&ln.allowDeletion&&n("button",o({onClick:xn,className:v.deleteButton,style:o({},null===(yo=null===(So=null===(mo=null===(po=null==vn?void 0:vn.approvalScreen)||void 0===po?void 0:po.body)||void 0===mo?void 0:mo.contentSegment)||void 0===So?void 0:So.contentBlock)||void 0===yo?void 0:yo.deleteButton)},{children:[l("span",{children:en.delete}),l(u,{size:16,color:(null===(Bo=null===(fo=null===(bo=null===(go=null==vn?void 0:vn.approvalScreen)||void 0===go?void 0:go.body)||void 0===bo?void 0:bo.contentSegment)||void 0===fo?void 0:fo.contentBlock)||void 0===Bo?void 0:Bo.deleteIconColor)||"#ed3f28"})]}))]}))}))]}))};export{p as ContentBlock,p as default};
2
2
  //# sourceMappingURL=ContentBlock.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,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};
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 C}from"./features/UserStoryImport/components/ContentArea.js";import{NavRow as A}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";export{default as CitationRenderer,collapseAllCitations,collapseCitationsByIds}from"./features/CitationRenderer/CitationRenderer.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:C,NavRow:A,UserStoryImportDialog:U,ResizeHandle:x});export{h as UserStoryPicker};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAEvJ,QAAA,MAAM,iBAAiB,+CA8tEtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoV3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAEvJ,QAAA,MAAM,iBAAiB,+CA89DtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoK3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
@@ -3,6 +3,7 @@ interface CitationRendererProps {
3
3
  inLineCitation: boolean;
4
4
  citationIcon?: ReactNode;
5
5
  citationTitle: string;
6
+ citationId?: string;
6
7
  chevronUpComponent?: React.ReactNode;
7
8
  chevronDownComponent?: React.ReactNode;
8
9
  additionalCallbackForPillButton?: any;
@@ -15,7 +16,16 @@ interface CitationRendererProps {
15
16
  };
16
17
  isOpen?: boolean;
17
18
  onToggle?: () => void;
19
+ defaultExpanded?: boolean;
18
20
  }
21
+ /**
22
+ * Collapses all expanded citations.
23
+ */
24
+ export declare const collapseAllCitations: () => void;
25
+ /**
26
+ * Collapses specific citations by their IDs.
27
+ */
28
+ export declare const collapseCitationsByIds: (ids: string[]) => void;
19
29
  declare const CitationRenderer: React.FC<CitationRendererProps>;
20
30
  export default CitationRenderer;
21
31
  //# sourceMappingURL=CitationRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CitationRenderer/CitationRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,UAAU,qBAAqB;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,+BAA+B,CAAC,EAAE,GAAG,CAAC;IACtC,iBAAiB,CAAC,EAAE,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE;QACL,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2DrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"CitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CitationRenderer/CitationRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,UAAU,qBAAqB;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,+BAA+B,CAAC,EAAE,GAAG,CAAC;IACtC,iBAAiB,CAAC,EAAE,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE;QACL,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAKD;;GAEG;AACH,eAAO,MAAM,oBAAoB,YAEhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAS,MAAM,EAAE,SAEnD,CAAC;AAEF,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6ErD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AiReasoningCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AA0BrG,MAAM,WAAW,wBAAwB;IACrC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACnC;AAED,QAAA,MAAM,mBAAmB,0HAQtB,wBAAwB,4CAwD1B,CAAA;AAED,eAAe,mBAAmB,CAAA"}
1
+ {"version":3,"file":"AiReasoningCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAyBrG,MAAM,WAAW,wBAAwB;IACrC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACnC;AAED,QAAA,MAAM,mBAAmB,0HAQtB,wBAAwB,4CAyD1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -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;AAgG7F,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;AAkSD,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA4anE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"ReadFileCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAKf,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,iCAAiC,CAAC;AAIzC,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;AAwID,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA0jBnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ReadFileCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAExD,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA4DrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"ReadFileCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAExD,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA6DrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -109,4 +109,5 @@ export { UserStoryImportDialog } from './features/UserStoryImport/components/Use
109
109
  export type { UserStoryImportChoice, UserStoryImportDialogProps } from './features/UserStoryImport/components/UserStoryImportDialog';
110
110
  export type { USPTheme, USPThemeColors, USPColorPaletteKey } from './features/UserStoryImport/UserStoryPicker.theme';
111
111
  export { uspColorPalette, darkTheme, lightTheme, vscodeTheme, uspVSCodeLightTheme, themeToStyle, } from './features/UserStoryImport/UserStoryPicker.theme';
112
+ export { default as CitationRenderer, collapseAllCitations, collapseCitationsByIds } from "./features/CitationRenderer/CitationRenderer";
112
113
  //# sourceMappingURL=index.d.ts.map
@@ -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,wBAAw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gB,EAChB,gBAAgB,GACjB,MAAM,kDAAkD,CAAC;AAG1D,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAGnF,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,YAAY,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAGjF,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAGtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AACpG,YAAY,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAGrI,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACrH,OAAO,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,YAAY,GACb,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EACH,OAAO,IAAI,gBAAgB,EAC3B,oBAAoB,EACpB,sBAAsB,EACzB,MAAM,8CAA8C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",