@e-llm-studio/requirement-ai 0.0.69 → 0.0.70

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 (103) hide show
  1. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  8. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  9. package/dist/cjs/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  10. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  11. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  12. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  13. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  14. package/dist/cjs/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  15. package/dist/cjs/index.js +1 -1
  16. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  17. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  18. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  19. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  20. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  21. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  22. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  23. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  24. package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  25. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  26. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  27. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  28. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  29. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  32. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +2 -6
  33. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  34. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +2 -2
  35. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  36. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  37. package/dist/types/src/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.d.ts +3 -3
  38. package/dist/types/src/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.d.ts.map +1 -1
  39. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts.map +1 -1
  40. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts +0 -17
  41. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts.map +1 -1
  42. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +1 -3
  43. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  44. package/dist/types/src/features/RequirementAI/hooks/useApprovalStatus.d.ts.map +1 -1
  45. package/dist/types/src/features/RequirementAI/hooks/useDiffEditReviewMode.d.ts +0 -1
  46. package/dist/types/src/features/RequirementAI/hooks/useDiffEditReviewMode.d.ts.map +1 -1
  47. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +0 -12
  48. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  49. package/dist/types/src/features/RequirementAI/shared/AtomicButton.d.ts.map +1 -1
  50. package/dist/types/src/features/RequirementAI/shared/ReqAiCitationRenderer.d.ts.map +1 -1
  51. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +1 -3
  52. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
  53. package/dist/types/src/features/RequirementAI/shared/useMarkdownSearch.d.ts +1 -5
  54. package/dist/types/src/features/RequirementAI/shared/useMarkdownSearch.d.ts.map +1 -1
  55. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +0 -6
  56. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  57. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +0 -2
  58. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
  59. package/dist/types/src/index.d.ts +1 -2
  60. package/dist/types/src/index.d.ts.map +1 -1
  61. package/package.json +1 -14
  62. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +0 -2
  63. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js.map +0 -1
  64. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +0 -2
  65. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js.map +0 -1
  66. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +0 -2
  67. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js.map +0 -1
  68. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +0 -2
  69. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js.map +0 -1
  70. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +0 -2
  71. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js.map +0 -1
  72. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +0 -2
  73. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js.map +0 -1
  74. package/dist/cjs/features/RequirementAI/shared/CodeViewer.module.css.js +0 -2
  75. package/dist/cjs/features/RequirementAI/shared/CodeViewer.module.css.js.map +0 -1
  76. package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +0 -2
  77. package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js.map +0 -1
  78. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +0 -2
  79. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js.map +0 -1
  80. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +0 -2
  81. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js.map +0 -1
  82. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +0 -2
  83. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js.map +0 -1
  84. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +0 -2
  85. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js.map +0 -1
  86. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +0 -2
  87. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js.map +0 -1
  88. package/dist/features/RequirementAI/shared/CodeViewer.js +0 -2
  89. package/dist/features/RequirementAI/shared/CodeViewer.js.map +0 -1
  90. package/dist/features/RequirementAI/shared/CodeViewer.module.css.js +0 -2
  91. package/dist/features/RequirementAI/shared/CodeViewer.module.css.js.map +0 -1
  92. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +0 -2
  93. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js.map +0 -1
  94. package/dist/types/src/features/RequirementAI/components/UserStoryCard/AttachedContext.d.ts +0 -7
  95. package/dist/types/src/features/RequirementAI/components/UserStoryCard/AttachedContext.d.ts.map +0 -1
  96. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts +0 -15
  97. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +0 -1
  98. package/dist/types/src/features/RequirementAI/icons/MeetingHighlightsIcon.d.ts +0 -3
  99. package/dist/types/src/features/RequirementAI/icons/MeetingHighlightsIcon.d.ts.map +0 -1
  100. package/dist/types/src/features/RequirementAI/shared/CodeViewer.d.ts +0 -11
  101. package/dist/types/src/features/RequirementAI/shared/CodeViewer.d.ts.map +0 -1
  102. package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts +0 -10
  103. package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts.map +0 -1
