@e-llm-studio/requirement-ai 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
- package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/icons/RelevanceScoreIcon.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/CitationAIConfidenceDisplay.d.ts +5 -1
- package/dist/types/src/features/RequirementAI/shared/CitationAIConfidenceDisplay.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/utils/user-story.utils.d.ts +14 -0
- package/dist/types/src/features/RequirementAI/utils/user-story.utils.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),s=require("./searchwaveform.js"),a=require("./components/videoPlayer.js"),n=require("./utils/word-segment-util.js"),r=require("./components/SegmentByWordsViral.js"),l=require("./SearchWaveFromWrapper.module.css.js"),o=require("./icons/AudioLinesIcon.js"),d=require("./icons/VideoIcon.js"),u=require("@mui/material"),c=require("../../../shared/CitationAIConfidenceDisplay.js"),m=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),v=require("./store/autoplay.wavefrom.js"),g=function(e){var t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60),a=function(e){return String(e).padStart(2,"0")};return"".concat(a(t),":").concat(a(i),":").concat(s.toFixed(0))},f=i.memo(function(f){var h=f.title,y=f.segments,p=f.gsUtilPath,_=f.citationNumber,j=f.relevanceScore,x=f.customStyles,S=i.useState(0),P=S[0],w=S[1],A=i.useState(y.length>0),q=A[0],N=A[1],C=i.useState(!1);C[0];var U=C[1],L=i.useState(!1),b=L[0],k=L[1],B=i.useState(""),T=B[0],M=B[1],I=i.useState(!0),W=I[0],
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),s=require("./searchwaveform.js"),a=require("./components/videoPlayer.js"),n=require("./utils/word-segment-util.js"),r=require("./components/SegmentByWordsViral.js"),l=require("./SearchWaveFromWrapper.module.css.js"),o=require("./icons/AudioLinesIcon.js"),d=require("./icons/VideoIcon.js"),u=require("@mui/material"),c=require("../../../shared/CitationAIConfidenceDisplay.js"),m=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),v=require("./store/autoplay.wavefrom.js"),g=function(e){var t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60),a=function(e){return String(e).padStart(2,"0")};return"".concat(a(t),":").concat(a(i),":").concat(s.toFixed(0))},f=i.memo(function(f){var h=f.title,y=f.segments,p=f.gsUtilPath,_=f.citationNumber,j=f.relevanceScore,x=f.customStyles,S=i.useState(0),P=S[0],w=S[1],A=i.useState(y.length>0),q=A[0],N=A[1],C=i.useState(!1);C[0];var U=C[1],L=i.useState(!1),b=L[0],k=L[1],B=i.useState(""),T=B[0],M=B[1],I=i.useState(!0),W=I[0],D=I[1],V=i.useState("audio"),E=V[0],Q=V[1],R=m.useRequirementAI().apiCachingConfig,O=R.queryClient,G=R.useGetSignedUrlQuery,z=R.useGetSignedUrlMutation,F=R.useExtractAudioPeaksMutation,H=R.useExtractAudioPeaksQuery,$=R.useGetVideoSignedUrlQuery,J=R.useGetVideoSignedUrlMutation,K=i.useRef(null),X=p.replace(/\.wav$|\.mp3$/i,".mp4"),Y=["getSignedUrl",p],Z=["extractAudioPeaks",p],ee=["getVideoSignedUrl",X],te=G(p,Y).data,ie=H(p,Z).data,se=$(X,ee).data,ae=z(p),ne=ae.mutate,re=ae.isPending,le=F(p),oe=le.mutate,de=le.isPending,ue=J(X).mutate,ce=i.useCallback(function(e){w(e)},[]);i.useEffect(function(){if(p){var e=O.getQueryData(Y),t=O.getQueryData(Z),i=O.getQueryData(ee);e||ne({gsUtilPath:p}),t||oe({gsUtilPath:p}),i||ue({gsUtilPath:X})}else console.error("Error -> SearchWaveformWrapper: gsUtilPath is required to fetch signed URL")},[p]),i.useEffect(function(){se&&e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,fetch(se)];case 1:return t=e.sent(),M(t.ok?se:""),[2]}})})},[se]);return t.jsx(v.AudioPlayProvider,{children:t.jsxs("div",e.__assign({className:l.default.wrapper,style:null==x?void 0:x.wrapper},{children:[t.jsxs("div",e.__assign({className:l.default.header,style:null==x?void 0:x.header},{children:[t.jsx("h2",e.__assign({className:l.default.title,style:null==x?void 0:x.title},{children:h||"Audio Snippet"})),c.renderCitationAIConfidenceDisplay(j,!0,null==x?void 0:x.confidenceDisplay)]})),t.jsxs("div",e.__assign({className:l.default.content,style:null==x?void 0:x.content},{children:["audio"!==E&&T?t.jsxs("div",e.__assign({className:l.default.videoSection,style:null==x?void 0:x.videoSection},{children:[W&&t.jsxs("div",e.__assign({className:l.default.videoLoader,style:null==x?void 0:x.videoLoader},{children:[t.jsx(u.CircularProgress,{size:40}),t.jsx("p",{children:"Loading video..."})]})),t.jsx("div",e.__assign({style:{visibility:W?"hidden":"visible",position:W?"absolute":"relative"}},{children:t.jsx(a.default,{videoSrc:T,currentTime:P,isWaveformPlaying:b,onBufferingStart:function(){U(!0),b&&k(!1)},onBufferingEnd:function(){U(!1)},onVideoPlayPause:function(e){K.current?e?b||K.current.togglePlayPause():b&&K.current.togglePlayPause():k(e)},className:"w-full aspect-video rounded-lg overflow-hidden shadow-lg mb-2",onVideoLoadingStateChange:function(e){return function(e){D(e)}(e)},isUrlPending:re,isPeaksPending:de,signedUrl:te,AudioData:ie,showOnlyMatched:q,wavesurferRef:K,handleAudioTimeUpdate:ce,segments:y,setIsAudioPlaying:k,setShowOnlyMatched:N,customStyles:null==x?void 0:x.videoPlayer,waveformStyles:null==x?void 0:x.waveform},"video-".concat(_))}))]})):t.jsx("div",e.__assign({className:l.default.audioSection,style:null==x?void 0:x.audioSection},{children:re||de?t.jsxs("div",e.__assign({className:l.default.audioLoader,style:null==x?void 0:x.audioLoader},{children:[t.jsx(u.CircularProgress,{size:48}),t.jsx("span",{children:"Loading audio peaks..."})]})):te&&ie&&t.jsx(s.default,{ref:K,audio_file_name:te,matchedSegments:y,peaks:ie.peaks,duration:ie.duration,setIsAudioPlaying:k,onTimeUpdate:ce,currentAudioTime:P,showOnlyMatched:q,setShowOnlyMatched:N,customStyles:null==x?void 0:x.waveform},"audio-".concat(_))})),t.jsxs("div",e.__assign({className:l.default.controls,style:null==x?void 0:x.controls},{children:[T&&t.jsxs("div",e.__assign({className:l.default.mediaToggle,style:null==x?void 0:x.mediaToggle},{children:[t.jsx("span",e.__assign({className:"\n ".concat(l.default.mediaButton,"\n ").concat("video"===E&&l.default.mediaButtonActive,"\n "),style:"video"===E?null==x?void 0:x.mediaButtonActive:null==x?void 0:x.mediaButton,onClick:function(){return Q("video")}},{children:t.jsx(d.default,{})})),t.jsx("span",e.__assign({className:"\n ".concat(l.default.mediaButton,"\n ").concat("audio"===E&&l.default.mediaButtonActive,"\n "),style:"audio"===E?null==x?void 0:x.mediaButtonActive:null==x?void 0:x.mediaButton,onClick:function(){return Q("audio")}},{children:t.jsx(o.default,{})}))]})),t.jsx("label",e.__assign({className:l.default.switchLabel,style:null==x?void 0:x.switchLabel},{children:t.jsx("span",{children:"play only matched segments"})}))]})),t.jsxs("div",e.__assign({className:l.default.transcript,style:null==x?void 0:x.transcriptContainer},{children:[t.jsx("div",e.__assign({className:l.default.transcriptHeader,style:null==x?void 0:x.transcriptHeader},{children:"Transcript"})),function(i){var s=n.sortTopicsByCheckedStatus(i);return t.jsx("div",e.__assign({className:l.default.segmentList,style:null==x?void 0:x.segmentList},{children:null==s?void 0:s.map(function(i){return t.jsx("div",e.__assign({id:i.segment_id,className:l.default.segmentItem,style:null==x?void 0:x.transcriptSegment},{children:t.jsx(r.default,{content:i.text,startTime:g(i.start),endTime:g(i.end),words:i.words||[],currentTime:P,containerStyle:null==x?void 0:x.transcriptContainer,customStyles:null==x?void 0:x.segmentWords})}),i.segment_id)})}))}(y)]}))]}))]}))})});exports.default=f,exports.formatTime=g;
|
|
2
2
|
//# sourceMappingURL=SearchWaveFromWrapper.js.map
|
package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.height,o=void 0===i?24:i,s=t.width,n=void 0===s?24:s;return r.jsx("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.height,o=void 0===i?24:i,s=t.width,n=void 0===s?24:s;return r.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"})}))};
|
|
2
2
|
//# sourceMappingURL=PlayIcon.js.map
|
package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),i=require("./FileCitationContent.module.css.js"),n=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),s=require("../../../shared/CitationAIConfidenceDisplay.js");function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}exports.default=function(a){var o,u,d,c,f,v=n.useRequirementAI().apiCachingConfig,p
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),i=require("./FileCitationContent.module.css.js"),n=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),s=require("../../../shared/CitationAIConfidenceDisplay.js");function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}exports.default=function(a){var o,u,d,c,f,v,p=n.useRequirementAI().apiCachingConfig,g=p.queryClient,h=p.useGetSignedUrlQuery,y=p.useGetSignedUrlMutation,m=["getSignedUrl",a.gsUtilPath],_=h(a.gsUtilPath,m).data,j=y(a.gsUtilPath),P=j.mutate,x=j.isPending,C=r.useState(null),S=C[0],U=C[1],w=r.useState(null),b=w[0],q=w[1];r.useEffect(function(){Promise.resolve().then(function(){return l(require("@react-pdf-viewer/core"))}).then(function(e){U({Worker:e.Worker,Viewer:e.Viewer})}).catch(function(){q("@react-pdf-viewer/core is not installed. Run: npm install @react-pdf-viewer/core")})},[]),r.useEffect(function(){a.gsUtilPath?g.getQueryData(m)||x||P({gsUtilPath:a.gsUtilPath}):console.error("error","Error","Please provide valid gsUtilPath.")},[a.gsUtilPath,g,m,x]);return t.jsxs("div",e.__assign({className:i.default.bookCitationContentContainer,style:null===(o=a.customStyles)||void 0===o?void 0:o.container},{children:[t.jsxs("div",e.__assign({className:i.default.header,style:null===(u=a.customStyles)||void 0===u?void 0:u.header},{children:[t.jsx("h2",e.__assign({className:i.default.title,style:null===(d=a.customStyles)||void 0===d?void 0:d.title},{children:a.title})),s.renderCitationAIConfidenceDisplay(a.relevanceScore,!0,null===(c=a.customStyles)||void 0===c?void 0:c.confidenceDisplay)]})),t.jsx("div",e.__assign({className:i.default.previewContainer,style:null===(f=a.customStyles)||void 0===f?void 0:f.previewContainer},{children:"book_citation_pdf"===a.fileType&&t.jsx("div",e.__assign({className:i.default.pdfWrapper,style:null===(v=a.customStyles)||void 0===v?void 0:v.pdfWrapper},{children:!x&&_&&function(r){var i;if(b)return t.jsx("div",e.__assign({style:e.__assign({color:"red",fontSize:"12px"},null===(i=a.customStyles)||void 0===i?void 0:i.errorText)},{children:b}));if(!S)return t.jsx("div",{children:"Loading PDF viewer..."});var n=S.Worker,s=S.Viewer;return t.jsx(n,e.__assign({workerUrl:"https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js"},{children:t.jsx(s,{fileUrl:r})}))}(_)}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=FileCitationContent.js.map
|
package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("react"),t=require("@mui/material"),a=require("./ImageCitationContent.module.css.js"),r=require("../../../shared/CitationAIConfidenceDisplay.js"),l=require("../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(n){var o,u,d,c,g,m,v,h=l.useRequirementAI().apiCachingConfig,y=h.queryClient,f=h.useGetSignedUrlQuery,p=h.useGetSignedUrlMutation,x=["getSignedUrl",n.gsUtilPath],C=f(n.gsUtilPath,x).data,j=p(n.gsUtilPath),q=j.mutate,P=j.isPending;return s.useEffect(function(){n.gsUtilPath?y.getQueryData(x)||q({gsUtilPath:n.gsUtilPath}):console.error("Error -> ImageCitationContent: gsUtilPath is required to fetch signed URL")},[n.gsUtilPath]),i.jsxs("div",e.__assign({className:a.default.container,style:null===(o=n.customStyles)||void 0===o?void 0:o.container},{children:[i.jsxs("div",e.__assign({className:a.default.header,style:null===(u=n.customStyles)||void 0===u?void 0:u.header},{children:[i.jsx("h2",e.__assign({className:a.default.title,style:null===(d=n.customStyles)||void 0===d?void 0:d.title},{children:"Visual Reference"})),r.renderCitationAIConfidenceDisplay(n.relevanceScore,!0,null===(c=n.customStyles)||void 0===c?void 0:c.confidenceDisplay)]})),P?i.jsxs("div",e.__assign({className:a.default.loadingWrapper,style:null===(g=n.customStyles)||void 0===g?void 0:g.loadingWrapper},{children:[i.jsx(t.CircularProgress,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),i.jsx("span",e.__assign({className:a.default.loadingText,style:null===(m=n.customStyles)||void 0===m?void 0:m.loadingText},{children:"Loading Image..."}))]})):C&&i.jsx("img",{className:a.default.image,src:C,alt:"images",style:null===(v=n.customStyles)||void 0===v?void 0:v.image})]}))};
|
|
2
2
|
//# sourceMappingURL=ImageCitationContent.js.map
|
package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("react"),a=require("./StormeeContent.module.css.js"),i=require("./components/ProblemStatementCard.js"),l=require("../../../shared/CitationAIConfidenceDisplay.js"),n=require("@mui/material"),r=require("../audio-citation/searchwaveform.js"),d=require("../audio-citation/SearchWaveFromWrapper.js"),o=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),u=require("../audio-citation/store/autoplay.wavefrom.js"),c=t.memo(function(c){var m,g,v=c.brainStormIcon,h=void 0===v?"https://storymod-assests.pages.dev/brainstorm-cropped.gif":v,_=c.themeColor,f=c.segments,p=c.gsUtilPath,y=c.contentName,x=c.content,j=c.keywords,N=c.relevanceScore,S=c.highlighted_content,C=c.customStyles,T=t.useState(0),q=T[0],I=T[1],P=t.useState(0),k=P[0],A=P[1],w=o.useRequirementAI().apiCachingConfig,R=w.queryClient,b=w.useGetSignedUrlQuery,U=w.useGetSignedUrlMutation,M=w.useExtractAudioPeaksMutation,W=w.useExtractAudioPeaksQuery;w.useGetVideoSignedUrlQuery,w.useGetVideoSignedUrlMutation;var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("react"),a=require("./StormeeContent.module.css.js"),i=require("./components/ProblemStatementCard.js"),l=require("../../../shared/CitationAIConfidenceDisplay.js"),n=require("@mui/material"),r=require("../audio-citation/searchwaveform.js"),d=require("../audio-citation/SearchWaveFromWrapper.js"),o=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),u=require("../audio-citation/store/autoplay.wavefrom.js"),c=t.memo(function(c){var m,g,v=c.brainStormIcon,h=void 0===v?"https://storymod-assests.pages.dev/brainstorm-cropped.gif":v,_=c.themeColor,f=c.segments,p=c.gsUtilPath,y=c.contentName,x=c.content,j=c.keywords,N=c.relevanceScore,S=c.highlighted_content,C=c.customStyles,T=t.useState(0),q=T[0],I=T[1],P=t.useState(0),k=P[0],A=P[1],w=o.useRequirementAI().apiCachingConfig,R=w.queryClient,b=w.useGetSignedUrlQuery,U=w.useGetSignedUrlMutation,M=w.useExtractAudioPeaksMutation,W=w.useExtractAudioPeaksQuery;w.useGetVideoSignedUrlQuery,w.useGetVideoSignedUrlMutation;var D=["getSignedUrl",p],E=["extractAudioPeaks",p],L=b(p,D).data,Q=W(p,E).data,G=U(p),z=G.mutate,O=G.isPending,H=M(p),V=H.mutate,F=H.isPending,B=t.useCallback(function(e){I(e)},[]);return t.useEffect(function(){p&&(R.getQueryData(D)||null==z||z({gsUtilPath:p}),R.getQueryData(E)||null==V||V({gsUtilPath:p}))},[p]),s.jsxs("div",e.__assign({className:a.default.container,style:null==C?void 0:C.container},{children:[s.jsxs("div",e.__assign({className:a.default.header,style:null==C?void 0:C.header},{children:[s.jsxs("div",e.__assign({className:a.default.headerLeft,style:null==C?void 0:C.headerLeft},{children:[s.jsx("img",{loading:"lazy",alt:"brain_storm_icon",src:h,className:a.default.headerIcon,style:null==C?void 0:C.headerIcon}),s.jsx("h2",e.__assign({className:a.default.headerTitle,style:null==C?void 0:C.headerTitle},{children:"Stormee.ai"}))]})),l.renderCitationAIConfidenceDisplay(N,!0,null==C?void 0:C.confidenceDisplay)]})),s.jsxs("div",e.__assign({className:a.default.contentRow,style:null==C?void 0:C.contentRow},{children:[s.jsxs("div",e.__assign({className:a.default.leftColumn,style:null==C?void 0:C.leftColumn},{children:[O||F?s.jsxs("div",e.__assign({className:a.default.loader,style:null==C?void 0:C.loader},{children:[s.jsx(n.CircularProgress,{size:48,thickness:4}),s.jsx("span",e.__assign({className:a.default.loaderText,style:null==C?void 0:C.loaderText},{children:"Loading audio peaks..."}))]})):L&&Q&&s.jsx(u.AudioPlayProvider,{children:s.jsx(r.default,{colorCode:_,audio_file_name:L,matchedSegments:f,peaks:null!==(m=Q.peaks)&&void 0!==m?m:[],duration:null!==(g=Q.duration)&&void 0!==g?g:0,chevronIndex:k,setChevronIndex:A,onTimeUpdate:B,currentAudioTime:q,showOnlyMatched:!0,customStyles:null==C?void 0:C.waveform})}),s.jsxs("div",e.__assign({className:a.default.transcriptCard,style:null==C?void 0:C.transcriptCard},{children:[s.jsxs("div",e.__assign({className:a.default.transcriptHeader,style:null==C?void 0:C.transcriptHeader},{children:[s.jsx("img",{loading:"lazy",alt:"brain_storm_icon",src:h,className:a.default.transcriptIcon,style:null==C?void 0:C.transcriptIcon}),s.jsx("div",e.__assign({className:a.default.transcriptTitle,style:null==C?void 0:C.transcriptTitle},{children:"STORMEE'S TRANSCRIPT"}))]})),s.jsx("div",e.__assign({className:a.default.segmentList,style:null==C?void 0:C.segmentList},{children:f.map(function(t,i){return s.jsx("div",e.__assign({className:a.default.segment,style:null==C?void 0:C.segment},{children:s.jsxs("div",e.__assign({className:a.default.segmentRow,style:null==C?void 0:C.segmentRow},{children:[s.jsx("span",e.__assign({className:a.default.timestamp,style:null==C?void 0:C.timestamp},{children:d.formatTime(t.start_time)})),s.jsx("div",e.__assign({className:a.default.segmentTextWrapper,style:null==C?void 0:C.segmentTextWrapper},{children:s.jsx("p",e.__assign({className:a.default.segmentText,style:null==C?void 0:C.segmentText},{children:t.text}))}))]}))}),i)})}))]}))]})),s.jsx(i.default,{title:y,content:x,highlight:null!=S?S:"",keyTakeaway:j,brainStormIcon:h,customStyles:C})]}))]}))});exports.default=c;
|
|
2
2
|
//# sourceMappingURL=StormeeContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),a=require("../RequirementAIWrapper/RequirementAIWrapper.js"),o=require("../../utils/userstory-approval-transform.utils.js"),n=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),s=require("./components/ContentSegment/ContentSegment.js"),l=require("./components/ApprovalBadge/ApprovalBadge.js"),d=require("./UserStoryApprovalScreen.module.css.js"),c=require("../../icons/CheckIcon.js"),u=require("../../icons/BookmarkIcon.js"),v=require("./components/ApprovalSidebar/ApprovalSidebar.js"),p=require("lucide-react"),g=require("./UserStoryApprovalContext.js"),S={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},f={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},h=Object.assign(function(s){var l,c=s.artifactTitleIds,u=s.config,v=void 0===u?{}:u,p=s.callbacks,h=void 0===p?{}:p,m=s.labels,_=void 0===m?{}:m,y=s.isDisabled,A=void 0!==y&&y,b=s.children,I=s.classNames,C=a.useRequirementAI(),x=C.userStory,j=C.customStyles,U=e.__assign(e.__assign({},S),v),w=e.__assign(e.__assign({},f),_),k=r.useState([]),E=k[0],q=k[1],F=r.useState(""),N=F[0],T=F[1],D=r.useState(""),R=D[0],B=D[1],M=r.useState(!1),P=M[0],W=M[1],O=r.useState(!0),V=O[0],z=O[1],L=r.useRef(void 0),H=r.useCallback(function(e,t,r,a){h.onShowNotification?h.onShowNotification(e,t,r,a):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(r))},[h]),G=r.useCallback(function(e){h.onScrollToElement?h.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[h]),Y=r.useMemo(function(){var e=E.findIndex(function(e){return e.artifactId===N});return e>=0?e:0},[E,N]),J=E[Y];r.useEffect(function(){L.current=J},[J]),r.useEffect(function(){var e;if(null==x?void 0:x.length){null===(e=h.onInitialize)||void 0===e||e.call(h),1===x.length&&z(!1);var t=o.createUserStoriesForApproval(o.cloneUserStories(x));q(t),t.length>0&&!N&&T(t[0].artifactId)}},[x]),r.useEffect(function(){if(J){var e=n.getFirstNonApprovedSegmentId(J,"");B(e)}},[null==J?void 0:J.artifactId]);var K=r.useCallback(function(t,r){q(function(a){var o=e.__spreadArray([],a,!0);if("APPROVED"===r.approval_status&&"APPROVED"!==a[t].approval_status){var i=n.getFirstUnapprovedStoryId(a,r.artifactId);i&&T(i)}return o[t]=r,o})},[]);console.log("testing::userStoryForApproval",E);var Q=r.useCallback(function(e){var t=L.current;if(t){var r=n.getFirstNonApprovedSegmentId(t,e);"NA"!==r&&(B(""),setTimeout(function(){B(r)},0))}},[]);i.useApprovalStatus({userStoryForApproval:E,selectedUserStoryForApproval:J,userStoryIndex:Y,callbacks:h,labels:w,onSaveUserStory:K});var X=e.__assign({height:U.containerHeight},U.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),Z={userStoryForApproval:E,setUserStoryForApproval:q,selectedStoryArtifactId:N,setSelectedStoryArtifactId:T,selectedUserStoryIndex:Y,selectedUserStoryForApproval:J,currentContentId:R,setCurrentContentId:B,isEditingSegment:P,setIsEditingSegment:W,isSidebarExpanded:V,setIsSidebarExpanded:z,artifactTitleIds:c,config:U,labels:w,callbacks:h,isDisabled:A,handleSaveUserStory:K,handleUpdateContentId:Q,showNotification:H,scrollToElement:G};return t.jsx(g.UserStoryApprovalScreenContext.Provider,e.__assign({value:Z},{children:t.jsx("div",e.__assign({className:"".concat(d.default.container," ").concat((null==I?void 0:I.container)||""),style:e.__assign(e.__assign({},X),null===(l=null==j?void 0:j.approvalScreen)||void 0===l?void 0:l.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var r=e.Component,a=e.config,o=e.className,n=g.useUserStoryApprovalScreen(),i=n.isSidebarExpanded,s=n.selectedStoryArtifactId,l=n.setSelectedStoryArtifactId,d=n.userStoryForApproval,c=n.isEditingSegment,u=n.artifactTitleIds;return r?t.jsx(r,{isSidebarExpanded:i,selectedStoryArtifactId:s,setSelectedStoryArtifactId:l,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:a,className:o})},SidebarToggle:function(r){var a=r.OpenIcon,o=r.CloseIcon,n=r.className,i=void 0===n?"":n,s=g.useUserStoryApprovalScreen(),l=s.isSidebarExpanded,c=s.setIsSidebarExpanded,u=a||p.SidebarOpenIcon,v=o||p.SidebarCloseIcon;return t.jsx("div",e.__assign({className:"".concat(d.default.sidebarToggleWrapper," ").concat(i)},{children:t.jsx("button",e.__assign({onClick:function(){return c(function(e){return!e})},className:d.default.sidebarToggleBtn,"aria-label":l?"Collapse sidebar":"Expand sidebar",type:"button"},{children:l?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(o){var i,s,v,p,S,f,h,m,_,y,A,b,I,C,x,j,U,w,k,E,q,F=o.children,N=o.ButtonComponent,T=o.hideApproveAll,D=void 0!==T&&T,R=o.pageTitle,B=void 0===R?"Review Generated Requirements":R,M=o.pageDescription,P=void 0===M?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":M,W=g.useUserStoryApprovalScreen(),O=W.selectedUserStoryForApproval,V=W.selectedUserStoryIndex,z=W.artifactTitleIds,L=W.labels,H=W.config,G=W.isDisabled,Y=W.isEditingSegment,J=W.handleSaveUserStory,K=W.setCurrentContentId,Q=W.showNotification,X=a.useRequirementAI().customStyles,Z=r.useCallback(function(){if(O)if(Y)Q("warn","Warning!",L.unsavedChangesWarning,3e3);else{var e=n.approveAllSegments(O);J(V,e),K("")}},[O,V,Y,L,J,K,Q]);if(!O)return null;var $=z[V]||"",ee="APPROVED"===O.approval_status;return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(s=null===(i=null==X?void 0:X.approvalScreen)||void 0===i?void 0:i.content)||void 0===s?void 0:s.content),"data-lsc-ui-page-title":B,"data-lsc-ui-page-description":P},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(S=null===(p=null===(v=null==X?void 0:X.approvalScreen)||void 0===v?void 0:v.body)||void 0===p?void 0:p.contentSegment)||void 0===S?void 0:S.header)},{children:[t.jsxs("div",e.__assign({className:d.default.headerLeft,style:e.__assign({},null===(h=null===(f=null==X?void 0:X.approvalScreen)||void 0===f?void 0:f.content)||void 0===h?void 0:h.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(y=null===(_=null===(m=null==X?void 0:X.approvalScreen)||void 0===m?void 0:m.body)||void 0===_?void 0:_.contentSegment)||void 0===y?void 0:y.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(I=null===(b=null===(A=null==X?void 0:X.approvalScreen)||void 0===A?void 0:A.body)||void 0===b?void 0:b.contentSegment)||void 0===I?void 0:I.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(j=null===(x=null===(C=null==X?void 0:X.approvalScreen)||void 0===C?void 0:C.body)||void 0===x?void 0:x.contentSegment)||void 0===j?void 0:j.headerArtifactId)},{children:$}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(U=null==X?void 0:X.approvalScreen)||void 0===U?void 0:U.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==O?void 0:O.title}))]})),!D&&H.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:ee?t.jsx(l.ApprovalBadge,{status:"APPROVED",label:L.approved}):N?t.jsx(N,e.__assign({type:"fill",onClick:Z,isDisable:G,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:L.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:Z,disabled:G,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(q=null===(E=null==X?void 0:X.approvalScreen)||void 0===E?void 0:E.content)||void 0===q?void 0:q.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))}))]})),F]}))},Body:function(o){var n,i,l,c=o.children,u=o.EditorComponent,v=o.ViewerComponent,p=g.useUserStoryApprovalScreen(),S=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,m=p.handleSaveUserStory,_=a.useRequirementAI().customStyles,y=r.useCallback(function(e){m(f,e)},[f,m]),A=r.useCallback(function(t,r){var a;if(S){var o=e.__assign(e.__assign({},S),{sub_features:null===(a=S.sub_features)||void 0===a?void 0:a.map(function(e,a){return a===t?r:e})});m(f,o)}},[S,f,m]),b=r.useCallback(function(t){var r;if(S){var a=e.__assign(e.__assign({},S),{sub_features:null===(r=S.sub_features)||void 0===r?void 0:r.filter(function(e,r){return r!==t})});m(f,a)}},[S,f,m]);if(!S)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(n=null==_?void 0:_.approvalScreen)||void 0===n?void 0:n.body)||void 0===i?void 0:i.container)},{children:[t.jsx(s.ContentSegment,{userStoryForApproval:S,artifactTitleId:I,onSaveMainStoryContent:y,EditorComponent:u,ViewerComponent:v}),null===(l=S.sub_features)||void 0===l?void 0:l.map(function(e,r){return t.jsx(s.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+r)),isSubFeature:!0,subFeatureIndex:r,onSaveSubFeature:A,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=h;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),a=require("../RequirementAIWrapper/RequirementAIWrapper.js"),n=require("../../utils/userstory-approval-transform.utils.js"),o=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),l=require("./components/ContentSegment/ContentSegment.js"),s=require("./components/ApprovalBadge/ApprovalBadge.js"),d=require("./UserStoryApprovalScreen.module.css.js"),c=require("../../icons/CheckIcon.js"),u=require("../../icons/BookmarkIcon.js"),v=require("./components/ApprovalSidebar/ApprovalSidebar.js"),p=require("lucide-react"),g=require("./UserStoryApprovalContext.js"),S={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},f={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},h=Object.assign(function(l){var s,c=l.artifactTitleIds,u=l.config,v=void 0===u?{}:u,p=l.callbacks,h=void 0===p?{}:p,m=l.labels,A=void 0===m?{}:m,_=l.isDisabled,y=void 0!==_&&_,b=l.children,I=l.classNames,C=a.useRequirementAI(),x=C.userStory,j=C.customStyles,U=e.__assign(e.__assign({},S),v),w=e.__assign(e.__assign({},f),A),k=r.useState([]),E=k[0],q=k[1],N=r.useState(""),F=N[0],T=N[1],D=r.useState(""),R=D[0],B=D[1],M=r.useState(!1),P=M[0],W=M[1],O=r.useState(!0),V=O[0],z=O[1],L=r.useRef(void 0),H=r.useCallback(function(e,t,r,a){h.onShowNotification?h.onShowNotification(e,t,r,a):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(r))},[h]),G=r.useCallback(function(e){h.onScrollToElement?h.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[h]),Y=r.useMemo(function(){var e=E.findIndex(function(e){return e.artifactId===F});return e>=0?e:0},[E,F]),J=E[Y];r.useEffect(function(){L.current=J},[J]),r.useEffect(function(){var e;if(null==x?void 0:x.length){null===(e=h.onInitialize)||void 0===e||e.call(h),1===x.length&&z(!1);var t=n.createUserStoriesForApproval(n.cloneUserStories(x));q(t),t.length>0&&!F&&T(t[0].artifactId)}},[x]),r.useEffect(function(){if(J){var e=o.getFirstNonApprovedSegmentId(J,"");B(e)}},[null==J?void 0:J.artifactId]);var K=r.useCallback(function(t,r){q(function(a){var n=e.__spreadArray([],a,!0);if("APPROVED"===r.approval_status&&"APPROVED"!==a[t].approval_status){var i=o.getFirstUnapprovedStoryId(a,r.artifactId);i&&T(i)}return n[t]=r,n})},[]),Q=r.useCallback(function(e){var t=L.current;if(t){var r=o.getFirstNonApprovedSegmentId(t,e);"NA"!==r&&(B(""),setTimeout(function(){B(r)},0))}},[]);i.useApprovalStatus({userStoryForApproval:E,selectedUserStoryForApproval:J,userStoryIndex:Y,callbacks:h,labels:w,onSaveUserStory:K});var X=e.__assign({height:U.containerHeight},U.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),Z={userStoryForApproval:E,setUserStoryForApproval:q,selectedStoryArtifactId:F,setSelectedStoryArtifactId:T,selectedUserStoryIndex:Y,selectedUserStoryForApproval:J,currentContentId:R,setCurrentContentId:B,isEditingSegment:P,setIsEditingSegment:W,isSidebarExpanded:V,setIsSidebarExpanded:z,artifactTitleIds:c,config:U,labels:w,callbacks:h,isDisabled:y,handleSaveUserStory:K,handleUpdateContentId:Q,showNotification:H,scrollToElement:G};return t.jsx(g.UserStoryApprovalScreenContext.Provider,e.__assign({value:Z},{children:t.jsx("div",e.__assign({className:"".concat(d.default.container," ").concat((null==I?void 0:I.container)||""),style:e.__assign(e.__assign({},X),null===(s=null==j?void 0:j.approvalScreen)||void 0===s?void 0:s.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var r=e.Component,a=e.config,n=e.className,o=g.useUserStoryApprovalScreen(),i=o.isSidebarExpanded,l=o.selectedStoryArtifactId,s=o.setSelectedStoryArtifactId,d=o.userStoryForApproval,c=o.isEditingSegment,u=o.artifactTitleIds;return r?t.jsx(r,{isSidebarExpanded:i,selectedStoryArtifactId:l,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:a,className:n})},SidebarToggle:function(r){var a=r.OpenIcon,n=r.CloseIcon,o=r.className,i=void 0===o?"":o,l=g.useUserStoryApprovalScreen(),s=l.isSidebarExpanded,c=l.setIsSidebarExpanded,u=a||p.SidebarOpenIcon,v=n||p.SidebarCloseIcon;return t.jsx("div",e.__assign({className:"".concat(d.default.sidebarToggleWrapper," ").concat(i)},{children:t.jsx("button",e.__assign({onClick:function(){return c(function(e){return!e})},className:d.default.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:s?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(n){var i,l,v,p,S,f,h,m,A,_,y,b,I,C,x,j,U,w,k,E,q,N=n.children,F=n.ButtonComponent,T=n.hideApproveAll,D=void 0!==T&&T,R=n.pageTitle,B=void 0===R?"Review Generated Requirements":R,M=n.pageDescription,P=void 0===M?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":M,W=g.useUserStoryApprovalScreen(),O=W.selectedUserStoryForApproval,V=W.selectedUserStoryIndex,z=W.artifactTitleIds,L=W.labels,H=W.config,G=W.isDisabled,Y=W.isEditingSegment,J=W.handleSaveUserStory,K=W.setCurrentContentId,Q=W.showNotification,X=a.useRequirementAI().customStyles,Z=r.useCallback(function(){if(console.log("testing::handleApproveAll called",O),O)if(Y)Q("warn","Warning!",L.unsavedChangesWarning,3e3);else{var e=o.approveAllSegments(O);J(V,e),K("")}},[O,V,Y,L,J,K,Q]);if(!O)return null;var $=z[V]||"",ee="APPROVED"===O.approval_status;return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(l=null===(i=null==X?void 0:X.approvalScreen)||void 0===i?void 0:i.content)||void 0===l?void 0:l.content),"data-lsc-ui-page-title":B,"data-lsc-ui-page-description":P},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(S=null===(p=null===(v=null==X?void 0:X.approvalScreen)||void 0===v?void 0:v.body)||void 0===p?void 0:p.contentSegment)||void 0===S?void 0:S.header)},{children:[t.jsxs("div",e.__assign({className:d.default.headerLeft,style:e.__assign({},null===(h=null===(f=null==X?void 0:X.approvalScreen)||void 0===f?void 0:f.content)||void 0===h?void 0:h.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(_=null===(A=null===(m=null==X?void 0:X.approvalScreen)||void 0===m?void 0:m.body)||void 0===A?void 0:A.contentSegment)||void 0===_?void 0:_.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(I=null===(b=null===(y=null==X?void 0:X.approvalScreen)||void 0===y?void 0:y.body)||void 0===b?void 0:b.contentSegment)||void 0===I?void 0:I.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(j=null===(x=null===(C=null==X?void 0:X.approvalScreen)||void 0===C?void 0:C.body)||void 0===x?void 0:x.contentSegment)||void 0===j?void 0:j.headerArtifactId)},{children:$}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(U=null==X?void 0:X.approvalScreen)||void 0===U?void 0:U.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==O?void 0:O.title}))]})),!D&&H.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:ee?t.jsx(s.ApprovalBadge,{status:"APPROVED",label:L.approved}):F?t.jsx(F,e.__assign({type:"fill",onClick:Z,isDisable:G,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:L.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:Z,disabled:G,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(q=null===(E=null==X?void 0:X.approvalScreen)||void 0===E?void 0:E.content)||void 0===q?void 0:q.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))}))]})),N]}))},Body:function(n){var o,i,s,c=n.children,u=n.EditorComponent,v=n.ViewerComponent,p=g.useUserStoryApprovalScreen(),S=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,m=p.handleSaveUserStory,A=a.useRequirementAI().customStyles,_=r.useCallback(function(e){m(f,e)},[f,m]),y=r.useCallback(function(t,r){var a;if(S){var n=e.__assign(e.__assign({},S),{sub_features:null===(a=S.sub_features)||void 0===a?void 0:a.map(function(e,a){return a===t?r:e})});m(f,n)}},[S,f,m]),b=r.useCallback(function(t){var r;if(S){var a=e.__assign(e.__assign({},S),{sub_features:null===(r=S.sub_features)||void 0===r?void 0:r.filter(function(e,r){return r!==t})});m(f,a)}},[S,f,m]);if(!S)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(o=null==A?void 0:A.approvalScreen)||void 0===o?void 0:o.body)||void 0===i?void 0:i.container)},{children:[t.jsx(l.ContentSegment,{userStoryForApproval:S,artifactTitleId:I,onSaveMainStoryContent:_,EditorComponent:u,ViewerComponent:v}),null===(s=S.sub_features)||void 0===s?void 0:s.map(function(e,r){return t.jsx(l.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+r)),isSubFeature:!0,subFeatureIndex:r,onSaveSubFeature:y,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=h;
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalScreen.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.size,s=t.color,C=void 0===s?"currentColor":s;return r.jsxs("svg",e.__assign({width:i||15,height:i||15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[r.jsx("path",{d:"M9.2482 4.85862C9.18364 4.54279 8.73237 4.54279 8.66782 4.85862C8.27178 6.79626 6.75753 8.31052 4.81988 8.70656C4.50405 8.77111 4.50405 9.22238 4.81988 9.28693C6.75753 9.68297 8.27178 11.1972 8.66782 13.1349C8.73237 13.4507 9.18364 13.4507 9.2482 13.1349C9.64424 11.1972 11.1585 9.68297 13.0961 9.28693C13.412 9.22238 13.412 8.77111 13.0961 8.70656C11.1585 8.31052 9.64424 6.79626 9.2482 4.85862Z",fill:C}),r.jsx("path",{d:"M3.87303 1.72074C3.86876 1.69986 3.83892 1.69986 3.83465 1.72074C3.6131 2.80472 2.76598 3.65183 1.682 3.87339C1.66112 3.87766 1.66112 3.9075 1.682 3.91177C2.76598 4.13332 3.6131 4.98044 3.83465 6.06441C3.83892 6.0853 3.86876 6.0853 3.87303 6.06441C4.09459 4.98044 4.9417 4.13332 6.02568 3.91177C6.04656 3.9075 6.04656 3.87766 6.02568 3.87339C4.9417 3.65183 4.09459 2.80472 3.87303 1.72074Z",fill:C})]}))};
|
|
2
2
|
//# sourceMappingURL=RelevanceScoreIcon.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("@mui/material"),r=require("./CitationAIConfidenceDisplay.module.css.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("@mui/material"),r=require("./CitationAIConfidenceDisplay.module.css.js"),l=require("../icons/RelevanceScoreIcon.js"),s=require("lucide-react");exports.renderAIConfidenceDisplay=function(i,o,a,c){if("number"==typeof i&&!isNaN(i)){var t=(null==c?void 0:c.confidenceScoreIcon)||n.jsx(l.default,{size:20});return n.jsxs("div",e.__assign({className:r.default.decisioncontainer,style:null==a?void 0:a.container},{children:[t,n.jsxs("span",e.__assign({style:null==a?void 0:a.text},{children:["Decision strength: ",i,"%"]})),Number(o||0)>0&&n.jsxs("span",e.__assign({className:r.default.scoreIncrease,style:null==a?void 0:a.scoreIncrease},{children:[n.jsx(s.ArrowUp,{className:r.default.arrowIcon,style:null==a?void 0:a.arrowIcon}),null==o?void 0:o.toFixed(2),"%"]}))]}))}return null},exports.renderCitationAIConfidenceDisplay=function(s,o,a,c){var t;if("number"!=typeof s||isNaN(s))return null;var u=(null==c?void 0:c.confidenceScoreIcon)||n.jsx(l.default,{size:20,color:null===(t=null==a?void 0:a.icon)||void 0===t?void 0:t.color}),d=n.jsxs("div",e.__assign({className:"".concat(r.default.container," ").concat(o?r.default.legacy:r.default.modern),style:null==a?void 0:a.container},{children:[u,n.jsx("span",e.__assign({style:null==a?void 0:a.label},{children:o?"Citation Relevance: ".concat(s,"%"):"".concat(s,"%")}))]}));return o?d:n.jsx(i.Tooltip,e.__assign({title:"Citation Relevance",arrow:!0},{children:d}))};
|
|
2
2
|
//# sourceMappingURL=CitationAIConfidenceDisplay.js.map
|
package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as t,__generator as i}from"tslib";import{jsx as n,jsxs as o}from"react/jsx-runtime";import{memo as a,useState as r,useRef as l,useCallback as
|
|
1
|
+
import{__assign as e,__awaiter as t,__generator as i}from"tslib";import{jsx as n,jsxs as o}from"react/jsx-runtime";import{memo as a,useState as r,useRef as l,useCallback as d,useEffect as s}from"react";import c from"./searchwaveform.js";import u from"./components/videoPlayer.js";import{sortTopicsByCheckedStatus as m}from"./utils/word-segment-util.js";import v from"./components/SegmentByWordsViral.js";import h from"./SearchWaveFromWrapper.module.css.js";import p from"./icons/AudioLinesIcon.js";import f from"./icons/VideoIcon.js";import{CircularProgress as g}from"@mui/material";import{renderCitationAIConfidenceDisplay as y}from"../../../shared/CitationAIConfidenceDisplay.js";import{useRequirementAI as S}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{AudioPlayProvider as P}from"./store/autoplay.wavefrom.js";var w=function(e){var t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),o=function(e){return String(e).padStart(2,"0")};return"".concat(o(t),":").concat(o(i),":").concat(n.toFixed(0))},N=a(function(a){var N=a.title,A=a.segments,U=a.gsUtilPath,L=a.citationNumber,j=a.relevanceScore,B=a.customStyles,b=r(0),k=b[0],C=b[1],M=r(A.length>0),T=M[0],W=M[1],I=r(!1);I[0];var x=I[1],V=r(!1),D=V[0],Q=V[1],q=r(""),E=q[0],G=q[1],O=r(!0),R=O[0],_=O[1],z=r("audio"),F=z[0],H=z[1],$=S().apiCachingConfig,J=$.queryClient,K=$.useGetSignedUrlQuery,X=$.useGetSignedUrlMutation,Y=$.useExtractAudioPeaksMutation,Z=$.useExtractAudioPeaksQuery,ee=$.useGetVideoSignedUrlQuery,te=$.useGetVideoSignedUrlMutation,ie=l(null),ne=U.replace(/\.wav$|\.mp3$/i,".mp4"),oe=["getSignedUrl",U],ae=["extractAudioPeaks",U],re=["getVideoSignedUrl",ne],le=K(U,oe).data,de=Z(U,ae).data,se=ee(ne,re).data,ce=X(U),ue=ce.mutate,me=ce.isPending,ve=Y(U),he=ve.mutate,pe=ve.isPending,fe=te(ne).mutate,ge=d(function(e){C(e)},[]);s(function(){if(U){var e=J.getQueryData(oe),t=J.getQueryData(ae),i=J.getQueryData(re);e||ue({gsUtilPath:U}),t||he({gsUtilPath:U}),i||fe({gsUtilPath:ne})}else console.error("Error -> SearchWaveformWrapper: gsUtilPath is required to fetch signed URL")},[U]),s(function(){se&&t(void 0,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,fetch(se)];case 1:return e=t.sent(),G(e.ok?se:""),[2]}})})},[se]);return n(P,{children:o("div",e({className:h.wrapper,style:null==B?void 0:B.wrapper},{children:[o("div",e({className:h.header,style:null==B?void 0:B.header},{children:[n("h2",e({className:h.title,style:null==B?void 0:B.title},{children:N||"Audio Snippet"})),y(j,!0,null==B?void 0:B.confidenceDisplay)]})),o("div",e({className:h.content,style:null==B?void 0:B.content},{children:["audio"!==F&&E?o("div",e({className:h.videoSection,style:null==B?void 0:B.videoSection},{children:[R&&o("div",e({className:h.videoLoader,style:null==B?void 0:B.videoLoader},{children:[n(g,{size:40}),n("p",{children:"Loading video..."})]})),n("div",e({style:{visibility:R?"hidden":"visible",position:R?"absolute":"relative"}},{children:n(u,{videoSrc:E,currentTime:k,isWaveformPlaying:D,onBufferingStart:function(){x(!0),D&&Q(!1)},onBufferingEnd:function(){x(!1)},onVideoPlayPause:function(e){ie.current?e?D||ie.current.togglePlayPause():D&&ie.current.togglePlayPause():Q(e)},className:"w-full aspect-video rounded-lg overflow-hidden shadow-lg mb-2",onVideoLoadingStateChange:function(e){return function(e){_(e)}(e)},isUrlPending:me,isPeaksPending:pe,signedUrl:le,AudioData:de,showOnlyMatched:T,wavesurferRef:ie,handleAudioTimeUpdate:ge,segments:A,setIsAudioPlaying:Q,setShowOnlyMatched:W,customStyles:null==B?void 0:B.videoPlayer,waveformStyles:null==B?void 0:B.waveform},"video-".concat(L))}))]})):n("div",e({className:h.audioSection,style:null==B?void 0:B.audioSection},{children:me||pe?o("div",e({className:h.audioLoader,style:null==B?void 0:B.audioLoader},{children:[n(g,{size:48}),n("span",{children:"Loading audio peaks..."})]})):le&&de&&n(c,{ref:ie,audio_file_name:le,matchedSegments:A,peaks:de.peaks,duration:de.duration,setIsAudioPlaying:Q,onTimeUpdate:ge,currentAudioTime:k,showOnlyMatched:T,setShowOnlyMatched:W,customStyles:null==B?void 0:B.waveform},"audio-".concat(L))})),o("div",e({className:h.controls,style:null==B?void 0:B.controls},{children:[E&&o("div",e({className:h.mediaToggle,style:null==B?void 0:B.mediaToggle},{children:[n("span",e({className:"\n ".concat(h.mediaButton,"\n ").concat("video"===F&&h.mediaButtonActive,"\n "),style:"video"===F?null==B?void 0:B.mediaButtonActive:null==B?void 0:B.mediaButton,onClick:function(){return H("video")}},{children:n(f,{})})),n("span",e({className:"\n ".concat(h.mediaButton,"\n ").concat("audio"===F&&h.mediaButtonActive,"\n "),style:"audio"===F?null==B?void 0:B.mediaButtonActive:null==B?void 0:B.mediaButton,onClick:function(){return H("audio")}},{children:n(p,{})}))]})),n("label",e({className:h.switchLabel,style:null==B?void 0:B.switchLabel},{children:n("span",{children:"play only matched segments"})}))]})),o("div",e({className:h.transcript,style:null==B?void 0:B.transcriptContainer},{children:[n("div",e({className:h.transcriptHeader,style:null==B?void 0:B.transcriptHeader},{children:"Transcript"})),function(t){var i=m(t);return n("div",e({className:h.segmentList,style:null==B?void 0:B.segmentList},{children:null==i?void 0:i.map(function(t){return n("div",e({id:t.segment_id,className:h.segmentItem,style:null==B?void 0:B.transcriptSegment},{children:n(v,{content:t.text,startTime:w(t.start),endTime:w(t.end),words:t.words||[],currentTime:k,containerStyle:null==B?void 0:B.transcriptContainer,customStyles:null==B?void 0:B.segmentWords})}),t.segment_id)})}))}(A)]}))]}))]}))})});export{N as default,w as formatTime};
|
|
2
2
|
//# sourceMappingURL=SearchWaveFromWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsx as t}from"react/jsx-runtime";var
|
|
1
|
+
import{__assign as r}from"tslib";import{jsx as t}from"react/jsx-runtime";var o=function(o){var i=o.height,e=void 0===i?24:i,n=o.width;return t("svg",r({xmlns:"http://www.w3.org/2000/svg",width:void 0===n?24:n,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:t("path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"})}))};export{o as default};
|
|
2
2
|
//# sourceMappingURL=PlayIcon.js.map
|
package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as t,jsx as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{useState as r,useEffect as o}from"react";import l from"./FileCitationContent.module.css.js";import{useRequirementAI as n}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{renderCitationAIConfidenceDisplay as a}from"../../../shared/CitationAIConfidenceDisplay.js";var s=function(s){var d,c,u,p,m,v,f=n().apiCachingConfig,h=f.queryClient,y=f.useGetSignedUrlQuery,g=f.useGetSignedUrlMutation,U=["getSignedUrl",s.gsUtilPath],C=y(s.gsUtilPath,U).data,S=g(s.gsUtilPath),w=S.mutate,P=S.isPending,k=r(null),W=k[0],j=k[1],N=r(null),b=N[0],x=N[1];o(function(){import("@react-pdf-viewer/core").then(function(e){j({Worker:e.Worker,Viewer:e.Viewer})}).catch(function(){x("@react-pdf-viewer/core is not installed. Run: npm install @react-pdf-viewer/core")})},[]),o(function(){s.gsUtilPath?h.getQueryData(U)||P||w({gsUtilPath:s.gsUtilPath}):console.error("error","Error","Please provide valid gsUtilPath.")},[s.gsUtilPath,h,U,P]);return t("div",e({className:l.bookCitationContentContainer,style:null===(d=s.customStyles)||void 0===d?void 0:d.container},{children:[t("div",e({className:l.header,style:null===(c=s.customStyles)||void 0===c?void 0:c.header},{children:[i("h2",e({className:l.title,style:null===(u=s.customStyles)||void 0===u?void 0:u.title},{children:s.title})),a(s.relevanceScore,!0,null===(p=s.customStyles)||void 0===p?void 0:p.confidenceDisplay)]})),i("div",e({className:l.previewContainer,style:null===(m=s.customStyles)||void 0===m?void 0:m.previewContainer},{children:"book_citation_pdf"===s.fileType&&i("div",e({className:l.pdfWrapper,style:null===(v=s.customStyles)||void 0===v?void 0:v.pdfWrapper},{children:!P&&C&&function(t){var r;if(b)return i("div",e({style:e({color:"red",fontSize:"12px"},null===(r=s.customStyles)||void 0===r?void 0:r.errorText)},{children:b}));if(!W)return i("div",{children:"Loading PDF viewer..."});var o=W.Worker,l=W.Viewer;return i(o,e({workerUrl:"https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js"},{children:i(l,{fileUrl:t})}))}(C)}))}))]}))};export{s as default};
|
|
2
2
|
//# sourceMappingURL=FileCitationContent.js.map
|
package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{useEffect as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{useEffect as l}from"react";import{CircularProgress as r}from"@mui/material";import s from"./ImageCitationContent.module.css.js";import{renderCitationAIConfidenceDisplay as a}from"../../../shared/CitationAIConfidenceDisplay.js";import{useRequirementAI as o}from"../../RequirementAIWrapper/RequirementAIWrapper.js";var n=function(n){var d,c,m,u,g,p,h,v=o().apiCachingConfig,y=v.queryClient,f=v.useGetSignedUrlQuery,U=v.useGetSignedUrlMutation,S=["getSignedUrl",n.gsUtilPath],C=f(n.gsUtilPath,S).data,P=U(n.gsUtilPath),I=P.mutate,N=P.isPending;return l(function(){n.gsUtilPath?y.getQueryData(S)||I({gsUtilPath:n.gsUtilPath}):console.error("Error -> ImageCitationContent: gsUtilPath is required to fetch signed URL")},[n.gsUtilPath]),t("div",e({className:s.container,style:null===(d=n.customStyles)||void 0===d?void 0:d.container},{children:[t("div",e({className:s.header,style:null===(c=n.customStyles)||void 0===c?void 0:c.header},{children:[i("h2",e({className:s.title,style:null===(m=n.customStyles)||void 0===m?void 0:m.title},{children:"Visual Reference"})),a(n.relevanceScore,!0,null===(u=n.customStyles)||void 0===u?void 0:u.confidenceDisplay)]})),N?t("div",e({className:s.loadingWrapper,style:null===(g=n.customStyles)||void 0===g?void 0:g.loadingWrapper},{children:[i(r,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),i("span",e({className:s.loadingText,style:null===(p=n.customStyles)||void 0===p?void 0:p.loadingText},{children:"Loading Image..."}))]})):C&&i("img",{className:s.image,src:C,alt:"images",style:null===(h=n.customStyles)||void 0===h?void 0:h.image})]}))};export{n as default};
|
|
2
2
|
//# sourceMappingURL=ImageCitationContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{memo as a,useState as l,useCallback as n,useEffect as r}from"react";import s from"./StormeeContent.module.css.js";import o from"./components/ProblemStatementCard.js";import{renderCitationAIConfidenceDisplay as d}from"../../../shared/CitationAIConfidenceDisplay.js";import{CircularProgress as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{memo as a,useState as l,useCallback as n,useEffect as r}from"react";import s from"./StormeeContent.module.css.js";import o from"./components/ProblemStatementCard.js";import{renderCitationAIConfidenceDisplay as d}from"../../../shared/CitationAIConfidenceDisplay.js";import{CircularProgress as c}from"@mui/material";import m from"../audio-citation/searchwaveform.js";import{formatTime as u}from"../audio-citation/SearchWaveFromWrapper.js";import{useRequirementAI as p}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{AudioPlayProvider as h}from"../audio-citation/store/autoplay.wavefrom.js";var v=a(function(a){var v,g,y=a.brainStormIcon,f=void 0===y?"https://storymod-assests.pages.dev/brainstorm-cropped.gif":y,N=a.themeColor,S=a.segments,T=a.gsUtilPath,C=a.contentName,x=a.content,I=a.keywords,k=a.relevanceScore,w=a.highlighted_content,P=a.customStyles,R=l(0),U=R[0],j=R[1],A=l(0),_=A[0],b=A[1],W=p().apiCachingConfig,L=W.queryClient,M=W.useGetSignedUrlQuery,Q=W.useGetSignedUrlMutation,D=W.useExtractAudioPeaksMutation,E=W.useExtractAudioPeaksQuery;W.useGetVideoSignedUrlQuery,W.useGetVideoSignedUrlMutation;var G=["getSignedUrl",T],q=["extractAudioPeaks",T],z=M(T,G).data,H=E(T,q).data,O=Q(T),V=O.mutate,F=O.isPending,B=D(T),J=B.mutate,K=B.isPending,X=n(function(e){j(e)},[]);return r(function(){T&&(L.getQueryData(G)||null==V||V({gsUtilPath:T}),L.getQueryData(q)||null==J||J({gsUtilPath:T}))},[T]),t("div",e({className:s.container,style:null==P?void 0:P.container},{children:[t("div",e({className:s.header,style:null==P?void 0:P.header},{children:[t("div",e({className:s.headerLeft,style:null==P?void 0:P.headerLeft},{children:[i("img",{loading:"lazy",alt:"brain_storm_icon",src:f,className:s.headerIcon,style:null==P?void 0:P.headerIcon}),i("h2",e({className:s.headerTitle,style:null==P?void 0:P.headerTitle},{children:"Stormee.ai"}))]})),d(k,!0,null==P?void 0:P.confidenceDisplay)]})),t("div",e({className:s.contentRow,style:null==P?void 0:P.contentRow},{children:[t("div",e({className:s.leftColumn,style:null==P?void 0:P.leftColumn},{children:[F||K?t("div",e({className:s.loader,style:null==P?void 0:P.loader},{children:[i(c,{size:48,thickness:4}),i("span",e({className:s.loaderText,style:null==P?void 0:P.loaderText},{children:"Loading audio peaks..."}))]})):z&&H&&i(h,{children:i(m,{colorCode:N,audio_file_name:z,matchedSegments:S,peaks:null!==(v=H.peaks)&&void 0!==v?v:[],duration:null!==(g=H.duration)&&void 0!==g?g:0,chevronIndex:_,setChevronIndex:b,onTimeUpdate:X,currentAudioTime:U,showOnlyMatched:!0,customStyles:null==P?void 0:P.waveform})}),t("div",e({className:s.transcriptCard,style:null==P?void 0:P.transcriptCard},{children:[t("div",e({className:s.transcriptHeader,style:null==P?void 0:P.transcriptHeader},{children:[i("img",{loading:"lazy",alt:"brain_storm_icon",src:f,className:s.transcriptIcon,style:null==P?void 0:P.transcriptIcon}),i("div",e({className:s.transcriptTitle,style:null==P?void 0:P.transcriptTitle},{children:"STORMEE'S TRANSCRIPT"}))]})),i("div",e({className:s.segmentList,style:null==P?void 0:P.segmentList},{children:S.map(function(a,l){return i("div",e({className:s.segment,style:null==P?void 0:P.segment},{children:t("div",e({className:s.segmentRow,style:null==P?void 0:P.segmentRow},{children:[i("span",e({className:s.timestamp,style:null==P?void 0:P.timestamp},{children:u(a.start_time)})),i("div",e({className:s.segmentTextWrapper,style:null==P?void 0:P.segmentTextWrapper},{children:i("p",e({className:s.segmentText,style:null==P?void 0:P.segmentText},{children:a.text}))}))]}))}),l)})}))]}))]})),i(o,{title:C,content:x,highlight:null!=w?w:"",keyTakeaway:I,brainStormIcon:f,customStyles:P})]}))]}))});export{v as default};
|
|
2
2
|
//# sourceMappingURL=StormeeContent.js.map
|
package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as a,useCallback as i,useMemo as l,useEffect as s}from"react";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as p,getFirstUnapprovedStoryId as u,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as m}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as A}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as b}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as w,useUserStoryApprovalScreen as T}from"./UserStoryApprovalContext.js";var E={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},N={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},U=Object.assign(function(r){var f,S=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,A=r.callbacks,b=void 0===A?{}:A,I=r.labels,C=void 0===I?{}:I,T=r.isDisabled,U=void 0!==T&&T,x=r.children,F=r.classNames,k=d(),D=k.userStory,j=k.customStyles,B=e(e({},E),y),R=e(e({},N),C),P=n([]),W=P[0],M=P[1],V=n(""),_=V[0],q=V[1],O=n(""),z=O[0],L=O[1],H=n(!1),G=H[0],Y=H[1],J=n(!0),K=J[0],Q=J[1],X=a(void 0),Z=i(function(e,t,o,r){b.onShowNotification?b.onShowNotification(e,t,o,r):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(o))},[b]),$=i(function(e){b.onScrollToElement?b.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[b]),ee=l(function(){var e=W.findIndex(function(e){return e.artifactId===_});return e>=0?e:0},[W,_]),te=W[ee];s(function(){X.current=te},[te]),s(function(){var e;if(null==D?void 0:D.length){null===(e=b.onInitialize)||void 0===e||e.call(b),1===D.length&&Q(!1);var t=c(v(D));M(t),t.length>0&&!_&&q(t[0].artifactId)}},[D]),s(function(){if(te){var e=p(te,"");L(e)}},[null==te?void 0:te.artifactId]);var oe=i(function(e,o){M(function(r){var n=t([],r,!0);if("APPROVED"===o.approval_status&&"APPROVED"!==r[e].approval_status){var a=u(r,o.artifactId);a&&q(a)}return n[e]=o,n})},[])
|
|
1
|
+
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as a,useCallback as i,useMemo as l,useEffect as s}from"react";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as p,getFirstUnapprovedStoryId as u,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as m}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as A}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as b}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as w,useUserStoryApprovalScreen as T}from"./UserStoryApprovalContext.js";var E={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},N={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},U=Object.assign(function(r){var f,S=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,A=r.callbacks,b=void 0===A?{}:A,I=r.labels,C=void 0===I?{}:I,T=r.isDisabled,U=void 0!==T&&T,x=r.children,F=r.classNames,k=d(),D=k.userStory,j=k.customStyles,B=e(e({},E),y),R=e(e({},N),C),P=n([]),W=P[0],M=P[1],V=n(""),_=V[0],q=V[1],O=n(""),z=O[0],L=O[1],H=n(!1),G=H[0],Y=H[1],J=n(!0),K=J[0],Q=J[1],X=a(void 0),Z=i(function(e,t,o,r){b.onShowNotification?b.onShowNotification(e,t,o,r):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(o))},[b]),$=i(function(e){b.onScrollToElement?b.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[b]),ee=l(function(){var e=W.findIndex(function(e){return e.artifactId===_});return e>=0?e:0},[W,_]),te=W[ee];s(function(){X.current=te},[te]),s(function(){var e;if(null==D?void 0:D.length){null===(e=b.onInitialize)||void 0===e||e.call(b),1===D.length&&Q(!1);var t=c(v(D));M(t),t.length>0&&!_&&q(t[0].artifactId)}},[D]),s(function(){if(te){var e=p(te,"");L(e)}},[null==te?void 0:te.artifactId]);var oe=i(function(e,o){M(function(r){var n=t([],r,!0);if("APPROVED"===o.approval_status&&"APPROVED"!==r[e].approval_status){var a=u(r,o.artifactId);a&&q(a)}return n[e]=o,n})},[]),re=i(function(e){var t=X.current;if(t){var o=p(t,e);"NA"!==o&&(L(""),setTimeout(function(){L(o)},0))}},[]);m({userStoryForApproval:W,selectedUserStoryForApproval:te,userStoryIndex:ee,callbacks:b,labels:R,onSaveUserStory:oe});var ne=e({height:B.containerHeight},B.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),ae={userStoryForApproval:W,setUserStoryForApproval:M,selectedStoryArtifactId:_,setSelectedStoryArtifactId:q,selectedUserStoryIndex:ee,selectedUserStoryForApproval:te,currentContentId:z,setCurrentContentId:L,isEditingSegment:G,setIsEditingSegment:Y,isSidebarExpanded:K,setIsSidebarExpanded:Q,artifactTitleIds:S,config:B,labels:R,callbacks:b,isDisabled:U,handleSaveUserStory:oe,handleUpdateContentId:re,showNotification:Z,scrollToElement:$};return o(w.Provider,e({value:ae},{children:o("div",e({className:"".concat(g.container," ").concat((null==F?void 0:F.container)||""),style:e(e({},ne),null===(f=null==j?void 0:j.approvalScreen)||void 0===f?void 0:f.wrapperContainer)},{children:x}))}))},{Sidebar:function(e){var t=e.Component,r=e.config,n=e.className,a=T(),i=a.isSidebarExpanded,l=a.selectedStoryArtifactId,s=a.setSelectedStoryArtifactId,d=a.userStoryForApproval,c=a.isEditingSegment,v=a.artifactTitleIds;return t?o(t,{isSidebarExpanded:i,selectedStoryArtifactId:l,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:v}):o(b,{config:r,className:n})},SidebarToggle:function(t){var r=t.OpenIcon,n=t.CloseIcon,a=t.className,i=void 0===a?"":a,l=T(),s=l.isSidebarExpanded,d=l.setIsSidebarExpanded,c=r||I,v=n||C;return o("div",e({className:"".concat(g.sidebarToggleWrapper," ").concat(i)},{children:o("button",e({onClick:function(){return d(function(e){return!e})},className:g.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:o(s?v:c,{})}))}))},Content:function(t){var n,a,l,s,c,v,p,u,m,S,b,I,C,w,E,N,U,x,F,k,D,j=t.children,B=t.ButtonComponent,R=t.hideApproveAll,P=void 0!==R&&R,W=t.pageTitle,M=void 0===W?"Review Generated Requirements":W,V=t.pageDescription,_=void 0===V?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":V,q=T(),O=q.selectedUserStoryForApproval,z=q.selectedUserStoryIndex,L=q.artifactTitleIds,H=q.labels,G=q.config,Y=q.isDisabled,J=q.isEditingSegment,K=q.handleSaveUserStory,Q=q.setCurrentContentId,X=q.showNotification,Z=d().customStyles,$=i(function(){if(console.log("testing::handleApproveAll called",O),O)if(J)X("warn","Warning!",H.unsavedChangesWarning,3e3);else{var e=f(O);K(z,e),Q("")}},[O,z,J,H,K,Q,X]);if(!O)return null;var ee=L[z]||"",te="APPROVED"===O.approval_status;return r("div",e({className:g.content,style:e({},null===(a=null===(n=null==Z?void 0:Z.approvalScreen)||void 0===n?void 0:n.content)||void 0===a?void 0:a.content),"data-lsc-ui-page-title":M,"data-lsc-ui-page-description":_},{children:[r("div",e({className:g.header,style:e({},null===(c=null===(s=null===(l=null==Z?void 0:Z.approvalScreen)||void 0===l?void 0:l.body)||void 0===s?void 0:s.contentSegment)||void 0===c?void 0:c.header)},{children:[r("div",e({className:g.headerLeft,style:e({},null===(p=null===(v=null==Z?void 0:Z.approvalScreen)||void 0===v?void 0:v.content)||void 0===p?void 0:p.headerLeft)},{children:[r("div",e({className:g.headerMeta,style:e({},null===(S=null===(m=null===(u=null==Z?void 0:Z.approvalScreen)||void 0===u?void 0:u.body)||void 0===m?void 0:m.contentSegment)||void 0===S?void 0:S.headerMeta)},{children:[o(A,{size:16,color:(null===(C=null===(I=null===(b=null==Z?void 0:Z.approvalScreen)||void 0===b?void 0:b.body)||void 0===I?void 0:I.contentSegment)||void 0===C?void 0:C.bookMarkColor)||"#8C8C8C"}),o("h2",e({className:g.headerArtifactId,style:e({},null===(N=null===(E=null===(w=null==Z?void 0:Z.approvalScreen)||void 0===w?void 0:w.body)||void 0===E?void 0:E.contentSegment)||void 0===N?void 0:N.headerArtifactId)},{children:ee}))]})),o("p",e({className:g.headerTitle,style:e({},null===(F=null===(x=null===(U=null==Z?void 0:Z.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerTitle)},{children:null==O?void 0:O.title}))]})),!P&&G.showApproveAllButton&&o("div",e({className:g.headerRight},{children:te?o(h,{status:"APPROVED",label:H.approved}):B?o(B,e({type:"fill",onClick:$,isDisable:Y,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:H.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:r("div",e({className:g.approveAllContent},{children:[o(y,{size:16,color:"white"}),o("span",{children:H.approveAll})]}))})):r("button",e({onClick:$,disabled:Y,className:g.approveAllButtonDefault,style:e({},null===(D=null===(k=null==Z?void 0:Z.approvalScreen)||void 0===k?void 0:k.content)||void 0===D?void 0:D.approveAllButtonDefault)},{children:[o(y,{size:16,color:"white"}),o("span",{children:H.approveAll})]}))}))]})),j]}))},Body:function(t){var n,a,l,s=t.children,c=t.EditorComponent,v=t.ViewerComponent,p=T(),u=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,m=p.artifactTitleIds,h=p.handleSaveUserStory,y=d().customStyles,A=i(function(e){h(f,e)},[f,h]),b=i(function(t,o){var r;if(u){var n=e(e({},u),{sub_features:null===(r=u.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===t?o:e})});h(f,n)}},[u,f,h]),I=i(function(t){var o;if(u){var r=e(e({},u),{sub_features:null===(o=u.sub_features)||void 0===o?void 0:o.filter(function(e,o){return o!==t})});h(f,r)}},[u,f,h]);if(!u)return null;var C=m[f]||"";return r("div",e({className:g.body,style:e({},null===(a=null===(n=null==y?void 0:y.approvalScreen)||void 0===n?void 0:n.body)||void 0===a?void 0:a.container)},{children:[o(S,{userStoryForApproval:u,artifactTitleId:C,onSaveMainStoryContent:A,EditorComponent:c,ViewerComponent:v}),null===(l=u.sub_features)||void 0===l?void 0:l.map(function(e,t){return o(S,{userStoryForApproval:e,artifactTitleId:"".concat(C," - ").concat(String.fromCharCode(65+t)),isSubFeature:!0,subFeatureIndex:t,onSaveSubFeature:b,onDeleteSubFeature:I,EditorComponent:c,ViewerComponent:v},e.artifactId)}),s]}))}});export{U as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalScreen.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as r}from"tslib";import{jsxs as C,jsx as t}from"react/jsx-runtime";var i=function(i){var o=i.size,l=i.color,e=void 0===l?"currentColor":l;return C("svg",r({width:o||15,height:o||15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M9.2482 4.85862C9.18364 4.54279 8.73237 4.54279 8.66782 4.85862C8.27178 6.79626 6.75753 8.31052 4.81988 8.70656C4.50405 8.77111 4.50405 9.22238 4.81988 9.28693C6.75753 9.68297 8.27178 11.1972 8.66782 13.1349C8.73237 13.4507 9.18364 13.4507 9.2482 13.1349C9.64424 11.1972 11.1585 9.68297 13.0961 9.28693C13.412 9.22238 13.412 8.77111 13.0961 8.70656C11.1585 8.31052 9.64424 6.79626 9.2482 4.85862Z",fill:e}),t("path",{d:"M3.87303 1.72074C3.86876 1.69986 3.83892 1.69986 3.83465 1.72074C3.6131 2.80472 2.76598 3.65183 1.682 3.87339C1.66112 3.87766 1.66112 3.9075 1.682 3.91177C2.76598 4.13332 3.6131 4.98044 3.83465 6.06441C3.83892 6.0853 3.86876 6.0853 3.87303 6.06441C4.09459 4.98044 4.9417 4.13332 6.02568 3.91177C6.04656 3.9075 6.04656 3.87766 6.02568 3.87339C4.9417 3.65183 4.09459 2.80472 3.87303 1.72074Z",fill:e})]}))};export{i as default};
|
|
2
2
|
//# sourceMappingURL=RelevanceScoreIcon.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as n,jsxs as o}from"react/jsx-runtime";import{Tooltip as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as n,jsxs as o}from"react/jsx-runtime";import{Tooltip as i}from"@mui/material";import r from"./CitationAIConfidenceDisplay.module.css.js";import l from"../icons/RelevanceScoreIcon.js";import{ArrowUp as c}from"lucide-react";var t=function(c,t,a,s){var d;if("number"!=typeof c||isNaN(c))return null;var u=(null==s?void 0:s.confidenceScoreIcon)||n(l,{size:20,color:null===(d=null==a?void 0:a.icon)||void 0===d?void 0:d.color}),m=o("div",e({className:"".concat(r.container," ").concat(t?r.legacy:r.modern),style:null==a?void 0:a.container},{children:[u,n("span",e({style:null==a?void 0:a.label},{children:t?"Citation Relevance: ".concat(c,"%"):"".concat(c,"%")}))]}));return t?m:n(i,e({title:"Citation Relevance",arrow:!0},{children:m}))},a=function(i,t,a,s){if("number"==typeof i&&!isNaN(i)){var d=(null==s?void 0:s.confidenceScoreIcon)||n(l,{size:20});return o("div",e({className:r.decisioncontainer,style:null==a?void 0:a.container},{children:[d,o("span",e({style:null==a?void 0:a.text},{children:["Decision strength: ",i,"%"]})),Number(t||0)>0&&o("span",e({className:r.scoreIncrease,style:null==a?void 0:a.scoreIncrease},{children:[n(c,{className:r.arrowIcon,style:null==a?void 0:a.arrowIcon}),null==t?void 0:t.toFixed(2),"%"]}))]}))}return null};export{a as renderAIConfidenceDisplay,t as renderCitationAIConfidenceDisplay};
|
|
2
2
|
//# sourceMappingURL=CitationAIConfidenceDisplay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayIcon.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.tsx"],"names":[],"mappings":"AAAA,UAAU,aAAa;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,QAAA,MAAM,QAAQ,sBAGX,aAAa,
|
|
1
|
+
{"version":3,"file":"PlayIcon.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.tsx"],"names":[],"mappings":"AAAA,UAAU,aAAa;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,QAAA,MAAM,QAAQ,sBAGX,aAAa,4CAEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryApprovalScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,iCAAiC,EAEjC,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AA0D9C,UAAU,SAAS;IACjB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,mEAAmE;IACnE,SAAS,CAAC,EAAE,gCAAgC,CAAC;IAC7C,8CAA8C;IAC9C,MAAM,CAAC,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAChD,4EAA4E;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,yBAAyB;IACzB,UAAU,CAAC,EAAE,iCAAiC,CAAC;CAChD;AA+ND,UAAU,YAAY;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACrC;;;OAGG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkCD,UAAU,kBAAkB;IAC1B,mDAAmD;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,mDAAmD;IACnD,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2BD,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wDAAwD;IACxD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,6CAA6C;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;
|
|
1
|
+
{"version":3,"file":"UserStoryApprovalScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA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QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC5C;AA0FD,QAAA,MAAM,uBAAuB;;;;;CAK3B,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelevanceScoreIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/icons/RelevanceScoreIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"RelevanceScoreIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/icons/RelevanceScoreIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAsBnE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { AiReasoningContentStyles, UserStoryIcons } from "../types/aiReasoning.type";
|
|
2
|
-
export declare const renderCitationAIConfidenceDisplay: (relevanceScore: number | null | undefined, isLegacyCitation?: boolean, customStyles?:
|
|
2
|
+
export declare const renderCitationAIConfidenceDisplay: (relevanceScore: number | null | undefined, isLegacyCitation?: boolean, customStyles?: {
|
|
3
|
+
container?: React.CSSProperties;
|
|
4
|
+
icon?: React.CSSProperties;
|
|
5
|
+
label?: React.CSSProperties;
|
|
6
|
+
}, customIcons?: UserStoryIcons) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
7
|
export declare const renderAIConfidenceDisplay: (relevanceScore: number | null | undefined, relevanceScoreDiff?: number | null, customStyles?: AiReasoningContentStyles['confidenceDisplay'], customIcons?: UserStoryIcons) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
8
|
//# sourceMappingURL=CitationAIConfidenceDisplay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CitationAIConfidenceDisplay.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/CitationAIConfidenceDisplay.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAC,MAAM,2BAA2B,CAAC;AAEpF,eAAO,MAAM,iCAAiC,mBAC5B,MAAM,GAAG,IAAI,GAAG,SAAS,qBACtB,OAAO,iBACX,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"CitationAIConfidenceDisplay.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/CitationAIConfidenceDisplay.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAC,MAAM,2BAA2B,CAAC;AAEpF,eAAO,MAAM,iCAAiC,mBAC5B,MAAM,GAAG,IAAI,GAAG,SAAS,qBACtB,OAAO,iBACX;IACX,SAAS,CAAC,EAAE,MAAM,aAAa,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,aAAa,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,aAAa,CAAC;CAC/B,gBACY,cAAc,mDA8B5B,CAAC;AAEF,eAAO,MAAM,yBAAyB,mBACpB,MAAM,GAAG,IAAI,GAAG,SAAS,uBACpB,MAAM,GAAG,IAAI,iBACnB,wBAAwB,CAAC,mBAAmB,CAAC,gBAC/C,cAAc,mDAoB5B,CAAC"}
|
|
@@ -60,6 +60,7 @@ export interface SearchWaveformStyles {
|
|
|
60
60
|
timeRow?: React.CSSProperties;
|
|
61
61
|
timeText?: React.CSSProperties;
|
|
62
62
|
timeTooltip?: React.CSSProperties;
|
|
63
|
+
confidenceDisplay?: ConfidenceDisplayStyles;
|
|
63
64
|
}
|
|
64
65
|
export interface CitationStyleGroup {
|
|
65
66
|
pill?: React.CSSProperties;
|
|
@@ -92,6 +93,7 @@ export interface ImageCitationStyles extends CitationStyleGroup {
|
|
|
92
93
|
image?: React.CSSProperties;
|
|
93
94
|
loadingWrapper?: React.CSSProperties;
|
|
94
95
|
loadingText?: React.CSSProperties;
|
|
96
|
+
confidenceDisplay?: ConfidenceDisplayStyles;
|
|
95
97
|
}
|
|
96
98
|
export interface FileCitationStyles extends CitationStyleGroup {
|
|
97
99
|
container?: React.CSSProperties;
|
|
@@ -101,6 +103,7 @@ export interface FileCitationStyles extends CitationStyleGroup {
|
|
|
101
103
|
pdfWrapper?: React.CSSProperties;
|
|
102
104
|
loadingText?: React.CSSProperties;
|
|
103
105
|
errorText?: React.CSSProperties;
|
|
106
|
+
confidenceDisplay?: ConfidenceDisplayStyles;
|
|
104
107
|
}
|
|
105
108
|
export interface RCACitationStyleGroup extends CitationStyleGroup {
|
|
106
109
|
pill?: CSSProperties;
|
|
@@ -272,6 +275,7 @@ export interface StormeeCitationStyles extends CitationStyleGroup {
|
|
|
272
275
|
gradientButtonLabel?: React.CSSProperties;
|
|
273
276
|
gradientContent?: React.CSSProperties;
|
|
274
277
|
bsIcon?: React.CSSProperties;
|
|
278
|
+
confidenceDisplay?: ConfidenceDisplayStyles;
|
|
275
279
|
}
|
|
276
280
|
export interface VideoPlayerStyles {
|
|
277
281
|
container?: React.CSSProperties;
|
|
@@ -316,6 +320,7 @@ export interface WaveformCitationStyles extends CitationStyleGroup {
|
|
|
316
320
|
waveform?: SearchWaveformStyles;
|
|
317
321
|
audioLoader?: React.CSSProperties;
|
|
318
322
|
controls?: React.CSSProperties;
|
|
323
|
+
confidenceDisplay?: ConfidenceDisplayStyles;
|
|
319
324
|
}
|
|
320
325
|
export interface UserStoryIcons {
|
|
321
326
|
highConfidence?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiReasoning.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/aiReasoning.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAG,uBAAuB,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAEzG,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,UAAU,GACV,SAAS,GACT,KAAK,GACL,OAAO,GACP,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,KAAK,GACL,MAAM,CAAC;AAEX,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxB,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,aAAa,CAAC,EAAE,sBAAsB,CAAC;CACxC;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC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iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxC"}
|
|
1
|
+
{"version":3,"file":"aiReasoning.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/aiReasoning.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAG,uBAAuB,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAEzG,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,UAAU,GACV,SAAS,GACT,KAAK,GACL,OAAO,GACP,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,KAAK,GACL,MAAM,CAAC;AAEX,MA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|
+
import { IUserStory } from "../interfaces/userstory.interface";
|
|
2
|
+
export declare function formatMarkdown(text: string): string | undefined;
|
|
3
|
+
export declare const getArtifactUrl: (url: string, artifactId: string) => string;
|
|
4
|
+
export declare const getMarkdownForDowloadingUserStory: (userStory: IUserStory, heading: string, parentIndex: string, currentIndex: number) => string | undefined;
|
|
5
|
+
export declare function markdownToHtmlPreserveNewlines(md: string): string;
|
|
6
|
+
export declare function indentMarkdown(markdown: string): string;
|
|
7
|
+
export declare const removeAllTagsAndContent: (inputString: string) => string;
|
|
8
|
+
/**
|
|
9
|
+
* @param markdown - The input markdown string
|
|
10
|
+
* @returns The string with anchor tags removed
|
|
11
|
+
*/
|
|
12
|
+
export declare function removeMarkdownLinks(markdown: string): string;
|
|
13
|
+
export declare const replaceTitleSection: (original: string | undefined, newTitle: string) => string | undefined;
|
|
14
|
+
//# sourceMappingURL=user-story.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-story.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/user-story.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,sBAa1C;AAED,eAAO,MAAM,cAAc,QAAS,MAAM,cAAc,MAAM,WAM7D,CAAA;AAED,eAAO,MAAM,iCAAiC,cAAe,UAAU,WAAW,MAAM,eAAe,MAAM,gBAAgB,MAAM,uBAgBlI,CAAA;AAED,wBAAgB,8BAA8B,CAAC,EAAE,EAAE,MAAM,UAmBxD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,UAgB9C;AAED,eAAO,MAAM,uBAAuB,gBAAiB,MAAM,WAwB1D,CAAA;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,eAAO,MAAM,mBAAmB,aAAc,MAAM,GAAG,SAAS,YAAY,MAAM,uBAUjF,CAAA"}
|