@e-llm-studio/requirement-ai 0.0.164 → 0.0.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  7. package/dist/cjs/features/RequirementAI/utils/user-story.utils.js +1 -1
  8. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  9. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  10. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  11. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  12. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  13. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  14. package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
  15. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  16. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +3 -0
  17. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  18. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  19. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +12 -4
  20. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
  21. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +7 -11
  22. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  23. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +15 -3
  24. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  25. package/dist/types/src/features/RequirementAI/utils/user-story.utils.d.ts +2 -0
  26. package/dist/types/src/features/RequirementAI/utils/user-story.utils.d.ts.map +1 -1
  27. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),o=require("@lexical/react/LexicalComposer"),r=require("@lexical/react/LexicalHistoryPlugin"),l=require("@lexical/react/LexicalOnChangePlugin"),n=require("@lexical/react/LexicalTabIndentationPlugin"),a=require("@lexical/list"),u=require("@lexical/react/LexicalListPlugin"),s=require("@lexical/react/LexicalLinkPlugin"),c=require("@lexical/link"),d=require("@lexical/rich-text"),x=require("@lexical/react/LexicalTablePlugin"),g=require("@lexical/table"),m=require("lexical");require("./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js");var p=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),q=require("./components/EditorContainer/EditorContainer.js"),f=require("./components/EditorToolbar/EditorToolbar.js"),h=require("./plugins/LayoutPlugin.js"),j=require("./theme/theme.js");require("./theme/theme.css.js"),require("./Editor.css.js");var C=require("./components/Context/ContextMenu.js"),b=require("@lexical/mark"),v=require("./plugins/CommentPlugin/HTMLNode.js"),T=require("./constants/editorConfig.js"),y=require("./plugins/InitialHtml.js"),L=require("./plugins/InsertNode.js"),N=require("./plugins/DeleteNode.js");function S(e){console.log(e)}exports.default=function(_){var P,E,I,R=_.minHeight,B=_.height,H=_.placeholder,k=_.onFocus,w=_.onBlur,M=_.onChange,O=_.onToolbarButtonClick,A=_.toolbarConfig,F=void 0===A?T.DEFAULT_TOOLBAR_CONFIG:A,$=_.editorRef,D=_.editorState,W=_.initialString,V=_.customToolbar,G=_.plugins;_.nodes,_.dynamicHeight,_.artifactContext,_.commentsPanelState;var Q=_.mode,U=_.doNotShowBorderInViewMode,X=t.useRef(null),Y={namespace:"MyEditor",theme:j.default,onError:S,nodes:[m.TextNode,a.ListNode,a.ListItemNode,c.LinkNode,d.QuoteNode,d.HeadingNode,g.TableNode,g.TableRowNode,g.TableCellNode,b.MarkNode,v.default,L.InsertNode,N.DeleteNode],editorState:D},z=t.useState(null),J=z[0],K=z[1],Z=t.useState(!1),ee=Z[0],ie=Z[1],te=p.useRequirementAI().customStyles,oe=function(e){var i;null===(i=$.current)||void 0===i||i.update(function(){var i=m.$getSelection();m.$isRangeSelection(i)&&i.getNodes().forEach(function(i){m.$isTextNode(i)&&i.setStyle("color: ".concat(e))})})};return document.getElementById("lexical_editor_wrapper"),i.jsxs(i.Fragment,{children:[(null===(P=null==te?void 0:te.textEditorStyles)||void 0===P?void 0:P.themeStyles)&&i.jsx("style",{children:null===(E=null==te?void 0:te.textEditorStyles)||void 0===E?void 0:E.themeStyles}),i.jsxs("div",e.__assign({ref:X,className:"w-full lexical_editor_wrapper ".concat(U&&"readOnly"===Q?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:function(e){var i;e.preventDefault(),null===(i=$.current)||void 0===i||i.update(function(){var i=m.$getSelection();m.$isRangeSelection(i)&&!i.isCollapsed()?(ie(!0),K({x:e.clientX,y:e.clientY})):(ie(!1),K(null))})},style:e.__assign({minHeight:R,height:B},null===(I=null==te?void 0:te.textEditorStyles)||void 0===I?void 0:I.textArea)},{children:[i.jsxs(o.LexicalComposer,e.__assign({initialConfig:Y},{children:[" ","edit"===Q&&i.jsx(f.default,{onToolbarButtonClick:O,editorWrapperRef:X,toolbarConfig:F,customToolbar:V,editorRef:$}),i.jsx(q.default,{placeholder:H}),i.jsx(n.TabIndentationPlugin,{}),i.jsx(r.HistoryPlugin,{}),i.jsx(u.ListPlugin,{}),i.jsx(s.LinkPlugin,{}),i.jsx(x.TablePlugin,{}),i.jsx(h.LayoutPlugin,{onFocus:k,onBlur:w,editorRef:$}),i.jsx(l.OnChangePlugin,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:function(e,i,t){M&&M(e,i,t)}}),W&&i.jsx(y.InitialHtml,{initialValue:W.value,initialFormat:W.type,mode:Q}),G&&G]})),J&&ee&&"edit"===Q&&i.jsx(C.default,{position:J,options:[{label:"Change Color to Red",action:function(){return oe("red")}},{label:"Change Color to Blue",action:function(){return oe("blue")}}],onClose:function(){K(null)}})]}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),r=require("@lexical/react/LexicalComposer"),n=require("@lexical/react/LexicalHistoryPlugin"),o=require("@lexical/react/LexicalOnChangePlugin"),l=require("@lexical/react/LexicalTabIndentationPlugin"),a=require("@lexical/list"),u=require("@lexical/react/LexicalListPlugin"),s=require("@lexical/react/LexicalLinkPlugin"),c=require("@lexical/link"),d=require("@lexical/rich-text"),g=require("@lexical/react/LexicalTablePlugin"),x=require("@lexical/table"),f=require("lexical");require("./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js");var p=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("./components/EditorContainer/EditorContainer.js"),C=require("./components/EditorToolbar/EditorToolbar.js"),v=require("./plugins/LayoutPlugin.js"),h=require("./theme/theme.js");require("./theme/theme.css.js"),require("./Editor.css.js");var q=require("./components/Context/ContextMenu.js"),j=require("@lexical/mark"),y=require("./plugins/CommentPlugin/HTMLNode.js"),T=require("./constants/editorConfig.js"),b=require("./plugins/InitialHtml.js"),N=require("./plugins/InsertNode.js"),L=require("./plugins/DeleteNode.js"),S=require("@lexical/react/LexicalComposerContext");function _(e){console.log(e)}function P(){var e=S.useLexicalComposerContext()[0];return i.useEffect(function(){var t=function(e){for(var t=e;t;){if("delete"===t.getType())return!0;t=t.getParent()}return!1};return e.registerCommand(f.KEY_DOWN_COMMAND,function(e){if("Backspace"!==e.key&&"Delete"!==e.key)return!1;var i=f.$getSelection();if(!f.$isRangeSelection(i))return!1;if(i.getNodes().some(function(e){return t(e)}))return e.preventDefault(),!0;if(i.isCollapsed()){var r=i.anchor.getNode();if(t(r))return e.preventDefault(),!0;if("Backspace"===e.key){var n=r.getPreviousSibling();if(0===i.anchor.offset&&"delete"===(null==n?void 0:n.getType()))return e.preventDefault(),!0}if("Delete"===e.key){var o=r.getNextSibling(),l=r.getTextContent().length;if(i.anchor.offset===l&&"delete"===(null==o?void 0:o.getType()))return e.preventDefault(),!0}}return!1},f.COMMAND_PRIORITY_CRITICAL)},[e]),null}exports.default=function(S){var I,R,E,k=S.minHeight,D=S.height,B=S.placeholder,M=S.onFocus,O=S.onBlur,H=S.onChange,A=S.onToolbarButtonClick,w=S.toolbarConfig,$=void 0===w?T.DEFAULT_TOOLBAR_CONFIG:w,F=S.editorRef,W=S.editorState,Y=S.initialString,V=S.customToolbar,G=S.plugins;S.nodes,S.dynamicHeight,S.artifactContext,S.commentsPanelState;var K=S.mode,Q=S.doNotShowBorderInViewMode,U=i.useRef(null),X={namespace:"MyEditor",theme:h.default,onError:_,nodes:[f.TextNode,a.ListNode,a.ListItemNode,c.LinkNode,d.QuoteNode,d.HeadingNode,x.TableNode,x.TableRowNode,x.TableCellNode,j.MarkNode,y.default,N.InsertNode,L.DeleteNode],editorState:W},z=i.useState(null),J=z[0],Z=z[1],ee=i.useState(!1),te=ee[0],ie=ee[1],re=p.useRequirementAI().customStyles,ne=function(e){var t;null===(t=F.current)||void 0===t||t.update(function(){var t=f.$getSelection();f.$isRangeSelection(t)&&t.getNodes().forEach(function(t){f.$isTextNode(t)&&t.setStyle("color: ".concat(e))})})};return document.getElementById("lexical_editor_wrapper"),t.jsxs(t.Fragment,{children:[(null===(I=null==re?void 0:re.textEditorStyles)||void 0===I?void 0:I.themeStyles)&&t.jsx("style",{children:null===(R=null==re?void 0:re.textEditorStyles)||void 0===R?void 0:R.themeStyles}),t.jsxs("div",e.__assign({ref:U,className:"w-full lexical_editor_wrapper ".concat(Q&&"readOnly"===K?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:function(e){var t;e.preventDefault(),null===(t=F.current)||void 0===t||t.update(function(){var t=f.$getSelection();f.$isRangeSelection(t)&&!t.isCollapsed()?(ie(!0),Z({x:e.clientX,y:e.clientY})):(ie(!1),Z(null))})},style:e.__assign({minHeight:k,height:D},null===(E=null==re?void 0:re.textEditorStyles)||void 0===E?void 0:E.textArea)},{children:[t.jsxs(r.LexicalComposer,e.__assign({initialConfig:X},{children:[" ","edit"===K&&t.jsx(P,{}),"edit"===K&&t.jsx(C.default,{onToolbarButtonClick:A,editorWrapperRef:U,toolbarConfig:$,customToolbar:V,editorRef:F}),t.jsx(m.default,{placeholder:B}),t.jsx(l.TabIndentationPlugin,{}),t.jsx(n.HistoryPlugin,{}),t.jsx(u.ListPlugin,{}),t.jsx(s.LinkPlugin,{}),t.jsx(g.TablePlugin,{}),t.jsx(v.LayoutPlugin,{onFocus:M,onBlur:O,editorRef:F}),t.jsx(o.OnChangePlugin,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:function(e,t,i){H&&H(e,t,i)}}),Y&&t.jsx(b.InitialHtml,{initialValue:Y.value,initialFormat:Y.type,mode:K}),G&&G]})),J&&te&&"edit"===K&&t.jsx(q.default,{position:J,options:[{label:"Change Color to Red",action:function(){return ne("red")}},{label:"Change Color to Blue",action:function(){return ne("blue")}}],onClose:function(){Z(null)}})]}))]})};
2
2
  //# sourceMappingURL=Editor.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=function(t){function r(e){return t.call(this,e)||this}return e.__extends(r,t),r.getType=function(){return"delete"},r.clone=function(e){return new r(e.__key)},r.prototype.createDOM=function(){var e=document.createElement("del");return e.style.textDecoration="line-through",e.style.textDecorationColor="#dc2626",e.style.textDecorationThickness="2px",e},r.prototype.updateDOM=function(){return!1},r.importDOM=function(){return{del:function(){return{conversion:n,priority:1}}}},r.prototype.exportDOM=function(){var e=document.createElement("del");return e.style.color="#dc2626",e.style.textDecoration="line-through",e.style.textDecorationColor="#dc2626",e.style.textDecorationThickness="2px",{element:e}},r.importJSON=function(){return new r},r.prototype.exportJSON=function(){return e.__assign(e.__assign({},t.prototype.exportJSON.call(this)),{type:"delete",version:1})},r.prototype.isInline=function(){return!0},r.prototype.canBeEmpty=function(){return!1},r}(require("lexical").ElementNode);function n(){return{node:new t}}exports.DeleteNode=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=function(t){function n(e,r){void 0===e&&(e=crypto.randomUUID());var n=t.call(this,r)||this;return n.__reviewId=e,n}return e.__extends(n,t),n.getType=function(){return"delete"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(){var e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.style.textDecoration="line-through",e.style.textDecorationColor="#dc2626",e.style.textDecorationThickness="2px",e.contentEditable="false",e},n.prototype.updateDOM=function(){return!1},n.importDOM=function(){return{del:function(){return{conversion:r,priority:1}}}},n.prototype.exportDOM=function(){var e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.style.color="#dc2626",e.style.textDecoration="line-through",e.style.textDecorationColor="#dc2626",e.style.textDecorationThickness="2px",{element:e}},n.importJSON=function(e){return new n(e.reviewId)},n.prototype.exportJSON=function(){return e.__assign(e.__assign({},t.prototype.exportJSON.call(this)),{type:"delete",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n.prototype.canBeEmpty=function(){return!1},n.prototype.canInsertTextBefore=function(){return!1},n.prototype.canInsertTextAfter=function(){return!1},n.prototype.canMergeWith=function(){return!1},n}(require("lexical").ElementNode);function r(e){var r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(r)}}exports.DeleteNode=t;
2
2
  //# sourceMappingURL=DeleteNode.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=function(t){function n(e,r,n){void 0===e&&(e=""),void 0===r&&(r=crypto.randomUUID());var o=t.call(this,e,n)||this;return o.__reviewId=r,o}return e.__extends(n,t),n.getType=function(){return"insert"},n.clone=function(e){return new n(e.__text,e.__reviewId,e.__key)},n.prototype.createDOM=function(e){var r=t.prototype.createDOM.call(this,e),n=document.createElement("ins");return n.setAttribute("data-review-id",this.__reviewId),n.style.backgroundColor="#dbeafe",n.style.color="#1e3a8a",n.style.textDecoration="none",n.style.padding="1px 2px",n.style.borderRadius="2px",n.appendChild(r),n},n.prototype.updateDOM=function(){return!1},n.importDOM=function(){return{ins:function(){return{conversion:r,priority:1}}}},n.prototype.exportDOM=function(){var e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.style.backgroundColor="#dbeafe",e.style.color="#1e3a8a",e.style.textDecoration="none",e.style.padding="1px 2px",e.style.borderRadius="2px",e.textContent=this.getTextContent(),{element:e}},n.importJSON=function(e){var t=new n(e.text,e.reviewId);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t},n.prototype.exportJSON=function(){return e.__assign(e.__assign({},t.prototype.exportJSON.call(this)),{type:"insert",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n.prototype.canInsertTextBefore=function(){return!0},n.prototype.canInsertTextAfter=function(){return!0},n}(require("lexical").TextNode);function r(e){var r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(e.textContent||"",r)}}exports.InsertNode=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=function(t){function n(e,r){void 0===e&&(e=crypto.randomUUID());var n=t.call(this,r)||this;return n.__reviewId=e,n}return e.__extends(n,t),n.getType=function(){return"insert"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(e){var t=document.createElement("ins");return t.setAttribute("data-review-id",this.__reviewId),t.style.backgroundColor="#dbeafe",t.style.color="#1e3a8a",t.style.textDecoration="none",t.style.padding="1px 2px",t.style.borderRadius="2px",t},n.prototype.updateDOM=function(e,t,r){return e.__reviewId!==this.__reviewId},n.importDOM=function(){return{ins:function(){return{conversion:r,priority:1}}}},n.prototype.exportDOM=function(e){var t=document.createElement("ins");return t.setAttribute("data-review-id",this.__reviewId),t.style.backgroundColor="#dbeafe",t.style.color="#1e3a8a",t.style.textDecoration="none",t.style.padding="1px 2px",t.style.borderRadius="2px",{element:t}},n.importJSON=function(e){var t=new n(e.reviewId);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t},n.prototype.exportJSON=function(){return e.__assign(e.__assign({},t.prototype.exportJSON.call(this)),{type:"insert",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n}(require("lexical").ElementNode);function r(e){var r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(r)}}exports.InsertNode=t;
2
2
  //# sourceMappingURL=InsertNode.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"),s=require("lucide-react"),r=require("showdown"),i=require("@mui/material"),o=require("uuid"),l=require("./UserStoryCard.module.css.js"),a=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),v=require("../userstory-with-citation/UserStoryWithCitation.js"),f=require("../RequirementAIWrapper/RequirementAIWrapper.js"),g=require("../story-screen/BigEnoughPanel.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=y(r);function h(t){for(var r,l=[],a=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(r=a.exec(t));){var c=r[1],v=r.index;v>u&&l.push(n.jsx("span",{children:t.slice(u,v)},"text-pre-".concat(d++))),l.push(n.jsx(i.Tooltip,e.__assign({title:c,placement:"top"},{children:n.jsx(s.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(o.v4()))),u=a.lastIndex}return u<(null==t?void 0:t.length)&&l.push(n.jsx("span",{children:t.slice(u)},"text-post-".concat(d++))),l}function p(n,t,s){var r;if(!n)return{};if(t)return e.__assign({},n.parentConfig);var i=e.__assign({},n.childConfig);return s&&(null===(r=n.subFeatureOverrides)||void 0===r?void 0:r[s])?e.__assign(e.__assign({},i),n.subFeatureOverrides[s]):i}var m=function(t){var r,i=t.displayName,o=f.useRequirementAI().customStyles,a=null===(r=null==o?void 0:o.userStoryCardStyles)||void 0===r?void 0:r.showDisplayName;return n.jsxs("div",e.__assign({className:l.default.displayName,style:null==a?void 0:a.wrapper},{children:[n.jsx(s.Bookmark,{className:l.default.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),n.jsxs("span",e.__assign({style:null==a?void 0:a.label},{children:[i,":"]}))]}))},S=function(r){var o,y,x,C,j,I,w=r.isUserStoryCurrentlyUpdated,N=r.artifactId,b=r.artifactTitleId,U=r.parentUserStory,D=r.currentUserStory,B=r.onUserStoryChange,M=r.parentIndex,k=r.currentIndex,q=r.enableDownload,A=r.isDiffEditReviewMode,E=r.showUserStoryDiff,R=r.handleDownloadUserStory,P=r.handleOpenSendDialog,T=r.updateUserStoryArtifact,H=r.selectedArtifactId,L=r.isDisplayHighlightControl,W=r.elementDisplayConfig,z=r._resolvedConfig,O=r.showWrapper,F=void 0!==O&&O,V=r.segmentComponentConfig,G=f.useRequirementAI(),Q=G.searchQueryList,J=G.citations,K=G.customStyles,X=null==K?void 0:K.userStoryCardStyles,Y=null===(o=null==K?void 0:K.userStoryScreenStyles)||void 0===o?void 0:o.userStoryContentStyles,Z=null==X?void 0:X.progressHeaderStyles,$=t.useState(e.__assign(e.__assign({},structuredClone(D)),{value:a.formatMarkdown(D.value)||""})),ee=$[0],ne=$[1],te=t.useState({userStory:!1}),se=te[0],re=te[1],ie=f.useRequirementAI(),oe=ie.userStory,le=ie.customIcons,ae=t.useState(""===M||H===D.artifactId),ue=ae[0],de=ae[1],ce=t.useState(!1);ce[0];var ve=ce[1],fe=t.useState(null),ge=fe[0],ye=fe[1],_e=t.useState(!1),he=_e[0],pe=_e[1],me=t.useRef(null),Se=t.useState(!1);Se[0];var xe=Se[1],Ce=t.useRef(null);t.useEffect(function(){w&&de(w)},[w]),t.useEffect(function(){ne(e.__assign(e.__assign({},structuredClone(D)),{value:a.formatMarkdown(D.value)||""}))},[D]),t.useEffect(function(){Q.length>0?de(!0):H&&de(H===D.artifactId)},[Q,H,D.artifactId]);var je=function(){ye(null)},Ie=function(){de(function(e){return!e})};var we=null!=(null==D?void 0:D.big_enough)&&!Number.isNaN(D.big_enough)&&!!(null==D?void 0:D.big_enough_decision_factors),Ne=null!=z?z:p(W,""===M);return n.jsxs("div",e.__assign({className:l.default.card,style:null==X?void 0:X.cardStyle,id:"story-card-".concat(D.title),"data-expanded":ue},{children:[n.jsxs("div",e.__assign({className:l.default.titleSection,style:null==X?void 0:X.titleSection},{children:[n.jsxs("div",e.__assign({className:l.default.titleRow,style:null==X?void 0:X.titleRow,onClick:Ie},{children:[n.jsxs("div",e.__assign({className:l.default.titleLeft,style:null==X?void 0:X.titleLeft,onMouseEnter:function(){return xe(!0)},onMouseLeave:function(){return xe(!1)}},{children:[n.jsx(m,{displayName:b}),n.jsx("h2",e.__assign({className:l.default.storyTitle,style:null==X?void 0:X.storyTitle},{children:h(D.title)}),D.artifactId)]})),n.jsxs("div",e.__assign({className:l.default.titleActions,style:null==X?void 0:X.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(Ne.showProgressPercentage||Ne.showGapBox)&&F&&n.jsxs("div",e.__assign({className:l.default.progressHeader,style:null==Z?void 0:Z.wrapper},{children:[Ne.showProgressPercentage&&n.jsxs("div",e.__assign({className:l.default.progressPercentage,style:null==Z?void 0:Z.percentage},{children:[null!==(x=null!==(y=null==D?void 0:D.confidenceScore)&&void 0!==y?y:null==Ne?void 0:Ne.confidenceValue)&&void 0!==x?x:"0","%"]})),Ne.showGapBox&&n.jsxs("div",e.__assign({className:l.default.gapBox,style:null==Z?void 0:Z.gapBox},{children:[null!==(j=null!==(C=null==D?void 0:D.gapValue)&&void 0!==C?C:null==Ne?void 0:Ne.gapBoxValue)&&void 0!==j?j:"2"," ","Gaps"]}))]})),we&&n.jsx(g.BigEnoughPanel,{customIcons:null==le?void 0:le.userStoryIcons,customStyles:null==X?void 0:X.aiReasoningCitaionStyles,currentUserStory:D,panelStyles:null==X?void 0:X.BigEnoughStyles}),!se.userStory&&n.jsxs(n.Fragment,{children:[!1!==(null==Ne?void 0:Ne.showShareButton)&&n.jsx("button",e.__assign({className:l.default.iconButton,style:null==X?void 0:X.iconButton,onClick:function(e){ye(e.currentTarget)}},{children:n.jsx(s.ExternalLink,{size:16})})),n.jsxs(i.Menu,e.__assign({id:"user-story-share-menu",anchorEl:ge,open:!!ge,onClose:function(){return ye(null)},style:null==X?void 0:X.userStoryShareMenu},{children:[q&&n.jsx(i.MenuItem,e.__assign({style:null==X?void 0:X.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return ve(!0),R?[4,Promise.all([R("pdf"),R("doc")])]:[2];case 1:return e.sent(),ve(!1),[2]}})})}},{children:n.jsxs("div",e.__assign({ref:me,className:l.default.menuItemContent,style:null==X?void 0:X.menuItemContent},{children:[n.jsx(s.Download,{size:16,color:null==X?void 0:X.menuIconColor}),n.jsx("p",e.__assign({style:null==X?void 0:X.menuLabel},{children:"Download"}))]}))})),n.jsx(i.MenuItem,e.__assign({style:null==X?void 0:X.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(t){return n=D,U&&(n=e.__assign(e.__assign({},D),{value:"".concat(u.replaceTitleSection(null==U?void 0:U.value,D.title)," \n").concat(D.value)})),null==P||P(!0,[n],D.artifactId),je(),[2]})})}},{children:n.jsxs("div",e.__assign({style:null==X?void 0:X.menuItemContent,className:l.default.menuItemContentPadded},{children:[n.jsx(s.Share2,{size:16,color:null==X?void 0:X.menuIconColor}),n.jsx("p",e.__assign({style:null==X?void 0:X.menuLabel},{children:"Send"}))]}))})),n.jsx(i.MenuItem,e.__assign({style:null==X?void 0:X.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,t,s,r,i;return e.__generator(this,function(e){switch(e.label){case 0:n=new _.default.Converter,t=n.makeHtml(a.formatMarkdown(D.value)||D.value),s=function(e){var n=(new _.default.Converter).makeHtml(e),t=document.createElement("div");return t.innerHTML=n,t.textContent||t.innerText||""}(a.formatMarkdown(D.value)||D.value),r=new ClipboardItem({"text/plain":new Blob([s],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([r])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return i=e.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return je(),[7];case 5:return[2]}})})}},{children:n.jsxs("div",e.__assign({style:null==X?void 0:X.menuItemContent,className:l.default.menuItemContentPadded},{children:[n.jsx(s.Copy,{size:16,color:null==X?void 0:X.menuIconColor}),n.jsx("p",e.__assign({style:null==X?void 0:X.menuLabel},{children:"Copy"}))]}))}))]}))]}),se.userStory&&ue?n.jsx(d.default,{type:"outline",children:"Cancel",style:null==X?void 0:X.cancelButton,onClick:function(){var n;null===(n=Ce.current)||void 0===n||n.abort(),re(function(n){return e.__assign(e.__assign({},n),{userStory:!1})})}}):n.jsx(n.Fragment,{}),se.userStory&&ue?n.jsx(d.default,{type:"fill",children:he?n.jsxs("span",e.__assign({className:l.default.savingSpinner,style:null==X?void 0:X.savingSpinner},{children:[n.jsx(s.LoaderCircle,{className:l.default.spinAnimation,style:null==X?void 0:X.spinAnimation}),n.jsx("span",{children:"Saving..."})]})):"Save",isDisable:he,style:he?null==X?void 0:X.savingButton:null==X?void 0:X.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(t){switch(t.label){case 0:return pe(!0),"userStory"==="userStory"&&(B(ee),console.log("I am changing RTE editor values",ee)),[4,T(J,oe,N,null===(n=Ce.current)||void 0===n?void 0:n.signal)];case 1:return t.sent(),re(function(n){return e.__assign(e.__assign({},n),{userStory:!1})}),pe(!1),[2]}})})}}):!A&&!E&&ue&&!1!==(null==Ne?void 0:Ne.showEditButton)&&n.jsx("button",e.__assign({className:l.default.iconButton,style:null==X?void 0:X.editButton,onClick:function(){return re(function(n){return e.__assign(e.__assign({},n),{userStory:!0})})}},{children:n.jsx(s.PencilIcon,{color:null==X?void 0:X.pencilIconColor,size:16})})),n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),Ie()},style:null==X?void 0:X.chevronButton,className:l.default.chevronButton},{children:ue?n.jsx(s.ChevronUp,{className:l.default.chevronIcon,color:null==X?void 0:X.chevronIconColor}):n.jsx(s.ChevronDown,{className:l.default.chevronIcon,color:null==X?void 0:X.chevronIconColor})}))]}))]})),n.jsx("div",{className:l.default.divider,style:null==X?void 0:X.dividerStyle})]})),ue&&n.jsx("div",e.__assign({className:l.default.cardContent,style:null==X?void 0:X.cardContentStyle},{children:n.jsxs("div",e.__assign({className:l.default.contentInner,style:null==X?void 0:X.contentInner},{children:[n.jsxs("div",e.__assign({className:l.default.descriptionSection,style:null==X?void 0:X.descriptionSection},{children:[n.jsx("div",{className:l.default.justifyBetween,style:null==X?void 0:X.justifyBetween}),se.userStory?n.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:a.formatMarkdown(D.value)||"",handleUpdateState:function(n,t){var s=a.indentMarkdown(t);ne(function(n){return e.__assign(e.__assign({},n),{value:s||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:se.userStory?"edit":"readOnly"}):n.jsx(v.default,{showUserStoryDiff:E,isParent:""===M,message:a.formatMarkdown(D.value)||"",artifactId:D.artifactId,customStyles:Y,isDisplayHighlightControl:L,segmentComponentConfig:V})]})),null===(I=ee.sub_features)||void 0===I?void 0:I.map(function(t,s){var r=p(W,!1,t.artifactId);return n.jsx(S,{artifactId:N,isUserStoryCurrentlyUpdated:w,artifactTitleId:"".concat(b,"-").concat(String.fromCharCode(65+s)),parentUserStory:D,parentIndex:"".concat(M).concat(M&&".").concat(k),currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:function(n){return function(n,t){var s=e.__spreadArray([],D.sub_features||[],!0);s[n]=t,B(e.__assign(e.__assign({},D),{sub_features:s}))}(s,n)},enableDownload:!0,isDiffEditReviewMode:A,showUserStoryDiff:E,updateUserStoryArtifact:T,handleDownloadUserStory:R,handleOpenSendDialog:P,isDisplayHighlightControl:L,elementDisplayConfig:W,_resolvedConfig:r,segmentComponentConfig:V},t.artifactId)})]}))}))]}))};exports.StoryCard=S,exports.UserStoryCardWrapper=function(t){var r=t.artifactTitleIDs,i=t.isDiffEditReviewMode,o=t.showUserStoryDiff,a=t.updateUserStoryArtifact,u=t.isUserStoryCurrentlyUpdated,d=t.artifactId,c=t.handleOpenSendDialog,v=t.handleDownloadUserStory,g=t.selectedArtifactId,y=t.isDisplayHighlightControl,_=t.elementDisplayConfig,h=t.showWrapper,m=f.useRequirementAI(),x=m.userStory,C=m.setUserStory,j=m.customStyles,I=m.searchQueryList,w=m.currentHighlightIndex,N=m.setCurrentHighlightIndex,b=m.segmentComponentConfig,U=null==j?void 0:j.userStoryCardStyles,D=0===w,B=w===I.length-1;return n.jsxs("div",e.__assign({className:l.default.userStoryCardWrapper,style:y?e.__assign(e.__assign({},null==U?void 0:U.userStoryCardWrapper),{position:"relative"}):null==U?void 0:U.userStoryCardWrapper},{children:[y&&n.jsx(n.Fragment,{children:I.length>0&&n.jsx("div",e.__assign({className:l.default.wrapper},{children:n.jsx("div",e.__assign({className:l.default.highlightNavigation},{children:n.jsxs("div",e.__assign({className:l.default.navigationContainer},{children:[n.jsxs("span",e.__assign({className:l.default.navCounter},{children:[w+1," of ",I.length]})),n.jsxs("div",e.__assign({className:l.default.navButtons},{children:[n.jsx("button",e.__assign({onClick:function(){w>0&&N(function(e){return e-1})},className:l.default.navButton,disabled:D},{children:n.jsx(s.ChevronUpIcon,{size:20,className:l.default.navIcon})})),n.jsx("button",e.__assign({onClick:function(){w<I.length-1&&N(function(e){return e+1})},className:l.default.navButton,disabled:B},{children:n.jsx(s.ChevronDownIcon,{size:20,className:l.default.navIcon})}))]}))]}))}))}))}),x.map(function(t,s){var l=p(_,!0);return n.jsx(S,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:r[s]||"",currentUserStory:t,onUserStoryChange:function(n){C(function(t){return t[s]=n,e.__spreadArray([],t,!0)})},parentIndex:"",currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:o,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:g,isDisplayHighlightControl:y,elementDisplayConfig:_,_resolvedConfig:l,showWrapper:h,segmentComponentConfig:b},t.artifactId)})]}))},exports.default=S,exports.replaceLearnedTagsWithInfo=h;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),s=require("lucide-react"),i=require("showdown"),r=require("@mui/material"),o=require("uuid"),l=require("./UserStoryCard.module.css.js"),a=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),v=require("../userstory-with-citation/UserStoryWithCitation.js"),f=require("../RequirementAIWrapper/RequirementAIWrapper.js"),g=require("../story-screen/BigEnoughPanel.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=y(i);function m(t){for(var i,l=[],a=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(i=a.exec(t));){var c=i[1],v=i.index;v>u&&l.push(n.jsx("span",{children:t.slice(u,v)},"text-pre-".concat(d++))),l.push(n.jsx(r.Tooltip,e.__assign({title:c,placement:"top"},{children:n.jsx(s.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(o.v4()))),u=a.lastIndex}return u<(null==t?void 0:t.length)&&l.push(n.jsx("span",{children:t.slice(u)},"text-post-".concat(d++))),l}function h(n,t,s){var i;if(!n)return{};if(t)return e.__assign({},n.parentConfig);var r=e.__assign({},n.childConfig);return s&&(null===(i=n.subFeatureOverrides)||void 0===i?void 0:i[s])?e.__assign(e.__assign({},r),n.subFeatureOverrides[s]):r}var p=function(t){var i,r=t.displayName,o=f.useRequirementAI().customStyles,a=null===(i=null==o?void 0:o.userStoryCardStyles)||void 0===i?void 0:i.showDisplayName;return n.jsxs("div",e.__assign({className:l.default.displayName,style:null==a?void 0:a.wrapper},{children:[n.jsx(s.Bookmark,{className:l.default.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),n.jsxs("span",e.__assign({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},x=function(i){var o,y,S,C,I,j,w=i.isUserStoryCurrentlyUpdated,N=i.artifactId,b=i.artifactTitleId,U=i.parentUserStory,D=i.currentUserStory,B=i.onUserStoryChange,M=i.parentIndex,k=i.currentIndex,q=i.enableDownload,A=i.isDiffEditReviewMode,E=i.showUserStoryDiff,R=i.handleDownloadUserStory,P=i.handleOpenSendDialog,T=i.updateUserStoryArtifact,H=i.selectedArtifactId,L=i.isDisplayHighlightControl,W=i.elementDisplayConfig,z=i._resolvedConfig,O=i.showWrapper,F=void 0!==O&&O,V=i.segmentComponentConfig,G=i.actionItemsConfig,Q=f.useRequirementAI(),J=Q.searchQueryList,K=Q.citations,X=Q.customStyles,Y=null==X?void 0:X.userStoryCardStyles,Z=null===(o=null==X?void 0:X.userStoryScreenStyles)||void 0===o?void 0:o.userStoryContentStyles,$=null==Y?void 0:Y.progressHeaderStyles,ee=t.useState(e.__assign(e.__assign({},structuredClone(D)),{value:a.formatMarkdown(D.value)||""})),ne=ee[0],te=ee[1],se=t.useState({userStory:!1}),ie=se[0],re=se[1],oe=f.useRequirementAI(),le=oe.userStory,ae=oe.customIcons,ue=t.useState(""===M||H===D.artifactId),de=ue[0],ce=ue[1],ve=t.useState(!1);ve[0];var fe=ve[1],ge=t.useState(null),ye=ge[0],_e=ge[1],me=t.useState(null),he=me[0],pe=me[1],xe=t.useState(!1),Se=xe[0],Ce=xe[1],Ie=t.useRef(null),je=t.useState(!1);je[0];var we=je[1],Ne=t.useRef(null);t.useEffect(function(){w&&ce(w)},[w]),t.useEffect(function(){te(e.__assign(e.__assign({},structuredClone(D)),{value:a.formatMarkdown(D.value)||""}))},[D]),t.useEffect(function(){J.length>0?ce(!0):H&&ce(H===D.artifactId)},[J,H,D.artifactId]);var be=function(){_e(null)},Ue=function(){pe(null)},De=function(){ce(function(e){return!e})};var Be=null!=(null==D?void 0:D.big_enough)&&!Number.isNaN(D.big_enough)&&!!(null==D?void 0:D.big_enough_decision_factors),Me=null!=z?z:h(W,""===M);return n.jsxs("div",e.__assign({className:l.default.card,style:null==Y?void 0:Y.cardStyle,id:"story-card-".concat(D.title),"data-expanded":de},{children:[n.jsxs("div",e.__assign({className:l.default.titleSection,style:null==Y?void 0:Y.titleSection},{children:[n.jsxs("div",e.__assign({className:l.default.titleRow,style:null==Y?void 0:Y.titleRow,onClick:De},{children:[n.jsxs("div",e.__assign({className:l.default.titleLeft,style:null==Y?void 0:Y.titleLeft,onMouseEnter:function(){return we(!0)},onMouseLeave:function(){return we(!1)}},{children:[n.jsx(p,{displayName:b}),n.jsx("h2",e.__assign({className:l.default.storyTitle,style:null==Y?void 0:Y.storyTitle},{children:m(D.title)}),D.artifactId)]})),n.jsxs("div",e.__assign({className:l.default.titleActions,style:null==Y?void 0:Y.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(Me.showProgressPercentage||Me.showGapBox)&&F&&n.jsxs("div",e.__assign({className:l.default.progressHeader,style:null==$?void 0:$.wrapper},{children:[Me.showProgressPercentage&&n.jsxs("div",e.__assign({className:l.default.progressPercentage,style:null==$?void 0:$.percentage},{children:[null!==(S=null!==(y=null==D?void 0:D.confidenceScore)&&void 0!==y?y:null==Me?void 0:Me.confidenceValue)&&void 0!==S?S:"0","%"]})),Me.showGapBox&&n.jsxs("div",e.__assign({className:l.default.gapBox,style:null==$?void 0:$.gapBox},{children:[null!==(I=null!==(C=null==D?void 0:D.gapValue)&&void 0!==C?C:null==Me?void 0:Me.gapBoxValue)&&void 0!==I?I:"2"," ","Gaps"]}))]})),Be&&n.jsx(g.BigEnoughPanel,{customIcons:null==ae?void 0:ae.userStoryIcons,customStyles:null==Y?void 0:Y.aiReasoningCitaionStyles,currentUserStory:D,panelStyles:null==Y?void 0:Y.BigEnoughStyles}),!ie.userStory&&n.jsxs(n.Fragment,{children:[!1!==(null==Me?void 0:Me.showShareButton)&&n.jsx("button",e.__assign({className:l.default.iconButton,style:null==Y?void 0:Y.iconButton,onClick:function(e){_e(e.currentTarget)}},{children:n.jsx(s.ExternalLink,{size:16})})),n.jsxs(r.Menu,e.__assign({id:"user-story-share-menu",anchorEl:ye,open:!!ye,onClose:function(){return _e(null)},style:null==Y?void 0:Y.userStoryShareMenu},{children:[q&&n.jsx(r.MenuItem,e.__assign({style:null==Y?void 0:Y.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return fe(!0),R?[4,Promise.all([R("pdf"),R("doc")])]:[2];case 1:return e.sent(),fe(!1),[2]}})})}},{children:n.jsxs("div",e.__assign({ref:Ie,className:l.default.menuItemContent,style:null==Y?void 0:Y.menuItemContent},{children:[n.jsx(s.Download,{size:16,color:null==Y?void 0:Y.menuIconColor}),n.jsx("p",e.__assign({style:null==Y?void 0:Y.menuLabel},{children:"Download"}))]}))})),n.jsx(r.MenuItem,e.__assign({style:null==Y?void 0:Y.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(t){return n=D,U&&(n=e.__assign(e.__assign({},D),{value:"".concat(u.replaceTitleSection(null==U?void 0:U.value,D.title)," \n").concat(D.value)})),null==P||P(!0,[n],D.artifactId),be(),[2]})})}},{children:n.jsxs("div",e.__assign({style:null==Y?void 0:Y.menuItemContent,className:l.default.menuItemContentPadded},{children:[n.jsx(s.Share2,{size:16,color:null==Y?void 0:Y.menuIconColor}),n.jsx("p",e.__assign({style:null==Y?void 0:Y.menuLabel},{children:"Send"}))]}))})),n.jsx(r.MenuItem,e.__assign({style:null==Y?void 0:Y.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,t,s,i,r;return e.__generator(this,function(e){switch(e.label){case 0:n=new _.default.Converter,t=n.makeHtml(a.formatMarkdown(D.value)||D.value),s=function(e){var n=(new _.default.Converter).makeHtml(e),t=document.createElement("div");return t.innerHTML=n,t.textContent||t.innerText||""}(a.formatMarkdown(D.value)||D.value),i=new ClipboardItem({"text/plain":new Blob([s],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([i])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return r=e.sent(),console.error("Failed to copy user story:",r),[3,5];case 4:return be(),[7];case 5:return[2]}})})}},{children:n.jsxs("div",e.__assign({style:null==Y?void 0:Y.menuItemContent,className:l.default.menuItemContentPadded},{children:[n.jsx(s.Copy,{size:16,color:null==Y?void 0:Y.menuIconColor}),n.jsx("p",e.__assign({style:null==Y?void 0:Y.menuLabel},{children:"Copy"}))]}))}))]}))]}),ie.userStory&&de?n.jsx(d.default,{type:"outline",children:"Cancel",style:null==Y?void 0:Y.cancelButton,onClick:function(){var n;null===(n=Ne.current)||void 0===n||n.abort(),re(function(n){return e.__assign(e.__assign({},n),{userStory:!1})})}}):n.jsx(n.Fragment,{}),ie.userStory&&de?n.jsx(d.default,{type:"fill",children:Se?n.jsxs("span",e.__assign({className:l.default.savingSpinner,style:null==Y?void 0:Y.savingSpinner},{children:[n.jsx(s.LoaderCircle,{className:l.default.spinAnimation,style:null==Y?void 0:Y.spinAnimation}),n.jsx("span",{children:"Saving..."})]})):"Save",isDisable:Se,style:Se?null==Y?void 0:Y.savingButton:null==Y?void 0:Y.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(t){switch(t.label){case 0:return Ce(!0),"userStory"==="userStory"&&(B(ne),console.log("I am changing RTE editor values",ne)),[4,T(K,le,N,null===(n=Ne.current)||void 0===n?void 0:n.signal)];case 1:return t.sent(),re(function(n){return e.__assign(e.__assign({},n),{userStory:!1})}),Ce(!1),[2]}})})}}):!A&&!E&&de&&!1!==(null==Me?void 0:Me.showEditButton)&&n.jsx("button",e.__assign({className:l.default.iconButton,style:null==Y?void 0:Y.editButton,onClick:function(){return re(function(n){return e.__assign(e.__assign({},n),{userStory:!0})})}},{children:n.jsx(s.PencilIcon,{color:null==Y?void 0:Y.pencilIconColor,size:16})})),(null==Me?void 0:Me.actionItemsButton)&&n.jsxs(n.Fragment,{children:[n.jsx("span",e.__assign({className:l.default.actionItemBtn,style:null==Y?void 0:Y.actionItemBtn,onClick:function(e){e.stopPropagation(),pe(e.currentTarget)}},{children:n.jsx(s.Ellipsis,{})})),n.jsx(r.Menu,e.__assign({id:"user-story-action-menu",anchorEl:he,open:!!he,onClose:Ue,style:null==Y?void 0:Y.userStoryShareMenu},{children:null==G?void 0:G.items.map(function(t,s){return n.jsx(r.MenuItem,e.__assign({style:null==Y?void 0:Y.userStoryMenuItem,onClick:function(){t.onclick(),Ue()}},{children:n.jsxs("div",e.__assign({className:l.default.menuItemContent,style:e.__assign(e.__assign({},null==Y?void 0:Y.menuItemContent),!t.isActive&&{cursor:"not-allowed",opacity:.5})},{children:[n.jsx("span",e.__assign({className:l.default.menuItemIcon,style:null==Y?void 0:Y.menuItemIcon},{children:t.icon})),n.jsx("p",e.__assign({style:null==Y?void 0:Y.menuLabel},{children:t.name})),n.jsx("span",{className:l.default.menuItemRight,style:null==Y?void 0:Y.menuItemRight})]}))}),"action-item-".concat(s,"-").concat(t.name))})}))]}),n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),De()},style:null==Y?void 0:Y.chevronButton,className:l.default.chevronButton},{children:de?n.jsx(s.ChevronUp,{className:l.default.chevronIcon,color:null==Y?void 0:Y.chevronIconColor}):n.jsx(s.ChevronDown,{className:l.default.chevronIcon,color:null==Y?void 0:Y.chevronIconColor})}))]}))]})),n.jsx("div",{className:l.default.divider,style:null==Y?void 0:Y.dividerStyle})]})),de&&n.jsx("div",e.__assign({className:l.default.cardContent,style:null==Y?void 0:Y.cardContentStyle},{children:n.jsxs("div",e.__assign({className:l.default.contentInner,style:null==Y?void 0:Y.contentInner},{children:[n.jsxs("div",e.__assign({className:l.default.descriptionSection,style:null==Y?void 0:Y.descriptionSection},{children:[n.jsx("div",{className:l.default.justifyBetween,style:null==Y?void 0:Y.justifyBetween}),ie.userStory?n.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:a.formatMarkdown(D.value)||"",handleUpdateState:function(n,t){var s=a.indentMarkdown(t);te(function(n){return e.__assign(e.__assign({},n),{value:s||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ie.userStory?"edit":"readOnly"}):n.jsx(v.default,{showUserStoryDiff:E,isParent:""===M,message:a.formatMarkdown(D.value)||"",artifactId:D.artifactId,customStyles:Z,isDisplayHighlightControl:L,segmentComponentConfig:V})]})),null===(j=ne.sub_features)||void 0===j?void 0:j.map(function(t,s){var i=h(W,!1,t.artifactId);return n.jsx(x,{artifactId:N,isUserStoryCurrentlyUpdated:w,artifactTitleId:"".concat(b,"-").concat(String.fromCharCode(65+s)),parentUserStory:D,parentIndex:"".concat(M).concat(M&&".").concat(k),currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:function(n){return function(n,t){var s=e.__spreadArray([],D.sub_features||[],!0);s[n]=t,B(e.__assign(e.__assign({},D),{sub_features:s}))}(s,n)},enableDownload:!0,isDiffEditReviewMode:A,showUserStoryDiff:E,updateUserStoryArtifact:T,handleDownloadUserStory:R,handleOpenSendDialog:P,isDisplayHighlightControl:L,elementDisplayConfig:W,_resolvedConfig:i,segmentComponentConfig:V,actionItemsConfig:G},t.artifactId)})]}))}))]}))};exports.StoryCard=x,exports.UserStoryCardWrapper=function(t){var i=t.artifactTitleIDs,r=t.isDiffEditReviewMode,o=t.showUserStoryDiff,a=t.updateUserStoryArtifact,u=t.isUserStoryCurrentlyUpdated,d=t.artifactId,c=t.handleOpenSendDialog,v=t.handleDownloadUserStory,g=t.selectedArtifactId,y=t.isDisplayHighlightControl,_=t.elementDisplayConfig,m=t.showWrapper,p=t.actionItemsConfig,S=f.useRequirementAI(),C=S.userStory,I=S.setUserStory,j=S.customStyles,w=S.searchQueryList,N=S.currentHighlightIndex,b=S.setCurrentHighlightIndex,U=S.segmentComponentConfig,D=null==j?void 0:j.userStoryCardStyles,B=0===N,M=N===w.length-1;return n.jsxs("div",e.__assign({className:l.default.userStoryCardWrapper,style:y?e.__assign(e.__assign({},null==D?void 0:D.userStoryCardWrapper),{position:"relative"}):null==D?void 0:D.userStoryCardWrapper},{children:[y&&n.jsx(n.Fragment,{children:w.length>0&&n.jsx("div",e.__assign({className:l.default.wrapper},{children:n.jsx("div",e.__assign({className:l.default.highlightNavigation},{children:n.jsxs("div",e.__assign({className:l.default.navigationContainer},{children:[n.jsxs("span",e.__assign({className:l.default.navCounter},{children:[N+1," of ",w.length]})),n.jsxs("div",e.__assign({className:l.default.navButtons},{children:[n.jsx("button",e.__assign({onClick:function(){N>0&&b(function(e){return e-1})},className:l.default.navButton,disabled:B},{children:n.jsx(s.ChevronUpIcon,{size:20,className:l.default.navIcon})})),n.jsx("button",e.__assign({onClick:function(){N<w.length-1&&b(function(e){return e+1})},className:l.default.navButton,disabled:M},{children:n.jsx(s.ChevronDownIcon,{size:20,className:l.default.navIcon})}))]}))]}))}))}))}),C.map(function(t,s){var l=h(_,!0);return n.jsx(x,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:i[s]||"",currentUserStory:t,onUserStoryChange:function(n){I(function(t){return t[s]=n,e.__spreadArray([],t,!0)})},parentIndex:"",currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:r,showUserStoryDiff:o,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:g,isDisplayHighlightControl:y,elementDisplayConfig:_,_resolvedConfig:l,showWrapper:m,segmentComponentConfig:U,actionItemsConfig:p},t.artifactId)})]}))},exports.default=x,exports.replaceLearnedTagsWithInfo=m;
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;position:relative;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;position:relative;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}.UserStoryCard-module_progressHeader__LBMsg{align-items:center;display:flex;gap:8px}.UserStoryCard-module_progressPercentage__brScW{background:#fff;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_gapBox__LkEiT{background:#fff7e6;border:1px solid #f7d58d;border-radius:8px;color:#b26b00;font-size:14px;font-weight:500;padding:4px 10px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E",progressHeader:"UserStoryCard-module_progressHeader__LBMsg",progressPercentage:"UserStoryCard-module_progressPercentage__brScW",gapBox:"UserStoryCard-module_gapBox__LkEiT"};
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 r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;position:relative;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;position:relative;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_actionItemBtn__3jocB{font-size:18px;line-height:0}.UserStoryCard-module_menuItemIcon__BxrJU{align-items:center;display:inline-flex;margin-right:.5rem}.UserStoryCard-module_menuItemRight__Cjw2j{align-self:center;border-radius:50%;height:8px;margin-left:auto;width:8px}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}.UserStoryCard-module_progressHeader__LBMsg{align-items:center;display:flex;gap:8px}.UserStoryCard-module_progressPercentage__brScW{background:#fff;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_gapBox__LkEiT{background:#fff7e6;border:1px solid #f7d58d;border-radius:8px;color:#b26b00;font-size:14px;font-weight:500;padding:4px 10px}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}(),exports.default={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",actionItemBtn:"UserStoryCard-module_actionItemBtn__3jocB",menuItemIcon:"UserStoryCard-module_menuItemIcon__BxrJU",menuItemRight:"UserStoryCard-module_menuItemRight__Cjw2j",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E",progressHeader:"UserStoryCard-module_progressHeader__LBMsg",progressPercentage:"UserStoryCard-module_progressPercentage__brScW",gapBox:"UserStoryCard-module_gapBox__LkEiT"};
2
2
  //# sourceMappingURL=UserStoryCard.module.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),l=require("../../utils/user-story.utils.js"),s=require("../userstory-with-citation/UserStoryWithCitation.js"),a=require("./PartialRequirementContent.module.css.js"),o=require("@mui/material"),r=require("../RequirementAIWrapper/RequirementAIWrapper.js"),d=require("../RichTextEditor/RichTextEditor.js"),u=function(u){var v,c,m,g,_,y,C,f,p,q,S,j,h,x,R,P,w,B,b=u.loadingPartialRequirements,N=u.localUserStory,A=u.setLocalUserStory,k=u.onCraFlowDiffAgentAction,E=u.disableEditing,D=u.isCraflow,T=void 0===D||D,U=u.onCraAccept,W=u.onCraReject,F=i.useState(!1),I=F[0],M=F[1],z=i.useState(""),L=z[0],H=z[1],O=r.useRequirementAI(),V=O.customStyles,X=O.segmentComponentConfig;i.useEffect(function(){E&&M(!1)},[E]),i.useEffect(function(){var e;H(null===(e=null==N?void 0:N[0])||void 0===e?void 0:e.value)},[N]);if(b)return t.jsx("div",e.__assign({className:a.default.skeletonWrapper,style:null===(v=null==V?void 0:V.PartialRequirementContentStyles)||void 0===v?void 0:v.skeletonWrapper},{children:[1,2,3,4,5].map(function(e){var i;return t.jsx("div",{className:a.default.skeletonLine,style:null===(i=null==V?void 0:V.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},e)})}));var G=!L||""===L.trim();return t.jsxs("div",e.__assign({className:a.default.wrapper,style:null===(c=null==V?void 0:V.PartialRequirementContentStyles)||void 0===c?void 0:c.wrapper},{children:[t.jsx("div",e.__assign({className:a.default.actionBar,style:null===(m=null==V?void 0:V.PartialRequirementContentStyles)||void 0===m?void 0:m.actionBar},{children:I?t.jsxs(t.Fragment,{children:[t.jsxs("span",e.__assign({className:a.default.editingBadge,style:null===(C=null==V?void 0:V.PartialRequirementContentStyles)||void 0===C?void 0:C.editingBadge},{children:[t.jsx("span",{className:a.default.editingDot,style:null===(f=null==V?void 0:V.PartialRequirementContentStyles)||void 0===f?void 0:f.editingDot}),"Editing"]})),t.jsx("div",{className:a.default.btnDivider,style:null===(p=null==V?void 0:V.PartialRequirementContentStyles)||void 0===p?void 0:p.btnDivider}),t.jsx(o.Tooltip,e.__assign({title:G?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:e.__assign({},null===(q=null==V?void 0:V.PartialRequirementContentStyles)||void 0===q?void 0:q.headerTooltip)}}},{children:t.jsx("span",{children:t.jsx("button",e.__assign({className:a.default.saveBtn,style:e.__assign(e.__assign(e.__assign({},null===(S=null==V?void 0:V.PartialRequirementContentStyles)||void 0===S?void 0:S.actionBtn),null===(j=null==V?void 0:V.PartialRequirementContentStyles)||void 0===j?void 0:j.saveBtn),{opacity:G?.5:1,cursor:G?"not-allowed":"pointer"}),onClick:function(){G||(A(function(t){var i=e.__assign(e.__assign({},t[0]),{value:L});return null==k||k("accept",[i]),[i]}),M(!1))},disabled:G},{children:t.jsx(n.Save,{size:16})}))})})),t.jsx("button",e.__assign({className:a.default.cancelBtn,style:e.__assign(e.__assign({},null===(h=null==V?void 0:V.PartialRequirementContentStyles)||void 0===h?void 0:h.actionBtn),null===(x=null==V?void 0:V.PartialRequirementContentStyles)||void 0===x?void 0:x.cancelBtn),onClick:function(){var e;H(null===(e=null==N?void 0:N[0])||void 0===e?void 0:e.value),M(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:t.jsx(n.X,{size:16})}))]}):t.jsx(o.Tooltip,e.__assign({title:E?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:e.__assign({},null===(g=null==V?void 0:V.PartialRequirementContentStyles)||void 0===g?void 0:g.headerTooltip)}}},{children:t.jsx("span",{children:t.jsx("button",e.__assign({className:a.default.editBtn,style:e.__assign(e.__assign(e.__assign({},null===(_=null==V?void 0:V.PartialRequirementContentStyles)||void 0===_?void 0:_.actionBtn),null===(y=null==V?void 0:V.PartialRequirementContentStyles)||void 0===y?void 0:y.editBtn),{opacity:E?.5:1,cursor:E?"not-allowed":"pointer"}),onClick:function(){E||M(!0)},disabled:E,"aria-label":"Edit requirement"},{children:t.jsx(n.Pencil,{size:16})}))})}))})),I?t.jsx("div",e.__assign({className:a.default.editorContainer,style:null===(R=null==V?void 0:V.PartialRequirementContentStyles)||void 0===R?void 0:R.editorContainer},{children:t.jsx(d.default,{minHeight:"100%",height:"100%",type:"string",value:l.formatMarkdown((null===(P=null==N?void 0:N[0])||void 0===P?void 0:P.value)||""),handleUpdateState:function(e,t){H(t)},doNotShowBorderInViewMode:!1,mode:"edit"})})):t.jsx("div",e.__assign({className:a.default.viewContainer,style:null===(w=null==V?void 0:V.PartialRequirementContentStyles)||void 0===w?void 0:w.viewContainer},{children:t.jsx(s.default,{message:l.formatMarkdown((null===(B=null==N?void 0:N[0])||void 0===B?void 0:B.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:N,setCraUserStory:A,onCraFlowDiffAgentAction:k,displayActionButtons:!I},isCraflow:T,onCraAccept:U,onCraReject:W,customStyles:null==V?void 0:V.UserStoryWithCitationCustomStyles,segmentComponentConfig:X})}))]}))};exports.PartialRequirementContent=u,exports.default=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),l=require("../../utils/user-story.utils.js"),s=require("../userstory-with-citation/UserStoryWithCitation.js"),o=require("./PartialRequirementContent.module.css.js"),a=require("@mui/material"),r=require("../RequirementAIWrapper/RequirementAIWrapper.js"),d=require("../RichTextEditor/RichTextEditor.js"),u=function(u){var v,c,m,g,y,_,p,f,C,q,S,j,h,x,R,P,w,B,b=u.loadingPartialRequirements,N=u.localUserStory,A=u.setLocalUserStory,E=u.onCraFlowDiffAgentAction,k=u.disableEditing,U=u.isCraflow,D=void 0===U||U,T=u.onCraAccept,W=u.onCraReject,F=i.useState(!1),I=F[0],M=F[1],z=i.useState(""),L=z[0],H=z[1],O=r.useRequirementAI(),V=O.customStyles,X=O.segmentComponentConfig;i.useEffect(function(){k&&M(!1)},[k]),i.useEffect(function(){var e;H(null===(e=null==N?void 0:N[0])||void 0===e?void 0:e.value)},[N]);if(b)return t.jsx("div",e.__assign({className:o.default.skeletonWrapper,style:null===(v=null==V?void 0:V.PartialRequirementContentStyles)||void 0===v?void 0:v.skeletonWrapper},{children:[1,2,3,4,5].map(function(e){var i;return t.jsx("div",{className:o.default.skeletonLine,style:null===(i=null==V?void 0:V.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},e)})}));var G=!L||""===L.trim();return t.jsxs("div",e.__assign({className:o.default.wrapper,style:null===(c=null==V?void 0:V.PartialRequirementContentStyles)||void 0===c?void 0:c.wrapper},{children:[t.jsx("div",e.__assign({className:o.default.actionBar,style:null===(m=null==V?void 0:V.PartialRequirementContentStyles)||void 0===m?void 0:m.actionBar},{children:I?t.jsxs(t.Fragment,{children:[t.jsxs("span",e.__assign({className:o.default.editingBadge,style:null===(p=null==V?void 0:V.PartialRequirementContentStyles)||void 0===p?void 0:p.editingBadge},{children:[t.jsx("span",{className:o.default.editingDot,style:null===(f=null==V?void 0:V.PartialRequirementContentStyles)||void 0===f?void 0:f.editingDot}),"Editing"]})),t.jsx("div",{className:o.default.btnDivider,style:null===(C=null==V?void 0:V.PartialRequirementContentStyles)||void 0===C?void 0:C.btnDivider}),t.jsx(a.Tooltip,e.__assign({title:G?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:e.__assign({},null===(q=null==V?void 0:V.PartialRequirementContentStyles)||void 0===q?void 0:q.headerTooltip)}}},{children:t.jsx("span",{children:t.jsx("button",e.__assign({className:o.default.saveBtn,style:e.__assign(e.__assign(e.__assign({},null===(S=null==V?void 0:V.PartialRequirementContentStyles)||void 0===S?void 0:S.actionBtn),null===(j=null==V?void 0:V.PartialRequirementContentStyles)||void 0===j?void 0:j.saveBtn),{opacity:G?.5:1,cursor:G?"not-allowed":"pointer"}),onClick:function(){G||(A(function(t){var i=e.__assign(e.__assign({},t[0]),{value:l.postprocessUserStoryAfterEdit(L)});return null==E||E("accept",[i]),[i]}),M(!1))},disabled:G},{children:t.jsx(n.Save,{size:16})}))})})),t.jsx("button",e.__assign({className:o.default.cancelBtn,style:e.__assign(e.__assign({},null===(h=null==V?void 0:V.PartialRequirementContentStyles)||void 0===h?void 0:h.actionBtn),null===(x=null==V?void 0:V.PartialRequirementContentStyles)||void 0===x?void 0:x.cancelBtn),onClick:function(){var e;H(null===(e=null==N?void 0:N[0])||void 0===e?void 0:e.value),M(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:t.jsx(n.X,{size:16})}))]}):t.jsx(a.Tooltip,e.__assign({title:k?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:e.__assign({},null===(g=null==V?void 0:V.PartialRequirementContentStyles)||void 0===g?void 0:g.headerTooltip)}}},{children:t.jsx("span",{children:t.jsx("button",e.__assign({className:o.default.editBtn,style:e.__assign(e.__assign(e.__assign({},null===(y=null==V?void 0:V.PartialRequirementContentStyles)||void 0===y?void 0:y.actionBtn),null===(_=null==V?void 0:V.PartialRequirementContentStyles)||void 0===_?void 0:_.editBtn),{opacity:k?.5:1,cursor:k?"not-allowed":"pointer"}),onClick:function(){k||M(!0)},disabled:k,"aria-label":"Edit requirement"},{children:t.jsx(n.Pencil,{size:16})}))})}))})),I?t.jsx("div",e.__assign({className:o.default.editorContainer,style:null===(R=null==V?void 0:V.PartialRequirementContentStyles)||void 0===R?void 0:R.editorContainer},{children:t.jsx(d.default,{minHeight:"100%",height:"100%",type:"string",value:l.preprocessUserStoryForEdit(l.formatMarkdown((null===(P=null==N?void 0:N[0])||void 0===P?void 0:P.value)||"")||""),handleUpdateState:function(e,t){H(t)},doNotShowBorderInViewMode:!1,mode:"edit"})})):t.jsx("div",e.__assign({className:o.default.viewContainer,style:null===(w=null==V?void 0:V.PartialRequirementContentStyles)||void 0===w?void 0:w.viewContainer},{children:t.jsx(s.default,{message:l.formatMarkdown((null===(B=null==N?void 0:N[0])||void 0===B?void 0:B.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:N,setCraUserStory:A,onCraFlowDiffAgentAction:E,displayActionButtons:!I},isCraflow:D,onCraAccept:T,onCraReject:W,customStyles:null==V?void 0:V.UserStoryWithCitationCustomStyles,segmentComponentConfig:X})}))]}))};exports.PartialRequirementContent=u,exports.default=u;
2
2
  //# sourceMappingURL=PartialRequirementContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.formatMarkdown=function(r){try{return r=null==r?void 0:r.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,function(r,e){var t=e.split("."),n=" ".repeat(t.length-1);return"".concat(n).concat(e,".")})}catch(r){console.error("Error in formatMarkdown",r)}},exports.replaceTitleSection=function(r,e){try{if(r){return r.replace(/\*\*Title\*\* ?: ([\s\S]*?)\n\n\*\*Description\*\*/,"**Title** : ".concat(e,"\n\n**Description**"))}}catch(e){return console.error("Error in replaceTitleSection:",e),r}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'")};exports.formatMarkdown=function(e){try{return e=null==e?void 0:e.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,function(e,t){var r=t.split("."),c=" ".repeat(r.length-1);return"".concat(c).concat(t,".")})}catch(e){console.error("Error in formatMarkdown",e)}},exports.postprocessUserStoryAfterEdit=function(t){console.log("postprocessUserStoryAfterEdit::input",t);var r=t.replace(/<del([^>]*?)data-review-id="([^"]*)"([^>]*)>([\s\S]*?)<\/del>([\s\S]*?)<ins([^>]*?)data-review-id="([^"]*)"([^>]*)>([\s\S]*?)<\/ins>/g,function(t,r,c,o,n,a,i,s,p,l){var d=e(c);if(d!==e(s))return t;var u="".concat(r).concat(o).replace(/\s+/g," ").trim(),f="".concat(i).concat(p).replace(/\s+/g," ").trim(),g=u?"<del ".concat(u,">").concat(n,"</del>"):"<del>".concat(n,"</del>"),v=f?"<ins ".concat(f,">").concat(l,"</ins>"):"<ins>".concat(l,"</ins>");return'<upt id="'.concat(decodeURIComponent(d),'">').concat(g).concat(a).concat(v,"</upt>")});return console.log("postprocessUserStoryAfterEdit::output",r),r},exports.preprocessUserStoryForEdit=function(e){var t=e.replace(/<upt\s+id="([^"]*)">([\s\S]*?)<\/upt>/g,function(e,t,r){var c=encodeURIComponent(t);return r.replace(/<del>/,'<del id="'.concat(c,'" data-review-id="').concat(c,'">')).replace(/<ins>/,'<ins id="'.concat(c,'" data-review-id="').concat(c,'">'))});return console.log("postprocessUserStoryAfterEdit::output",t),t},exports.replaceTitleSection=function(e,t){try{if(e){return e.replace(/\*\*Title\*\* ?: ([\s\S]*?)\n\n\*\*Description\*\*/,"**Title** : ".concat(t,"\n\n**Description**"))}}catch(t){return console.error("Error in replaceTitleSection:",t),e}};
2
2
  //# sourceMappingURL=user-story.utils.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsxs as t,Fragment as e,jsx as i}from"react/jsx-runtime";import{useRef as r,useState as l}from"react";import{LexicalComposer as n}from"@lexical/react/LexicalComposer";import{HistoryPlugin as a}from"@lexical/react/LexicalHistoryPlugin";import{OnChangePlugin as m}from"@lexical/react/LexicalOnChangePlugin";import{TabIndentationPlugin as c}from"@lexical/react/LexicalTabIndentationPlugin";import{ListNode as s,ListItemNode as u}from"@lexical/list";import{ListPlugin as p}from"@lexical/react/LexicalListPlugin";import{LinkPlugin as d}from"@lexical/react/LexicalLinkPlugin";import{LinkNode as f}from"@lexical/link";import{QuoteNode as g,HeadingNode as x}from"@lexical/rich-text";import{TablePlugin as h}from"@lexical/react/LexicalTablePlugin";import{TableNode as C,TableRowNode as v,TableCellNode as b}from"@lexical/table";import{TextNode as y,$getSelection as j,$isRangeSelection as E,$isTextNode as S}from"lexical";import"./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js";import{useRequirementAI as T}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import L from"./components/EditorContainer/EditorContainer.js";import B from"./components/EditorToolbar/EditorToolbar.js";import{LayoutPlugin as P}from"./plugins/LayoutPlugin.js";import _ from"./theme/theme.js";import"./theme/theme.css.js";import"./Editor.css.js";import w from"./components/Context/ContextMenu.js";import{MarkNode as H}from"@lexical/mark";import I from"./plugins/CommentPlugin/HTMLNode.js";import{DEFAULT_TOOLBAR_CONFIG as R}from"./constants/editorConfig.js";import{InitialHtml as M}from"./plugins/InitialHtml.js";import{InsertNode as N}from"./plugins/InsertNode.js";import{DeleteNode as k}from"./plugins/DeleteNode.js";function A(o){console.log(o)}function F(F){var W,q,D,O=F.minHeight,V=F.height,X=F.placeholder,Y=F.onFocus,z=F.onBlur,G=F.onChange,J=F.onToolbarButtonClick,K=F.toolbarConfig,Q=void 0===K?R:K,U=F.editorRef,Z=F.editorState,$=F.initialString,oo=F.customToolbar,to=F.plugins;F.nodes,F.dynamicHeight,F.artifactContext,F.commentsPanelState;var eo=F.mode,io=F.doNotShowBorderInViewMode,ro=r(null),lo={namespace:"MyEditor",theme:_,onError:A,nodes:[y,s,u,f,g,x,C,v,b,H,I,N,k],editorState:Z},no=l(null),ao=no[0],mo=no[1],co=l(!1),so=co[0],uo=co[1],po=T().customStyles,fo=function(o){var t;null===(t=U.current)||void 0===t||t.update(function(){var t=j();E(t)&&t.getNodes().forEach(function(t){S(t)&&t.setStyle("color: ".concat(o))})})};return document.getElementById("lexical_editor_wrapper"),t(e,{children:[(null===(W=null==po?void 0:po.textEditorStyles)||void 0===W?void 0:W.themeStyles)&&i("style",{children:null===(q=null==po?void 0:po.textEditorStyles)||void 0===q?void 0:q.themeStyles}),t("div",o({ref:ro,className:"w-full lexical_editor_wrapper ".concat(io&&"readOnly"===eo?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:function(o){var t;o.preventDefault(),null===(t=U.current)||void 0===t||t.update(function(){var t=j();E(t)&&!t.isCollapsed()?(uo(!0),mo({x:o.clientX,y:o.clientY})):(uo(!1),mo(null))})},style:o({minHeight:O,height:V},null===(D=null==po?void 0:po.textEditorStyles)||void 0===D?void 0:D.textArea)},{children:[t(n,o({initialConfig:lo},{children:[" ","edit"===eo&&i(B,{onToolbarButtonClick:J,editorWrapperRef:ro,toolbarConfig:Q,customToolbar:oo,editorRef:U}),i(L,{placeholder:X}),i(c,{}),i(a,{}),i(p,{}),i(d,{}),i(h,{}),i(P,{onFocus:Y,onBlur:z,editorRef:U}),i(m,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:function(o,t,e){G&&G(o,t,e)}}),$&&i(M,{initialValue:$.value,initialFormat:$.type,mode:eo}),to&&to]})),ao&&so&&"edit"===eo&&i(w,{position:ao,options:[{label:"Change Color to Red",action:function(){return fo("red")}},{label:"Change Color to Blue",action:function(){return fo("blue")}}],onClose:function(){mo(null)}})]}))]})}export{F as default};
1
+ import{__assign as e}from"tslib";import{jsxs as t,Fragment as o,jsx as r}from"react/jsx-runtime";import{useRef as i,useState as n,useEffect as l}from"react";import{LexicalComposer as a}from"@lexical/react/LexicalComposer";import{HistoryPlugin as c}from"@lexical/react/LexicalHistoryPlugin";import{OnChangePlugin as m}from"@lexical/react/LexicalOnChangePlugin";import{TabIndentationPlugin as u}from"@lexical/react/LexicalTabIndentationPlugin";import{ListNode as s,ListItemNode as p}from"@lexical/list";import{ListPlugin as f}from"@lexical/react/LexicalListPlugin";import{LinkPlugin as d}from"@lexical/react/LexicalLinkPlugin";import{LinkNode as g}from"@lexical/link";import{QuoteNode as x,HeadingNode as v}from"@lexical/rich-text";import{TablePlugin as h}from"@lexical/react/LexicalTablePlugin";import{TableNode as C,TableRowNode as y,TableCellNode as b}from"@lexical/table";import{KEY_DOWN_COMMAND as T,$getSelection as j,$isRangeSelection as S,COMMAND_PRIORITY_CRITICAL as E,TextNode as L,$isTextNode as k}from"lexical";import"./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js";import{useRequirementAI as B}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import P from"./components/EditorContainer/EditorContainer.js";import N from"./components/EditorToolbar/EditorToolbar.js";import{LayoutPlugin as _}from"./plugins/LayoutPlugin.js";import D from"./theme/theme.js";import"./theme/theme.css.js";import"./Editor.css.js";import w from"./components/Context/ContextMenu.js";import{MarkNode as H}from"@lexical/mark";import I from"./plugins/CommentPlugin/HTMLNode.js";import{DEFAULT_TOOLBAR_CONFIG as R}from"./constants/editorConfig.js";import{InitialHtml as M}from"./plugins/InitialHtml.js";import{InsertNode as A}from"./plugins/InsertNode.js";import{DeleteNode as F}from"./plugins/DeleteNode.js";import{useLexicalComposerContext as W}from"@lexical/react/LexicalComposerContext";function q(e){console.log(e)}function O(){var e=W()[0];return l(function(){var t=function(e){for(var t=e;t;){if("delete"===t.getType())return!0;t=t.getParent()}return!1};return e.registerCommand(T,function(e){if("Backspace"!==e.key&&"Delete"!==e.key)return!1;var o=j();if(!S(o))return!1;if(o.getNodes().some(function(e){return t(e)}))return e.preventDefault(),!0;if(o.isCollapsed()){var r=o.anchor.getNode();if(t(r))return e.preventDefault(),!0;if("Backspace"===e.key){var i=r.getPreviousSibling();if(0===o.anchor.offset&&"delete"===(null==i?void 0:i.getType()))return e.preventDefault(),!0}if("Delete"===e.key){var n=r.getNextSibling(),l=r.getTextContent().length;if(o.anchor.offset===l&&"delete"===(null==n?void 0:n.getType()))return e.preventDefault(),!0}}return!1},E)},[e]),null}function V(l){var T,E,W,V=l.minHeight,X=l.height,Y=l.placeholder,z=l.onFocus,G=l.onBlur,J=l.onChange,K=l.onToolbarButtonClick,Q=l.toolbarConfig,U=void 0===Q?R:Q,Z=l.editorRef,$=l.editorState,ee=l.initialString,te=l.customToolbar,oe=l.plugins;l.nodes,l.dynamicHeight,l.artifactContext,l.commentsPanelState;var re=l.mode,ie=l.doNotShowBorderInViewMode,ne=i(null),le={namespace:"MyEditor",theme:D,onError:q,nodes:[L,s,p,g,x,v,C,y,b,H,I,A,F],editorState:$},ae=n(null),ce=ae[0],me=ae[1],ue=n(!1),se=ue[0],pe=ue[1],fe=B().customStyles,de=function(e){var t;null===(t=Z.current)||void 0===t||t.update(function(){var t=j();S(t)&&t.getNodes().forEach(function(t){k(t)&&t.setStyle("color: ".concat(e))})})};return document.getElementById("lexical_editor_wrapper"),t(o,{children:[(null===(T=null==fe?void 0:fe.textEditorStyles)||void 0===T?void 0:T.themeStyles)&&r("style",{children:null===(E=null==fe?void 0:fe.textEditorStyles)||void 0===E?void 0:E.themeStyles}),t("div",e({ref:ne,className:"w-full lexical_editor_wrapper ".concat(ie&&"readOnly"===re?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:function(e){var t;e.preventDefault(),null===(t=Z.current)||void 0===t||t.update(function(){var t=j();S(t)&&!t.isCollapsed()?(pe(!0),me({x:e.clientX,y:e.clientY})):(pe(!1),me(null))})},style:e({minHeight:V,height:X},null===(W=null==fe?void 0:fe.textEditorStyles)||void 0===W?void 0:W.textArea)},{children:[t(a,e({initialConfig:le},{children:[" ","edit"===re&&r(O,{}),"edit"===re&&r(N,{onToolbarButtonClick:K,editorWrapperRef:ne,toolbarConfig:U,customToolbar:te,editorRef:Z}),r(P,{placeholder:Y}),r(u,{}),r(c,{}),r(f,{}),r(d,{}),r(h,{}),r(_,{onFocus:z,onBlur:G,editorRef:Z}),r(m,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:function(e,t,o){J&&J(e,t,o)}}),ee&&r(M,{initialValue:ee.value,initialFormat:ee.type,mode:re}),oe&&oe]})),ce&&se&&"edit"===re&&r(w,{position:ce,options:[{label:"Change Color to Red",action:function(){return de("red")}},{label:"Change Color to Blue",action:function(){return de("blue")}}],onClose:function(){me(null)}})]}))]})}export{V as default};
2
2
  //# sourceMappingURL=Editor.js.map
@@ -1,2 +1,2 @@
1
- import{__extends as t,__assign as e}from"tslib";import{ElementNode as n}from"lexical";var o=function(n){function o(t){return n.call(this,t)||this}return t(o,n),o.getType=function(){return"delete"},o.clone=function(t){return new o(t.__key)},o.prototype.createDOM=function(){var t=document.createElement("del");return t.style.textDecoration="line-through",t.style.textDecorationColor="#dc2626",t.style.textDecorationThickness="2px",t},o.prototype.updateDOM=function(){return!1},o.importDOM=function(){return{del:function(){return{conversion:r,priority:1}}}},o.prototype.exportDOM=function(){var t=document.createElement("del");return t.style.color="#dc2626",t.style.textDecoration="line-through",t.style.textDecorationColor="#dc2626",t.style.textDecorationThickness="2px",{element:t}},o.importJSON=function(){return new o},o.prototype.exportJSON=function(){return e(e({},n.prototype.exportJSON.call(this)),{type:"delete",version:1})},o.prototype.isInline=function(){return!0},o.prototype.canBeEmpty=function(){return!1},o}(n);function r(){return{node:new o}}export{o as DeleteNode};
1
+ import{__extends as t,__assign as e}from"tslib";import{ElementNode as r}from"lexical";var n=function(r){function n(t,e){void 0===t&&(t=crypto.randomUUID());var n=r.call(this,e)||this;return n.__reviewId=t,n}return t(n,r),n.getType=function(){return"delete"},n.clone=function(t){return new n(t.__reviewId,t.__key)},n.prototype.createDOM=function(){var t=document.createElement("del");return t.setAttribute("data-review-id",this.__reviewId),t.style.textDecoration="line-through",t.style.textDecorationColor="#dc2626",t.style.textDecorationThickness="2px",t.contentEditable="false",t},n.prototype.updateDOM=function(){return!1},n.importDOM=function(){return{del:function(){return{conversion:o,priority:1}}}},n.prototype.exportDOM=function(){var t=document.createElement("del");return t.setAttribute("data-review-id",this.__reviewId),t.style.color="#dc2626",t.style.textDecoration="line-through",t.style.textDecorationColor="#dc2626",t.style.textDecorationThickness="2px",{element:t}},n.importJSON=function(t){return new n(t.reviewId)},n.prototype.exportJSON=function(){return e(e({},r.prototype.exportJSON.call(this)),{type:"delete",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n.prototype.canBeEmpty=function(){return!1},n.prototype.canInsertTextBefore=function(){return!1},n.prototype.canInsertTextAfter=function(){return!1},n.prototype.canMergeWith=function(){return!1},n}(r);function o(t){var e=t.getAttribute("data-review-id")||crypto.randomUUID();return{node:new n(e)}}export{n as DeleteNode};
2
2
  //# sourceMappingURL=DeleteNode.js.map
@@ -1,2 +1,2 @@
1
- import{__extends as t,__assign as e}from"tslib";import{TextNode as r}from"lexical";var n=function(r){function n(t,e,n){void 0===t&&(t=""),void 0===e&&(e=crypto.randomUUID());var o=r.call(this,t,n)||this;return o.__reviewId=e,o}return t(n,r),n.getType=function(){return"insert"},n.clone=function(t){return new n(t.__text,t.__reviewId,t.__key)},n.prototype.createDOM=function(t){var e=r.prototype.createDOM.call(this,t),n=document.createElement("ins");return n.setAttribute("data-review-id",this.__reviewId),n.style.backgroundColor="#dbeafe",n.style.color="#1e3a8a",n.style.textDecoration="none",n.style.padding="1px 2px",n.style.borderRadius="2px",n.appendChild(e),n},n.prototype.updateDOM=function(){return!1},n.importDOM=function(){return{ins:function(){return{conversion:o,priority:1}}}},n.prototype.exportDOM=function(){var t=document.createElement("ins");return t.setAttribute("data-review-id",this.__reviewId),t.style.backgroundColor="#dbeafe",t.style.color="#1e3a8a",t.style.textDecoration="none",t.style.padding="1px 2px",t.style.borderRadius="2px",t.textContent=this.getTextContent(),{element:t}},n.importJSON=function(t){var e=new n(t.text,t.reviewId);return e.setFormat(t.format),e.setDetail(t.detail),e.setMode(t.mode),e.setStyle(t.style),e},n.prototype.exportJSON=function(){return e(e({},r.prototype.exportJSON.call(this)),{type:"insert",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n.prototype.canInsertTextBefore=function(){return!0},n.prototype.canInsertTextAfter=function(){return!0},n}(r);function o(t){var e=t.getAttribute("data-review-id")||crypto.randomUUID();return{node:new n(t.textContent||"",e)}}export{n as InsertNode};
1
+ import{__extends as e,__assign as t}from"tslib";import{ElementNode as r}from"lexical";var n=function(r){function n(e,t){void 0===e&&(e=crypto.randomUUID());var n=r.call(this,t)||this;return n.__reviewId=e,n}return e(n,r),n.getType=function(){return"insert"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(e){var t=document.createElement("ins");return t.setAttribute("data-review-id",this.__reviewId),t.style.backgroundColor="#dbeafe",t.style.color="#1e3a8a",t.style.textDecoration="none",t.style.padding="1px 2px",t.style.borderRadius="2px",t},n.prototype.updateDOM=function(e,t,r){return e.__reviewId!==this.__reviewId},n.importDOM=function(){return{ins:function(){return{conversion:o,priority:1}}}},n.prototype.exportDOM=function(e){var t=document.createElement("ins");return t.setAttribute("data-review-id",this.__reviewId),t.style.backgroundColor="#dbeafe",t.style.color="#1e3a8a",t.style.textDecoration="none",t.style.padding="1px 2px",t.style.borderRadius="2px",{element:t}},n.importJSON=function(e){var t=new n(e.reviewId);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t},n.prototype.exportJSON=function(){return t(t({},r.prototype.exportJSON.call(this)),{type:"insert",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n}(r);function o(e){var t=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new n(t)}}export{n as InsertNode};
2
2
  //# sourceMappingURL=InsertNode.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as t,__generator as n,__spreadArray as o}from"tslib";import{jsxs as r,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as s,useRef as a,useEffect as u}from"react";import{ExternalLink as d,Download as c,Share2 as v,Copy as y,LoaderCircle as m,PencilIcon as h,ChevronUp as f,ChevronDown as p,ChevronUpIcon as S,ChevronDownIcon as g,Info as C,Bookmark as I}from"lucide-react";import w from"showdown";import{Menu as N,MenuItem as b,Tooltip as U}from"@mui/material";import{v4 as D}from"uuid";import x from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as k}from"../../utils/helpers.js";import{replaceTitleSection as A}from"../../utils/user-story.utils.js";import M from"../../shared/AtomicButton.js";import E from"../RichTextEditor/RichTextEditor.js";import H from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as P}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as R}from"../story-screen/BigEnoughPanel.js";function T(t){for(var n,o=[],r=/<learned>(.*?)<\/learned>/g,l=0,s=0;null!==(n=r.exec(t));){var a=n[1],u=n.index;u>l&&o.push(i("span",{children:t.slice(l,u)},"text-pre-".concat(s++))),o.push(i(U,e({title:a,placement:"top"},{children:i(C,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(D()))),l=r.lastIndex}return l<(null==t?void 0:t.length)&&o.push(i("span",{children:t.slice(l)},"text-post-".concat(s++))),o}function j(t,n,o){var r;if(!t)return{};if(n)return e({},t.parentConfig);var i=e({},t.childConfig);return o&&(null===(r=t.subFeatureOverrides)||void 0===r?void 0:r[o])?e(e({},i),t.subFeatureOverrides[o]):i}var _=function(t){var n,o=t.displayName,l=P().customStyles,s=null===(n=null==l?void 0:l.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return r("div",e({className:x.displayName,style:null==s?void 0:s.wrapper},{children:[i(I,{className:x.displayNameIcon,style:null==s?void 0:s.displayNameIcon}),r("span",e({style:null==s?void 0:s.label},{children:[o,":"]}))]}))},L=function(S){var g,C,I,U,D,W,z=S.isUserStoryCurrentlyUpdated,O=S.artifactId,V=S.artifactTitleId,F=S.parentUserStory,G=S.currentUserStory,q=S.onUserStoryChange,Q=S.parentIndex,J=S.currentIndex,K=S.enableDownload,X=S.isDiffEditReviewMode,Y=S.showUserStoryDiff,Z=S.handleDownloadUserStory,$=S.handleOpenSendDialog,ee=S.updateUserStoryArtifact,te=S.selectedArtifactId,ne=S.isDisplayHighlightControl,oe=S.elementDisplayConfig,re=S._resolvedConfig,ie=S.showWrapper,le=void 0!==ie&&ie,se=S.segmentComponentConfig,ae=P(),ue=ae.searchQueryList,de=ae.citations,ce=ae.customStyles,ve=null==ce?void 0:ce.userStoryCardStyles,ye=null===(g=null==ce?void 0:ce.userStoryScreenStyles)||void 0===g?void 0:g.userStoryContentStyles,me=null==ve?void 0:ve.progressHeaderStyles,he=s(e(e({},structuredClone(G)),{value:B(G.value)||""})),fe=he[0],pe=he[1],Se=s({userStory:!1}),ge=Se[0],Ce=Se[1],Ie=P(),we=Ie.userStory,Ne=Ie.customIcons,be=s(""===Q||te===G.artifactId),Ue=be[0],De=be[1],xe=s(!1);xe[0];var Be=xe[1],ke=s(null),Ae=ke[0],Me=ke[1],Ee=s(!1),He=Ee[0],Pe=Ee[1],Re=a(null),Te=s(!1);Te[0];var je=Te[1],_e=a(null);u(function(){z&&De(z)},[z]),u(function(){pe(e(e({},structuredClone(G)),{value:B(G.value)||""}))},[G]),u(function(){ue.length>0?De(!0):te&&De(te===G.artifactId)},[ue,te,G.artifactId]);var Le=function(){Me(null)},We=function(){De(function(e){return!e})};var ze=null!=(null==G?void 0:G.big_enough)&&!Number.isNaN(G.big_enough)&&!!(null==G?void 0:G.big_enough_decision_factors),Oe=null!=re?re:j(oe,""===Q);return r("div",e({className:x.card,style:null==ve?void 0:ve.cardStyle,id:"story-card-".concat(G.title),"data-expanded":Ue},{children:[r("div",e({className:x.titleSection,style:null==ve?void 0:ve.titleSection},{children:[r("div",e({className:x.titleRow,style:null==ve?void 0:ve.titleRow,onClick:We},{children:[r("div",e({className:x.titleLeft,style:null==ve?void 0:ve.titleLeft,onMouseEnter:function(){return je(!0)},onMouseLeave:function(){return je(!1)}},{children:[i(_,{displayName:V}),i("h2",e({className:x.storyTitle,style:null==ve?void 0:ve.storyTitle},{children:T(G.title)}),G.artifactId)]})),r("div",e({className:x.titleActions,style:null==ve?void 0:ve.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(Oe.showProgressPercentage||Oe.showGapBox)&&le&&r("div",e({className:x.progressHeader,style:null==me?void 0:me.wrapper},{children:[Oe.showProgressPercentage&&r("div",e({className:x.progressPercentage,style:null==me?void 0:me.percentage},{children:[null!==(I=null!==(C=null==G?void 0:G.confidenceScore)&&void 0!==C?C:null==Oe?void 0:Oe.confidenceValue)&&void 0!==I?I:"0","%"]})),Oe.showGapBox&&r("div",e({className:x.gapBox,style:null==me?void 0:me.gapBox},{children:[null!==(D=null!==(U=null==G?void 0:G.gapValue)&&void 0!==U?U:null==Oe?void 0:Oe.gapBoxValue)&&void 0!==D?D:"2"," ","Gaps"]}))]})),ze&&i(R,{customIcons:null==Ne?void 0:Ne.userStoryIcons,customStyles:null==ve?void 0:ve.aiReasoningCitaionStyles,currentUserStory:G,panelStyles:null==ve?void 0:ve.BigEnoughStyles}),!ge.userStory&&r(l,{children:[!1!==(null==Oe?void 0:Oe.showShareButton)&&i("button",e({className:x.iconButton,style:null==ve?void 0:ve.iconButton,onClick:function(e){Me(e.currentTarget)}},{children:i(d,{size:16})})),r(N,e({id:"user-story-share-menu",anchorEl:Ae,open:!!Ae,onClose:function(){return Me(null)},style:null==ve?void 0:ve.userStoryShareMenu},{children:[K&&i(b,e({style:null==ve?void 0:ve.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return Be(!0),Z?[4,Promise.all([Z("pdf"),Z("doc")])]:[2];case 1:return e.sent(),Be(!1),[2]}})})}},{children:r("div",e({ref:Re,className:x.menuItemContent,style:null==ve?void 0:ve.menuItemContent},{children:[i(c,{size:16,color:null==ve?void 0:ve.menuIconColor}),i("p",e({style:null==ve?void 0:ve.menuLabel},{children:"Download"}))]}))})),i(b,e({style:null==ve?void 0:ve.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){return t=G,F&&(t=e(e({},G),{value:"".concat(A(null==F?void 0:F.value,G.title)," \n").concat(G.value)})),null==$||$(!0,[t],G.artifactId),Le(),[2]})})}},{children:r("div",e({style:null==ve?void 0:ve.menuItemContent,className:x.menuItemContentPadded},{children:[i(v,{size:16,color:null==ve?void 0:ve.menuIconColor}),i("p",e({style:null==ve?void 0:ve.menuLabel},{children:"Send"}))]}))})),i(b,e({style:null==ve?void 0:ve.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var e,t,o,r,i;return n(this,function(n){switch(n.label){case 0:e=new w.Converter,t=e.makeHtml(B(G.value)||G.value),o=function(e){var t=(new w.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(G.value)||G.value),r=new ClipboardItem({"text/plain":new Blob([o],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,navigator.clipboard.write([r])];case 2:return n.sent(),console.log("Copied User Story"),[3,5];case 3:return i=n.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return Le(),[7];case 5:return[2]}})})}},{children:r("div",e({style:null==ve?void 0:ve.menuItemContent,className:x.menuItemContentPadded},{children:[i(y,{size:16,color:null==ve?void 0:ve.menuIconColor}),i("p",e({style:null==ve?void 0:ve.menuLabel},{children:"Copy"}))]}))}))]}))]}),ge.userStory&&Ue?i(M,{type:"outline",children:"Cancel",style:null==ve?void 0:ve.cancelButton,onClick:function(){var t;null===(t=_e.current)||void 0===t||t.abort(),Ce(function(t){return e(e({},t),{userStory:!1})})}}):i(l,{}),ge.userStory&&Ue?i(M,{type:"fill",children:He?r("span",e({className:x.savingSpinner,style:null==ve?void 0:ve.savingSpinner},{children:[i(m,{className:x.spinAnimation,style:null==ve?void 0:ve.spinAnimation}),i("span",{children:"Saving..."})]})):"Save",isDisable:He,style:He?null==ve?void 0:ve.savingButton:null==ve?void 0:ve.saveButton,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return Pe(!0),"userStory"==="userStory"&&(q(fe),console.log("I am changing RTE editor values",fe)),[4,ee(de,we,O,null===(t=_e.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),Ce(function(t){return e(e({},t),{userStory:!1})}),Pe(!1),[2]}})})}}):!X&&!Y&&Ue&&!1!==(null==Oe?void 0:Oe.showEditButton)&&i("button",e({className:x.iconButton,style:null==ve?void 0:ve.editButton,onClick:function(){return Ce(function(t){return e(e({},t),{userStory:!0})})}},{children:i(h,{color:null==ve?void 0:ve.pencilIconColor,size:16})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),We()},style:null==ve?void 0:ve.chevronButton,className:x.chevronButton},{children:i(Ue?f:p,{className:x.chevronIcon,color:null==ve?void 0:ve.chevronIconColor})}))]}))]})),i("div",{className:x.divider,style:null==ve?void 0:ve.dividerStyle})]})),Ue&&i("div",e({className:x.cardContent,style:null==ve?void 0:ve.cardContentStyle},{children:r("div",e({className:x.contentInner,style:null==ve?void 0:ve.contentInner},{children:[r("div",e({className:x.descriptionSection,style:null==ve?void 0:ve.descriptionSection},{children:[i("div",{className:x.justifyBetween,style:null==ve?void 0:ve.justifyBetween}),ge.userStory?i(E,{minHeight:"100%",height:"100%",type:"string",value:B(G.value)||"",handleUpdateState:function(t,n){var o=k(n);pe(function(t){return e(e({},t),{value:o||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ge.userStory?"edit":"readOnly"}):i(H,{showUserStoryDiff:Y,isParent:""===Q,message:B(G.value)||"",artifactId:G.artifactId,customStyles:ye,isDisplayHighlightControl:ne,segmentComponentConfig:se})]})),null===(W=fe.sub_features)||void 0===W?void 0:W.map(function(t,n){var r=j(oe,!1,t.artifactId);return i(L,{artifactId:O,isUserStoryCurrentlyUpdated:z,artifactTitleId:"".concat(V,"-").concat(String.fromCharCode(65+n)),parentUserStory:G,parentIndex:"".concat(Q).concat(Q&&".").concat(J),currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:function(t){return function(t,n){var r=o([],G.sub_features||[],!0);r[t]=n,q(e(e({},G),{sub_features:r}))}(n,t)},enableDownload:!0,isDiffEditReviewMode:X,showUserStoryDiff:Y,updateUserStoryArtifact:ee,handleDownloadUserStory:Z,handleOpenSendDialog:$,isDisplayHighlightControl:ne,elementDisplayConfig:oe,_resolvedConfig:r,segmentComponentConfig:se},t.artifactId)})]}))}))]}))},W=function(t){var n=t.artifactTitleIDs,s=t.isDiffEditReviewMode,a=t.showUserStoryDiff,u=t.updateUserStoryArtifact,d=t.isUserStoryCurrentlyUpdated,c=t.artifactId,v=t.handleOpenSendDialog,y=t.handleDownloadUserStory,m=t.selectedArtifactId,h=t.isDisplayHighlightControl,f=t.elementDisplayConfig,p=t.showWrapper,C=P(),I=C.userStory,w=C.setUserStory,N=C.customStyles,b=C.searchQueryList,U=C.currentHighlightIndex,D=C.setCurrentHighlightIndex,B=C.segmentComponentConfig,k=null==N?void 0:N.userStoryCardStyles,A=0===U,M=U===b.length-1;return r("div",e({className:x.userStoryCardWrapper,style:h?e(e({},null==k?void 0:k.userStoryCardWrapper),{position:"relative"}):null==k?void 0:k.userStoryCardWrapper},{children:[h&&i(l,{children:b.length>0&&i("div",e({className:x.wrapper},{children:i("div",e({className:x.highlightNavigation},{children:r("div",e({className:x.navigationContainer},{children:[r("span",e({className:x.navCounter},{children:[U+1," of ",b.length]})),r("div",e({className:x.navButtons},{children:[i("button",e({onClick:function(){U>0&&D(function(e){return e-1})},className:x.navButton,disabled:A},{children:i(S,{size:20,className:x.navIcon})})),i("button",e({onClick:function(){U<b.length-1&&D(function(e){return e+1})},className:x.navButton,disabled:M},{children:i(g,{size:20,className:x.navIcon})}))]}))]}))}))}))}),I.map(function(e,t){var r=j(f,!0);return i(L,{isUserStoryCurrentlyUpdated:d,artifactId:c,artifactTitleId:n[t]||"",currentUserStory:e,onUserStoryChange:function(e){w(function(n){return n[t]=e,o([],n,!0)})},parentIndex:"",currentIndex:"".concat(t+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:s,showUserStoryDiff:a,updateUserStoryArtifact:u,handleOpenSendDialog:v,handleDownloadUserStory:y,selectedArtifactId:m,isDisplayHighlightControl:h,elementDisplayConfig:f,_resolvedConfig:r,showWrapper:p,segmentComponentConfig:B},e.artifactId)})]}))};export{L as StoryCard,W as UserStoryCardWrapper,L as default,T as replaceLearnedTagsWithInfo};
1
+ import{__assign as e,__awaiter as n,__generator as t,__spreadArray as o}from"tslib";import{jsxs as r,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as s,useRef as a,useEffect as u}from"react";import{ExternalLink as c,Download as d,Share2 as v,Copy as m,LoaderCircle as y,PencilIcon as h,Ellipsis as f,ChevronUp as p,ChevronDown as g,ChevronUpIcon as S,ChevronDownIcon as C,Info as I,Bookmark as w}from"lucide-react";import N from"showdown";import{Menu as b,MenuItem as U,Tooltip as B}from"@mui/material";import{v4 as D}from"uuid";import x from"./UserStoryCard.module.css.js";import{formatMarkdown as k,indentMarkdown as M}from"../../utils/helpers.js";import{replaceTitleSection as A}from"../../utils/user-story.utils.js";import E from"../../shared/AtomicButton.js";import R from"../RichTextEditor/RichTextEditor.js";import H from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as P}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as T}from"../story-screen/BigEnoughPanel.js";function j(n){for(var t,o=[],r=/<learned>(.*?)<\/learned>/g,l=0,s=0;null!==(t=r.exec(n));){var a=t[1],u=t.index;u>l&&o.push(i("span",{children:n.slice(l,u)},"text-pre-".concat(s++))),o.push(i(B,e({title:a,placement:"top"},{children:i(I,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(D()))),l=r.lastIndex}return l<(null==n?void 0:n.length)&&o.push(i("span",{children:n.slice(l)},"text-post-".concat(s++))),o}function _(n,t,o){var r;if(!n)return{};if(t)return e({},n.parentConfig);var i=e({},n.childConfig);return o&&(null===(r=n.subFeatureOverrides)||void 0===r?void 0:r[o])?e(e({},i),n.subFeatureOverrides[o]):i}var L=function(n){var t,o=n.displayName,l=P().customStyles,s=null===(t=null==l?void 0:l.userStoryCardStyles)||void 0===t?void 0:t.showDisplayName;return r("div",e({className:x.displayName,style:null==s?void 0:s.wrapper},{children:[i(w,{className:x.displayNameIcon,style:null==s?void 0:s.displayNameIcon}),r("span",e({style:null==s?void 0:s.label},{children:[o,":"]}))]}))},W=function(S){var C,I,w,B,D,z,O=S.isUserStoryCurrentlyUpdated,V=S.artifactId,F=S.artifactTitleId,G=S.parentUserStory,q=S.currentUserStory,Q=S.onUserStoryChange,J=S.parentIndex,K=S.currentIndex,X=S.enableDownload,Y=S.isDiffEditReviewMode,Z=S.showUserStoryDiff,$=S.handleDownloadUserStory,ee=S.handleOpenSendDialog,ne=S.updateUserStoryArtifact,te=S.selectedArtifactId,oe=S.isDisplayHighlightControl,re=S.elementDisplayConfig,ie=S._resolvedConfig,le=S.showWrapper,se=void 0!==le&&le,ae=S.segmentComponentConfig,ue=S.actionItemsConfig,ce=P(),de=ce.searchQueryList,ve=ce.citations,me=ce.customStyles,ye=null==me?void 0:me.userStoryCardStyles,he=null===(C=null==me?void 0:me.userStoryScreenStyles)||void 0===C?void 0:C.userStoryContentStyles,fe=null==ye?void 0:ye.progressHeaderStyles,pe=s(e(e({},structuredClone(q)),{value:k(q.value)||""})),ge=pe[0],Se=pe[1],Ce=s({userStory:!1}),Ie=Ce[0],we=Ce[1],Ne=P(),be=Ne.userStory,Ue=Ne.customIcons,Be=s(""===J||te===q.artifactId),De=Be[0],xe=Be[1],ke=s(!1);ke[0];var Me=ke[1],Ae=s(null),Ee=Ae[0],Re=Ae[1],He=s(null),Pe=He[0],Te=He[1],je=s(!1),_e=je[0],Le=je[1],We=a(null),ze=s(!1);ze[0];var Oe=ze[1],Ve=a(null);u(function(){O&&xe(O)},[O]),u(function(){Se(e(e({},structuredClone(q)),{value:k(q.value)||""}))},[q]),u(function(){de.length>0?xe(!0):te&&xe(te===q.artifactId)},[de,te,q.artifactId]);var Fe=function(){Re(null)},Ge=function(){Te(null)},qe=function(){xe(function(e){return!e})};var Qe=null!=(null==q?void 0:q.big_enough)&&!Number.isNaN(q.big_enough)&&!!(null==q?void 0:q.big_enough_decision_factors),Je=null!=ie?ie:_(re,""===J);return r("div",e({className:x.card,style:null==ye?void 0:ye.cardStyle,id:"story-card-".concat(q.title),"data-expanded":De},{children:[r("div",e({className:x.titleSection,style:null==ye?void 0:ye.titleSection},{children:[r("div",e({className:x.titleRow,style:null==ye?void 0:ye.titleRow,onClick:qe},{children:[r("div",e({className:x.titleLeft,style:null==ye?void 0:ye.titleLeft,onMouseEnter:function(){return Oe(!0)},onMouseLeave:function(){return Oe(!1)}},{children:[i(L,{displayName:F}),i("h2",e({className:x.storyTitle,style:null==ye?void 0:ye.storyTitle},{children:j(q.title)}),q.artifactId)]})),r("div",e({className:x.titleActions,style:null==ye?void 0:ye.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(Je.showProgressPercentage||Je.showGapBox)&&se&&r("div",e({className:x.progressHeader,style:null==fe?void 0:fe.wrapper},{children:[Je.showProgressPercentage&&r("div",e({className:x.progressPercentage,style:null==fe?void 0:fe.percentage},{children:[null!==(w=null!==(I=null==q?void 0:q.confidenceScore)&&void 0!==I?I:null==Je?void 0:Je.confidenceValue)&&void 0!==w?w:"0","%"]})),Je.showGapBox&&r("div",e({className:x.gapBox,style:null==fe?void 0:fe.gapBox},{children:[null!==(D=null!==(B=null==q?void 0:q.gapValue)&&void 0!==B?B:null==Je?void 0:Je.gapBoxValue)&&void 0!==D?D:"2"," ","Gaps"]}))]})),Qe&&i(T,{customIcons:null==Ue?void 0:Ue.userStoryIcons,customStyles:null==ye?void 0:ye.aiReasoningCitaionStyles,currentUserStory:q,panelStyles:null==ye?void 0:ye.BigEnoughStyles}),!Ie.userStory&&r(l,{children:[!1!==(null==Je?void 0:Je.showShareButton)&&i("button",e({className:x.iconButton,style:null==ye?void 0:ye.iconButton,onClick:function(e){Re(e.currentTarget)}},{children:i(c,{size:16})})),r(b,e({id:"user-story-share-menu",anchorEl:Ee,open:!!Ee,onClose:function(){return Re(null)},style:null==ye?void 0:ye.userStoryShareMenu},{children:[X&&i(U,e({style:null==ye?void 0:ye.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return Me(!0),$?[4,Promise.all([$("pdf"),$("doc")])]:[2];case 1:return e.sent(),Me(!1),[2]}})})}},{children:r("div",e({ref:We,className:x.menuItemContent,style:null==ye?void 0:ye.menuItemContent},{children:[i(d,{size:16,color:null==ye?void 0:ye.menuIconColor}),i("p",e({style:null==ye?void 0:ye.menuLabel},{children:"Download"}))]}))})),i(U,e({style:null==ye?void 0:ye.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var n;return t(this,function(t){return n=q,G&&(n=e(e({},q),{value:"".concat(A(null==G?void 0:G.value,q.title)," \n").concat(q.value)})),null==ee||ee(!0,[n],q.artifactId),Fe(),[2]})})}},{children:r("div",e({style:null==ye?void 0:ye.menuItemContent,className:x.menuItemContentPadded},{children:[i(v,{size:16,color:null==ye?void 0:ye.menuIconColor}),i("p",e({style:null==ye?void 0:ye.menuLabel},{children:"Send"}))]}))})),i(U,e({style:null==ye?void 0:ye.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var e,n,o,r,i;return t(this,function(t){switch(t.label){case 0:e=new N.Converter,n=e.makeHtml(k(q.value)||q.value),o=function(e){var n=(new N.Converter).makeHtml(e),t=document.createElement("div");return t.innerHTML=n,t.textContent||t.innerText||""}(k(q.value)||q.value),r=new ClipboardItem({"text/plain":new Blob([o],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,navigator.clipboard.write([r])];case 2:return t.sent(),console.log("Copied User Story"),[3,5];case 3:return i=t.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return Fe(),[7];case 5:return[2]}})})}},{children:r("div",e({style:null==ye?void 0:ye.menuItemContent,className:x.menuItemContentPadded},{children:[i(m,{size:16,color:null==ye?void 0:ye.menuIconColor}),i("p",e({style:null==ye?void 0:ye.menuLabel},{children:"Copy"}))]}))}))]}))]}),Ie.userStory&&De?i(E,{type:"outline",children:"Cancel",style:null==ye?void 0:ye.cancelButton,onClick:function(){var n;null===(n=Ve.current)||void 0===n||n.abort(),we(function(n){return e(e({},n),{userStory:!1})})}}):i(l,{}),Ie.userStory&&De?i(E,{type:"fill",children:_e?r("span",e({className:x.savingSpinner,style:null==ye?void 0:ye.savingSpinner},{children:[i(y,{className:x.spinAnimation,style:null==ye?void 0:ye.spinAnimation}),i("span",{children:"Saving..."})]})):"Save",isDisable:_e,style:_e?null==ye?void 0:ye.savingButton:null==ye?void 0:ye.saveButton,onClick:function(){return n(void 0,void 0,void 0,function(){var n;return t(this,function(t){switch(t.label){case 0:return Le(!0),"userStory"==="userStory"&&(Q(ge),console.log("I am changing RTE editor values",ge)),[4,ne(ve,be,V,null===(n=Ve.current)||void 0===n?void 0:n.signal)];case 1:return t.sent(),we(function(n){return e(e({},n),{userStory:!1})}),Le(!1),[2]}})})}}):!Y&&!Z&&De&&!1!==(null==Je?void 0:Je.showEditButton)&&i("button",e({className:x.iconButton,style:null==ye?void 0:ye.editButton,onClick:function(){return we(function(n){return e(e({},n),{userStory:!0})})}},{children:i(h,{color:null==ye?void 0:ye.pencilIconColor,size:16})})),(null==Je?void 0:Je.actionItemsButton)&&r(l,{children:[i("span",e({className:x.actionItemBtn,style:null==ye?void 0:ye.actionItemBtn,onClick:function(e){e.stopPropagation(),Te(e.currentTarget)}},{children:i(f,{})})),i(b,e({id:"user-story-action-menu",anchorEl:Pe,open:!!Pe,onClose:Ge,style:null==ye?void 0:ye.userStoryShareMenu},{children:null==ue?void 0:ue.items.map(function(n,t){return i(U,e({style:null==ye?void 0:ye.userStoryMenuItem,onClick:function(){n.onclick(),Ge()}},{children:r("div",e({className:x.menuItemContent,style:e(e({},null==ye?void 0:ye.menuItemContent),!n.isActive&&{cursor:"not-allowed",opacity:.5})},{children:[i("span",e({className:x.menuItemIcon,style:null==ye?void 0:ye.menuItemIcon},{children:n.icon})),i("p",e({style:null==ye?void 0:ye.menuLabel},{children:n.name})),i("span",{className:x.menuItemRight,style:null==ye?void 0:ye.menuItemRight})]}))}),"action-item-".concat(t,"-").concat(n.name))})}))]}),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),qe()},style:null==ye?void 0:ye.chevronButton,className:x.chevronButton},{children:i(De?p:g,{className:x.chevronIcon,color:null==ye?void 0:ye.chevronIconColor})}))]}))]})),i("div",{className:x.divider,style:null==ye?void 0:ye.dividerStyle})]})),De&&i("div",e({className:x.cardContent,style:null==ye?void 0:ye.cardContentStyle},{children:r("div",e({className:x.contentInner,style:null==ye?void 0:ye.contentInner},{children:[r("div",e({className:x.descriptionSection,style:null==ye?void 0:ye.descriptionSection},{children:[i("div",{className:x.justifyBetween,style:null==ye?void 0:ye.justifyBetween}),Ie.userStory?i(R,{minHeight:"100%",height:"100%",type:"string",value:k(q.value)||"",handleUpdateState:function(n,t){var o=M(t);Se(function(n){return e(e({},n),{value:o||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:Ie.userStory?"edit":"readOnly"}):i(H,{showUserStoryDiff:Z,isParent:""===J,message:k(q.value)||"",artifactId:q.artifactId,customStyles:he,isDisplayHighlightControl:oe,segmentComponentConfig:ae})]})),null===(z=ge.sub_features)||void 0===z?void 0:z.map(function(n,t){var r=_(re,!1,n.artifactId);return i(W,{artifactId:V,isUserStoryCurrentlyUpdated:O,artifactTitleId:"".concat(F,"-").concat(String.fromCharCode(65+t)),parentUserStory:q,parentIndex:"".concat(J).concat(J&&".").concat(K),currentIndex:"".concat(t+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(n){return function(n,t){var r=o([],q.sub_features||[],!0);r[n]=t,Q(e(e({},q),{sub_features:r}))}(t,n)},enableDownload:!0,isDiffEditReviewMode:Y,showUserStoryDiff:Z,updateUserStoryArtifact:ne,handleDownloadUserStory:$,handleOpenSendDialog:ee,isDisplayHighlightControl:oe,elementDisplayConfig:re,_resolvedConfig:r,segmentComponentConfig:ae,actionItemsConfig:ue},n.artifactId)})]}))}))]}))},z=function(n){var t=n.artifactTitleIDs,s=n.isDiffEditReviewMode,a=n.showUserStoryDiff,u=n.updateUserStoryArtifact,c=n.isUserStoryCurrentlyUpdated,d=n.artifactId,v=n.handleOpenSendDialog,m=n.handleDownloadUserStory,y=n.selectedArtifactId,h=n.isDisplayHighlightControl,f=n.elementDisplayConfig,p=n.showWrapper,g=n.actionItemsConfig,I=P(),w=I.userStory,N=I.setUserStory,b=I.customStyles,U=I.searchQueryList,B=I.currentHighlightIndex,D=I.setCurrentHighlightIndex,k=I.segmentComponentConfig,M=null==b?void 0:b.userStoryCardStyles,A=0===B,E=B===U.length-1;return r("div",e({className:x.userStoryCardWrapper,style:h?e(e({},null==M?void 0:M.userStoryCardWrapper),{position:"relative"}):null==M?void 0:M.userStoryCardWrapper},{children:[h&&i(l,{children:U.length>0&&i("div",e({className:x.wrapper},{children:i("div",e({className:x.highlightNavigation},{children:r("div",e({className:x.navigationContainer},{children:[r("span",e({className:x.navCounter},{children:[B+1," of ",U.length]})),r("div",e({className:x.navButtons},{children:[i("button",e({onClick:function(){B>0&&D(function(e){return e-1})},className:x.navButton,disabled:A},{children:i(S,{size:20,className:x.navIcon})})),i("button",e({onClick:function(){B<U.length-1&&D(function(e){return e+1})},className:x.navButton,disabled:E},{children:i(C,{size:20,className:x.navIcon})}))]}))]}))}))}))}),w.map(function(e,n){var r=_(f,!0);return i(W,{isUserStoryCurrentlyUpdated:c,artifactId:d,artifactTitleId:t[n]||"",currentUserStory:e,onUserStoryChange:function(e){N(function(t){return t[n]=e,o([],t,!0)})},parentIndex:"",currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:s,showUserStoryDiff:a,updateUserStoryArtifact:u,handleOpenSendDialog:v,handleDownloadUserStory:m,selectedArtifactId:y,isDisplayHighlightControl:h,elementDisplayConfig:f,_resolvedConfig:r,showWrapper:p,segmentComponentConfig:k,actionItemsConfig:g},e.artifactId)})]}))};export{W as StoryCard,z as UserStoryCardWrapper,W as default,j as replaceLearnedTagsWithInfo};
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1,2 +1,2 @@
1
- var e={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E",progressHeader:"UserStoryCard-module_progressHeader__LBMsg",progressPercentage:"UserStoryCard-module_progressPercentage__brScW",gapBox:"UserStoryCard-module_gapBox__LkEiT"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;position:relative;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;position:relative;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}.UserStoryCard-module_progressHeader__LBMsg{align-items:center;display:flex;gap:8px}.UserStoryCard-module_progressPercentage__brScW{background:#fff;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_gapBox__LkEiT{background:#fff7e6;border:1px solid #f7d58d;border-radius:8px;color:#b26b00;font-size:14px;font-weight:500;padding:4px 10px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
1
+ var e={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",actionItemBtn:"UserStoryCard-module_actionItemBtn__3jocB",menuItemIcon:"UserStoryCard-module_menuItemIcon__BxrJU",menuItemRight:"UserStoryCard-module_menuItemRight__Cjw2j",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E",progressHeader:"UserStoryCard-module_progressHeader__LBMsg",progressPercentage:"UserStoryCard-module_progressPercentage__brScW",gapBox:"UserStoryCard-module_gapBox__LkEiT"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;position:relative;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;position:relative;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_actionItemBtn__3jocB{font-size:18px;line-height:0}.UserStoryCard-module_menuItemIcon__BxrJU{align-items:center;display:inline-flex;margin-right:.5rem}.UserStoryCard-module_menuItemRight__Cjw2j{align-self:center;border-radius:50%;height:8px;margin-left:auto;width:8px}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}.UserStoryCard-module_progressHeader__LBMsg{align-items:center;display:flex;gap:8px}.UserStoryCard-module_progressPercentage__brScW{background:#fff;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_gapBox__LkEiT{background:#fff7e6;border:1px solid #f7d58d;border-radius:8px;color:#b26b00;font-size:14px;font-weight:500;padding:4px 10px}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=UserStoryCard.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as l,useEffect as o}from"react";import{Pencil as r,Save as a,X as d}from"lucide-react";import{formatMarkdown as s}from"../../utils/user-story.utils.js";import u from"../userstory-with-citation/UserStoryWithCitation.js";import v from"./PartialRequirementContent.module.css.js";import{Tooltip as c}from"@mui/material";import{useRequirementAI as m}from"../RequirementAIWrapper/RequirementAIWrapper.js";import p from"../RichTextEditor/RichTextEditor.js";var y=function(y){var C,f,h,S,R,g,q,P,w,B,b,N,A,j,D,k,E,U,x=y.loadingPartialRequirements,W=y.localUserStory,T=y.setLocalUserStory,z=y.onCraFlowDiffAgentAction,F=y.disableEditing,I=y.isCraflow,L=void 0===I||I,H=y.onCraAccept,M=y.onCraReject,V=l(!1),G=V[0],J=V[1],K=l(""),O=K[0],Q=K[1],X=m(),Y=X.customStyles,Z=X.segmentComponentConfig;o(function(){F&&J(!1)},[F]),o(function(){var e;Q(null===(e=null==W?void 0:W[0])||void 0===e?void 0:e.value)},[W]);if(x)return t("div",e({className:v.skeletonWrapper,style:null===(C=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===C?void 0:C.skeletonWrapper},{children:[1,2,3,4,5].map(function(e){var i;return t("div",{className:v.skeletonLine,style:null===(i=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},e)})}));var $=!O||""===O.trim();return i("div",e({className:v.wrapper,style:null===(f=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===f?void 0:f.wrapper},{children:[t("div",e({className:v.actionBar,style:null===(h=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===h?void 0:h.actionBar},{children:G?i(n,{children:[i("span",e({className:v.editingBadge,style:null===(q=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===q?void 0:q.editingBadge},{children:[t("span",{className:v.editingDot,style:null===(P=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===P?void 0:P.editingDot}),"Editing"]})),t("div",{className:v.btnDivider,style:null===(w=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===w?void 0:w.btnDivider}),t(c,e({title:$?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:e({},null===(B=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===B?void 0:B.headerTooltip)}}},{children:t("span",{children:t("button",e({className:v.saveBtn,style:e(e(e({},null===(b=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===b?void 0:b.actionBtn),null===(N=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===N?void 0:N.saveBtn),{opacity:$?.5:1,cursor:$?"not-allowed":"pointer"}),onClick:function(){$||(T(function(t){var i=e(e({},t[0]),{value:O});return null==z||z("accept",[i]),[i]}),J(!1))},disabled:$},{children:t(a,{size:16})}))})})),t("button",e({className:v.cancelBtn,style:e(e({},null===(A=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===A?void 0:A.actionBtn),null===(j=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===j?void 0:j.cancelBtn),onClick:function(){var e;Q(null===(e=null==W?void 0:W[0])||void 0===e?void 0:e.value),J(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:t(d,{size:16})}))]}):t(c,e({title:F?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:e({},null===(S=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===S?void 0:S.headerTooltip)}}},{children:t("span",{children:t("button",e({className:v.editBtn,style:e(e(e({},null===(R=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===R?void 0:R.actionBtn),null===(g=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===g?void 0:g.editBtn),{opacity:F?.5:1,cursor:F?"not-allowed":"pointer"}),onClick:function(){F||J(!0)},disabled:F,"aria-label":"Edit requirement"},{children:t(r,{size:16})}))})}))})),t("div",G?e({className:v.editorContainer,style:null===(D=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===D?void 0:D.editorContainer},{children:t(p,{minHeight:"100%",height:"100%",type:"string",value:s((null===(k=null==W?void 0:W[0])||void 0===k?void 0:k.value)||""),handleUpdateState:function(e,t){Q(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}):e({className:v.viewContainer,style:null===(E=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===E?void 0:E.viewContainer},{children:t(u,{message:s((null===(U=null==W?void 0:W[0])||void 0===U?void 0:U.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:W,setCraUserStory:T,onCraFlowDiffAgentAction:z,displayActionButtons:!G},isCraflow:L,onCraAccept:H,onCraReject:M,customStyles:null==Y?void 0:Y.UserStoryWithCitationCustomStyles,segmentComponentConfig:Z})}))]}))};export{y as PartialRequirementContent,y as default};
1
+ import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as l,useEffect as o}from"react";import{Pencil as r,Save as a,X as d}from"lucide-react";import{preprocessUserStoryForEdit as s,formatMarkdown as u,postprocessUserStoryAfterEdit as v}from"../../utils/user-story.utils.js";import c from"../userstory-with-citation/UserStoryWithCitation.js";import m from"./PartialRequirementContent.module.css.js";import{Tooltip as p}from"@mui/material";import{useRequirementAI as y}from"../RequirementAIWrapper/RequirementAIWrapper.js";import C from"../RichTextEditor/RichTextEditor.js";var f=function(f){var h,S,R,g,q,P,w,B,b,N,A,j,D,k,E,U,x,W,T=f.loadingPartialRequirements,z=f.localUserStory,F=f.setLocalUserStory,I=f.onCraFlowDiffAgentAction,L=f.disableEditing,H=f.isCraflow,M=void 0===H||H,V=f.onCraAccept,G=f.onCraReject,J=l(!1),K=J[0],O=J[1],Q=l(""),X=Q[0],Y=Q[1],Z=y(),$=Z.customStyles,_=Z.segmentComponentConfig;o(function(){L&&O(!1)},[L]),o(function(){var e;Y(null===(e=null==z?void 0:z[0])||void 0===e?void 0:e.value)},[z]);if(T)return t("div",e({className:m.skeletonWrapper,style:null===(h=null==$?void 0:$.PartialRequirementContentStyles)||void 0===h?void 0:h.skeletonWrapper},{children:[1,2,3,4,5].map(function(e){var i;return t("div",{className:m.skeletonLine,style:null===(i=null==$?void 0:$.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},e)})}));var ee=!X||""===X.trim();return i("div",e({className:m.wrapper,style:null===(S=null==$?void 0:$.PartialRequirementContentStyles)||void 0===S?void 0:S.wrapper},{children:[t("div",e({className:m.actionBar,style:null===(R=null==$?void 0:$.PartialRequirementContentStyles)||void 0===R?void 0:R.actionBar},{children:K?i(n,{children:[i("span",e({className:m.editingBadge,style:null===(w=null==$?void 0:$.PartialRequirementContentStyles)||void 0===w?void 0:w.editingBadge},{children:[t("span",{className:m.editingDot,style:null===(B=null==$?void 0:$.PartialRequirementContentStyles)||void 0===B?void 0:B.editingDot}),"Editing"]})),t("div",{className:m.btnDivider,style:null===(b=null==$?void 0:$.PartialRequirementContentStyles)||void 0===b?void 0:b.btnDivider}),t(p,e({title:ee?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:e({},null===(N=null==$?void 0:$.PartialRequirementContentStyles)||void 0===N?void 0:N.headerTooltip)}}},{children:t("span",{children:t("button",e({className:m.saveBtn,style:e(e(e({},null===(A=null==$?void 0:$.PartialRequirementContentStyles)||void 0===A?void 0:A.actionBtn),null===(j=null==$?void 0:$.PartialRequirementContentStyles)||void 0===j?void 0:j.saveBtn),{opacity:ee?.5:1,cursor:ee?"not-allowed":"pointer"}),onClick:function(){ee||(F(function(t){var i=e(e({},t[0]),{value:v(X)});return null==I||I("accept",[i]),[i]}),O(!1))},disabled:ee},{children:t(a,{size:16})}))})})),t("button",e({className:m.cancelBtn,style:e(e({},null===(D=null==$?void 0:$.PartialRequirementContentStyles)||void 0===D?void 0:D.actionBtn),null===(k=null==$?void 0:$.PartialRequirementContentStyles)||void 0===k?void 0:k.cancelBtn),onClick:function(){var e;Y(null===(e=null==z?void 0:z[0])||void 0===e?void 0:e.value),O(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:t(d,{size:16})}))]}):t(p,e({title:L?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:e({},null===(g=null==$?void 0:$.PartialRequirementContentStyles)||void 0===g?void 0:g.headerTooltip)}}},{children:t("span",{children:t("button",e({className:m.editBtn,style:e(e(e({},null===(q=null==$?void 0:$.PartialRequirementContentStyles)||void 0===q?void 0:q.actionBtn),null===(P=null==$?void 0:$.PartialRequirementContentStyles)||void 0===P?void 0:P.editBtn),{opacity:L?.5:1,cursor:L?"not-allowed":"pointer"}),onClick:function(){L||O(!0)},disabled:L,"aria-label":"Edit requirement"},{children:t(r,{size:16})}))})}))})),t("div",K?e({className:m.editorContainer,style:null===(E=null==$?void 0:$.PartialRequirementContentStyles)||void 0===E?void 0:E.editorContainer},{children:t(C,{minHeight:"100%",height:"100%",type:"string",value:s(u((null===(U=null==z?void 0:z[0])||void 0===U?void 0:U.value)||"")||""),handleUpdateState:function(e,t){Y(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}):e({className:m.viewContainer,style:null===(x=null==$?void 0:$.PartialRequirementContentStyles)||void 0===x?void 0:x.viewContainer},{children:t(c,{message:u((null===(W=null==z?void 0:z[0])||void 0===W?void 0:W.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:z,setCraUserStory:F,onCraFlowDiffAgentAction:I,displayActionButtons:!K},isCraflow:M,onCraAccept:V,onCraReject:G,customStyles:null==$?void 0:$.UserStoryWithCitationCustomStyles,segmentComponentConfig:_})}))]}))};export{f as PartialRequirementContent,f as default};
2
2
  //# sourceMappingURL=PartialRequirementContent.js.map
@@ -1,2 +1,2 @@
1
- function r(r){try{return r=null==r?void 0:r.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,function(r,n){var t=n.split("."),e=" ".repeat(t.length-1);return"".concat(e).concat(n,".")})}catch(r){console.error("Error in formatMarkdown",r)}}var n=function(r,n){try{if(r){return r.replace(/\*\*Title\*\* ?: ([\s\S]*?)\n\n\*\*Description\*\*/,"**Title** : ".concat(n,"\n\n**Description**"))}}catch(n){return console.error("Error in replaceTitleSection:",n),r}};export{r as formatMarkdown,n as replaceTitleSection};
1
+ function e(e){try{return e=null==e?void 0:e.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,function(e,t){var c=t.split("."),r=" ".repeat(c.length-1);return"".concat(r).concat(t,".")})}catch(e){console.error("Error in formatMarkdown",e)}}var t=function(e,t){try{if(e){return e.replace(/\*\*Title\*\* ?: ([\s\S]*?)\n\n\*\*Description\*\*/,"**Title** : ".concat(t,"\n\n**Description**"))}}catch(t){return console.error("Error in replaceTitleSection:",t),e}},c=function(e){var t=e.replace(/<upt\s+id="([^"]*)">([\s\S]*?)<\/upt>/g,function(e,t,c){var r=encodeURIComponent(t);return c.replace(/<del>/,'<del id="'.concat(r,'" data-review-id="').concat(r,'">')).replace(/<ins>/,'<ins id="'.concat(r,'" data-review-id="').concat(r,'">'))});return console.log("postprocessUserStoryAfterEdit::output",t),t},r=function(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'")},n=function(e){console.log("postprocessUserStoryAfterEdit::input",e);var t=e.replace(/<del([^>]*?)data-review-id="([^"]*)"([^>]*)>([\s\S]*?)<\/del>([\s\S]*?)<ins([^>]*?)data-review-id="([^"]*)"([^>]*)>([\s\S]*?)<\/ins>/g,function(e,t,c,n,o,a,i,l,s,p){var d=r(c);if(d!==r(l))return e;var u="".concat(t).concat(n).replace(/\s+/g," ").trim(),g="".concat(i).concat(s).replace(/\s+/g," ").trim(),f=u?"<del ".concat(u,">").concat(o,"</del>"):"<del>".concat(o,"</del>"),v=g?"<ins ".concat(g,">").concat(p,"</ins>"):"<ins>".concat(p,"</ins>");return'<upt id="'.concat(decodeURIComponent(d),'">').concat(f).concat(a).concat(v,"</upt>")});return console.log("postprocessUserStoryAfterEdit::output",t),t};export{e as formatMarkdown,n as postprocessUserStoryAfterEdit,c as preprocessUserStoryForEdit,t as replaceTitleSection};
2
2
  //# sourceMappingURL=user-story.utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAKvJ,QAAA,MAAM,iBAAiB,+CA+kHtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoV3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAKvJ,QAAA,MAAM,iBAAiB,+CA6mHtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoV3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
@@ -224,8 +224,11 @@ export interface RequirementAICustomStyles {
224
224
  userStoryShareMenu?: React.CSSProperties;
225
225
  userStoryMenuItem?: React.CSSProperties;
226
226
  menuItemContent?: React.CSSProperties;
227
+ menuItemIcon?: React.CSSProperties;
228
+ menuItemRight?: React.CSSProperties;
227
229
  menuIconColor?: string;
228
230
  menuLabel?: React.CSSProperties;
231
+ actionItemBtn?: React.CSSProperties;
229
232
  cancelButton?: React.CSSProperties;
230
233
  saveButton?: React.CSSProperties;
231
234
  savingButton?: React.CSSProperties;
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAkC,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE3G,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACjH,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC7G,OAAO,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AACrG,OAAO,EAAY,uBAAuB,EAAgB,MAAM,0BAA0B,CAAC;AAE3F,MAAM,WAAW,yBAAyB;IACxC,qBAAqB,CAAC,EAAE;QACtB,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACvC,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC7B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACjC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,YAAY,CAAC,EAAE,K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,CAAC,EAAE;QAC5B,4BAA4B,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;QACrG,sBAAsB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;QAC/F,sBAAsB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;KAC/F,CAAA;IACD,sBAAsB,CAAC,EAAE,uBAAuB,CAAA;CACjD;AAID,QAAA,MAAM,oBAAoB,yWAqBvB,yBAAyB,4CAwE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAkC,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE3G,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;A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,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,kBAAkB,CAAC,EAAE;QACnB,YAAY,EAAE,OAAO,CAAC;QACtB,eAAe,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;KAC1C,CAAC;IACF,IAAI,EAAE,KAAK,CAAC;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AAMD,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,MAAM,EACN,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,EACR,oBAAoB,EACpB,aAAsC,EACtC,SAAS,EACT,WAAW,EACX,aAAa,EACb,aAAa,EACb,OAAO,EACP,KAAK,EACL,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,IAAI,EACJ,yBAAyB,EAC1B,EAAE,UAAU,2CAiJZ;AAED,eAAe,MAAM,CAAC;AAEtB,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,gBAAgB,EAA+B,MAAM,OAAO,CAAC;AAY7E,OAAO,EAAE,aAAa,EAAE,WAAW,EAAyD,MAAM,SAAS,CAAC;AAG5G,OAAO,aAAa,MAAM,mEAAmE,CAAC;AAK9F,OAAO,mBAAmB,CAAC;AAC3B,OAAO,cAAc,CAAC;AAKtB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAQ1C,UAAU,UAAU;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,CAAC,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AkB,EAClB,IAAI,EACJ,yBAAyB,EAC1B,EAAE,UAAU,2CAkJZ;AAED,eAAe,MAAM,CAAC;AAEtB,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,18 +1,26 @@
1
1
  import { ElementNode, NodeKey, DOMConversionMap, SerializedElementNode } from "lexical";
2
- export type SerializedDeleteNode = SerializedElementNode;
2
+ export type SerializedDeleteNode = SerializedElementNode & {
3
+ type: "delete";
4
+ version: 1;
5
+ reviewId: string;
6
+ };
3
7
  export declare class DeleteNode extends ElementNode {
8
+ __reviewId: string;
4
9
  static getType(): string;
5
10
  static clone(node: DeleteNode): DeleteNode;
6
- constructor(key?: NodeKey);
11
+ constructor(reviewId?: string, key?: NodeKey);
7
12
  createDOM(): HTMLElement;
8
13
  updateDOM(): false;
9
14
  static importDOM(): DOMConversionMap | null;
10
15
  exportDOM(): {
11
16
  element: HTMLModElement;
12
17
  };
13
- static importJSON(): DeleteNode;
14
- exportJSON(): SerializedElementNode;
18
+ static importJSON(serializedNode: SerializedDeleteNode): DeleteNode;
19
+ exportJSON(): SerializedDeleteNode;
15
20
  isInline(): true;
16
21
  canBeEmpty(): false;
22
+ canInsertTextBefore(): false;
23
+ canInsertTextAfter(): false;
24
+ canMergeWith(): false;
17
25
  }
18
26
  //# sourceMappingURL=DeleteNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteNode.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,OAAO,EACP,gBAAgB,EAEhB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,CAAC;AAEzD,qBAAa,UAAW,SAAQ,WAAW;IACzC,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU;gBAI9B,GAAG,CAAC,EAAE,OAAO;IAIzB,SAAS,IAAI,WAAW;IAWxB,SAAS,IAAI,KAAK;IAIlB,MAAM,CAAC,SAAS,IAAI,gBAAgB,GAAG,IAAI;IAS3C,SAAS;;;IAYT,MAAM,CAAC,UAAU,IAAI,UAAU;IAI/B,UAAU,IAAI,qBAAqB;IAQnC,QAAQ,IAAI,IAAI;IAIhB,UAAU,IAAI,KAAK;CAGpB"}
1
+ {"version":3,"file":"DeleteNode.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,OAAO,EACP,gBAAgB,EAEhB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,GAAG;IACzD,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,UAAW,SAAQ,WAAW;IACzC,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU;gBAKxC,QAAQ,GAAE,MAA4B,EACtC,GAAG,CAAC,EAAE,OAAO;IAMf,SAAS,IAAI,WAAW;IAgBxB,SAAS,IAAI,KAAK;IAIlB,MAAM,CAAC,SAAS,IAAI,gBAAgB,GAAG,IAAI;IAS3C,SAAS;;;IAeT,MAAM,CAAC,UAAU,CACf,cAAc,EAAE,oBAAoB,GACnC,UAAU;IAIb,UAAU,IAAI,oBAAoB;IASlC,QAAQ,IAAI,IAAI;IAIhB,UAAU,IAAI,KAAK;IAInB,mBAAmB,IAAI,KAAK;IAI9B,kBAAkB,IAAI,KAAK;IAI3B,YAAY,IAAI,KAAK;CAGpB"}
@@ -1,24 +1,20 @@
1
- import { TextNode, NodeKey, SerializedTextNode, DOMConversionMap, EditorConfig } from "lexical";
2
- export type SerializedInsertNode = SerializedTextNode & {
1
+ import { ElementNode, NodeKey, SerializedElementNode, DOMConversionMap, EditorConfig, LexicalEditor, DOMExportOutput } from "lexical";
2
+ export type SerializedInsertNode = SerializedElementNode & {
3
3
  type: "insert";
4
4
  version: 1;
5
5
  reviewId: string;
6
6
  };
7
- export declare class InsertNode extends TextNode {
7
+ export declare class InsertNode extends ElementNode {
8
8
  __reviewId: string;
9
9
  static getType(): string;
10
10
  static clone(node: InsertNode): InsertNode;
11
- constructor(text?: string, reviewId?: string, key?: NodeKey);
11
+ constructor(reviewId?: string, key?: NodeKey);
12
12
  createDOM(config: EditorConfig): HTMLElement;
13
- updateDOM(): boolean;
13
+ updateDOM(prevNode: InsertNode, dom: HTMLElement, config: EditorConfig): boolean;
14
14
  static importDOM(): DOMConversionMap | null;
15
- exportDOM(): {
16
- element: HTMLModElement;
17
- };
15
+ exportDOM(editor: LexicalEditor): DOMExportOutput;
18
16
  static importJSON(serializedNode: SerializedInsertNode): InsertNode;
19
17
  exportJSON(): SerializedInsertNode;
20
- isInline(): true;
21
- canInsertTextBefore(): boolean;
22
- canInsertTextAfter(): boolean;
18
+ isInline(): boolean;
23
19
  }
24
20
  //# sourceMappingURL=InsertNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InsertNode.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,kBAAkB,EAClB,gBAAgB,EAEhB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG;IACtD,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,UAAW,SAAQ,QAAQ;IACtC,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU;gBASxC,IAAI,GAAE,MAAW,EACjB,QAAQ,GAAE,MAA4B,EACtC,GAAG,CAAC,EAAE,OAAO;IAWf,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;IAsB5C,SAAS,IAAI,OAAO;IAQpB,MAAM,CAAC,SAAS,IAAI,gBAAgB,GAAG,IAAI;IAa3C,SAAS;;;IAwBT,MAAM,CAAC,UAAU,CACf,cAAc,EAAE,oBAAoB,GACnC,UAAU;IAcb,UAAU,IAAI,oBAAoB;IAalC,QAAQ,IAAI,IAAI;IAIhB,mBAAmB,IAAI,OAAO;IAI9B,kBAAkB,IAAI,OAAO;CAG9B"}
1
+ {"version":3,"file":"InsertNode.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,gBAAgB,EAEhB,YAAY,EACZ,aAAa,EACb,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,GAAG;IACzD,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,UAAW,SAAQ,WAAW;IACzC,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU;gBAKxC,QAAQ,GAAE,MAA4B,EACtC,GAAG,CAAC,EAAE,OAAO;IAUf,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;IAa5C,SAAS,CACP,QAAQ,EAAE,UAAU,EACpB,GAAG,EAAE,WAAW,EAChB,MAAM,EAAE,YAAY,GACnB,OAAO;IAQV,MAAM,CAAC,SAAS,IAAI,gBAAgB,GAAG,IAAI;IAa3C,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,eAAe;IAiBjD,MAAM,CAAC,UAAU,CACf,cAAc,EAAE,oBAAoB,GACnC,UAAU;IAQb,UAAU,IAAI,oBAAoB;IAalC,QAAQ,IAAI,OAAO;CAGpB"}
@@ -1,10 +1,11 @@
1
- /// <reference types="react" />
1
+ import { ReactNode } from "react";
2
2
  import { IUserStory } from "../../interfaces/userstory.interface";
3
3
  import { UserStoryCitations } from "../../interfaces/citation.interface";
4
4
  import { TSegmentComponentConfig } from "../../types/segment.type";
5
5
  interface CardDisplayConfig {
6
6
  showShareButton?: boolean;
7
7
  showEditButton?: boolean;
8
+ actionItemsButton?: boolean;
8
9
  showProgressPercentage?: boolean;
9
10
  confidenceValue?: string | number;
10
11
  showGapBox?: boolean;
@@ -15,6 +16,15 @@ export interface ElementDisplayConfig {
15
16
  childConfig?: CardDisplayConfig;
16
17
  subFeatureOverrides?: Record<string, CardDisplayConfig>;
17
18
  }
19
+ export interface ActionItem {
20
+ name: string;
21
+ onclick: () => void;
22
+ icon: ReactNode;
23
+ isActive: boolean;
24
+ }
25
+ export interface ActionItemsConfig {
26
+ items: ActionItem[];
27
+ }
18
28
  interface StoryCardProps {
19
29
  isUserStoryCurrentlyUpdated?: boolean;
20
30
  artifactId: string;
@@ -38,9 +48,10 @@ interface StoryCardProps {
38
48
  _resolvedConfig?: CardDisplayConfig;
39
49
  showWrapper?: boolean;
40
50
  segmentComponentConfig?: TSegmentComponentConfig;
51
+ actionItemsConfig?: ActionItemsConfig;
41
52
  }
42
53
  export declare function replaceLearnedTagsWithInfo(content: string): React.ReactNode[];
43
- export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, _resolvedConfig, showWrapper, segmentComponentConfig, }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
54
+ export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, _resolvedConfig, showWrapper, segmentComponentConfig, actionItemsConfig }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
44
55
  interface IProps {
45
56
  isUserStoryCurrentlyUpdated?: boolean;
46
57
  artifactId: string;
@@ -54,7 +65,8 @@ interface IProps {
54
65
  isDisplayHighlightControl?: boolean;
55
66
  elementDisplayConfig?: ElementDisplayConfig;
56
67
  showWrapper?: boolean;
68
+ actionItemsConfig?: ActionItemsConfig;
57
69
  }
58
- export declare const UserStoryCardWrapper: ({ artifactTitleIDs, isDiffEditReviewMode, showUserStoryDiff, updateUserStoryArtifact, isUserStoryCurrentlyUpdated, artifactId, handleOpenSendDialog, handleDownloadUserStory, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, showWrapper }: IProps) => import("react/jsx-runtime").JSX.Element;
70
+ export declare const UserStoryCardWrapper: ({ artifactTitleIDs, isDiffEditReviewMode, showUserStoryDiff, updateUserStoryArtifact, isUserStoryCurrentlyUpdated, artifactId, handleOpenSendDialog, handleDownloadUserStory, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, showWrapper, actionItemsConfig }: IProps) => import("react/jsx-runtime").JSX.Element;
59
71
  export default StoryCard;
60
72
  //# sourceMappingURL=UserStoryCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"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Aa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrK,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,oBAAoB,qQAAsQ,MAAM,4CA+F5S,CAAA;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAC;AAoB/D,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAGzE,OAAO,EAAY,uBAAuB,EAAgB,MAAM,0BAA0B,CAAC;AAG3F,UAAU,iBAAiB;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAElC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,oBAAoB;IACjC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,UAAU;IACzB,IAAI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;AAED,eAAe,SAAS,CAAC"}
@@ -11,4 +11,6 @@ export declare const removeAllTagsAndContent: (inputString: string) => string;
11
11
  */
12
12
  export declare function removeMarkdownLinks(markdown: string): string;
13
13
  export declare const replaceTitleSection: (original: string | undefined, newTitle: string) => string | undefined;
14
+ export declare const preprocessUserStoryForEdit: (input: string) => string;
15
+ export declare const postprocessUserStoryAfterEdit: (input: string) => string;
14
16
  //# sourceMappingURL=user-story.utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-story.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/user-story.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,sBAa1C;AAED,eAAO,MAAM,cAAc,QAAS,MAAM,cAAc,MAAM,WAM7D,CAAA;AAED,eAAO,MAAM,iCAAiC,cAAe,UAAU,WAAW,MAAM,eAAe,MAAM,gBAAgB,MAAM,uBAgBlI,CAAA;AAED,wBAAgB,8BAA8B,CAAC,EAAE,EAAE,MAAM,UAmBxD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,UAgB9C;AAED,eAAO,MAAM,uBAAuB,gBAAiB,MAAM,WAwB1D,CAAA;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,eAAO,MAAM,mBAAmB,aAAc,MAAM,GAAG,SAAS,YAAY,MAAM,uBAUjF,CAAA"}
1
+ {"version":3,"file":"user-story.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/user-story.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,sBAa1C;AAED,eAAO,MAAM,cAAc,QAAS,MAAM,cAAc,MAAM,WAM7D,CAAA;AAED,eAAO,MAAM,iCAAiC,cAAe,UAAU,WAAW,MAAM,eAAe,MAAM,gBAAgB,MAAM,uBAgBlI,CAAA;AAED,wBAAgB,8BAA8B,CAAC,EAAE,EAAE,MAAM,UAmBxD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,UAgB9C;AAED,eAAO,MAAM,uBAAuB,gBAAiB,MAAM,WAwB1D,CAAA;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,eAAO,MAAM,mBAAmB,aAAc,MAAM,GAAG,SAAS,YAAY,MAAM,uBAUjF,CAAA;AAED,eAAO,MAAM,0BAA0B,UAAW,MAAM,WAavD,CAAA;AAWD,eAAO,MAAM,6BAA6B,UAAW,MAAM,WA6B1D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.164",
3
+ "version": "0.0.166",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",