@@ -1,2 +0,0 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useMemo as r,useState as o,useRef as l,useCallback as a,useEffect as u}from"react";import c from"react-dom";import*as s from"monaco-editor";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as m,Maximize2 as f}from"lucide-react";"undefined"!=typeof self&&(self.MonacoEnvironment=e(e({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var g=!1,v=function(){if(!g&&"undefined"!=typeof document)try{var e=document.createElement("div");e.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none;",document.body.appendChild(e),s.editor.create(e,{value:"",language:"plaintext",automaticLayout:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},overviewRulerLanes:0,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}).dispose(),document.body.removeChild(e),g=!0}catch(e){g=!0}};v(),"undefined"!=typeof window&&(window.addEventListener("error",function(e){var n=e.message||"";if(n.includes("Worker")||n.includes("Monaco"))return e.preventDefault(),e.stopImmediatePropagation(),!1},!0),window.addEventListener("unhandledrejection",function(e){var n,t=(null===(n=e.reason)||void 0===n?void 0:n.message)||String(e.reason||"");(t.includes("Worker")||t.includes("Monaco"))&&(e.preventDefault(),e.stopImmediatePropagation())},!0));var p=function(e){return"number"==typeof e&&Number.isFinite(e)},y=function(e,n){return p(e)&&p(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},b=function(e,n,t,i){var r,o=e[0],l=e[1];if(!Number.isFinite(o)||!Number.isFinite(l))return null;if(l<o&&(o=(r=[l,o])[0],l=r[1]),p(t)&&p(i)){var a=Math.max(o,t),u=Math.min(l,i);if(a>u)return null;var c=a-t+1,s=u-t+1,d=Math.max(1,c),h=Math.min(n,s);return d>h?null:[d,h]}var m=Math.max(1,o),f=Math.min(n,l);return m>f?null:[m,f]},N=function(e,n,t,i){if(0===e.length)return!1;var r=y(t,i);return!!r&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(r.start>n||r.end>n||Math.abs(r.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<r.start||n>r.end})))},x={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},C={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},w={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},M=function(e){return w[e.toLowerCase()]||e},k=function(t){var i=t.code,r=t.language,o=t.theme,a=t.fontSize,c=t.fontFamily,h=t.height,m=t.blueHighlightRanges,f=t.yellowHighlightRanges,g=t.backgroundColor,p=t.editorWrapperStyle,y=t.lineNumberOffset,b=void 0===y?0:y,N=t.lineNumberDigits,x=l(null),C=l(null),w=l(!1);return u(function(){w.current=!1,v();var e=setTimeout(function(){var e,n=x.current;if(n&&!w.current&&!C.current)try{s.editor.setTheme(o);var t=s.editor.create(n,{value:i,language:M(r),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:a,lineHeight:20,fontFamily:c,lineNumbers:function(e){return String(e+b)},folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,null!=N?N:4),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0});C.current=t;var l=[];m.forEach(function(e){var n=e[0],t=e[1];l.push({range:new s.Range(n,1,t,1),options:{isWholeLine:!0,className:d.highlightedLine,linesDecorationsClassName:d.highlightedLineDecoration}})}),f.forEach(function(e){var n=e[0],t=e[1];l.push({range:new s.Range(n,1,t,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),l.length>0&&t.createDecorationsCollection(l);var u=null!==(e=f[0])&&void 0!==e?e:m[0];u&&requestAnimationFrame(function(){!w.current&&C.current&&t.revealLineInCenter(u[0])})}catch(e){}},50);return function(){if(w.current=!0,clearTimeout(e),C.current){try{C.current.dispose()}catch(e){}C.current=null}}},[]),u(function(){try{s.editor.setTheme(o)}catch(e){}},[o]),n("div",e({className:d.editorWrapper,style:e({height:"".concat(h,"px"),backgroundColor:g},p)},{children:n("div",{ref:x,style:{width:"100%",height:"100%"}})}))},L=function(s){var g=s.citation,v=s.customStyles,w=s.customColors,M=s.customIcons,L=s.editorConfig,F=s.fileCallback,S=r(function(){return e(e({},x),w)},[w]),O=r(function(){return e(e({},C),L)},[L]),B=o(!1),H=B[0],W=B[1],j=l(null),E=l(!1),R=g.customMetadata.content||"",P=g.customMetadata.highlighted_text,T=g.customMetadata.start_line,z=g.customMetadata.end_line,D=r(function(){if(!P)return{};try{var e=P.trim();return e.startsWith("```")&&(e=(e=e.replace(/^```\w*\n?/,"")).replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[P]),I=r(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(R));){var i=e[1]||"javascript",r=e[2].trim(),o=e[3].trim();r&&o&&n.push({filePath:r,code:o,language:i})}return n},[R]),_=a(function(e){return(D[e]||[]).map(function(e){var n=e.split("-").map(function(e){return Number(e.trim())}),t=n[0],i=n.length>1?n[1]:t;return Number.isFinite(t)&&Number.isFinite(i)?[t,i]:null}).filter(function(e){return null!==e})},[D]),q=r(function(){for(var e=function(e){var n=I[e],t=n.code.split("\n").length,i=_(n.filePath),r=N(i,t,T,z);if(i.map(function(e){return b(e,t,r?T:void 0,r?z:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<I.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[I,_,T,z]),G=q>=0,A=a(function(e,n){var t=_(e),i=N(t,n,T,z);return t.map(function(e){return b(e,n,i?T:void 0,i?z:void 0)}).filter(function(e){return null!==e})},[_,T,z]),J=a(function(e,n){if(null==T||null==z)return[];var t=n||function(e,n,t){var i=y(n,t);return!!i&&(i.start>e||i.end>e||Math.abs(i.length-e)<=1)}(e,T,z);if(t){var i=y(T,z);if(!i)return[];var r=Math.min(e,i.length);return r<1?[]:[[1,r]]}var o=Math.max(1,0===T?1:T),l=Math.min(z,e);return o>l?[]:[[o,l]]},[T,z]);u(function(){if(G&&!E.current&&I.length>0&&(null==F?void 0:F.autoOpenFirstHighlighted)&&(null==F?void 0:F.onOpenFile)){var e=I[q],n=A(e.filePath,e.code.split("\n").length);E.current=!0;var t=setTimeout(function(){F.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[G,q,I,A,F]),u(function(){E.current=!1},[R]),u(function(){if(!(q<0)){var e=setTimeout(function(){var e;null===(e=j.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[q,P]);var V=a(function(e,n){if(null==F?void 0:F.onOpenFile){var t=A(e,n);F.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[A,F]),$=a(function(){(null==F?void 0:F.onExpandClick)?F.onExpandClick({blocks:I,highlightMap:D}):W(!0)},[F,I,D]),K=!!(null==F?void 0:F.onOpenFile),Q=(null==M?void 0:M.readFileCitationIcon)||n(h,{style:{width:"14px",height:"14px"}}),U=function(i){return I.map(function(r,o){var l,a,u=r.code.split("\n").length,c=_(r.filePath),s=N(c,u,T,z),h=c.map(function(e){return b(e,u,s?T:void 0,s?z:void 0)}).filter(function(e){return null!==e}),m=s&&p(T)?h.map(function(e){var n=e[0],t=e[1];return[n+T-1,t+T-1]}):h,g=h.length>0,y=o===q,x=i?600:O.maxHeight,C=(l=20*r.code.split("\n").length+16+4,Math.min(Math.max(l,O.minHeight),x)),w=r.filePath.split("/").pop(),M=J(u,s),L=s&&p(T)?T-1:0,F=L+u,B=String(Math.max(1,F)).length;return t("div",e({ref:!i&&y?j:void 0,"data-highlighted":g?"true":void 0,"data-first-highlighted":y?"true":void 0,className:d.blockContainer,style:e({border:"1px solid ".concat(S.border)},null==v?void 0:v.blockContainer)},{children:[t("div",e({className:d.header,style:e({backgroundColor:g?S.highlightBg:S.headerBg,borderBottom:"1px solid ".concat(S.border),color:g?S.highlightGutter:S.foreground},g?null==v?void 0:v.headerHighlighted:null==v?void 0:v.header)},{children:[t("div",e({className:d.headerLeft},{children:[n("span",e({className:d.fileName,title:r.filePath,style:null==v?void 0:v.fileName},{children:w})),K&&n("button",e({className:d.openFileButton,onClick:function(){return V(r.filePath,u)},title:"Open in editor","aria-label":"Open ".concat(w," in editor"),style:null==v?void 0:v.openFileButton},{children:Q}))]})),t("div",e({className:d.headerRight},{children:[g&&n("span",e({className:d.lineRanges,style:null==v?void 0:v.lineRanges},{children:(a=m,a.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!i&&0===o&&n("button",e({className:d.expandButton,style:null==v?void 0:v.expandButton,onClick:$,title:"Expand","aria-label":"Expand code view"},{children:n(f,{size:13})}))]}))]})),n(k,{code:r.code,language:r.language,theme:O.theme,fontSize:O.fontSize,fontFamily:O.fontFamily,height:C,blueHighlightRanges:M,yellowHighlightRanges:h,backgroundColor:S.background,editorWrapperStyle:null==v?void 0:v.editorWrapper,lineNumberOffset:L,lineNumberDigits:B})]}),o)})};if(0===I.length)return n("div",e({className:d.emptyState,style:e({color:S.inactiveText},null==v?void 0:v.emptyState)},{children:"No code content available"}));var X=H?c.createPortal(n("div",e({className:d.modalOverlay,style:null==v?void 0:v.modalOverlay,onClick:function(e){e.target===e.currentTarget&&W(!1)}},{children:t("div",e({className:d.modalContent,style:null==v?void 0:v.modalContent},{children:[t("div",e({className:d.modalHeader,style:null==v?void 0:v.modalHeader},{children:[n("span",e({className:d.modalTitle,style:null==v?void 0:v.modalTitle},{children:1===I.length?I[0].filePath:"".concat(I.length," files")})),n("button",e({className:d.modalCloseButton,style:null==v?void 0:v.modalCloseButton,onClick:function(){return W(!1)},"aria-label":"Close expanded view"},{children:n(m,{size:16})}))]})),n("div",e({className:d.modalBody},{children:n("div",e({className:d.container,style:null==v?void 0:v.container},{children:U(!0)}))}))]}))})),document.body):null;return t(i,{children:[X,n("div",e({className:d.container,style:null==v?void 0:v.container},{children:U(!1)}))]})};export{L as default};
2
- //# sourceMappingURL=ReadFileCitationContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadFileCitationContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var e={container:"ReadFileCitationContent-module_container__Oi3tV",blockContainer:"ReadFileCitationContent-module_blockContainer__yGEX8",header:"ReadFileCitationContent-module_header__39-AD",headerLeft:"ReadFileCitationContent-module_headerLeft__WOyMV",fileName:"ReadFileCitationContent-module_fileName__ql9Qu",openFileButton:"ReadFileCitationContent-module_openFileButton__oqea1",lineRanges:"ReadFileCitationContent-module_lineRanges__RIofb",editorWrapper:"ReadFileCitationContent-module_editorWrapper__ab5Sg",highlightedLine:"ReadFileCitationContent-module_highlightedLine__w6iv-",highlightedLineDecoration:"ReadFileCitationContent-module_highlightedLineDecoration__EykBL",yellowHighlightedLine:"ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP",yellowHighlightedLineDecoration:"ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N",emptyState:"ReadFileCitationContent-module_emptyState__34kcg",loadingEditor:"ReadFileCitationContent-module_loadingEditor__aOHYT",headerRight:"ReadFileCitationContent-module_headerRight__Hetda",expandButton:"ReadFileCitationContent-module_expandButton__wjkgL",modalOverlay:"ReadFileCitationContent-module_modalOverlay__ZJSqk",modalContent:"ReadFileCitationContent-module_modalContent__PA-tB",modalHeader:"ReadFileCitationContent-module_modalHeader__9Jcjf",modalTitle:"ReadFileCitationContent-module_modalTitle__M60Jk",modalCloseButton:"ReadFileCitationContent-module_modalCloseButton__4bymQ",modalBody:"ReadFileCitationContent-module_modalBody__Oo7OO"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ReadFileCitationContent-module_container__Oi3tV{display:flex;flex-direction:column;gap:12px;margin-top:4px}.ReadFileCitationContent-module_blockContainer__yGEX8{border-radius:4px;overflow:hidden}.ReadFileCitationContent-module_header__39-AD{align-items:center;display:flex;font-family:monospace;font-size:12px;gap:8px;justify-content:space-between;padding:6px 12px}.ReadFileCitationContent-module_headerLeft__WOyMV{align-items:center;display:flex;flex:1;gap:8px;min-width:0}.ReadFileCitationContent-module_fileName__ql9Qu{opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReadFileCitationContent-module_openFileButton__oqea1{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_openFileButton__oqea1:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_lineRanges__RIofb{flex-shrink:0;font-size:11px;max-width:300px;opacity:.7;overflow-x:auto;white-space:nowrap}.ReadFileCitationContent-module_editorWrapper__ab5Sg{overflow:hidden}.ReadFileCitationContent-module_highlightedLine__w6iv-{background-color:#3b82f626!important}.ReadFileCitationContent-module_highlightedLineDecoration__EykBL{background-color:#3b82f6;margin-left:0;width:3px!important}.ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP{background-color:#eab30833!important}.ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N{background-color:#eab308;margin-left:0;width:3px!important}.ReadFileCitationContent-module_emptyState__34kcg{font-size:14px;padding:12px;text-align:center}.ReadFileCitationContent-module_loadingEditor__aOHYT{align-items:center;display:flex;font-size:14px;height:64px;justify-content:center}.ReadFileCitationContent-module_headerRight__Hetda{align-items:center;display:flex;flex-shrink:0;gap:6px}.ReadFileCitationContent-module_expandButton__wjkgL{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;flex-shrink:0;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_expandButton__wjkgL:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalOverlay__ZJSqk{align-items:center;background-color:#000000b3;box-sizing:border-box;display:flex;inset:0;justify-content:center;padding:24px;position:fixed;z-index:9999}.ReadFileCitationContent-module_modalContent__PA-tB{background:#1e1e1e;border:1px solid #3c3c3c;border-radius:6px;display:flex;flex-direction:column;max-height:90vh;max-width:900px;overflow:hidden;width:100%}.ReadFileCitationContent-module_modalHeader__9Jcjf{align-items:center;background:#252526;border-bottom:1px solid #3c3c3c;display:flex;flex-shrink:0;justify-content:space-between;padding:10px 14px}.ReadFileCitationContent-module_modalTitle__M60Jk{color:#ccc;font-family:monospace;font-size:13px;opacity:.85}.ReadFileCitationContent-module_modalCloseButton__4bymQ{align-items:center;background:none;border:none;border-radius:4px;color:#ccc;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_modalCloseButton__4bymQ:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalBody__Oo7OO{flex:1;overflow-y:auto;padding:12px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
2
- //# sourceMappingURL=ReadFileCitationContent.module.css.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadFileCitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as t}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";var o=function(o){var i=o.className,n=o.style;return e("svg",t({className:i,style:n,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[r("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),r("polyline",{points:"15 3 21 3 21 9"}),r("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}))};export{o as default};
2
- //# sourceMappingURL=ExternalLinkIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExternalLinkIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as t}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";var i=function(i){return e("svg",t({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{children:[r("path",{d:"M18.5998 18.0004C18.9598 16.897 19.3576 16.4989 20.3998 16.2004C19.3576 15.9019 18.9598 15.5038 18.5998 14.4004C18.2398 15.5038 17.842 15.9019 16.7998 16.2004C17.842 16.4989 18.2398 16.897 18.5998 18.0004Z",stroke:"#2546F0",strokeWidth:.6,strokeLinejoin:"round"}),r("line",{x1:12.3,y1:5.7,x2:17.7,y2:5.7,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),r("line",{x1:12.3,y1:8.10039,x2:17.7,y2:8.10039,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),r("line",{x1:12.3,y1:10.5008,x2:17.7,y2:10.5008,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),r("line",{x1:6.3,y1:12.9012,x2:12.9,y2:12.9012,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),r("line",{x1:6.3,y1:15.3016,x2:12.9,y2:15.3016,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),r("line",{x1:6.3,y1:17.702,x2:12.9,y2:17.702,stroke:"#2546F0",strokeWidth:.6,strokeLinecap:"round"}),e("g",t({clipPath:"url(#clip0_696_41387)"},{children:[r("path",{d:"M8.33806 4.94727H3.66272C2.96666 4.94727 2.40039 5.51356 2.40039 6.20961V9.09338C2.40039 9.78944 2.96666 10.3557 3.66272 10.3557L6.64066 10.3557L8.06621 11.7813C8.11452 11.8296 8.17907 11.8552 8.24479 11.8552C8.27731 11.8552 8.31011 11.8489 8.34133 11.836C8.43568 11.7969 8.4972 11.7049 8.4972 11.6027V10.3457C9.11844 10.2673 9.60039 9.73555 9.60039 9.09338V6.20961C9.60039 5.51356 9.03412 4.94727 8.33806 4.94727ZM9.09546 9.0934C9.09546 9.51104 8.7557 9.8508 8.33806 9.8508H8.24473C8.10531 9.8508 7.99226 9.96386 7.99226 10.1033V10.9932L6.92377 9.92474C6.87643 9.87738 6.81224 9.8508 6.74525 9.8508H3.66272C3.24508 9.8508 2.90532 9.51104 2.90532 9.0934V6.20963C2.90532 5.792 3.24508 5.45224 3.66272 5.45224H8.33806C8.7557 5.45224 9.09546 5.792 9.09546 6.20963V9.0934Z",fill:"#2546F0"}),r("path",{d:"M7.85548 6.73438H4.13918C3.99976 6.73438 3.88672 6.8474 3.88672 6.98684C3.88672 7.12626 3.99976 7.23931 4.13918 7.23931H7.85548C7.9949 7.23931 8.10795 7.12626 8.10795 6.98684C8.10795 6.8474 7.99492 6.73438 7.85548 6.73438Z",fill:"#2546F0"}),r("path",{d:"M7.85548 8.14648H4.13918C3.99976 8.14648 3.88672 8.25951 3.88672 8.39895C3.88672 8.53839 3.99976 8.65142 4.13918 8.65142H7.85548C7.9949 8.65142 8.10795 8.53837 8.10795 8.39895C8.10795 8.25953 7.99492 8.14648 7.85548 8.14648Z",fill:"#2546F0"})]})),r("path",{d:"M18.2451 2.41309C19.4553 2.53606 20.3994 3.55819 20.3994 4.80078V14.4004H19.2002V18H20.3994V19.2002C20.399 20.4424 19.455 21.465 18.2451 21.5879L18 21.6006H6L5.75391 21.5879C4.54443 21.4645 3.6 20.4421 3.59961 19.2002V12H4.7998V19.2002C4.80023 19.8623 5.33788 20.4 6 20.4004H18C18.6623 20.4002 19.1988 19.8624 19.1992 19.2002V4.80078C19.1992 4.13817 18.6626 3.6008 18 3.60059H6C5.33781 3.60101 4.80012 4.13759 4.7998 4.7998H3.59961C3.59991 3.55784 4.54446 2.53652 5.75391 2.41309L6 2.40039H18L18.2451 2.41309Z",fill:"#2546F0"}),r("defs",{children:r("clipPath",t({id:"clip0_696_41387"},{children:r("rect",{width:7.2,height:7.2,fill:"white",transform:"translate(2.40039 4.80078)"})}))})]}))};export{i as default};
2
- //# sourceMappingURL=MeetingHighlightsIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MeetingHighlightsIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as e}from"tslib";import{jsx as i}from"react/jsx-runtime";import o from"@monaco-editor/react";import t from"./CodeViewer.module.css.js";function a(a){var n=a.code,r=a.language,m=void 0===r?"typescript":r,d=a.readOnly,l=void 0!==d&&d,s=a.lineHeight,c=void 0===s?20:s,p=a.minHeight,h=void 0===p?60:p,g=a.maxHeight,v=void 0===g?600:g,u=n.split("\n").length,f=Math.min(v,Math.max(h,u*c+20));return i("div",e({className:t.container},{children:i(o,{height:"".concat(f,"px"),language:m,value:n,theme:"vs-dark",options:{readOnly:l,fontSize:14,lineHeight:c,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on"}})}))}export{a as default};
2
- //# sourceMappingURL=CodeViewer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeViewer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var e={container:"CodeViewer-module_container__n5W6V"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".CodeViewer-module_container__n5W6V{background-color:#0d1117;border:1px solid #374151;border-radius:.75rem;overflow:hidden}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
2
- //# sourceMappingURL=CodeViewer.module.css.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeViewer.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{jsx as e}from"react/jsx-runtime";import{FileText as s,Clapperboard as t,Image as a,AudioLines as i}from"lucide-react";import r from"../icons/MeetingHighlightsIcon.js";var o={thinkingBulbIcon:"https://storymod-assests.pages.dev/ThinkingBulbIcon.gif",brainStormIcon:"https://storymod-assests.pages.dev/brainstorm.gif",brainStormCropped:"https://storymod-assests.pages.dev/brainstorm-cropped.gif",stormeeCitationIcon:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",rcaCitationIcon:"https://storymod-assests.pages.dev/appmod-icon.svg"},n=function(n,c){switch(null==n?void 0:n.toLowerCase()){case"mp3":case"wav":case"audio":return e(i,{className:"h-5 w-5 text-indigo-600",size:24});case"png":case"jpg":case"jpeg":case"image":case"heic":case"heif":return e(a,{className:"h-5 w-5 text-purple-500",size:24});case"mp4":case"avi":case"mov":case"video":return e(t,{className:"h-5 w-5 text-rose-500",size:24});case"pdf":return e(s,{className:"h-5 w-5 text-red-500",size:24});case"doc":case"docx":return e(s,{className:"h-5 w-5 text-blue-600",size:24});case"txt":return e(s,{className:"h-5 w-5 text-gray-600",size:24});case"json":if(null==c?void 0:c.startsWith("ST_"))return e("img",{src:o.stormeeCitationIcon,style:{mixBlendMode:"multiply"},className:"w-7 h-7"});if(null==c?void 0:c.startsWith("MH_"))return e(r,{});break;default:return e(s,{className:"h-5 w-5 text-yellow-600",size:24})}},c=function(e,s){if("json"===(null==e?void 0:e.toLowerCase())){if(null==s?void 0:s.startsWith("ST_"))return"Stormee";if(null==s?void 0:s.startsWith("MH_"))return"Meeting Highlights"}return e};export{n as GetFileIcon,o as assetList,c as getDisplayFileType};
2
- //# sourceMappingURL=userStoryAttachedContext.utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"userStoryAttachedContext.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * MAIN COMPONENT: AttachedContext
4
- */
5
- declare const AttachedContext: React.FC;
6
- export default AttachedContext;
7
- //# sourceMappingURL=AttachedContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttachedContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/AttachedContext.tsx"],"names":[],"mappings":";AAiLA;;GAEG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EA2H5B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { ReadFileCitationColors, ReadFileCitationEditorConfig, ReadFileCitationFileCallback } from "./types";
3
- import { ReadFileCitation } from "../../../types/citation.type";
4
- import { ReadFileCitationStyleGroup, UserStoryIcons } from "../../../types/aiReasoning.type";
5
- interface ReadFileCitationContentProps {
6
- citation: ReadFileCitation;
7
- customStyles?: ReadFileCitationStyleGroup;
8
- customColors?: ReadFileCitationColors;
9
- customIcons?: UserStoryIcons;
10
- editorConfig?: ReadFileCitationEditorConfig;
11
- fileCallback?: ReadFileCitationFileCallback;
12
- }
13
- declare const ReadFileCitationContent: React.FC<ReadFileCitationContentProps>;
14
- export default ReadFileCitationContent;
15
- //# sourceMappingURL=ReadFileCitationContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadFileCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AA+F7F,UAAU,4BAA4B;IACpC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,YAAY,CAAC,EAAE,4BAA4B,CAAC;CAC7C;AA4TD,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA6ZnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const MeetingHighlightsIcon: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default MeetingHighlightsIcon;
3
- //# sourceMappingURL=MeetingHighlightsIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MeetingHighlightsIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/icons/MeetingHighlightsIcon.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,qBAAqB,UAAW,GAAG,4CAkGtC,CAAC;AACF,eAAe,qBAAqB,CAAC"}
@@ -1,11 +0,0 @@
1
- interface CodeViewerProps {
2
- code: string;
3
- language?: string;
4
- readOnly?: boolean;
5
- lineHeight?: number;
6
- minHeight?: number;
7
- maxHeight?: number;
8
- }
9
- export default function CodeViewer({ code, language, readOnly, lineHeight, minHeight, maxHeight, }: CodeViewerProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
11
- //# sourceMappingURL=CodeViewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeViewer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/CodeViewer.tsx"],"names":[],"mappings":"AAGA,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,QAAuB,EACvB,QAAgB,EAChB,UAAe,EACf,SAAc,EACd,SAAe,GAChB,EAAE,eAAe,2CA2BjB"}
@@ -1,10 +0,0 @@
1
- export declare const assetList: {
2
- thinkingBulbIcon: string;
3
- brainStormIcon: string;
4
- brainStormCropped: string;
5
- stormeeCitationIcon: string;
6
- rcaCitationIcon: string;
7
- };
8
- export declare const GetFileIcon: (type: string, displayName?: string) => import("react/jsx-runtime").JSX.Element | undefined;
9
- export declare const getDisplayFileType: (type: string, displayName?: string) => string;
10
- //# sourceMappingURL=userStoryAttachedContext.utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"userStoryAttachedContext.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/userStoryAttachedContext.utils.tsx"],"names":[],"mappings":"AAWE,eAAO,MAAM,SAAS;;;;;;CAMvB,CAAA;AAEC,eAAO,MAAM,WAAW,SAAU,MAAM,gBAAgB,MAAM,wDAiD7D,CAAA;AAED,eAAO,MAAM,kBAAkB,SAAU,MAAM,gBAAgB,MAAM,KAAG,MAMvE,CAAC"}