@e-llm-studio/requirement-ai 0.0.162 → 0.0.164
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/ai-reasoning/AIReasonAccordion.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +2 -0
- package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/segment/segment.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +2 -0
- package/dist/features/RequirementAI/components/segment/SegmentWrapper.js.map +1 -0
- package/dist/features/RequirementAI/components/segment/segment.module.css.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts +14 -0
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/utils/userstory-approval-transform.utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("lucide-react"),a=require("react"),t=require("./AiReasonAccoridon.module.css.js");exports.default=function(l){var i=l.icon,r=l.title,o=l.content,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("lucide-react"),a=require("react"),t=require("./AiReasonAccoridon.module.css.js");exports.default=function(l){var i=l.icon,r=l.title,o=l.content,d=l.subTitle,c=l.scenario,u=l.className,v=void 0===u?"":u,_=l.customStyles,p=l.alwaysOpen,h=void 0!==p&&p,x=l.defaultOpen,f=void 0===x||x,m=l.isSegmentExplanation,g=void 0!==m&&m,j=l.handleViewExample,y=l.handleViewGlossary,N=l.isUpdatedSegment,B=a.useState(f),k=B[0],w=B[1];return n.jsxs("div",e.__assign({className:"".concat("riskSideBar"!==c&&t.default.wrapperBorder," ").concat(t.default.wrapper," ").concat(v),style:null==_?void 0:_.wrapper},{children:[n.jsxs("div",e.__assign({className:"".concat(t.default.header," ").concat("riskSideBar"===c?t.default.headerPaddingRisk:t.default.headerPadding),style:null==_?void 0:_.header,onClick:function(){h||w(!k)}},{children:[n.jsxs("div",e.__assign({className:t.default.headerLeft,style:null==_?void 0:_.iconWrapper},{children:[i,n.jsxs("div",e.__assign({className:t.default.titleBlock},{children:[n.jsx("h1",e.__assign({className:t.default.title,style:null==_?void 0:_.title},{children:r})),n.jsx("p",e.__assign({className:t.default.subTitle,style:null==_?void 0:_.subTitle},{children:d}))]}))]})),"riskSideBar"!==c&&!h&&n.jsx("div",e.__assign({className:t.default.chevronWrapper,style:null==_?void 0:_.chevronWrapper},{children:k?n.jsx(s.ChevronUp,{className:t.default.chevronIcon}):n.jsx(s.ChevronDown,{className:t.default.chevronIcon})}))]})),k&&n.jsxs("div",e.__assign({className:"".concat("riskSideBar"!==c&&t.default.content," ").concat(t.default.contentBase),style:e.__assign({},null==_?void 0:_.contentContainerWrapper)},{children:[n.jsx("div",e.__assign({style:null==_?void 0:_.contentWrapper},{children:o})),(j||y)&&g&&n.jsxs("div",e.__assign({className:"".concat(t.default.segmentExplanationButtonContainer," flex-row"),style:e.__assign({},null==_?void 0:_.segmentExplanationButtonContainer)},{children:[j&&n.jsx("button",e.__assign({className:"".concat(t.default.segmentButton),onClick:function(){return null==j?void 0:j()},style:e.__assign({},null==_?void 0:_.explanationButton)},{children:"Show Example"})),y&&n.jsx("button",e.__assign({className:"".concat(t.default.segmentButton),onClick:function(){return null==y?void 0:y()},style:e.__assign({},null==_?void 0:_.explanationButton)},{children:!N&&n.jsxs(n.Fragment,{children:["View in Glossary ",n.jsx(s.ExternalLink,{size:14})]})}))]}))]}))]}))};
|
|
2
2
|
//# sourceMappingURL=AIReasonAccordion.js.map
|
package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),n=require("react/jsx-runtime"),e=require("../../icons/AiReasoningIcon.js"),o=require("./AIReasonAccordion.js"),a=require("../../icons/ReasoningBulbIcon.js"),l=require("./AiReasonMarkdownWrapper.js"),t=require("../../icons/AiGapIcon.js"),d=require("react"),s=require("lucide-react"),r=require("./AiReasoningCitationContent.module.css.js"),u=require("../../shared/CitationAIConfidenceDisplay.js"),c=require("../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(v){var C,g,p,m,f,h,x,b,_,y,R,j,w,S,A,I,k,N,B,q,D,M,E,O=v.label,W=v.aiReason,F=v.scenario,P=v.customStyles,U=v.customIcons,G=v.cognitiveDecisionHeaders,H=v.onSelectProceed,T=v.isDisableProceedButton,V=v.big_enough_block,L=v.isSegmentExplanation,z=v.handleViewExample,J=v.handleViewGlossary,K=v.isUpdatedSegment,Q=c.useRequirementAI().aiReasoningAccordionOpenStates,X=(null==U?void 0:U.aireasonIcon)||n.jsx(e.default,{}),Y=(null==U?void 0:U.reasoningIcon)||n.jsx(a.default,{}),Z=(null==U?void 0:U.gapIcon)||n.jsx(t.default,{}),$=d.useState(null!==(C=null==Q?void 0:Q.isBottomComponentDefaultOpen)&&void 0!==C&&C),ii=$[0],ni=$[1];return n.jsxs("div",i.__assign({className:"".concat(r.default.container," ").concat("riskSideBar"===F?"":r.default.containerBordered),style:null===(g=null==P?void 0:P.aiReasoningContent)||void 0===g?void 0:g.container},{children:[n.jsx("div",i.__assign({className:"".concat((null==W?void 0:W.explanation)&&"riskSideBar"!==F?"":r.default.explanationDivider),style:null===(p=null==P?void 0:P.aiReasoningContent)||void 0===p?void 0:p.explanationDivider},{children:(null==W?void 0:W.explanation)&&n.jsx(o.default,{icon:n.jsx(n.Fragment,{}),title:"Explanation",subTitle:"",customStyles:null==P?void 0:P.aiReasoningAccordion,content:n.jsx(l.AiReasonMarkdownWrapper,{label:O,message:W.explanation,isExpandableOrderedListEnabled:!0,customStyles:null==P?void 0:P.aiReasoningMarkdown,citationStyles:{webCitation:null==P?void 0:P.webCitation,stormeeCitation:null==P?void 0:P.stormeeCitation,waveformCitation:null==P?void 0:P.waveformCitation,imageCitation:null==P?void 0:P.imageCitation,fileCitation:null==P?void 0:P.fileCitation,appModCitation:null==P?void 0:P.appModCitation,rcaCitation:null==P?void 0:P.rcaCitation,readFileCitation:null==P?void 0:P.readFileCitation,loadingCitations:null==P?void 0:P.loadingCitations,chatCitation:null==P?void 0:P.chatCitation,bigEnoughCitation:null==P?void 0:P.bigEnoughCitation},customIcons:U,onSelectProceed:H,isDisableProceedButton:T,big_enough_block:V}),isSegmentExplanation:L,scenario:F,handleViewExample:z,handleViewGlossary:J,isUpdatedSegment:K})})),"riskSideBar"!==F&&n.jsxs("div",i.__assign({onClick:function(){(null==Q?void 0:Q.isBottomComponentCollapsed)&&ni(function(i){return!i})},className:"".concat(r.default.headerBar," ").concat("riskSideBar"===F?"":r.default.headerBarRounded),style:null===(m=null==P?void 0:P.aiReasoningContent)||void 0===m?void 0:m.headerBar},{children:[n.jsxs("div",i.__assign({className:r.default.headerBrand,style:null===(f=null==P?void 0:P.aiReasoningContent)||void 0===f?void 0:f.headerBrand},{children:[X,n.jsx("p",{children:null!==(h=null==G?void 0:G.mainHeader)&&void 0!==h?h:"Cognitive Decisioning AI"})]})),n.jsxs("div",i.__assign({className:r.default.headerScore,style:null===(x=null==P?void 0:P.aiReasoningContent)||void 0===x?void 0:x.headerScore},{children:[!isNaN(null==W?void 0:W.relevance_score)&&u.renderAIConfidenceDisplay(W.relevance_score,W.relevance_score_diff,null===(b=null==P?void 0:P.aiReasoningContent)||void 0===b?void 0:b.confidenceDisplay,U),(null==Q?void 0:Q.isBottomComponentCollapsed)&&n.jsx("button",i.__assign({className:r.default.chevronWrapper,style:null===(_=null==P?void 0:P.aiReasoningContent)||void 0===_?void 0:_.chevronWrapper},{children:ii?n.jsx(s.ChevronUp,{className:null===r.default||void 0===r.default?void 0:r.default.chevronIcon,style:null===(y=null==P?void 0:P.aiReasoningContent)||void 0===y?void 0:y.chevronIcon}):n.jsx(s.ChevronDown,{className:null===r.default||void 0===r.default?void 0:r.default.chevronIcon,style:null===(R=null==P?void 0:P.aiReasoningContent)||void 0===R?void 0:R.chevronIcon})}))]}))]})),"riskSideBar"!==F&&ii&&n.jsx("div",i.__assign({className:r.default.bodyRow,style:i.__assign({width:"100%"},null===(j=null==P?void 0:P.aiReasoningContent)||void 0===j?void 0:j.bodyRow)},{children:n.jsxs("div",i.__assign({className:"flex flex-col ".concat(r.default.bodyFull)},{children:[n.jsx(o.default,{icon:n.jsx("div",i.__assign({className:r.default.iconWrapper,style:null===(w=null==P?void 0:P.aiReasoningContent)||void 0===w?void 0:w.iconWrapper},{children:Y})),isUpdatedSegment:K,title:null!==(S=null==G?void 0:G.decisionHeader)&&void 0!==S?S:"Decision Making Factors",subTitle:"",customStyles:null==P?void 0:P.aiReasoningAccordion,alwaysOpen:null===(A=null==Q?void 0:Q.reasoningAlwaysOpen)||void 0===A||A,defaultOpen:null===(I=null==Q?void 0:Q.reasoningDefaultOpen)||void 0===I||I,content:n.jsx(l.AiReasonMarkdownWrapper,{message:(null==W?void 0:W.reason)||"No reasoning available.",customStyles:null==P?void 0:P.aiReasoningMarkdown,citationStyles:{webCitation:null==P?void 0:P.webCitation,stormeeCitation:null==P?void 0:P.stormeeCitation,waveformCitation:null==P?void 0:P.waveformCitation,imageCitation:null==P?void 0:P.imageCitation,fileCitation:null==P?void 0:P.fileCitation,appModCitation:null==P?void 0:P.appModCitation,rcaCitation:null==P?void 0:P.rcaCitation,readFileCitation:null==P?void 0:P.readFileCitation,loadingCitations:null==P?void 0:P.loadingCitations,chatCitation:null==P?void 0:P.chatCitation,bigEnoughCitation:null==P?void 0:P.bigEnoughCitation},customIcons:U,big_enough_block:V})}),n.jsx("div",{className:r.default.divider,style:null===(k=null==P?void 0:P.aiReasoningContent)||void 0===k?void 0:k.divider}),n.jsx(o.default,{icon:n.jsx("div",i.__assign({className:r.default.iconWrapper,style:null===(N=null==P?void 0:P.aiReasoningContent)||void 0===N?void 0:N.iconWrapper},{children:Z})),title:null!==(B=null==G?void 0:G.gapHeader)&&void 0!==B?B:"Gaps in Decision",subTitle:"",customStyles:null==P?void 0:P.aiReasoningAccordion,alwaysOpen:null!==(q=null==Q?void 0:Q.gapAlwaysOpen)&&void 0!==q&&q,defaultOpen:null!==(D=null==Q?void 0:Q.gapDefaultOpen)&&void 0!==D&&D,isUpdatedSegment:K,content:n.jsx(l.AiReasonMarkdownWrapper,{message:(M=W.relevance_score,E=(null==W?void 0:W.gap)||"No gap available.",M<100?"The decision strength is ".concat(M,"% because: \n").concat(E):E),customStyles:null==P?void 0:P.aiReasoningMarkdown,citationStyles:{webCitation:null==P?void 0:P.webCitation,stormeeCitation:null==P?void 0:P.stormeeCitation,waveformCitation:null==P?void 0:P.waveformCitation,imageCitation:null==P?void 0:P.imageCitation,fileCitation:null==P?void 0:P.fileCitation,appModCitation:null==P?void 0:P.appModCitation,rcaCitation:null==P?void 0:P.rcaCitation,readFileCitation:null==P?void 0:P.readFileCitation,loadingCitations:null==P?void 0:P.loadingCitations,chatCitation:null==P?void 0:P.chatCitation,bigEnoughCitation:null==P?void 0:P.bigEnoughCitation},customIcons:U,big_enough_block:V}),className:r.default.gapAccordion})]}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=AiReasoningCitationContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),s=require("../../../UserStoryImport/lib/cn.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),s=require("../../../UserStoryImport/lib/cn.js"),o=require("./segment.module.css.js"),l=require("./ExampleComponentWrapper.js"),i=require("../ai-reasoning/AiReasoningCitationContent.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=c(t);exports.default=function(t){var c=t.id,u=void 0===c?"Segment":c,d=t.label,m=t.originalValue;t.decisionStrength;var g=t.aiReason,p=t.customStyles,f=t.customIcons,v=t.aiReasoningCitationCustomStyles,_=t.segmentExampleComponent,x=t.handleViewGlossary,C=t.isUpdatedSegment,h=r.default.useState(!1),j=h[0],y=h[1],S=r.default.useState(!1),b=S[0],q=S[1];return n.jsxs("div",e.__assign({className:"".concat(o.default.segmentWrapper),style:e.__assign({},null==p?void 0:p.segmentWrapper)},{children:[n.jsxs("div",e.__assign({className:"".concat(o.default.segmentContainer," ").concat(C?o.default.updatedSegmentContainer:""),style:e.__assign({},null==p?void 0:p.container)},{children:[n.jsx("span",e.__assign({className:"segment-".concat(u," ").concat(o.default.segmentLabel," ").concat(C?o.default.updatedSegmentLabel:""),style:e.__assign({},null==p?void 0:p.label)},{children:C?m:"{id} {".concat(d,"}")})),n.jsx("button",e.__assign({className:"".concat(o.default.segmentExplanationButtonContainer),style:e.__assign({},null==p?void 0:p.buttonContainer),onClick:function(){y(function(e){return!e}),q(!1)}},{children:n.jsx(a.ChevronDown,{className:s.cn(C&&"".concat(o.default.updatedChevronIcon),"".concat(o.default.cheveronIcon),j&&"".concat(o.default.cheveronIconRotated)),style:e.__assign({},null==p?void 0:p.cheveronIcon)})}))]})),b&&!C?n.jsx(l.default,{label:null!=d?d:"",segmentExampleComponent:_,customStyles:null==p?void 0:p.segmentExample,handleCancelExample:function(){q(!1)}}):g&&j&&n.jsx(i.default,{aiReason:g,customStyles:v,customIcons:f,isSegmentExplanation:!0,handleViewGlossary:x?function(){y(!1),null==x||x(u)}:void 0,handleViewExample:_?function(){q(!0)}:void 0,isUpdatedSegment:C})]}))};
|
|
2
2
|
//# sourceMappingURL=Segment.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("./Segment.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=t(require("dompurify"));exports.default=function(t){var l,i,d,a,r,s,u,v,m,g,c,p=t.children,f=t.props,S=t.segmentComponentConfig,x=t.customStyles,h=t.customIcons,y=t.extractText,b=t.isUpdatedSegment,C=void 0!==b&&b,_=(null==f?void 0:f.id)||"Segment",j=(null==f?void 0:f.decisionstrength)||"80",I=S||{},E=I.segmentDataList,q=I.handleFetchSegmentDetails,R=I.getSegmentExampleComponent,U=I.handleViewGlossary,V=null==E?void 0:E.find(function(e){return String(e.segment_id)===String(_)}),w={id:_,reason:null!==(l=null==V?void 0:V.reason)&&void 0!==l?l:"",gap:null!==(i=null==V?void 0:V.gap)&&void 0!==i?i:"",explanation:null!==(d=null==V?void 0:V.explanation)&&void 0!==d?d:"",relevance_score:null!==(a=null==V?void 0:V.relevance_score)&&void 0!==a?a:0,isOpen:!1},D=void 0;q&&!V&&q(_);var F=y(p),G=f["data-table"],L="";if(G&&!C)try{L=decodeURIComponent(atob(G))}catch(e){console.error("Failed to decode data-table for segment",_,e)}var M=o.default.sanitize(L);return _&&V&&R&&!C&&(D=G?e.jsx(function(){return e.jsx("div",{dangerouslySetInnerHTML:{__html:M}})},{}):R(_,F,V.segment_type)),e.jsx(n.default,{id:_,label:null==V?void 0:V.segment_name,originalValue:F,decisionStrength:j,aiReason:w,customIcons:h,aiReasoningCitationCustomStyles:x,segmentExampleComponent:D,handleViewGlossary:U,customStyles:{segmentWrapper:null===(r=null==x?void 0:x.segment)||void 0===r?void 0:r.segmentWrapper,container:null===(s=null==x?void 0:x.segment)||void 0===s?void 0:s.container,label:null===(u=null==x?void 0:x.segment)||void 0===u?void 0:u.label,decisionStrength:null===(v=null==x?void 0:x.segment)||void 0===v?void 0:v.decisionStrength,buttonContainer:null===(m=null==x?void 0:x.segment)||void 0===m?void 0:m.buttonContainer,cheveronIcon:null===(g=null==x?void 0:x.segment)||void 0===g?void 0:g.cheveronIcon,segmentExample:null===(c=null==x?void 0:x.segment)||void 0===c?void 0:c.segmentExample},isUpdatedSegment:C})};
|
|
2
|
+
//# sourceMappingURL=SegmentWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentContainer__wBEel{align-items:center;background-color:#eff6ff;border:1px dashed #bfdbfe;border-radius:4px;color:#3b82f6;display:flex;gap:8px;padding:8px;width:fit-content}.segment-module_segmentLabel__-y8Su{color:#3b82f6;font-size:14px;font-weight:600;line-height:21px;text-transform:uppercase}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentContainer:"segment-module_segmentContainer__wBEel",segmentLabel:"segment-module_segmentLabel__-y8Su",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentContainer__wBEel{align-items:center;background-color:#eff6ff;border:1px dashed #bfdbfe;border-radius:4px;color:#3b82f6;display:flex;gap:8px;padding:8px;width:fit-content}.segment-module_updatedSegmentContainer__qHhip{background-color:#f0fdf4;border:1px solid #bbf7d0;color:#16a34a}.segment-module_segmentLabel__-y8Su{color:#3b82f6;font-size:14px;font-weight:600;line-height:21px;text-transform:uppercase}.segment-module_updatedSegmentLabel__rt5iT{color:#16a34a}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_updatedChevronIcon__8vN-t{color:#16a34a}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentContainer:"segment-module_segmentContainer__wBEel",updatedSegmentContainer:"segment-module_updatedSegmentContainer__qHhip",segmentLabel:"segment-module_segmentLabel__-y8Su",updatedSegmentLabel:"segment-module_updatedSegmentLabel__rt5iT",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",updatedChevronIcon:"segment-module_updatedChevronIcon__8vN-t",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};
|
|
2
2
|
//# sourceMappingURL=segment.module.css.js.map
|
package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),o=require("rehype-raw"),a=require("./UserStoryWithCitation.module.css.js"),l=require("../../shared/useMarkdownSearch.js"),r=require("lucide-react"),d=require("@mui/material"),s=require("dompurify"),c=require("../../shared/UpdatedAnimationContent.js"),u=require("../../shared/GeneratedCodeCitation.js"),g=require("../../shared/CitationLoadingIndicator.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("../../icons/CognitiveDecision.js"),h=require("../../icons/BrainRed.js"),m=require("../ai-reasoning/AiReasoningCitation.js"),p=require("../../icons/RelevanceScoreIcon.js"),C=require("../RecommendationBlock/RecommendationBlock.js"),_=require("../UserStoryCard/AttachedContext.js"),x=require("../ai-reasoning/AiReasoningCitationContent.js"),y=require("./components/InlineUpdatedComponent.js"),j=require("../segment/Segment.js");function S(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var R=S(i),I=S(t),b=S(o),w=S(s),N=i.createContext(!1),q=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),A=i.createContext({rowId:""}),k=function(t){var o,l=t.aiReason,r=t.isHighConfidence,d=t.customStyle,s=t.customIcons,c=i.useContext(q),u=c.expandedInfo,g=c.setExpanded,v=c.reasonToRow,m=i.useContext(A).rowId,p=String(l.id);m&&v.current.set(p,m);var C=(null===(o=null==u?void 0:u.aiReason)||void 0===o?void 0:o.id)===l.id,_=r?(null==s?void 0:s.highConfidence)||n.jsx(f.default,{}):(null==s?void 0:s.lowConfidence)||n.jsx(h.default,{});return n.jsxs("button",e.__assign({className:a.default.aiReasoningButton,style:d,onClick:function(e){e.stopPropagation(),e.preventDefault(),g(C?null:m,C?null:l)}},{children:[_,C?n.jsx("i",{className:"pi pi-angle-up ".concat(r?a.default.aiReasoningIconHighConfidence:a.default.aiReasoningIconLowConfidence)}):n.jsx("i",{className:"pi pi-angle-down ".concat(r?a.default.aiReasoningIconHighConfidence:a.default.aiReasoningIconLowConfidence)})]}))},E=function(t){var o,l,r=t.children,d=t.node,s=t.customStyles,c=t.customIcons,u=i.useRef(Math.random().toString(36).slice(2)).current,g=i.useContext(q).expandedInfo,v=(null==g?void 0:g.rowId)===u,f=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,h=null!==(l=null===(o=null==d?void 0:d.properties)||void 0===o?void 0:o.style)&&void 0!==l?l:void 0;return n.jsxs(A.Provider,e.__assign({value:{rowId:u}},{children:[n.jsx("tr",e.__assign({style:h?{cssText:h}:void 0},{children:r})),v&&(null==g?void 0:g.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:f||1,className:a.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellInner},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellContent},{children:n.jsx(x.default,{aiReason:g.aiReason,customIcons:c,customStyles:{aiReasoningContent:null==s?void 0:s.aiReasoningContent,aiReasoningAccordion:null==s?void 0:s.aiReasoningAccordion,aiReasoningMarkdown:null==s?void 0:s.aiReasoningMarkdown,aiReasoningPill:null==s?void 0:s.aiReasoningPill,webCitation:null==s?void 0:s.webCitation,stormeeCitation:null==s?void 0:s.stormeeCitation,waveformCitation:null==s?void 0:s.waveformCitation,imageCitation:null==s?void 0:s.imageCitation,fileCitation:null==s?void 0:s.fileCitation,appModCitation:null==s?void 0:s.appModCitation,rcaCitation:null==s?void 0:s.rcaCitation,readFileCitation:null==s?void 0:s.readFileCitation,loadingCitations:null==s?void 0:s.loadingCitations,chatCitation:null==s?void 0:s.chatCitation}})}))}))}))}))]}))};exports.default=function(t){var o,s=t.message,f=t.isParent,h=t.scenario,x=t.showUserStoryDiff,S=void 0!==x&&x,A=t.aiReasoningsForBlock,U=t.isCitationLoadingDisplay,M=void 0!==U&&U,T=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var L=t.customStyles,P=t.customIcons,D=t.aiReasoningDiffView,F=t.userStoryCitations,H=t.artifactId,$=t.isCraflow,O=t.onCraAccept,V=t.onCraReject,W=t.craFlowConfig,B=t.isDisplayHighlightControl,z=void 0!==B&&B,G=t.segmentComponentConfig,Q=i.useRef(null),J=v.useRequirementAI(),K=J.userStory,X=J.inlineUpdateComponentConfig,Y=J.getAvgScoreForStory,Z=J.setUserStory,ee=J.aiReasoning,ne=J.setAiReasoning,ie=J.customIcons,te=J.searchQueryList,oe=J.searchQueryReasoningIdList,ae=J.currentHighlightIndex,le=null!=P?P:null==ie?void 0:ie.userStoryIcons;null==L||L.searchHighlight;var re=l.useMarkdownSearch(Q),de=re.search,se=re.clear,ce=i.useState("1"),ue=ce[0],ge=ce[1],ve=i.useState(null),fe=ve[0],he=ve[1],me=i.useRef(new Map),pe=i.useCallback(function(e,n){he(e&&n?{rowId:e,aiReason:n}:null)},[]),Ce=H?Y(H):0,_e=i.useState([]),xe=_e[0],ye=_e[1],je=function(e){return null==e?"":"string"==typeof e?e:"number"==typeof e?String(e):Array.isArray(e)?e.map(je).join(""):R.default.isValidElement(e)?je(e.props.children):""},Se=function(e){var n=e;return n=function(e){for(var n,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,t=[],o=new RegExp(i.source,i.flags);null!==(n=o.exec(e));){var a=n[0],l=a.match(/<deleted>([\s\S]*?)<\/deleted>/i),r=a.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(e){return(e.match(/^\s*\d+\.\s/gm)||[]).length};t.push({index:n.index,endIndex:n.index+n[0].length,deletedItemCount:d((null==l?void 0:l[1])||""),changedItemCount:d((null==r?void 0:r[1])||"")})}if(0===t.length)return e;for(var s=e,c=function(e){var n=t[e],i=n.changedItemCount-n.deletedItemCount;if(0===i)return"continue";for(var o=!1,a=0,l=s.substring(0,n.index).split("\n").reverse();a<l.length;a++){var r=l[a].trim();if(""!==r){/^\d+\.\s/.test(r)&&(o=!0);break}}if(!o)return"continue";var d=n.endIndex,c=e+1<t.length?t[e+1].index:s.length,u=s.substring(d,c);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(e,n,t){return"".concat(n).concat(parseInt(t,10)+i,". ")}),s=s.substring(0,d)+u+s.substring(c)},u=t.length-1;u>=0;u--)c(u);return s}(n=(n=(n=(n=(n=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,function(e,n,i,t,o){var a=t.match(/<table[\s\S]*?<\/table>/i);if(a){var l=btoa(encodeURIComponent(a[0]));return"<segment".concat(i,' data-table="').concat(l,'"></segment>')}return e})).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(e,i,t,o){var a=n.substring(0,o),l=a.lastIndexOf("\n"),r=/^\s+[-*]\s/.test(a.substring(l+1))||/^\s+\d+\.\s/.test(a.substring(l+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(a.substring(l+1));if(r||d){var s=t;return s=(s=(s=(s=s.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(s,"</updated>")}return e})),n=function(e){var n=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==n}),"<deleted>".concat(i,"</deleted>")});return n.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==n,preview:n.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(n),n},Re=i.useMemo(function(){return s?Se(s):s},[s]);i.useEffect(function(){ye(A||ee)},[A,ee]);var Ie=i.useMemo(function(){return{upt:function(i){var t;i.node;var o=i.children,a=e.__rest(i,["node","children"]),l=null==a?void 0:a.id,r=l?null===(t=l.split("$"))||void 0===t?void 0:t[1]:null,d=ee.find(function(e){return e.id.toString()===r});return d?n.jsx(y.default,e.__assign({aiReason:d,customStyles:null==L?void 0:L.inlineUpdatedComponent,handleClickCognitiveDecision:null==X?void 0:X.handleClickCognitiveDecision,handleClickUpdatedPill:null==X?void 0:X.handleClickUpdatedPill,handleClickOutputValue:null==X?void 0:X.handleClickOutputValue,customIcons:null==X?void 0:X.customIcons},{children:o})):o},del:function(i){i.node;var t=i.children,o=e.__rest(i,["node","children"]);return n.jsx("span",e.__assign({className:a.default.deleted,style:null==L?void 0:L.deleted},o,{onClick:o.onclick},{children:t}))},ins:function(i){var t=i.children,o=e.__rest(i,["children"]);return n.jsx("span",e.__assign({className:a.default.inserted,style:null==L?void 0:L.inserted},o,{onClick:o.onclick},{children:t}))},h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:a.default.heading1,style:null==L?void 0:L.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:a.default.heading2,style:null==L?void 0:L.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:a.default.heading3,style:null==L?void 0:L.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:a.default.bold,style:null==L?void 0:L.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:a.default.paragraph,style:null==L?void 0:L.paragraph},{children:t.children}))},updated:function(i){var t=i.node,o=e.__rest(i,["node"]);return n.jsx(c.default,e.__assign({},o,{showUserStoryDiff:S,currentUpdatedTagId:ue,setCurrentUpdatedTagId:ge,userStory:K,setUserStory:Z,setAiReasoning:ne,node:t,isCraflow:$,onCraAccept:O,onCraReject:V,customStyles:null==L?void 0:L.updatedContent,craFlowConfig:W}))},ol:function(i){var t,o,l,r=i.node,d=e.__rest(i,["node"]),s=null!==(l=null!==(o=null===(t=null==r?void 0:r.properties)||void 0===t?void 0:t.start)&&void 0!==o?o:null==d?void 0:d.start)&&void 0!==l?l:void 0;return n.jsx("ol",e.__assign({className:a.default.orderedList,style:null==L?void 0:L.olist},s?{start:Number(s)}:{},{children:null==d?void 0:d.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:a.default.unorderedList,style:null==L?void 0:L.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:a.default.tableWrapper},{children:n.jsx("table",e.__assign({className:a.default.table,style:null==L?void 0:L.table},{children:t}))}))},tr:function(e){var i=e.node,t=e.children;return n.jsx(E,{node:i,children:t,customStyles:L})},td:function(i){var t,o=i.node,a=i.children,l=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},r=l.style,d=e.__rest(l,["style"]);return n.jsx(N.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},d,{style:r?{cssText:r}:void 0},{children:a}))}))},th:function(i){var t,o=i.node,a=i.children,l=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},r=l.style,d=e.__rest(l,["style"]);return n.jsx(N.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},d,{style:r?{cssText:r}:void 0},{children:a}))}))},recommendation:function(i){var t;i.node;var o=e.__rest(i,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==o?void 0:o.children)||void 0===t?void 0:t[0])||"");return n.jsx(C.default,e.__assign({},o,{customStyles:null==L?void 0:L.recommendationBlock,label:a}))},a:function(t){var o,a,l;t.inline,t.children,t.node;var r=e.__rest(t,["inline","children","node"]),d=i.useContext(N)||"true"==(null==r?void 0:r.table),s="".concat(null==r?void 0:r.href),c=null===(o=s.split("$"))||void 0===o?void 0:o[0],u=null===(a=s.split("$"))||void 0===a?void 0:a[1];if("ai_reasoning"===c){var g=(null!==(l=S?D:ee)&&void 0!==l?l:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)}),v=oe.includes(u);if(g)return d?n.jsx(k,{aiReason:g,customStyle:null==L?void 0:L.tableAiReasoning,customIcons:le,isHighConfidence:g.relevance_score>=m.SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING}):n.jsx(m.default,{aiReason:g,isSourceHasHighlight:v,customIcons:le,customStyles:{aiReasoningContent:null==L?void 0:L.aiReasoningContent,aiReasoningAccordion:null==L?void 0:L.aiReasoningAccordion,aiReasoningMarkdown:null==L?void 0:L.aiReasoningMarkdown,aiReasoningPill:null==L?void 0:L.aiReasoningPill,webCitation:null==L?void 0:L.webCitation,stormeeCitation:null==L?void 0:L.stormeeCitation,waveformCitation:null==L?void 0:L.waveformCitation,imageCitation:null==L?void 0:L.imageCitation,fileCitation:null==L?void 0:L.fileCitation,appModCitation:null==L?void 0:L.appModCitation,rcaCitation:null==L?void 0:L.rcaCitation,readFileCitation:null==L?void 0:L.readFileCitation,loadingCitations:null==L?void 0:L.loadingCitations,chatCitation:null==L?void 0:L.chatCitation,bigEnoughCitation:null==L?void 0:L.bigEnoughCitation}})}return null},code:function(i){i.inline;var t=i.children,o=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:a.default.blockCode,style:null==L?void 0:L.code},{children:t}))}):n.jsx("code",e.__assign({className:a.default.inlineCode,style:null==L?void 0:L.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(d.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(r.Info,{size:16,className:a.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),o=(null==t?void 0:t.language)||"python",a=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(t);return n.jsx(u.default,{title:"Generated Code",code:a,language:o,customStyles:{pill:null==L?void 0:L.generatedCodePill,content:null==L?void 0:L.generatedCodeContent}})},segment:function(i){var t,o,a,l,r,d,s,c,u,g,v;i.node;var f=i.children,h=e.__rest(i,["node","children"]),m=(null==h?void 0:h.id)||"Segment",p=(null==h?void 0:h.decisionstrength)||"80",C=G||{},_=C.segmentDataList,x=C.handleFetchSegmentDetails,y=C.getSegmentExampleComponent,S=C.handleViewGlossary,R=null==_?void 0:_.find(function(e){return String(e.segment_id)===String(m)}),I={id:m,reason:null!==(t=null==R?void 0:R.reason)&&void 0!==t?t:"",gap:null!==(o=null==R?void 0:R.gap)&&void 0!==o?o:"",explanation:null!==(a=null==R?void 0:R.explanation)&&void 0!==a?a:"",relevance_score:null!==(l=null==R?void 0:R.relevance_score)&&void 0!==l?l:0,isOpen:!1},b=void 0;x&&!R&&x(m);var N=je(f),q=h["data-table"],A="";if(q)try{A=decodeURIComponent(atob(q))}catch(e){console.error("Failed to decode data-table for segment",m,e)}var k=w.default.sanitize(A);return m&&R&&y&&(b=q?n.jsx(function(){return n.jsx("div",{dangerouslySetInnerHTML:{__html:k}})},{}):y(m,N,R.segment_type)),n.jsx(j.default,{id:m,label:null==R?void 0:R.segment_name,originalValue:f,decisionStrength:p,aiReason:I,customIcons:P,aiReasoningCitationCustomStyles:L,segmentExampleComponent:b,handleViewGlossary:S,customStyles:{segmentWrapper:null===(r=null==L?void 0:L.segment)||void 0===r?void 0:r.segmentWrapper,container:null===(d=null==L?void 0:L.segment)||void 0===d?void 0:d.container,label:null===(s=null==L?void 0:L.segment)||void 0===s?void 0:s.label,decisionStrength:null===(c=null==L?void 0:L.segment)||void 0===c?void 0:c.decisionStrength,buttonContainer:null===(u=null==L?void 0:L.segment)||void 0===u?void 0:u.buttonContainer,cheveronIcon:null===(g=null==L?void 0:L.segment)||void 0===g?void 0:g.cheveronIcon,segmentExample:null===(v=null==L?void 0:L.segment)||void 0===v?void 0:v.segmentExample}})}}},[xe,W,ee,F,ue,S,s,P,te,oe,L]);return i.useEffect(function(){if(Q.current){if(te.length){var e;if(0===oe.length||z)requestAnimationFrame(function(){de([te[ae].replace(/\*/g,"")])});else{var n=Q.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){de([te[ae].replace(/\*/g,"")])})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}se()}},[te,oe,ae,z]),n.jsx(q.Provider,e.__assign({value:{expandedInfo:fe,setExpanded:pe,reasonToRow:me}},{children:n.jsxs("div",e.__assign({ref:Q,className:"".concat(a.default.container," ").concat("approving"!==h?a.default.wrapper:""," ").concat(T||""),style:null==L?void 0:L.container},{children:[n.jsx(I.default,e.__assign({components:Ie,rehypePlugins:[b.default]},{children:Re})),Ce>0&&n.jsx("div",e.__assign({className:a.default.confidenceScoreContainer,style:null==L?void 0:L.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:a.default.confidenceScore,style:null==L?void 0:L.confidenceScore},{children:[n.jsx(p.default,{size:14,color:(null==L?void 0:L.confidenceScoreIconColor)||"#166534"}),Ce,"%"]}))})),M&&n.jsx("div",e.__assign({className:a.default.citationLoader,style:null==L?void 0:L.citationLoaderContainer},{children:n.jsx(g.default,{customStyles:{container:null==L?void 0:L.citationLoadingContainer,icon:null==L?void 0:L.citationLoadingIcon,text:null==L?void 0:L.citationLoadingText}})})),f&&n.jsx("div",e.__assign({style:e.__assign({},null===(o=null==L?void 0:L.attachedContext)||void 0===o?void 0:o.wrapper),className:"flex mt-5"},{children:n.jsx(_.default,{customStyles:null==L?void 0:L.attachedContext})}))]}))}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),o=require("rehype-raw"),a=require("./UserStoryWithCitation.module.css.js"),l=require("../../shared/useMarkdownSearch.js"),r=require("lucide-react"),s=require("@mui/material"),d=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),g=require("../RequirementAIWrapper/RequirementAIWrapper.js"),v=require("../../icons/CognitiveDecision.js"),f=require("../../icons/BrainRed.js"),h=require("../ai-reasoning/AiReasoningCitation.js"),p=require("../../icons/RelevanceScoreIcon.js"),C=require("../RecommendationBlock/RecommendationBlock.js"),m=require("../UserStoryCard/AttachedContext.js"),_=require("../ai-reasoning/AiReasoningCitationContent.js"),x=require("./components/InlineUpdatedComponent.js"),j=require("../segment/SegmentWrapper.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var S=y(i),R=y(t),I=y(o),b=i.createContext(!1),w=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),N=i.createContext({rowId:""}),A=function(t){var o,l=t.aiReason,r=t.isHighConfidence,s=t.customStyle,d=t.customIcons,c=i.useContext(w),u=c.expandedInfo,g=c.setExpanded,h=c.reasonToRow,p=i.useContext(N).rowId,C=String(l.id);p&&h.current.set(C,p);var m=(null===(o=null==u?void 0:u.aiReason)||void 0===o?void 0:o.id)===l.id,_=r?(null==d?void 0:d.highConfidence)||n.jsx(v.default,{}):(null==d?void 0:d.lowConfidence)||n.jsx(f.default,{});return n.jsxs("button",e.__assign({className:a.default.aiReasoningButton,style:s,onClick:function(e){e.stopPropagation(),e.preventDefault(),g(m?null:p,m?null:l)}},{children:[_,m?n.jsx("i",{className:"pi pi-angle-up ".concat(r?a.default.aiReasoningIconHighConfidence:a.default.aiReasoningIconLowConfidence)}):n.jsx("i",{className:"pi pi-angle-down ".concat(r?a.default.aiReasoningIconHighConfidence:a.default.aiReasoningIconLowConfidence)})]}))},q=function(t){var o,l,r=t.children,s=t.node,d=t.customStyles,c=t.customIcons,u=i.useRef(Math.random().toString(36).slice(2)).current,g=i.useContext(w).expandedInfo,v=(null==g?void 0:g.rowId)===u,f=Array.isArray(null==s?void 0:s.children)?s.children.filter(function(e){return"element"===e.type}).length:1,h=null!==(l=null===(o=null==s?void 0:s.properties)||void 0===o?void 0:o.style)&&void 0!==l?l:void 0;return n.jsxs(N.Provider,e.__assign({value:{rowId:u}},{children:[n.jsx("tr",e.__assign({style:h?{cssText:h}:void 0},{children:r})),v&&(null==g?void 0:g.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:f||1,className:a.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellInner},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellContent},{children:n.jsx(_.default,{aiReason:g.aiReason,customIcons:c,customStyles:{aiReasoningContent:null==d?void 0:d.aiReasoningContent,aiReasoningAccordion:null==d?void 0:d.aiReasoningAccordion,aiReasoningMarkdown:null==d?void 0:d.aiReasoningMarkdown,aiReasoningPill:null==d?void 0:d.aiReasoningPill,webCitation:null==d?void 0:d.webCitation,stormeeCitation:null==d?void 0:d.stormeeCitation,waveformCitation:null==d?void 0:d.waveformCitation,imageCitation:null==d?void 0:d.imageCitation,fileCitation:null==d?void 0:d.fileCitation,appModCitation:null==d?void 0:d.appModCitation,rcaCitation:null==d?void 0:d.rcaCitation,readFileCitation:null==d?void 0:d.readFileCitation,loadingCitations:null==d?void 0:d.loadingCitations,chatCitation:null==d?void 0:d.chatCitation}})}))}))}))}))]}))};var k=["del","ins"];function E(e){return function(e,n,i){var t=n.join("|");return e.replace(new RegExp("<(".concat(t,")>([\\s\\S]*?)<\\/\\1>"),"gi"),function(e,n,t){return"<".concat(n,">").concat(i(t),"</").concat(n,">")})}(e,k,function(e){return e.split(/(<[^>]+>)/g).map(function(e){return!e||/^<[^>]+>$/.test(e)?e:function(e){if(!e)return e;var n=[];return e.replace(/`([^`\n]+)`/g,function(e,i){var t=n.push(i)-1;return"@@CODE_SPAN_".concat(t,"@@")}).replace(/\*\*([\s\S]+?)\*\*/g,"<strong>$1</strong>").replace(/__([\s\S]+?)__/g,"<strong>$1</strong>").replace(/@@CODE_SPAN_(\d+)@@/g,function(e,i){var t,o=null!==(t=n[Number(i)])&&void 0!==t?t:"";return"<code>".concat(o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),"</code>")})}(e)}).join("")})}exports.default=function(t){var o,v=t.message,f=t.isParent,_=t.scenario,y=t.showUserStoryDiff,N=void 0!==y&&y,k=t.aiReasoningsForBlock,T=t.isCitationLoadingDisplay,U=void 0!==T&&T,M=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var P=t.customStyles,L=t.customIcons,$=t.aiReasoningDiffView,D=t.userStoryCitations,H=t.artifactId,O=t.isCraflow,F=t.onCraAccept,B=t.onCraReject,W=t.craFlowConfig,z=t.isDisplayHighlightControl,V=void 0!==z&&z,G=t.segmentComponentConfig,Q=i.useRef(null),J=g.useRequirementAI(),K=J.userStory,X=J.inlineUpdateComponentConfig,Y=J.getAvgScoreForStory,Z=J.setUserStory,ee=J.aiReasoning,ne=J.setAiReasoning,ie=J.customIcons,te=J.searchQueryList,oe=J.searchQueryReasoningIdList,ae=J.currentHighlightIndex,le=null!=L?L:null==ie?void 0:ie.userStoryIcons;null==P||P.searchHighlight;var re=l.useMarkdownSearch(Q),se=re.search,de=re.clear,ce=i.useState("1"),ue=ce[0],ge=ce[1],ve=i.useState(null),fe=ve[0],he=ve[1],pe=i.useRef(new Map),Ce=i.useCallback(function(e,n){he(e&&n?{rowId:e,aiReason:n}:null)},[]),me=H?Y(H):0,_e=i.useState([]),xe=_e[0],je=_e[1],ye=function(e){return null==e?"":"string"==typeof e?e:"number"==typeof e?String(e):Array.isArray(e)?e.map(ye).join(""):S.default.isValidElement(e)?ye(e.props.children):""},Se=function(e){var n=e;return n=function(e){for(var n,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,t=[],o=new RegExp(i.source,i.flags);null!==(n=o.exec(e));){var a=n[0],l=a.match(/<deleted>([\s\S]*?)<\/deleted>/i),r=a.match(/<changed>([\s\S]*?)<\/changed>/i),s=function(e){return(e.match(/^\s*\d+\.\s/gm)||[]).length};t.push({index:n.index,endIndex:n.index+n[0].length,deletedItemCount:s((null==l?void 0:l[1])||""),changedItemCount:s((null==r?void 0:r[1])||"")})}if(0===t.length)return e;for(var d=e,c=function(e){var n=t[e],i=n.changedItemCount-n.deletedItemCount;if(0===i)return"continue";for(var o=!1,a=0,l=d.substring(0,n.index).split("\n").reverse();a<l.length;a++){var r=l[a].trim();if(""!==r){/^\d+\.\s/.test(r)&&(o=!0);break}}if(!o)return"continue";var s=n.endIndex,c=e+1<t.length?t[e+1].index:d.length,u=d.substring(s,c);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(e,n,t){return"".concat(n).concat(parseInt(t,10)+i,". ")}),d=d.substring(0,s)+u+d.substring(c)},u=t.length-1;u>=0;u--)c(u);return d}(n=(n=(n=(n=(n=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,function(e,n,i,t,o){var a=t.match(/<table[\s\S]*?<\/table>/i);if(a){var l=btoa(encodeURIComponent(a[0]));return"<segment".concat(i,' data-table="').concat(l,'"></segment>')}return e})).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(e,i,t,o){var a=n.substring(0,o),l=a.lastIndexOf("\n"),r=/^\s+[-*]\s/.test(a.substring(l+1))||/^\s+\d+\.\s/.test(a.substring(l+1)),s=/^\s*(\d+\.|\s*[-*])\s+$/.test(a.substring(l+1));if(r||s){var d=t;return d=(d=(d=(d=d.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(d,"</updated>")}return e})),n=function(e){var n=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==n}),"<deleted>".concat(i,"</deleted>")});return n.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==n,preview:n.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(n),n=E(n)},Re=i.useMemo(function(){return v?Se(v):v},[v]);i.useEffect(function(){je(k||ee)},[k,ee]);var Ie=i.useMemo(function(){return{upt:function(i){var t;i.node;var o=i.children,a=e.__rest(i,["node","children"]),l=null==a?void 0:a.id,r=l?null===(t=l.split("$"))||void 0===t?void 0:t[1]:null,s=ee.find(function(e){return e.id.toString()===r});return s?n.jsx(x.default,e.__assign({aiReason:s,customStyles:null==P?void 0:P.inlineUpdatedComponent,handleClickCognitiveDecision:null==X?void 0:X.handleClickCognitiveDecision,handleClickUpdatedPill:null==X?void 0:X.handleClickUpdatedPill,handleClickOutputValue:null==X?void 0:X.handleClickOutputValue,customIcons:null==X?void 0:X.customIcons},{children:o})):o},del:function(i){i.node;var t=i.children,o=e.__rest(i,["node","children"]);return n.jsx("span",e.__assign({className:a.default.deleted,style:null==P?void 0:P.deleted},o,{onClick:o.onclick},{children:t}))},ins:function(i){var t=i.children,o=e.__rest(i,["children"]);return n.jsx("span",e.__assign({className:a.default.inserted,style:null==P?void 0:P.inserted},o,{onClick:o.onclick},{children:t}))},h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:a.default.heading1,style:null==P?void 0:P.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:a.default.heading2,style:null==P?void 0:P.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:a.default.heading3,style:null==P?void 0:P.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:a.default.bold,style:null==P?void 0:P.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:a.default.paragraph,style:null==P?void 0:P.paragraph},{children:t.children}))},updated:function(i){var t=i.node,o=e.__rest(i,["node"]);return n.jsx(d.default,e.__assign({},o,{showUserStoryDiff:N,currentUpdatedTagId:ue,setCurrentUpdatedTagId:ge,userStory:K,setUserStory:Z,setAiReasoning:ne,node:t,isCraflow:O,onCraAccept:F,onCraReject:B,customStyles:null==P?void 0:P.updatedContent,craFlowConfig:W}))},ol:function(i){var t,o,l,r=i.node,s=e.__rest(i,["node"]),d=null!==(l=null!==(o=null===(t=null==r?void 0:r.properties)||void 0===t?void 0:t.start)&&void 0!==o?o:null==s?void 0:s.start)&&void 0!==l?l:void 0;return n.jsx("ol",e.__assign({className:a.default.orderedList,style:null==P?void 0:P.olist},d?{start:Number(d)}:{},{children:null==s?void 0:s.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:a.default.unorderedList,style:null==P?void 0:P.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:a.default.tableWrapper},{children:n.jsx("table",e.__assign({className:a.default.table,style:null==P?void 0:P.table},{children:t}))}))},tr:function(e){var i=e.node,t=e.children;return n.jsx(q,{node:i,children:t,customStyles:P})},td:function(i){var t,o=i.node,a=i.children,l=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},r=l.style,s=e.__rest(l,["style"]);return n.jsx(b.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:r?{cssText:r}:void 0},{children:a}))}))},th:function(i){var t,o=i.node,a=i.children,l=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},r=l.style,s=e.__rest(l,["style"]);return n.jsx(b.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:r?{cssText:r}:void 0},{children:a}))}))},recommendation:function(i){var t;i.node;var o=e.__rest(i,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==o?void 0:o.children)||void 0===t?void 0:t[0])||"");return n.jsx(C.default,e.__assign({},o,{customStyles:null==P?void 0:P.recommendationBlock,label:a}))},a:function(t){var o,a,l;t.inline,t.children,t.node;var r=e.__rest(t,["inline","children","node"]),s=i.useContext(b)||"true"==(null==r?void 0:r.table),d="".concat(null==r?void 0:r.href),c=null===(o=d.split("$"))||void 0===o?void 0:o[0],u=null===(a=d.split("$"))||void 0===a?void 0:a[1];if("ai_reasoning"===c){var g=(null!==(l=N?$:ee)&&void 0!==l?l:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)}),v=oe.includes(u);if(g)return s?n.jsx(A,{aiReason:g,customStyle:null==P?void 0:P.tableAiReasoning,customIcons:le,isHighConfidence:g.relevance_score>=h.SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING}):n.jsx(h.default,{aiReason:g,isSourceHasHighlight:v,customIcons:le,customStyles:{aiReasoningContent:null==P?void 0:P.aiReasoningContent,aiReasoningAccordion:null==P?void 0:P.aiReasoningAccordion,aiReasoningMarkdown:null==P?void 0:P.aiReasoningMarkdown,aiReasoningPill:null==P?void 0:P.aiReasoningPill,webCitation:null==P?void 0:P.webCitation,stormeeCitation:null==P?void 0:P.stormeeCitation,waveformCitation:null==P?void 0:P.waveformCitation,imageCitation:null==P?void 0:P.imageCitation,fileCitation:null==P?void 0:P.fileCitation,appModCitation:null==P?void 0:P.appModCitation,rcaCitation:null==P?void 0:P.rcaCitation,readFileCitation:null==P?void 0:P.readFileCitation,loadingCitations:null==P?void 0:P.loadingCitations,chatCitation:null==P?void 0:P.chatCitation,bigEnoughCitation:null==P?void 0:P.bigEnoughCitation}})}return null},code:function(i){i.inline;var t=i.children,o=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:a.default.blockCode,style:null==P?void 0:P.code},{children:t}))}):n.jsx("code",e.__assign({className:a.default.inlineCode,style:null==P?void 0:P.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(s.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(r.Info,{size:16,className:a.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),o=(null==t?void 0:t.language)||"python",a=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(t);return n.jsx(c.default,{title:"Generated Code",code:a,language:o,customStyles:{pill:null==P?void 0:P.generatedCodePill,content:null==P?void 0:P.generatedCodeContent}})},updatedsegment:function(i){var t=i.node,o=i.children,a=e.__rest(i,["node","children"]);return n.jsx(j.default,{node:t,children:o,props:a,segmentComponentConfig:G,customStyles:P,customIcons:L,extractText:ye,isUpdatedSegment:!0})},segment:function(i){var t=i.node,o=i.children,a=e.__rest(i,["node","children"]);return n.jsx(j.default,{node:t,children:o,props:a,segmentComponentConfig:G,customStyles:P,customIcons:L,extractText:ye})}}},[xe,W,ee,D,ue,N,v,L,te,oe,P]);return i.useEffect(function(){if(Q.current){if(te.length){var e;if(0===oe.length||V)requestAnimationFrame(function(){se([te[ae].replace(/\*/g,"")])});else{var n=Q.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){se([te[ae].replace(/\*/g,"")])})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}de()}},[te,oe,ae,V]),n.jsx(w.Provider,e.__assign({value:{expandedInfo:fe,setExpanded:Ce,reasonToRow:pe}},{children:n.jsxs("div",e.__assign({ref:Q,className:"".concat(a.default.container," ").concat("approving"!==_?a.default.wrapper:""," ").concat(M||""),style:null==P?void 0:P.container},{children:[n.jsx(R.default,e.__assign({components:Ie,rehypePlugins:[I.default]},{children:Re})),me>0&&n.jsx("div",e.__assign({className:a.default.confidenceScoreContainer,style:null==P?void 0:P.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:a.default.confidenceScore,style:null==P?void 0:P.confidenceScore},{children:[n.jsx(p.default,{size:14,color:(null==P?void 0:P.confidenceScoreIconColor)||"#166534"}),me,"%"]}))})),U&&n.jsx("div",e.__assign({className:a.default.citationLoader,style:null==P?void 0:P.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==P?void 0:P.citationLoadingContainer,icon:null==P?void 0:P.citationLoadingIcon,text:null==P?void 0:P.citationLoadingText}})})),f&&n.jsx("div",e.__assign({style:e.__assign({},null===(o=null==P?void 0:P.attachedContext)||void 0===o?void 0:o.wrapper),className:"flex mt-5"},{children:n.jsx(m.default,{customStyles:null==P?void 0:P.attachedContext})}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("uuid"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("uuid"),t=function(e){if(!e)return[];return e.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(function(e){return e.trim()})};exports.cloneUserStories=function(e){return structuredClone(e)},exports.createUserStoriesForApproval=function(n){var r=function(n,o){var i=t(n.value).map(function(t){return{contentId:e.v4(),content:t,isApproved:!1}}),u={artifactId:n.artifactId,title:n.title,value:i,description:n.description,approval_status:o?void 0:"NOT_APPROVED",big_enough:null==n?void 0:n.big_enough,big_enough_decision_factors:null==n?void 0:n.big_enough_decision_factors,metadata:null==n?void 0:n.metadata,gapValue:null==n?void 0:n.gapValue,confidenceScore:null==n?void 0:n.confidenceScore,storyNumber:n.storyNumber,blockNumber:n.blockNumber,aiReasoning:null==n?void 0:n.aiReasoning,section:null==n?void 0:n.section};return n.sub_features&&n.sub_features.length>0&&(u.sub_features=n.sub_features.map(function(e){return r(e,!0)})),u};return n.map(function(e){return r(e,!1)})},exports.splitByHeaders=t,exports.transformApprovalToUserStory=function(e){var t=function(e){var n,r=Array.isArray(e.value)?e.value.map(function(e){return e.content}).join("\n\n"):e.value,o={artifactId:e.artifactId,title:e.title,description:e.description,value:r,big_enough:e.big_enough,big_enough_decision_factors:e.big_enough_decision_factors,metadata:null==e?void 0:e.metadata,gapValue:null==e?void 0:e.gapValue,confidenceScore:null==e?void 0:e.confidenceScore,storyNumber:e.storyNumber,blockNumber:e.blockNumber,aiReasoning:null==e?void 0:e.aiReasoning,section:null==e?void 0:e.section};return(null===(n=e.sub_features)||void 0===n?void 0:n.length)&&(o.sub_features=e.sub_features.map(t)),o};return e.map(t)};
|
|
2
2
|
//# sourceMappingURL=userstory-approval-transform.utils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import{ChevronUp as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as n,jsx as t,Fragment as l}from"react/jsx-runtime";import{ChevronUp as i,ChevronDown as a,ExternalLink as o}from"lucide-react";import{useState as r}from"react";import c from"./AiReasonAccoridon.module.css.js";function s(s){var d=s.icon,u=s.title,m=s.content,p=s.subTitle,v=s.scenario,h=s.className,y=void 0===h?"":h,f=s.customStyles,B=s.alwaysOpen,N=void 0!==B&&B,x=s.defaultOpen,k=void 0===x||x,w=s.isSegmentExplanation,g=void 0!==w&&w,S=s.handleViewExample,b=s.handleViewGlossary,C=s.isUpdatedSegment,E=r(k),W=E[0],T=E[1];return n("div",e({className:"".concat("riskSideBar"!==v&&c.wrapperBorder," ").concat(c.wrapper," ").concat(y),style:null==f?void 0:f.wrapper},{children:[n("div",e({className:"".concat(c.header," ").concat("riskSideBar"===v?c.headerPaddingRisk:c.headerPadding),style:null==f?void 0:f.header,onClick:function(){N||T(!W)}},{children:[n("div",e({className:c.headerLeft,style:null==f?void 0:f.iconWrapper},{children:[d,n("div",e({className:c.titleBlock},{children:[t("h1",e({className:c.title,style:null==f?void 0:f.title},{children:u})),t("p",e({className:c.subTitle,style:null==f?void 0:f.subTitle},{children:p}))]}))]})),"riskSideBar"!==v&&!N&&t("div",e({className:c.chevronWrapper,style:null==f?void 0:f.chevronWrapper},{children:t(W?i:a,{className:c.chevronIcon})}))]})),W&&n("div",e({className:"".concat("riskSideBar"!==v&&c.content," ").concat(c.contentBase),style:e({},null==f?void 0:f.contentContainerWrapper)},{children:[t("div",e({style:null==f?void 0:f.contentWrapper},{children:m})),(S||b)&&g&&n("div",e({className:"".concat(c.segmentExplanationButtonContainer," flex-row"),style:e({},null==f?void 0:f.segmentExplanationButtonContainer)},{children:[S&&t("button",e({className:"".concat(c.segmentButton),onClick:function(){return null==S?void 0:S()},style:e({},null==f?void 0:f.explanationButton)},{children:"Show Example"})),b&&t("button",e({className:"".concat(c.segmentButton),onClick:function(){return null==b?void 0:b()},style:e({},null==f?void 0:f.explanationButton)},{children:!C&&n(l,{children:["View in Glossary ",t(o,{size:14})]})}))]}))]}))]}))}export{s as default};
|
|
2
2
|
//# sourceMappingURL=AIReasonAccordion.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as i}from"tslib";import{jsx as
|
|
1
|
+
import{__assign as i}from"tslib";import{jsx as n,jsxs as o,Fragment as e}from"react/jsx-runtime";import a from"../../icons/AiReasoningIcon.js";import l from"./AIReasonAccordion.js";import t from"../../icons/ReasoningBulbIcon.js";import{AiReasonMarkdownWrapper as d}from"./AiReasonMarkdownWrapper.js";import s from"../../icons/AiGapIcon.js";import{useState as r}from"react";import{ChevronUp as c,ChevronDown as v}from"lucide-react";import u from"./AiReasoningCitationContent.module.css.js";import{renderAIConfidenceDisplay as C}from"../../shared/CitationAIConfidenceDisplay.js";import{useRequirementAI as m}from"../RequirementAIWrapper/RequirementAIWrapper.js";var p=function(p){var g,h,f,b,y,R,w,S,I,N,A,B,k,x,D,E,_,M,O,j,W,F,G,H=p.label,P=p.aiReason,T=p.scenario,U=p.customStyles,V=p.customIcons,q=p.cognitiveDecisionHeaders,L=p.onSelectProceed,z=p.isDisableProceedButton,J=p.big_enough_block,K=p.isSegmentExplanation,Q=p.handleViewExample,X=p.handleViewGlossary,Y=p.isUpdatedSegment,Z=m().aiReasoningAccordionOpenStates,$=(null==V?void 0:V.aireasonIcon)||n(a,{}),ii=(null==V?void 0:V.reasoningIcon)||n(t,{}),ni=(null==V?void 0:V.gapIcon)||n(s,{}),oi=r(null!==(g=null==Z?void 0:Z.isBottomComponentDefaultOpen)&&void 0!==g&&g),ei=oi[0],ai=oi[1];return o("div",i({className:"".concat(u.container," ").concat("riskSideBar"===T?"":u.containerBordered),style:null===(h=null==U?void 0:U.aiReasoningContent)||void 0===h?void 0:h.container},{children:[n("div",i({className:"".concat((null==P?void 0:P.explanation)&&"riskSideBar"!==T?"":u.explanationDivider),style:null===(f=null==U?void 0:U.aiReasoningContent)||void 0===f?void 0:f.explanationDivider},{children:(null==P?void 0:P.explanation)&&n(l,{icon:n(e,{}),title:"Explanation",subTitle:"",customStyles:null==U?void 0:U.aiReasoningAccordion,content:n(d,{label:H,message:P.explanation,isExpandableOrderedListEnabled:!0,customStyles:null==U?void 0:U.aiReasoningMarkdown,citationStyles:{webCitation:null==U?void 0:U.webCitation,stormeeCitation:null==U?void 0:U.stormeeCitation,waveformCitation:null==U?void 0:U.waveformCitation,imageCitation:null==U?void 0:U.imageCitation,fileCitation:null==U?void 0:U.fileCitation,appModCitation:null==U?void 0:U.appModCitation,rcaCitation:null==U?void 0:U.rcaCitation,readFileCitation:null==U?void 0:U.readFileCitation,loadingCitations:null==U?void 0:U.loadingCitations,chatCitation:null==U?void 0:U.chatCitation,bigEnoughCitation:null==U?void 0:U.bigEnoughCitation},customIcons:V,onSelectProceed:L,isDisableProceedButton:z,big_enough_block:J}),isSegmentExplanation:K,scenario:T,handleViewExample:Q,handleViewGlossary:X,isUpdatedSegment:Y})})),"riskSideBar"!==T&&o("div",i({onClick:function(){(null==Z?void 0:Z.isBottomComponentCollapsed)&&ai(function(i){return!i})},className:"".concat(u.headerBar," ").concat("riskSideBar"===T?"":u.headerBarRounded),style:null===(b=null==U?void 0:U.aiReasoningContent)||void 0===b?void 0:b.headerBar},{children:[o("div",i({className:u.headerBrand,style:null===(y=null==U?void 0:U.aiReasoningContent)||void 0===y?void 0:y.headerBrand},{children:[$,n("p",{children:null!==(R=null==q?void 0:q.mainHeader)&&void 0!==R?R:"Cognitive Decisioning AI"})]})),o("div",i({className:u.headerScore,style:null===(w=null==U?void 0:U.aiReasoningContent)||void 0===w?void 0:w.headerScore},{children:[!isNaN(null==P?void 0:P.relevance_score)&&C(P.relevance_score,P.relevance_score_diff,null===(S=null==U?void 0:U.aiReasoningContent)||void 0===S?void 0:S.confidenceDisplay,V),(null==Z?void 0:Z.isBottomComponentCollapsed)&&n("button",i({className:u.chevronWrapper,style:null===(I=null==U?void 0:U.aiReasoningContent)||void 0===I?void 0:I.chevronWrapper},{children:ei?n(c,{className:null==u?void 0:u.chevronIcon,style:null===(N=null==U?void 0:U.aiReasoningContent)||void 0===N?void 0:N.chevronIcon}):n(v,{className:null==u?void 0:u.chevronIcon,style:null===(A=null==U?void 0:U.aiReasoningContent)||void 0===A?void 0:A.chevronIcon})}))]}))]})),"riskSideBar"!==T&&ei&&n("div",i({className:u.bodyRow,style:i({width:"100%"},null===(B=null==U?void 0:U.aiReasoningContent)||void 0===B?void 0:B.bodyRow)},{children:o("div",i({className:"flex flex-col ".concat(u.bodyFull)},{children:[n(l,{icon:n("div",i({className:u.iconWrapper,style:null===(k=null==U?void 0:U.aiReasoningContent)||void 0===k?void 0:k.iconWrapper},{children:ii})),isUpdatedSegment:Y,title:null!==(x=null==q?void 0:q.decisionHeader)&&void 0!==x?x:"Decision Making Factors",subTitle:"",customStyles:null==U?void 0:U.aiReasoningAccordion,alwaysOpen:null===(D=null==Z?void 0:Z.reasoningAlwaysOpen)||void 0===D||D,defaultOpen:null===(E=null==Z?void 0:Z.reasoningDefaultOpen)||void 0===E||E,content:n(d,{message:(null==P?void 0:P.reason)||"No reasoning available.",customStyles:null==U?void 0:U.aiReasoningMarkdown,citationStyles:{webCitation:null==U?void 0:U.webCitation,stormeeCitation:null==U?void 0:U.stormeeCitation,waveformCitation:null==U?void 0:U.waveformCitation,imageCitation:null==U?void 0:U.imageCitation,fileCitation:null==U?void 0:U.fileCitation,appModCitation:null==U?void 0:U.appModCitation,rcaCitation:null==U?void 0:U.rcaCitation,readFileCitation:null==U?void 0:U.readFileCitation,loadingCitations:null==U?void 0:U.loadingCitations,chatCitation:null==U?void 0:U.chatCitation,bigEnoughCitation:null==U?void 0:U.bigEnoughCitation},customIcons:V,big_enough_block:J})}),n("div",{className:u.divider,style:null===(_=null==U?void 0:U.aiReasoningContent)||void 0===_?void 0:_.divider}),n(l,{icon:n("div",i({className:u.iconWrapper,style:null===(M=null==U?void 0:U.aiReasoningContent)||void 0===M?void 0:M.iconWrapper},{children:ni})),title:null!==(O=null==q?void 0:q.gapHeader)&&void 0!==O?O:"Gaps in Decision",subTitle:"",customStyles:null==U?void 0:U.aiReasoningAccordion,alwaysOpen:null!==(j=null==Z?void 0:Z.gapAlwaysOpen)&&void 0!==j&&j,defaultOpen:null!==(W=null==Z?void 0:Z.gapDefaultOpen)&&void 0!==W&&W,isUpdatedSegment:Y,content:n(d,{message:(F=P.relevance_score,G=(null==P?void 0:P.gap)||"No gap available.",F<100?"The decision strength is ".concat(F,"% because: \n").concat(G):G),customStyles:null==U?void 0:U.aiReasoningMarkdown,citationStyles:{webCitation:null==U?void 0:U.webCitation,stormeeCitation:null==U?void 0:U.stormeeCitation,waveformCitation:null==U?void 0:U.waveformCitation,imageCitation:null==U?void 0:U.imageCitation,fileCitation:null==U?void 0:U.fileCitation,appModCitation:null==U?void 0:U.appModCitation,rcaCitation:null==U?void 0:U.rcaCitation,readFileCitation:null==U?void 0:U.readFileCitation,loadingCitations:null==U?void 0:U.loadingCitations,chatCitation:null==U?void 0:U.chatCitation,bigEnoughCitation:null==U?void 0:U.bigEnoughCitation},customIcons:V,big_enough_block:J}),className:u.gapAccordion})]}))}))]}))};export{p as default};
|
|
2
2
|
//# sourceMappingURL=AiReasoningCitationContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import o from"react";import{ChevronDown as a}from"lucide-react";import{cn as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import o from"react";import{ChevronDown as a}from"lucide-react";import{cn as i}from"../../../UserStoryImport/lib/cn.js";import l from"./segment.module.css.js";import s from"./ExampleComponentWrapper.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";var m=function(m){var r=m.id,d=void 0===r?"Segment":r,u=m.label,p=m.originalValue;m.decisionStrength;var g=m.aiReason,v=m.customStyles,f=m.customIcons,C=m.aiReasoningCitationCustomStyles,S=m.segmentExampleComponent,h=m.handleViewGlossary,y=m.isUpdatedSegment,x=o.useState(!1),b=x[0],E=x[1],I=o.useState(!1),j=I[0],N=I[1];return n("div",e({className:"".concat(l.segmentWrapper),style:e({},null==v?void 0:v.segmentWrapper)},{children:[n("div",e({className:"".concat(l.segmentContainer," ").concat(y?l.updatedSegmentContainer:""),style:e({},null==v?void 0:v.container)},{children:[t("span",e({className:"segment-".concat(d," ").concat(l.segmentLabel," ").concat(y?l.updatedSegmentLabel:""),style:e({},null==v?void 0:v.label)},{children:y?p:"{id} {".concat(u,"}")})),t("button",e({className:"".concat(l.segmentExplanationButtonContainer),style:e({},null==v?void 0:v.buttonContainer),onClick:function(){E(function(e){return!e}),N(!1)}},{children:t(a,{className:i(y&&"".concat(l.updatedChevronIcon),"".concat(l.cheveronIcon),b&&"".concat(l.cheveronIconRotated)),style:e({},null==v?void 0:v.cheveronIcon)})}))]})),j&&!y?t(s,{label:null!=u?u:"",segmentExampleComponent:S,customStyles:null==v?void 0:v.segmentExample,handleCancelExample:function(){N(!1)}}):g&&b&&t(c,{aiReason:g,customStyles:C,customIcons:f,isSegmentExplanation:!0,handleViewGlossary:h?function(){E(!1),null==h||h(d)}:void 0,handleViewExample:S?function(){N(!0)}:void 0,isUpdatedSegment:y})]}))};export{m as default};
|
|
2
2
|
//# sourceMappingURL=Segment.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import n from"./Segment.js";import o from"dompurify";var t=function(t){var i,l,d,a,r,s,m,u,v,g,c,p=t.children,S=t.props,h=t.segmentComponentConfig,f=t.customStyles,x=t.customIcons,y=t.extractText,C=t.isUpdatedSegment,b=void 0!==C&&C,_=(null==S?void 0:S.id)||"Segment",I=(null==S?void 0:S.decisionstrength)||"80",E=h||{},R=E.segmentDataList,U=E.handleFetchSegmentDetails,V=E.getSegmentExampleComponent,j=E.handleViewGlossary,w=null==R?void 0:R.find(function(e){return String(e.segment_id)===String(_)}),D={id:_,reason:null!==(i=null==w?void 0:w.reason)&&void 0!==i?i:"",gap:null!==(l=null==w?void 0:w.gap)&&void 0!==l?l:"",explanation:null!==(d=null==w?void 0:w.explanation)&&void 0!==d?d:"",relevance_score:null!==(a=null==w?void 0:w.relevance_score)&&void 0!==a?a:0,isOpen:!1},F=void 0;U&&!w&&U(_);var G=y(p),L=S["data-table"],T="";if(L&&!b)try{T=decodeURIComponent(atob(L))}catch(e){console.error("Failed to decode data-table for segment",_,e)}var W=o.sanitize(T);return _&&w&&V&&!b&&(F=L?e(function(){return e("div",{dangerouslySetInnerHTML:{__html:W}})},{}):V(_,G,w.segment_type)),e(n,{id:_,label:null==w?void 0:w.segment_name,originalValue:G,decisionStrength:I,aiReason:D,customIcons:x,aiReasoningCitationCustomStyles:f,segmentExampleComponent:F,handleViewGlossary:j,customStyles:{segmentWrapper:null===(r=null==f?void 0:f.segment)||void 0===r?void 0:r.segmentWrapper,container:null===(s=null==f?void 0:f.segment)||void 0===s?void 0:s.container,label:null===(m=null==f?void 0:f.segment)||void 0===m?void 0:m.label,decisionStrength:null===(u=null==f?void 0:f.segment)||void 0===u?void 0:u.decisionStrength,buttonContainer:null===(v=null==f?void 0:f.segment)||void 0===v?void 0:v.buttonContainer,cheveronIcon:null===(g=null==f?void 0:f.segment)||void 0===g?void 0:g.cheveronIcon,segmentExample:null===(c=null==f?void 0:f.segment)||void 0===c?void 0:c.segmentExample},isUpdatedSegment:b})};export{t as default};
|
|
2
|
+
//# sourceMappingURL=SegmentWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentContainer:"segment-module_segmentContainer__wBEel",segmentLabel:"segment-module_segmentLabel__-y8Su",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};!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(".segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentContainer__wBEel{align-items:center;background-color:#eff6ff;border:1px dashed #bfdbfe;border-radius:4px;color:#3b82f6;display:flex;gap:8px;padding:8px;width:fit-content}.segment-module_segmentLabel__-y8Su{color:#3b82f6;font-size:14px;font-weight:600;line-height:21px;text-transform:uppercase}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
1
|
+
var e={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentContainer:"segment-module_segmentContainer__wBEel",updatedSegmentContainer:"segment-module_updatedSegmentContainer__qHhip",segmentLabel:"segment-module_segmentLabel__-y8Su",updatedSegmentLabel:"segment-module_updatedSegmentLabel__rt5iT",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",updatedChevronIcon:"segment-module_updatedChevronIcon__8vN-t",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};!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(".segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentContainer__wBEel{align-items:center;background-color:#eff6ff;border:1px dashed #bfdbfe;border-radius:4px;color:#3b82f6;display:flex;gap:8px;padding:8px;width:fit-content}.segment-module_updatedSegmentContainer__qHhip{background-color:#f0fdf4;border:1px solid #bbf7d0;color:#16a34a}.segment-module_segmentLabel__-y8Su{color:#3b82f6;font-size:14px;font-weight:600;line-height:21px;text-transform:uppercase}.segment-module_updatedSegmentLabel__rt5iT{color:#16a34a}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_updatedChevronIcon__8vN-t{color:#16a34a}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=segment.module.css.js.map
|
package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as n,__assign as e}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import t,{createContext as l,useRef as a,useState as r,useCallback as d,useMemo as c,useEffect as s,useContext as u}from"react";import v from"react-markdown";import g from"rehype-raw";import m from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as h}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as f}from"@mui/material";import C from"dompurify";import y from"../../shared/UpdatedAnimationContent.js";import S from"../../shared/GeneratedCodeCitation.js";import R from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as b}from"../RequirementAIWrapper/RequirementAIWrapper.js";import I from"../../icons/CognitiveDecision.js";import w from"../../icons/BrainRed.js";import x,{SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING as N}from"../ai-reasoning/AiReasoningCitation.js";import A from"../../icons/RelevanceScoreIcon.js";import k from"../RecommendationBlock/RecommendationBlock.js";import j from"../UserStoryCard/AttachedContext.js";import U from"../ai-reasoning/AiReasoningCitationContent.js";import L from"./components/InlineUpdatedComponent.js";import T from"../segment/Segment.js";var E=l(!1),M=l({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),P=l({rowId:""}),F=function(n){var t,l=n.aiReason,a=n.isHighConfidence,r=n.customStyle,d=n.customIcons,c=u(M),s=c.expandedInfo,v=c.setExpanded,g=c.reasonToRow,h=u(P).rowId,p=String(l.id);h&&g.current.set(p,h);var f=(null===(t=null==s?void 0:s.aiReason)||void 0===t?void 0:t.id)===l.id,C=a?(null==d?void 0:d.highConfidence)||i(I,{}):(null==d?void 0:d.lowConfidence)||i(w,{});return o("button",e({className:m.aiReasoningButton,style:r,onClick:function(n){n.stopPropagation(),n.preventDefault(),v(f?null:h,f?null:l)}},{children:[C,i("i",f?{className:"pi pi-angle-up ".concat(a?m.aiReasoningIconHighConfidence:m.aiReasoningIconLowConfidence)}:{className:"pi pi-angle-down ".concat(a?m.aiReasoningIconHighConfidence:m.aiReasoningIconLowConfidence)})]}))},$=function(n){var t,l,r=n.children,d=n.node,c=n.customStyles,s=n.customIcons,v=a(Math.random().toString(36).slice(2)).current,g=u(M).expandedInfo,h=(null==g?void 0:g.rowId)===v,p=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(n){return"element"===n.type}).length:1,f=null!==(l=null===(t=null==d?void 0:d.properties)||void 0===t?void 0:t.style)&&void 0!==l?l:void 0;return o(P.Provider,e({value:{rowId:v}},{children:[i("tr",e({style:f?{cssText:f}:void 0},{children:r})),h&&(null==g?void 0:g.aiReason)&&i("tr",e({style:{width:"100%"}},{children:i("td",e({colSpan:p||1,className:m.tableExpandedCell},{children:i("div",e({className:m.tableExpandedCellInner},{children:i("div",e({className:m.tableExpandedCellContent},{children:i(U,{aiReason:g.aiReason,customIcons:s,customStyles:{aiReasoningContent:null==c?void 0:c.aiReasoningContent,aiReasoningAccordion:null==c?void 0:c.aiReasoningAccordion,aiReasoningMarkdown:null==c?void 0:c.aiReasoningMarkdown,aiReasoningPill:null==c?void 0:c.aiReasoningPill,webCitation:null==c?void 0:c.webCitation,stormeeCitation:null==c?void 0:c.stormeeCitation,waveformCitation:null==c?void 0:c.waveformCitation,imageCitation:null==c?void 0:c.imageCitation,fileCitation:null==c?void 0:c.fileCitation,appModCitation:null==c?void 0:c.appModCitation,rcaCitation:null==c?void 0:c.rcaCitation,readFileCitation:null==c?void 0:c.readFileCitation,loadingCitations:null==c?void 0:c.loadingCitations,chatCitation:null==c?void 0:c.chatCitation}})}))}))}))}))]}))};var D=function(l){var I,w=l.message,U=l.isParent,P=l.scenario,D=l.showUserStoryDiff,_=void 0!==D&&D,H=l.aiReasoningsForBlock,V=l.isCitationLoadingDisplay,B=void 0!==V&&V,W=l.className;l.highConfidenceIcon,l.lowConfidenceIcon;var z=l.customStyles,O=l.customIcons,q=l.aiReasoningDiffView,G=l.userStoryCitations,Q=l.artifactId,J=l.isCraflow,K=l.onCraAccept,X=l.onCraReject,Y=l.craFlowConfig,Z=l.isDisplayHighlightControl,nn=void 0!==Z&&Z,en=l.segmentComponentConfig,on=a(null),tn=b(),ln=tn.userStory,an=tn.inlineUpdateComponentConfig,rn=tn.getAvgScoreForStory,dn=tn.setUserStory,cn=tn.aiReasoning,sn=tn.setAiReasoning,un=tn.customIcons,vn=tn.searchQueryList,gn=tn.searchQueryReasoningIdList,mn=tn.currentHighlightIndex,hn=null!=O?O:null==un?void 0:un.userStoryIcons;null==z||z.searchHighlight;var pn=h(on),fn=pn.search,Cn=pn.clear,yn=r("1"),Sn=yn[0],Rn=yn[1],bn=r(null),In=bn[0],wn=bn[1],xn=a(new Map),Nn=d(function(n,e){wn(n&&e?{rowId:n,aiReason:e}:null)},[]),An=Q?rn(Q):0,kn=r([]),jn=kn[0],Un=kn[1],Ln=function(n){return null==n?"":"string"==typeof n?n:"number"==typeof n?String(n):Array.isArray(n)?n.map(Ln).join(""):t.isValidElement(n)?Ln(n.props.children):""},Tn=function(n){var e=n;return e=function(n){for(var e,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,o=[],t=new RegExp(i.source,i.flags);null!==(e=t.exec(n));){var l=e[0],a=l.match(/<deleted>([\s\S]*?)<\/deleted>/i),r=l.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(n){return(n.match(/^\s*\d+\.\s/gm)||[]).length};o.push({index:e.index,endIndex:e.index+e[0].length,deletedItemCount:d((null==a?void 0:a[1])||""),changedItemCount:d((null==r?void 0:r[1])||"")})}if(0===o.length)return n;for(var c=n,s=function(n){var e=o[n],i=e.changedItemCount-e.deletedItemCount;if(0===i)return"continue";for(var t=!1,l=0,a=c.substring(0,e.index).split("\n").reverse();l<a.length;l++){var r=a[l].trim();if(""!==r){/^\d+\.\s/.test(r)&&(t=!0);break}}if(!t)return"continue";var d=e.endIndex,s=n+1<o.length?o[n+1].index:c.length,u=c.substring(d,s);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(n,e,o){return"".concat(e).concat(parseInt(o,10)+i,". ")}),c=c.substring(0,d)+u+c.substring(s)},u=o.length-1;u>=0;u--)s(u);return c}(e=(e=(e=(e=(e=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/ai_reasoning\$(\d+)/g,function(n,e){return"ai_reasoning$".concat(e,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(n,e,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(e,' data-raw="').concat(o,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,function(n,e,i,o,t){var l=o.match(/<table[\s\S]*?<\/table>/i);if(l){var a=btoa(encodeURIComponent(l[0]));return"<segment".concat(i,' data-table="').concat(a,'"></segment>')}return n})).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(n,i,o,t){var l=e.substring(0,t),a=l.lastIndexOf("\n"),r=/^\s+[-*]\s/.test(l.substring(a+1))||/^\s+\d+\.\s/.test(l.substring(a+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(l.substring(a+1));if(r||d){var c=o;return c=(c=(c=(c=c.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(c,"</updated>")}return n})),e=function(n){var e=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==e}),"<deleted>".concat(i,"</deleted>")});return e.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==e,preview:e.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(e),e},En=c(function(){return w?Tn(w):w},[w]);s(function(){Un(H||cn)},[H,cn]);var Mn=c(function(){return{upt:function(o){var t;o.node;var l=o.children,a=n(o,["node","children"]),r=null==a?void 0:a.id,d=r?null===(t=r.split("$"))||void 0===t?void 0:t[1]:null,c=cn.find(function(n){return n.id.toString()===d});return c?i(L,e({aiReason:c,customStyles:null==z?void 0:z.inlineUpdatedComponent,handleClickCognitiveDecision:null==an?void 0:an.handleClickCognitiveDecision,handleClickUpdatedPill:null==an?void 0:an.handleClickUpdatedPill,handleClickOutputValue:null==an?void 0:an.handleClickOutputValue,customIcons:null==an?void 0:an.customIcons},{children:l})):l},del:function(o){o.node;var t=o.children,l=n(o,["node","children"]);return i("span",e({className:m.deleted,style:null==z?void 0:z.deleted},l,{onClick:l.onclick},{children:t}))},ins:function(o){var t=o.children,l=n(o,["children"]);return i("span",e({className:m.inserted,style:null==z?void 0:z.inserted},l,{onClick:l.onclick},{children:t}))},h1:function(o){o.node;var t=n(o,["node"]);return i("h1",e({className:m.heading1,style:null==z?void 0:z.heading1},{children:t.children}))},h2:function(o){o.node;var t=n(o,["node"]);return i("h2",e({className:m.heading2,style:null==z?void 0:z.heading2},{children:t.children}))},h3:function(o){o.node;var t=n(o,["node"]);return i("h3",e({className:m.heading3,style:null==z?void 0:z.heading3},{children:t.children}))},b:function(o){o.node;var t=n(o,["node"]);return i("b",e({className:m.bold,style:null==z?void 0:z.bold},{children:null==t?void 0:t.children}))},p:function(o){o.node;var t=n(o,["node"]);return i("p",e({},t,{className:m.paragraph,style:null==z?void 0:z.paragraph},{children:t.children}))},updated:function(o){var t=o.node,l=n(o,["node"]);return i(y,e({},l,{showUserStoryDiff:_,currentUpdatedTagId:Sn,setCurrentUpdatedTagId:Rn,userStory:ln,setUserStory:dn,setAiReasoning:sn,node:t,isCraflow:J,onCraAccept:K,onCraReject:X,customStyles:null==z?void 0:z.updatedContent,craFlowConfig:Y}))},ol:function(o){var t,l,a,r=o.node,d=n(o,["node"]),c=null!==(a=null!==(l=null===(t=null==r?void 0:r.properties)||void 0===t?void 0:t.start)&&void 0!==l?l:null==d?void 0:d.start)&&void 0!==a?a:void 0;return i("ol",e({className:m.orderedList,style:null==z?void 0:z.olist},c?{start:Number(c)}:{},{children:null==d?void 0:d.children}))},ul:function(o){o.node;var t=n(o,["node"]);return i("ul",e({className:m.unorderedList,style:null==z?void 0:z.ulist},{children:null==t?void 0:t.children}))},table:function(n){var o=n.children;return i("div",e({className:m.tableWrapper},{children:i("table",e({className:m.table,style:null==z?void 0:z.table},{children:o}))}))},tr:function(n){var e=n.node,o=n.children;return i($,{node:e,children:o,customStyles:z})},td:function(o){var t,l=o.node,a=o.children,r=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=r.style,c=n(r,["style"]);return i(E.Provider,e({value:!0},{children:i("td",e({},c,{style:d?{cssText:d}:void 0},{children:a}))}))},th:function(o){var t,l=o.node,a=o.children,r=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=r.style,c=n(r,["style"]);return i(E.Provider,e({value:!0},{children:i("th",e({},c,{style:d?{cssText:d}:void 0},{children:a}))}))},recommendation:function(o){var t;o.node;var l=n(o,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==l?void 0:l.children)||void 0===t?void 0:t[0])||"");return i(k,e({},l,{customStyles:null==z?void 0:z.recommendationBlock,label:a}))},a:function(e){var o,t,l;e.inline,e.children,e.node;var a=n(e,["inline","children","node"]),r=u(E)||"true"==(null==a?void 0:a.table),d="".concat(null==a?void 0:a.href),c=null===(o=d.split("$"))||void 0===o?void 0:o[0],s=null===(t=d.split("$"))||void 0===t?void 0:t[1];if("ai_reasoning"===c){var v=(null!==(l=_?q:cn)&&void 0!==l?l:[]).find(function(n){return n.id.toString()===decodeURIComponent(s)}),g=gn.includes(s);if(v)return r?i(F,{aiReason:v,customStyle:null==z?void 0:z.tableAiReasoning,customIcons:hn,isHighConfidence:v.relevance_score>=N}):i(x,{aiReason:v,isSourceHasHighlight:g,customIcons:hn,customStyles:{aiReasoningContent:null==z?void 0:z.aiReasoningContent,aiReasoningAccordion:null==z?void 0:z.aiReasoningAccordion,aiReasoningMarkdown:null==z?void 0:z.aiReasoningMarkdown,aiReasoningPill:null==z?void 0:z.aiReasoningPill,webCitation:null==z?void 0:z.webCitation,stormeeCitation:null==z?void 0:z.stormeeCitation,waveformCitation:null==z?void 0:z.waveformCitation,imageCitation:null==z?void 0:z.imageCitation,fileCitation:null==z?void 0:z.fileCitation,appModCitation:null==z?void 0:z.appModCitation,rcaCitation:null==z?void 0:z.rcaCitation,readFileCitation:null==z?void 0:z.readFileCitation,loadingCitations:null==z?void 0:z.loadingCitations,chatCitation:null==z?void 0:z.chatCitation,bigEnoughCitation:null==z?void 0:z.bigEnoughCitation}})}return null},code:function(o){o.inline;var t=o.children,l=o.className;return o.node,n(o,["inline","children","className","node"]),/language-(\w+)/.exec(l||"")||(null==l?void 0:l.includes("language-"))?i("div",{children:i("code",e({className:m.blockCode,style:null==z?void 0:z.code},{children:t}))}):i("code",e({className:m.inlineCode,style:null==z?void 0:z.code},{children:t}))},learned:function(n){var o=n.children;return i(f,e({title:o,placement:"top"},{children:i(p,{size:16,className:m.learned})}))},generatedcode:function(e){e.node;var o=n(e,["node"]),t=(null==o?void 0:o.language)||"python",l=function(n){var e="";try{if(n["data-raw"])e=decodeURIComponent(atob(n["data-raw"]));else{var i=function(n){var e;return"string"==typeof n?n:Array.isArray(n)?n.map(i).join(""):(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)?i(n.props.children):""};e=i(n.children)}}catch(i){console.error("Error decoding generated code:",i),e=String(n.children)}return e}(o);return i(S,{title:"Generated Code",code:l,language:t,customStyles:{pill:null==z?void 0:z.generatedCodePill,content:null==z?void 0:z.generatedCodeContent}})},segment:function(e){var o,t,l,a,r,d,c,s,u,v,g;e.node;var m=e.children,h=n(e,["node","children"]),p=(null==h?void 0:h.id)||"Segment",f=(null==h?void 0:h.decisionstrength)||"80",y=en||{},S=y.segmentDataList,R=y.handleFetchSegmentDetails,b=y.getSegmentExampleComponent,I=y.handleViewGlossary,w=null==S?void 0:S.find(function(n){return String(n.segment_id)===String(p)}),x={id:p,reason:null!==(o=null==w?void 0:w.reason)&&void 0!==o?o:"",gap:null!==(t=null==w?void 0:w.gap)&&void 0!==t?t:"",explanation:null!==(l=null==w?void 0:w.explanation)&&void 0!==l?l:"",relevance_score:null!==(a=null==w?void 0:w.relevance_score)&&void 0!==a?a:0,isOpen:!1},N=void 0;R&&!w&&R(p);var A=Ln(m),k=h["data-table"],j="";if(k)try{j=decodeURIComponent(atob(k))}catch(n){console.error("Failed to decode data-table for segment",p,n)}var U=C.sanitize(j);return p&&w&&b&&(N=k?i(function(){return i("div",{dangerouslySetInnerHTML:{__html:U}})},{}):b(p,A,w.segment_type)),i(T,{id:p,label:null==w?void 0:w.segment_name,originalValue:m,decisionStrength:f,aiReason:x,customIcons:O,aiReasoningCitationCustomStyles:z,segmentExampleComponent:N,handleViewGlossary:I,customStyles:{segmentWrapper:null===(r=null==z?void 0:z.segment)||void 0===r?void 0:r.segmentWrapper,container:null===(d=null==z?void 0:z.segment)||void 0===d?void 0:d.container,label:null===(c=null==z?void 0:z.segment)||void 0===c?void 0:c.label,decisionStrength:null===(s=null==z?void 0:z.segment)||void 0===s?void 0:s.decisionStrength,buttonContainer:null===(u=null==z?void 0:z.segment)||void 0===u?void 0:u.buttonContainer,cheveronIcon:null===(v=null==z?void 0:z.segment)||void 0===v?void 0:v.cheveronIcon,segmentExample:null===(g=null==z?void 0:z.segment)||void 0===g?void 0:g.segmentExample}})}}},[jn,Y,cn,G,Sn,_,w,O,vn,gn,z]);return s(function(){if(on.current){if(vn.length){var n;if(0===gn.length||nn)requestAnimationFrame(function(){fn([vn[mn].replace(/\*/g,"")])});else{var e=on.current,i=new MutationObserver(function(){clearTimeout(n),n=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){fn([vn[mn].replace(/\*/g,"")])})},50)});i.observe(e,{childList:!0,subtree:!0})}return function(){clearTimeout(n)}}Cn()}},[vn,gn,mn,nn]),i(M.Provider,e({value:{expandedInfo:In,setExpanded:Nn,reasonToRow:xn}},{children:o("div",e({ref:on,className:"".concat(m.container," ").concat("approving"!==P?m.wrapper:""," ").concat(W||""),style:null==z?void 0:z.container},{children:[i(v,e({components:Mn,rehypePlugins:[g]},{children:En})),An>0&&i("div",e({className:m.confidenceScoreContainer,style:null==z?void 0:z.confidenceScoreContainer},{children:o("span",e({className:m.confidenceScore,style:null==z?void 0:z.confidenceScore},{children:[i(A,{size:14,color:(null==z?void 0:z.confidenceScoreIconColor)||"#166534"}),An,"%"]}))})),B&&i("div",e({className:m.citationLoader,style:null==z?void 0:z.citationLoaderContainer},{children:i(R,{customStyles:{container:null==z?void 0:z.citationLoadingContainer,icon:null==z?void 0:z.citationLoadingIcon,text:null==z?void 0:z.citationLoadingText}})})),U&&i("div",e({style:e({},null===(I=null==z?void 0:z.attachedContext)||void 0===I?void 0:I.wrapper),className:"flex mt-5"},{children:i(j,{customStyles:null==z?void 0:z.attachedContext})}))]}))}))};export{D as default};
|
|
1
|
+
import{__rest as n,__assign as e}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import t,{createContext as r,useRef as l,useState as a,useCallback as d,useMemo as c,useEffect as s,useContext as u}from"react";import v from"react-markdown";import g from"rehype-raw";import m from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as p}from"../../shared/useMarkdownSearch.js";import{Info as h}from"lucide-react";import{Tooltip as f}from"@mui/material";import C from"../../shared/UpdatedAnimationContent.js";import y from"../../shared/GeneratedCodeCitation.js";import S from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as R}from"../RequirementAIWrapper/RequirementAIWrapper.js";import I from"../../icons/CognitiveDecision.js";import w from"../../icons/BrainRed.js";import b,{SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING as x}from"../ai-reasoning/AiReasoningCitation.js";import N from"../../icons/RelevanceScoreIcon.js";import A from"../RecommendationBlock/RecommendationBlock.js";import k from"../UserStoryCard/AttachedContext.js";import j from"../ai-reasoning/AiReasoningCitationContent.js";import U from"./components/InlineUpdatedComponent.js";import T from"../segment/SegmentWrapper.js";var P=r(!1),$=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),E=r({rowId:""}),L=function(n){var t,r=n.aiReason,l=n.isHighConfidence,a=n.customStyle,d=n.customIcons,c=u($),s=c.expandedInfo,v=c.setExpanded,g=c.reasonToRow,p=u(E).rowId,h=String(r.id);p&&g.current.set(h,p);var f=(null===(t=null==s?void 0:s.aiReason)||void 0===t?void 0:t.id)===r.id,C=l?(null==d?void 0:d.highConfidence)||i(I,{}):(null==d?void 0:d.lowConfidence)||i(w,{});return o("button",e({className:m.aiReasoningButton,style:a,onClick:function(n){n.stopPropagation(),n.preventDefault(),v(f?null:p,f?null:r)}},{children:[C,i("i",f?{className:"pi pi-angle-up ".concat(l?m.aiReasoningIconHighConfidence:m.aiReasoningIconLowConfidence)}:{className:"pi pi-angle-down ".concat(l?m.aiReasoningIconHighConfidence:m.aiReasoningIconLowConfidence)})]}))},M=function(n){var t,r,a=n.children,d=n.node,c=n.customStyles,s=n.customIcons,v=l(Math.random().toString(36).slice(2)).current,g=u($).expandedInfo,p=(null==g?void 0:g.rowId)===v,h=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(n){return"element"===n.type}).length:1,f=null!==(r=null===(t=null==d?void 0:d.properties)||void 0===t?void 0:t.style)&&void 0!==r?r:void 0;return o(E.Provider,e({value:{rowId:v}},{children:[i("tr",e({style:f?{cssText:f}:void 0},{children:a})),p&&(null==g?void 0:g.aiReason)&&i("tr",e({style:{width:"100%"}},{children:i("td",e({colSpan:h||1,className:m.tableExpandedCell},{children:i("div",e({className:m.tableExpandedCellInner},{children:i("div",e({className:m.tableExpandedCellContent},{children:i(j,{aiReason:g.aiReason,customIcons:s,customStyles:{aiReasoningContent:null==c?void 0:c.aiReasoningContent,aiReasoningAccordion:null==c?void 0:c.aiReasoningAccordion,aiReasoningMarkdown:null==c?void 0:c.aiReasoningMarkdown,aiReasoningPill:null==c?void 0:c.aiReasoningPill,webCitation:null==c?void 0:c.webCitation,stormeeCitation:null==c?void 0:c.stormeeCitation,waveformCitation:null==c?void 0:c.waveformCitation,imageCitation:null==c?void 0:c.imageCitation,fileCitation:null==c?void 0:c.fileCitation,appModCitation:null==c?void 0:c.appModCitation,rcaCitation:null==c?void 0:c.rcaCitation,readFileCitation:null==c?void 0:c.readFileCitation,loadingCitations:null==c?void 0:c.loadingCitations,chatCitation:null==c?void 0:c.chatCitation}})}))}))}))}))]}))};var _=["del","ins"];function D(n){return function(n,e,i){var o=e.join("|");return n.replace(new RegExp("<(".concat(o,")>([\\s\\S]*?)<\\/\\1>"),"gi"),function(n,e,o){return"<".concat(e,">").concat(i(o),"</").concat(e,">")})}(n,_,function(n){return n.split(/(<[^>]+>)/g).map(function(n){return!n||/^<[^>]+>$/.test(n)?n:function(n){if(!n)return n;var e=[];return n.replace(/`([^`\n]+)`/g,function(n,i){var o=e.push(i)-1;return"@@CODE_SPAN_".concat(o,"@@")}).replace(/\*\*([\s\S]+?)\*\*/g,"<strong>$1</strong>").replace(/__([\s\S]+?)__/g,"<strong>$1</strong>").replace(/@@CODE_SPAN_(\d+)@@/g,function(n,i){var o,t=null!==(o=e[Number(i)])&&void 0!==o?o:"";return"<code>".concat(t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),"</code>")})}(n)}).join("")})}var F=function(r){var I,w=r.message,j=r.isParent,E=r.scenario,_=r.showUserStoryDiff,F=void 0!==_&&_,H=r.aiReasoningsForBlock,B=r.isCitationLoadingDisplay,O=void 0!==B&&B,q=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var W=r.customStyles,z=r.customIcons,V=r.aiReasoningDiffView,G=r.userStoryCitations,Q=r.artifactId,J=r.isCraflow,K=r.onCraAccept,X=r.onCraReject,Y=r.craFlowConfig,Z=r.isDisplayHighlightControl,nn=void 0!==Z&&Z,en=r.segmentComponentConfig,on=l(null),tn=R(),rn=tn.userStory,ln=tn.inlineUpdateComponentConfig,an=tn.getAvgScoreForStory,dn=tn.setUserStory,cn=tn.aiReasoning,sn=tn.setAiReasoning,un=tn.customIcons,vn=tn.searchQueryList,gn=tn.searchQueryReasoningIdList,mn=tn.currentHighlightIndex,pn=null!=z?z:null==un?void 0:un.userStoryIcons;null==W||W.searchHighlight;var hn=p(on),fn=hn.search,Cn=hn.clear,yn=a("1"),Sn=yn[0],Rn=yn[1],In=a(null),wn=In[0],bn=In[1],xn=l(new Map),Nn=d(function(n,e){bn(n&&e?{rowId:n,aiReason:e}:null)},[]),An=Q?an(Q):0,kn=a([]),jn=kn[0],Un=kn[1],Tn=function(n){return null==n?"":"string"==typeof n?n:"number"==typeof n?String(n):Array.isArray(n)?n.map(Tn).join(""):t.isValidElement(n)?Tn(n.props.children):""},Pn=function(n){var e=n;return e=function(n){for(var e,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,o=[],t=new RegExp(i.source,i.flags);null!==(e=t.exec(n));){var r=e[0],l=r.match(/<deleted>([\s\S]*?)<\/deleted>/i),a=r.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(n){return(n.match(/^\s*\d+\.\s/gm)||[]).length};o.push({index:e.index,endIndex:e.index+e[0].length,deletedItemCount:d((null==l?void 0:l[1])||""),changedItemCount:d((null==a?void 0:a[1])||"")})}if(0===o.length)return n;for(var c=n,s=function(n){var e=o[n],i=e.changedItemCount-e.deletedItemCount;if(0===i)return"continue";for(var t=!1,r=0,l=c.substring(0,e.index).split("\n").reverse();r<l.length;r++){var a=l[r].trim();if(""!==a){/^\d+\.\s/.test(a)&&(t=!0);break}}if(!t)return"continue";var d=e.endIndex,s=n+1<o.length?o[n+1].index:c.length,u=c.substring(d,s);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(n,e,o){return"".concat(e).concat(parseInt(o,10)+i,". ")}),c=c.substring(0,d)+u+c.substring(s)},u=o.length-1;u>=0;u--)s(u);return c}(e=(e=(e=(e=(e=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/ai_reasoning\$(\d+)/g,function(n,e){return"ai_reasoning$".concat(e,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(n,e,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(e,' data-raw="').concat(o,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,function(n,e,i,o,t){var r=o.match(/<table[\s\S]*?<\/table>/i);if(r){var l=btoa(encodeURIComponent(r[0]));return"<segment".concat(i,' data-table="').concat(l,'"></segment>')}return n})).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(n,i,o,t){var r=e.substring(0,t),l=r.lastIndexOf("\n"),a=/^\s+[-*]\s/.test(r.substring(l+1))||/^\s+\d+\.\s/.test(r.substring(l+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(r.substring(l+1));if(a||d){var c=o;return c=(c=(c=(c=c.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(c,"</updated>")}return n})),e=function(n){var e=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==e}),"<deleted>".concat(i,"</deleted>")});return e.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==e,preview:e.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(e),e=D(e)},$n=c(function(){return w?Pn(w):w},[w]);s(function(){Un(H||cn)},[H,cn]);var En=c(function(){return{upt:function(o){var t;o.node;var r=o.children,l=n(o,["node","children"]),a=null==l?void 0:l.id,d=a?null===(t=a.split("$"))||void 0===t?void 0:t[1]:null,c=cn.find(function(n){return n.id.toString()===d});return c?i(U,e({aiReason:c,customStyles:null==W?void 0:W.inlineUpdatedComponent,handleClickCognitiveDecision:null==ln?void 0:ln.handleClickCognitiveDecision,handleClickUpdatedPill:null==ln?void 0:ln.handleClickUpdatedPill,handleClickOutputValue:null==ln?void 0:ln.handleClickOutputValue,customIcons:null==ln?void 0:ln.customIcons},{children:r})):r},del:function(o){o.node;var t=o.children,r=n(o,["node","children"]);return i("span",e({className:m.deleted,style:null==W?void 0:W.deleted},r,{onClick:r.onclick},{children:t}))},ins:function(o){var t=o.children,r=n(o,["children"]);return i("span",e({className:m.inserted,style:null==W?void 0:W.inserted},r,{onClick:r.onclick},{children:t}))},h1:function(o){o.node;var t=n(o,["node"]);return i("h1",e({className:m.heading1,style:null==W?void 0:W.heading1},{children:t.children}))},h2:function(o){o.node;var t=n(o,["node"]);return i("h2",e({className:m.heading2,style:null==W?void 0:W.heading2},{children:t.children}))},h3:function(o){o.node;var t=n(o,["node"]);return i("h3",e({className:m.heading3,style:null==W?void 0:W.heading3},{children:t.children}))},b:function(o){o.node;var t=n(o,["node"]);return i("b",e({className:m.bold,style:null==W?void 0:W.bold},{children:null==t?void 0:t.children}))},p:function(o){o.node;var t=n(o,["node"]);return i("p",e({},t,{className:m.paragraph,style:null==W?void 0:W.paragraph},{children:t.children}))},updated:function(o){var t=o.node,r=n(o,["node"]);return i(C,e({},r,{showUserStoryDiff:F,currentUpdatedTagId:Sn,setCurrentUpdatedTagId:Rn,userStory:rn,setUserStory:dn,setAiReasoning:sn,node:t,isCraflow:J,onCraAccept:K,onCraReject:X,customStyles:null==W?void 0:W.updatedContent,craFlowConfig:Y}))},ol:function(o){var t,r,l,a=o.node,d=n(o,["node"]),c=null!==(l=null!==(r=null===(t=null==a?void 0:a.properties)||void 0===t?void 0:t.start)&&void 0!==r?r:null==d?void 0:d.start)&&void 0!==l?l:void 0;return i("ol",e({className:m.orderedList,style:null==W?void 0:W.olist},c?{start:Number(c)}:{},{children:null==d?void 0:d.children}))},ul:function(o){o.node;var t=n(o,["node"]);return i("ul",e({className:m.unorderedList,style:null==W?void 0:W.ulist},{children:null==t?void 0:t.children}))},table:function(n){var o=n.children;return i("div",e({className:m.tableWrapper},{children:i("table",e({className:m.table,style:null==W?void 0:W.table},{children:o}))}))},tr:function(n){var e=n.node,o=n.children;return i(M,{node:e,children:o,customStyles:W})},td:function(o){var t,r=o.node,l=o.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},d=a.style,c=n(a,["style"]);return i(P.Provider,e({value:!0},{children:i("td",e({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(o){var t,r=o.node,l=o.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},d=a.style,c=n(a,["style"]);return i(P.Provider,e({value:!0},{children:i("th",e({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},recommendation:function(o){var t;o.node;var r=n(o,["node"]),l="The AI has selected this content based on: ".concat((null===(t=null==r?void 0:r.children)||void 0===t?void 0:t[0])||"");return i(A,e({},r,{customStyles:null==W?void 0:W.recommendationBlock,label:l}))},a:function(e){var o,t,r;e.inline,e.children,e.node;var l=n(e,["inline","children","node"]),a=u(P)||"true"==(null==l?void 0:l.table),d="".concat(null==l?void 0:l.href),c=null===(o=d.split("$"))||void 0===o?void 0:o[0],s=null===(t=d.split("$"))||void 0===t?void 0:t[1];if("ai_reasoning"===c){var v=(null!==(r=F?V:cn)&&void 0!==r?r:[]).find(function(n){return n.id.toString()===decodeURIComponent(s)}),g=gn.includes(s);if(v)return a?i(L,{aiReason:v,customStyle:null==W?void 0:W.tableAiReasoning,customIcons:pn,isHighConfidence:v.relevance_score>=x}):i(b,{aiReason:v,isSourceHasHighlight:g,customIcons:pn,customStyles:{aiReasoningContent:null==W?void 0:W.aiReasoningContent,aiReasoningAccordion:null==W?void 0:W.aiReasoningAccordion,aiReasoningMarkdown:null==W?void 0:W.aiReasoningMarkdown,aiReasoningPill:null==W?void 0:W.aiReasoningPill,webCitation:null==W?void 0:W.webCitation,stormeeCitation:null==W?void 0:W.stormeeCitation,waveformCitation:null==W?void 0:W.waveformCitation,imageCitation:null==W?void 0:W.imageCitation,fileCitation:null==W?void 0:W.fileCitation,appModCitation:null==W?void 0:W.appModCitation,rcaCitation:null==W?void 0:W.rcaCitation,readFileCitation:null==W?void 0:W.readFileCitation,loadingCitations:null==W?void 0:W.loadingCitations,chatCitation:null==W?void 0:W.chatCitation,bigEnoughCitation:null==W?void 0:W.bigEnoughCitation}})}return null},code:function(o){o.inline;var t=o.children,r=o.className;return o.node,n(o,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?i("div",{children:i("code",e({className:m.blockCode,style:null==W?void 0:W.code},{children:t}))}):i("code",e({className:m.inlineCode,style:null==W?void 0:W.code},{children:t}))},learned:function(n){var o=n.children;return i(f,e({title:o,placement:"top"},{children:i(h,{size:16,className:m.learned})}))},generatedcode:function(e){e.node;var o=n(e,["node"]),t=(null==o?void 0:o.language)||"python",r=function(n){var e="";try{if(n["data-raw"])e=decodeURIComponent(atob(n["data-raw"]));else{var i=function(n){var e;return"string"==typeof n?n:Array.isArray(n)?n.map(i).join(""):(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)?i(n.props.children):""};e=i(n.children)}}catch(i){console.error("Error decoding generated code:",i),e=String(n.children)}return e}(o);return i(y,{title:"Generated Code",code:r,language:t,customStyles:{pill:null==W?void 0:W.generatedCodePill,content:null==W?void 0:W.generatedCodeContent}})},updatedsegment:function(e){var o=e.node,t=e.children,r=n(e,["node","children"]);return i(T,{node:o,children:t,props:r,segmentComponentConfig:en,customStyles:W,customIcons:z,extractText:Tn,isUpdatedSegment:!0})},segment:function(e){var o=e.node,t=e.children,r=n(e,["node","children"]);return i(T,{node:o,children:t,props:r,segmentComponentConfig:en,customStyles:W,customIcons:z,extractText:Tn})}}},[jn,Y,cn,G,Sn,F,w,z,vn,gn,W]);return s(function(){if(on.current){if(vn.length){var n;if(0===gn.length||nn)requestAnimationFrame(function(){fn([vn[mn].replace(/\*/g,"")])});else{var e=on.current,i=new MutationObserver(function(){clearTimeout(n),n=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){fn([vn[mn].replace(/\*/g,"")])})},50)});i.observe(e,{childList:!0,subtree:!0})}return function(){clearTimeout(n)}}Cn()}},[vn,gn,mn,nn]),i($.Provider,e({value:{expandedInfo:wn,setExpanded:Nn,reasonToRow:xn}},{children:o("div",e({ref:on,className:"".concat(m.container," ").concat("approving"!==E?m.wrapper:""," ").concat(q||""),style:null==W?void 0:W.container},{children:[i(v,e({components:En,rehypePlugins:[g]},{children:$n})),An>0&&i("div",e({className:m.confidenceScoreContainer,style:null==W?void 0:W.confidenceScoreContainer},{children:o("span",e({className:m.confidenceScore,style:null==W?void 0:W.confidenceScore},{children:[i(N,{size:14,color:(null==W?void 0:W.confidenceScoreIconColor)||"#166534"}),An,"%"]}))})),O&&i("div",e({className:m.citationLoader,style:null==W?void 0:W.citationLoaderContainer},{children:i(S,{customStyles:{container:null==W?void 0:W.citationLoadingContainer,icon:null==W?void 0:W.citationLoadingIcon,text:null==W?void 0:W.citationLoadingText}})})),j&&i("div",e({style:e({},null===(I=null==W?void 0:W.attachedContext)||void 0===I?void 0:I.wrapper),className:"flex mt-5"},{children:i(k,{customStyles:null==W?void 0:W.attachedContext})}))]}))}))};export{F as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{v4 as e}from"uuid";var
|
|
1
|
+
import{v4 as e}from"uuid";var n=function(e){if(!e)return[];return e.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(function(e){return e.trim()})},t=function(t){var i=function(t,o){var u=n(t.value).map(function(n){return{contentId:e(),content:n,isApproved:!1}}),r={artifactId:t.artifactId,title:t.title,value:u,description:t.description,approval_status:o?void 0:"NOT_APPROVED",big_enough:null==t?void 0:t.big_enough,big_enough_decision_factors:null==t?void 0:t.big_enough_decision_factors,metadata:null==t?void 0:t.metadata,gapValue:null==t?void 0:t.gapValue,confidenceScore:null==t?void 0:t.confidenceScore,storyNumber:t.storyNumber,blockNumber:t.blockNumber,aiReasoning:null==t?void 0:t.aiReasoning,section:null==t?void 0:t.section};return t.sub_features&&t.sub_features.length>0&&(r.sub_features=t.sub_features.map(function(e){return i(e,!0)})),r};return t.map(function(e){return i(e,!1)})},i=function(e){var n=function(e){var t,i=Array.isArray(e.value)?e.value.map(function(e){return e.content}).join("\n\n"):e.value,o={artifactId:e.artifactId,title:e.title,description:e.description,value:i,big_enough:e.big_enough,big_enough_decision_factors:e.big_enough_decision_factors,metadata:null==e?void 0:e.metadata,gapValue:null==e?void 0:e.gapValue,confidenceScore:null==e?void 0:e.confidenceScore,storyNumber:e.storyNumber,blockNumber:e.blockNumber,aiReasoning:null==e?void 0:e.aiReasoning,section:null==e?void 0:e.section};return(null===(t=e.sub_features)||void 0===t?void 0:t.length)&&(o.sub_features=e.sub_features.map(n)),o};return e.map(n)},o=function(e){return structuredClone(e)};export{o as cloneUserStories,t as createUserStoriesForApproval,n as splitByHeaders,i as transformApprovalToUserStory};
|
|
2
2
|
//# sourceMappingURL=userstory-approval-transform.utils.js.map
|
package/dist/types/src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ interface AiReasonAccordionProps {
|
|
|
13
13
|
isSegmentExplanation?: boolean;
|
|
14
14
|
handleViewGlossary?: () => void;
|
|
15
15
|
handleViewExample?: () => void;
|
|
16
|
+
isUpdatedSegment?: boolean;
|
|
16
17
|
}
|
|
17
|
-
export default function AiReasonAccordion({ icon, title, content, subTitle, scenario, className, customStyles, alwaysOpen, defaultOpen, isSegmentExplanation, handleViewExample, handleViewGlossary }: AiReasonAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function AiReasonAccordion({ icon, title, content, subTitle, scenario, className, customStyles, alwaysOpen, defaultOpen, isSegmentExplanation, handleViewExample, handleViewGlossary, isUpdatedSegment }: AiReasonAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|
|
19
20
|
//# sourceMappingURL=AIReasonAccordion.d.ts.map
|
package/dist/types/src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIReasonAccordion.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,UAAU,sBAAsB;IAC9B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"AIReasonAccordion.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,UAAU,sBAAsB;IAC9B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAC,OAAO,CAAA;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,SAAc,EACd,YAAY,EACZ,UAAkB,EAClB,WAAkB,EAClB,oBAA4B,EAC5B,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EACjB,EAAE,sBAAsB,2CAwExB"}
|
|
@@ -13,7 +13,8 @@ export interface AiReasoningCitationContentProps {
|
|
|
13
13
|
isSegmentExplanation?: boolean;
|
|
14
14
|
handleViewGlossary?: () => void;
|
|
15
15
|
handleViewExample?: () => void;
|
|
16
|
+
isUpdatedSegment?: boolean;
|
|
16
17
|
}
|
|
17
|
-
declare const AiReasoningCitationContent: ({ label, aiReason, scenario, customStyles, customIcons, cognitiveDecisionHeaders, onSelectProceed, isDisableProceedButton, big_enough_block, isSegmentExplanation, handleViewExample, handleViewGlossary }: AiReasoningCitationContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare const AiReasoningCitationContent: ({ label, aiReason, scenario, customStyles, customIcons, cognitiveDecisionHeaders, onSelectProceed, isDisableProceedButton, big_enough_block, isSegmentExplanation, handleViewExample, handleViewGlossary, isUpdatedSegment }: AiReasoningCitationContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export default AiReasoningCitationContent;
|
|
19
20
|
//# sourceMappingURL=AiReasoningCitationContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiReasoningCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAEvB,cAAc,EACd,YAAY,EACZ,SAAS,EAEV,MAAM,8BAA8B,CAAC;AActC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAGtE,MAAM,WAAW,+BAA+B;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAC;IAEzB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,wBAAwB,CAAC,EAAE,SAAS,CAAC;IACrC,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAA;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"AiReasoningCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAEvB,cAAc,EACd,YAAY,EACZ,SAAS,EAEV,MAAM,8BAA8B,CAAC;AActC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAGtE,MAAM,WAAW,+BAA+B;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAC;IAEzB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,wBAAwB,CAAC,EAAE,SAAS,CAAC;IACrC,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAA;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAC,OAAO,CAAA;CAC1B;AAGD,QAAA,MAAM,0BAA0B,iOAG7B,+BAA+B,4CAwKjC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -11,6 +11,7 @@ interface SegmentProps {
|
|
|
11
11
|
aiReasoningCitationCustomStyles?: AiReasoningCustomStyles;
|
|
12
12
|
segmentExampleComponent?: JSX.Element;
|
|
13
13
|
handleViewGlossary?: (id: string) => void;
|
|
14
|
+
isUpdatedSegment?: boolean;
|
|
14
15
|
}
|
|
15
16
|
declare const Segment: React.FC<SegmentProps>;
|
|
16
17
|
export default Segment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/segment/Segment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOpH,UAAU,YAAY;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,+BAA+B,CAAC,EAAE,uBAAuB,CAAC;IAC1D,uBAAuB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtC,kBAAkB,CAAC,EAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/segment/Segment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOpH,UAAU,YAAY;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,+BAA+B,CAAC,EAAE,uBAAuB,CAAC;IAC1D,uBAAuB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtC,kBAAkB,CAAC,EAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,CAAC,EAAC,OAAO,CAAA;CAC1B;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAiGnC,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SegmentWrapperProps {
|
|
3
|
+
node: any;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
props: any;
|
|
6
|
+
segmentComponentConfig?: any;
|
|
7
|
+
customStyles?: any;
|
|
8
|
+
customIcons?: any;
|
|
9
|
+
extractText: (node: React.ReactNode) => string;
|
|
10
|
+
isUpdatedSegment?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const SegmentWrapper: ({ children, props, segmentComponentConfig, customStyles, customIcons, extractText, isUpdatedSegment }: SegmentWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default SegmentWrapper;
|
|
14
|
+
//# sourceMappingURL=SegmentWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/segment/SegmentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,UAAU,mBAAmB;IACzB,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;IACX,sBAAsB,CAAC,EAAE,GAAG,CAAC;IAC7B,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,WAAW,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,KAAK,MAAM,CAAC;IAC/C,gBAAgB,CAAC,EAAC,OAAO,CAAA;CAC5B;AAGD,QAAA,MAAM,cAAc,0GAQjB,mBAAmB,4CA2ErB,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqG,MAAM,OAAO,CAAC;AAY1H,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,aAAa,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC7Y,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AASzI,OAAwB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAKlE,OAAO,EAAY,uBAAuB,EAAgB,MAAM,0BAA0B,CAAC;AAkB3F,MAAM,WAAW,iCAAiC;IAChD,eAAe,CA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AAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC,aAAa,CAAC,EAAE;QACd,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,EAAE,UAAU,EAAE,CAAC;QAC3B,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACpE,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;QAC5F,oBAAoB,EAAE,OAAO,CAAC;KAC/B,CAAC;IACF,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;CAClD;
|
|
1
|
+
{"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqG,MAAM,OAAO,CAAC;AAY1H,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,aAAa,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC7Y,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AASzI,OAAwB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAKlE,OAAO,EAAY,uBAAuB,EAAgB,MA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E,CAAC;IACrC,kBAAkB,CAAC,EAAE,GAAG,CAAC;IAKzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC,aAAa,CAAC,EAAE;QACd,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,EAAE,UAAU,EAAE,CAAC;QAC3B,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACpE,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;QAC5F,oBAAoB,EAAE,OAAO,CAAC;KAC/B,CAAC;IACF,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;CAClD;AAiVD,QAAA,MAAM,sBAAsB,iVA4BzB,2BAA2B,4CA4iB7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -43,6 +43,7 @@ export type ApprovalStatus = "NOT_APPROVED" | "IN_PROGRESS" | "APPROVED";
|
|
|
43
43
|
export interface IUserStoryForApproval {
|
|
44
44
|
/** Unique artifact identifier */
|
|
45
45
|
artifactId: string;
|
|
46
|
+
section?: "intro" | "subfeature";
|
|
46
47
|
/** Display title of the user story */
|
|
47
48
|
title: string;
|
|
48
49
|
/** Array of content segments for individual approval */
|
|
@@ -53,6 +54,7 @@ export interface IUserStoryForApproval {
|
|
|
53
54
|
big_enough_decision_factors: BigEnoughDecisionFactors;
|
|
54
55
|
storyNumber?: string;
|
|
55
56
|
blockNumber?: string;
|
|
57
|
+
aiReasoning?: TAIReasoning[];
|
|
56
58
|
/** Current approval status of the entire story */
|
|
57
59
|
approval_status?: ApprovalStatus;
|
|
58
60
|
/** Nested sub-features that also require approval */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userstory.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/userstory.interface.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAe,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChK,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAElG,MAAM,WAAW,UAAU;IAEzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC;IAG5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2BAA2B,CAAC,EAAE,wBAAwB,CAAC;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,EAAC,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,CAAC;CAClC;AAGD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,CAAC;AAEzE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"userstory.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/userstory.interface.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAe,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChK,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAElG,MAAM,WAAW,UAAU;IAEzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC;IAG5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2BAA2B,CAAC,EAAE,wBAAwB,CAAC;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,EAAC,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,CAAC;CAClC;AAGD;;;GAGG;AACH,MA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,EAAE,MAAM,CAAA;CACxB,CAAA;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,YAAY,CAAC;IAC/B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,kBAAkB,GAClB,UAAU,CAAC;AAEf,MAAM,MAAM,eAAe,GAAG,MAAM,CAClC,kBAAkB,EAClB,qBAAqB,EAAE,CACxB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,eAAe,EAAE,CAAC;CACrC"}
|
package/dist/types/src/features/RequirementAI/utils/userstory-approval-transform.utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userstory-approval-transform.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/userstory-approval-transform.utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,qBAAqB,EAGtB,MAAM,mCAAmC,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,MAAM,EAWpD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,gBAC1B,UAAU,EAAE,KACxB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"userstory-approval-transform.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/userstory-approval-transform.utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,qBAAqB,EAGtB,MAAM,mCAAmC,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,MAAM,EAWpD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,gBAC1B,UAAU,EAAE,KACxB,qBAAqB,EAyCvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,oBAAqB,qBAAqB,EAAE,KAAG,UAAU,EA+BjG,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,sBAE5B,CAAC"}
|