@e-llm-studio/requirement-ai 0.0.204 → 0.0.206

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 (38) hide show
  1. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +2 -0
  4. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
  5. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +2 -0
  10. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
  11. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  12. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  13. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  14. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +2 -0
  15. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
  16. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  17. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  18. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  19. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  20. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +2 -0
  21. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
  22. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  23. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  24. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +11 -2
  25. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  26. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  27. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts +44 -0
  28. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts.map +1 -0
  29. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/PlaygroundEditorTheme.d.ts.map +1 -1
  30. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts.map +1 -1
  31. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  32. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +3 -0
  33. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  34. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts +11 -0
  35. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts.map +1 -0
  36. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +4 -1
  37. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
  38. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),r=require("../../store/ref.context.js");exports.SectionStatus=void 0,(e=exports.SectionStatus||(exports.SectionStatus={})).WAITING="waiting",e.IN_PROGRESS="in_progress",e.GENERATED="generated",e.FAILED="failed",e.GENERATE="generate";var o=i.createContext(null);exports.default=function(e){var s=e.children,a=e.userStory,u=e.setUserStory,c=e.aiReasoning,g=e.setAiReasoning,f=e.citations,l=e.setCitations,d=e.apiCachingConfig,C=e.customStyles,h=e.customIcons,p=e.searchQueryList,S=e.searchQueryReasoningIdList,m=e.citationConfig,v=e.chatHistory,x=e.chatCitationConfigs,y=e.gptCitationConfigs,I=e.aiReasoningAccordionOpenStates,R=e.persistedDataFiles,A=e.inlineUpdateComponentConfig,E=e.segmentComponentConfig,_=e.sectionStatusConfig,q=e.customSectionConfig,N=i.useState(0),b=N[0],j=N[1],L=i.useMemo(function(){if(0===a.length||0===c.length)return Array(a.length).fill(0);var e=Array.from({length:a.length},function(){return[]});return c.forEach(function(t){var n=Number(t.relevance_score);if(!(isNaN(n)||n<=0)){var i="ai_reasoning$".concat(t.id),r=a.findIndex(function(e){var t;return e.value.includes(i)||(null===(t=e.sub_features)||void 0===t?void 0:t.some(function(e){return e.value.includes(i)}))});-1!==r&&e[r].push(n)}}),e.map(function(e){return 0===e.length?0:Math.round(e.reduce(function(e,t){return e+t},0)/e.length)})},[a,c]),w=i.useCallback(function(e){var t,n=a.findIndex(function(t){return t.artifactId===e});return-1===n?0:null!==(t=L[n])&&void 0!==t?t:0},[a,L]);return n.jsx(o.Provider,t.__assign({value:{chatHistory:v,userStory:a,setUserStory:u,aiReasoning:c,setAiReasoning:g,citations:f,setCitations:l,apiCachingConfig:d,customStyles:C,customIcons:h,searchQueryList:p,searchQueryReasoningIdList:S,citationConfig:m,getAvgScoreForStory:w,chatCitationConfigs:x,gptCitationConfigs:y,aiReasoningAccordionOpenStates:I,persistedDataFiles:R,currentHighlightIndex:b,setCurrentHighlightIndex:j,inlineUpdateComponentConfig:A,segmentComponentConfig:E,sectionStatusConfig:_,customSectionConfig:q}},{children:n.jsx(r.RefProvider,{children:s})}))},exports.useRequirementAI=function(){var e=i.useContext(o);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),r=require("../../store/ref.context.js");exports.SectionStatus=void 0,(e=exports.SectionStatus||(exports.SectionStatus={})).WAITING="waiting",e.IN_PROGRESS="in_progress",e.GENERATED="generated",e.FAILED="failed",e.GENERATE="generate";var o=i.createContext(null);exports.default=function(e){var s=e.children,a=e.userStory,u=e.setUserStory,c=e.aiReasoning,g=e.setAiReasoning,f=e.citations,d=e.setCitations,l=e.apiCachingConfig,C=e.customStyles,h=e.customIcons,p=e.searchQueryList,S=e.searchQueryReasoningIdList,m=e.citationConfig,v=e.chatHistory,x=e.chatCitationConfigs,y=e.gptCitationConfigs,I=e.diffEditConfig,R=e.aiReasoningAccordionOpenStates,A=e.persistedDataFiles,E=e.inlineUpdateComponentConfig,_=e.segmentComponentConfig,q=e.sectionStatusConfig,N=e.customSectionConfig,b=i.useState(0),j=b[0],L=b[1],w=i.useMemo(function(){if(0===a.length||0===c.length)return Array(a.length).fill(0);var e=Array.from({length:a.length},function(){return[]});return c.forEach(function(t){var n=Number(t.relevance_score);if(!(isNaN(n)||n<=0)){var i="ai_reasoning$".concat(t.id),r=a.findIndex(function(e){var t;return e.value.includes(i)||(null===(t=e.sub_features)||void 0===t?void 0:t.some(function(e){return e.value.includes(i)}))});-1!==r&&e[r].push(n)}}),e.map(function(e){return 0===e.length?0:Math.round(e.reduce(function(e,t){return e+t},0)/e.length)})},[a,c]),D=i.useCallback(function(e){var t,n=a.findIndex(function(t){return t.artifactId===e});return-1===n?0:null!==(t=w[n])&&void 0!==t?t:0},[a,w]);return n.jsx(o.Provider,t.__assign({value:{chatHistory:v,userStory:a,setUserStory:u,aiReasoning:c,setAiReasoning:g,citations:f,setCitations:d,apiCachingConfig:l,customStyles:C,customIcons:h,searchQueryList:p,searchQueryReasoningIdList:S,citationConfig:m,getAvgScoreForStory:D,chatCitationConfigs:x,gptCitationConfigs:y,diffEditConfig:I,aiReasoningAccordionOpenStates:R,persistedDataFiles:A,currentHighlightIndex:j,setCurrentHighlightIndex:L,inlineUpdateComponentConfig:E,segmentComponentConfig:_,sectionStatusConfig:q,customSectionConfig:N}},{children:n.jsx(r.RefProvider,{children:s})}))},exports.useRequirementAI=function(){var e=i.useContext(o);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};
2
2
  //# sourceMappingURL=RequirementAIWrapper.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"),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)}})]}))]})};
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"),h=require("./components/EditorToolbar/EditorToolbar.js"),C=require("./plugins/LayoutPlugin.js"),v=require("./theme/theme.js");require("./theme/theme.css.js"),require("./Editor.css.js");var q=require("./components/Context/ContextMenu.js"),j=require("@lexical/mark"),N=require("./plugins/CommentPlugin/HTMLNode.js"),y=require("./constants/editorConfig.js"),T=require("./plugins/InitialHtml.js"),b=require("./plugins/InsertNode.js"),S=require("./plugins/DeleteNode.js"),L=require("./plugins/HighlightNode.js"),_=require("@lexical/react/LexicalComposerContext");function P(e){console.log(e)}function I(){var e=_.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(_){var R,E,k,B=_.minHeight,D=_.height,H=_.placeholder,M=_.onFocus,O=_.onBlur,A=_.onChange,w=_.onToolbarButtonClick,$=_.toolbarConfig,F=void 0===$?y.DEFAULT_TOOLBAR_CONFIG:$,W=_.editorRef,Y=_.editorState,V=_.initialString,G=_.customToolbar,K=_.plugins;_.nodes,_.dynamicHeight,_.artifactContext,_.commentsPanelState;var Q=_.mode,U=_.doNotShowBorderInViewMode,X=i.useRef(null),z={namespace:"MyEditor",theme:v.default,onError:P,nodes:[f.TextNode,a.ListNode,a.ListItemNode,c.LinkNode,d.QuoteNode,d.HeadingNode,x.TableNode,x.TableRowNode,x.TableCellNode,j.MarkNode,N.default,b.InsertNode,S.DeleteNode,L.HighlightSpanNode,L.HighlightButtonNode],editorState:Y},J=i.useState(null),Z=J[0],ee=J[1],te=i.useState(!1),ie=te[0],re=te[1],ne=p.useRequirementAI().customStyles,oe=function(e){var t;null===(t=W.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===(R=null==ne?void 0:ne.textEditorStyles)||void 0===R?void 0:R.themeStyles)&&t.jsx("style",{children:null===(E=null==ne?void 0:ne.textEditorStyles)||void 0===E?void 0:E.themeStyles}),t.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 t;e.preventDefault(),null===(t=W.current)||void 0===t||t.update(function(){var t=f.$getSelection();f.$isRangeSelection(t)&&!t.isCollapsed()?(re(!0),ee({x:e.clientX,y:e.clientY})):(re(!1),ee(null))})},style:e.__assign({minHeight:B,height:D},null===(k=null==ne?void 0:ne.textEditorStyles)||void 0===k?void 0:k.textArea)},{children:[t.jsxs(r.LexicalComposer,e.__assign({initialConfig:z},{children:[" ","edit"===Q&&t.jsx(I,{}),"edit"===Q&&t.jsx(h.default,{onToolbarButtonClick:w,editorWrapperRef:X,toolbarConfig:F,customToolbar:G,editorRef:W}),t.jsx(m.default,{placeholder:H}),t.jsx(l.TabIndentationPlugin,{}),t.jsx(n.HistoryPlugin,{}),t.jsx(u.ListPlugin,{}),t.jsx(s.LinkPlugin,{}),t.jsx(g.TablePlugin,{}),t.jsx(C.LayoutPlugin,{onFocus:M,onBlur:O,editorRef:W}),t.jsx(o.OnChangePlugin,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:function(e,t,i){A&&A(e,t,i)}}),V&&t.jsx(T.InitialHtml,{initialValue:V.value,initialFormat:V.type,mode:Q}),K&&K]})),Z&&ie&&"edit"===Q&&t.jsx(q.default,{position:Z,options:[{label:"Change Color to Red",action:function(){return oe("red")}},{label:"Change Color to Blue",action:function(){return oe("blue")}}],onClose:function(){ee(null)}})]}))]})};
2
2
  //# sourceMappingURL=Editor.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("lexical"),e=function(i){function e(t,e,h){void 0===e&&(e=null);var n=i.call(this,h)||this;return n.__highlightId=t,n.__highlightColor=e,n}return t.__extends(e,i),e.getType=function(){return"highlight-span"},e.clone=function(t){return new e(t.__highlightId,t.__highlightColor,t.__key)},e.prototype.createDOM=function(){return this.createHighlightElement()},e.prototype.exportDOM=function(){return{element:this.createHighlightElement()}},e.prototype.createHighlightElement=function(){var t=document.createElement("span");return t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightColor&&t.setAttribute("highlight-color",this.__highlightColor),t},e.prototype.updateDOM=function(t,i){return t.__highlightId!==this.__highlightId&&i.setAttribute("highlight-id",this.__highlightId),t.__highlightColor!==this.__highlightColor&&(null===this.__highlightColor?i.removeAttribute("highlight-color"):i.setAttribute("highlight-color",this.__highlightColor)),!1},e.importDOM=function(){return{span:function(t){return t.hasAttribute("highlight-id")?{conversion:h,priority:1}:null}}},e.importJSON=function(t){var i=new e(t.highlightId,t.highlightColor);return i.setFormat(t.format),i.setIndent(t.indent),i.setDirection(t.direction),i},e.prototype.exportJSON=function(){return t.__assign(t.__assign({},i.prototype.exportJSON.call(this)),{type:"highlight-span",version:1,highlightId:this.__highlightId,highlightColor:this.__highlightColor})},e.prototype.isInline=function(){return!0},e}(i.ElementNode);function h(t){return{node:new e(t.getAttribute("highlight-id")||"",t.getAttribute("highlight-color"))}}var n=function(i){function e(t,e,h){void 0===t&&(t=null),void 0===e&&(e=null);var n=i.call(this,h)||this;return n.__highlightId=t,n.__highlightType=e,n}return t.__extends(e,i),e.getType=function(){return"highlight-button"},e.clone=function(t){return new e(t.__highlightId,t.__highlightType,t.__key)},e.prototype.createDOM=function(t){var i=this.createHighlightButtonElement(),e=t.theme.highlightButton;return"string"==typeof e&&(i.className=e),i.contentEditable="false",i},e.prototype.exportDOM=function(){return{element:this.createHighlightButtonElement()}},e.prototype.createHighlightButtonElement=function(){var t=document.createElement("button");return t.setAttribute("action","highlight"),null!==this.__highlightId&&t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightType&&t.setAttribute("highlight-type",this.__highlightType),t},e.prototype.updateDOM=function(){return!1},e.importDOM=function(){return{button:function(t){return"highlight"!==t.getAttribute("action")?null:{conversion:r,priority:1}}}},e.importJSON=function(t){var i=new e(t.highlightId,t.highlightType);return i.setFormat(t.format),i.setIndent(t.indent),i.setDirection(t.direction),i},e.prototype.exportJSON=function(){return t.__assign(t.__assign({},i.prototype.exportJSON.call(this)),{type:"highlight-button",version:1,highlightId:this.__highlightId,highlightType:this.__highlightType})},e.prototype.isInline=function(){return!0},e}(i.ElementNode);function r(t){return{node:new n(t.getAttribute("highlight-id"),t.getAttribute("highlight-type"))}}exports.HighlightButtonNode=n,exports.HighlightSpanNode=e;
2
+ //# sourceMappingURL=HighlightNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HighlightNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__delete-node{text-decoration:var(--delete-node-text-decoration,line-through);text-decoration-color:var(--delete-node-decoration-color,#dc2626);text-decoration-thickness:var(--delete-node-decoration-thickness,2px)}.PlaygroundEditorTheme__insert-node{background-color:var(--insert-node-bg,#dbeafe);border-radius:var(--insert-node-border-radius,2px);color:var(--insert-node-color,#1e3a8a);padding:var(--insert-node-padding,1px 2px);text-decoration:var(--insert-node-text-decoration,none)}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}(),exports.default=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__delete-node{text-decoration:var(--delete-node-text-decoration,line-through);text-decoration-color:var(--delete-node-decoration-color,#dc2626);text-decoration-thickness:var(--delete-node-decoration-thickness,2px)}.PlaygroundEditorTheme__insert-node{background-color:var(--insert-node-bg,#dbeafe);border-radius:var(--insert-node-border-radius,2px);color:var(--insert-node-color,#1e3a8a);padding:var(--insert-node-padding,1px 2px);text-decoration:var(--insert-node-text-decoration,none)}.PlaygroundEditorTheme__highlight-button{display:none}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}(),exports.default=e;
2
2
  //# sourceMappingURL=theme.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./theme.css.js");exports.default={characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",operator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},image:"editor-image",link:"PlaygroundEditorTheme__link",list:{listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"},deleteNode:"PlaygroundEditorTheme__delete-node",insertNode:"PlaygroundEditorTheme__insert-node"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./theme.css.js");exports.default={characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",operator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},image:"editor-image",link:"PlaygroundEditorTheme__link",list:{listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"},deleteNode:"PlaygroundEditorTheme__delete-node",insertNode:"PlaygroundEditorTheme__insert-node",highlightButton:"PlaygroundEditorTheme__highlight-button"};
2
2
  //# sourceMappingURL=theme.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("./Editor/constants/editorConfig.js"),o=require("./Editor/Editor.js"),a=require("../../store/ref.context.js"),i=require("@lexical/html"),u=require("turndown"),c=require("turndown-plugin-gfm");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=new(l(u).default)({headingStyle:"atx",codeBlockStyle:"fenced"});d.keep(["ins","del","mark"]),d.keep(function(e){var t,r;return"A"===e.nodeName&&null!==(r=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.includes("ai_reasoning$"))&&void 0!==r&&r}),d.addRule("md-table-passthrough",{filter:function(e){return"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table")},replacement:function(e,t){return t.textContent||""}}),d.use(c.tables);exports.default=function(u){var c=u.type,l=u.value,s=u.handleUpdateState,f=u.onBlur,h=u.placeholder,g=u.minHeight,p=u.height,m=u.mode,v=u.doNotShowBorderInViewMode,E=r.useRef(null),A=r.useState({type:c,value:l}),b=A[0],y=A[1],w=r.useState(0),x=w[0],S=w[1],q=a.useRefStore(),_=q.contentRef;q.setContentRef;r.useEffect(function(){y(function(t){return e.__assign(e.__assign({},t),{value:l})})},[l]);return r.useEffect(function(){var e=function(){_&&_.current&&S(_.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[_]),t.jsx(t.Fragment,{children:t.jsx(o.default,{minHeight:g,height:p,placeholder:h||"Enter some text...",onChange:function(e,t){e.read(function(){var e=i.$generateHtmlFromNodes(t,null),r=(new DOMParser).parseFromString(e,"text/html");function n(e){return Array.from(e.childNodes).map(function(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";if(e.nodeType===Node.ELEMENT_NODE){var t=e,r=t.tagName.toLowerCase(),o=n(t);if("strong"===r||"b"===r)return o.startsWith("<strong>")&&o.endsWith("</strong>")?o:"<strong>".concat(o,"</strong>");if("em"===r||"i"===r)return o.startsWith("<em>")&&o.endsWith("</em>")?o:"<em>".concat(o,"</em>");if("code"===r)return"<code>".concat(o,"</code>");if("u"===r)return"<u>".concat(o,"</u>");if("s"===r)return"<s>".concat(o,"</s>");if("a"===r){var a=t.getAttribute("href")||"";return'<a href="'.concat(a,'">').concat(o,"</a>")}return o}return""}).join("")}r.querySelectorAll("span").forEach(function(e){var t=e.getAttribute("style")||"";t.includes("background-color")&&t.includes("rgb(219, 234, 254)")&&e.setAttribute("data-review","insert"),t.includes("text-decoration")&&t.includes("line-through")&&e.setAttribute("data-review","delete")}),r.querySelectorAll("strong code").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll("code strong").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e){e.innerHTML=n(e)});var o=[];r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e,t){o.push(e.outerHTML);var n=r.createElement("span");n.textContent="%%REVIEW_".concat(t,"%%"),e.replaceWith(n)});var a=[];r.querySelectorAll("table").forEach(function(e,t){a.push(e.outerHTML);var n=r.createElement("p");n.textContent="%%TABLE_".concat(t,"%%"),e.replaceWith(n)});var u=d.turndown(r.body.innerHTML);o.forEach(function(e,t){u=u.replace("%%REVIEW\\_".concat(t,"%%"),e)}),a.forEach(function(e,t){u=u.replace("%%TABLE\\_".concat(t,"%%"),"\n\n".concat(e,"\n\n"))}),function(e,t){s(e,t)}("prompt",u=u.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"))})},toolbarConfig:n.DEFAULT_TOOLBAR_CONFIG,editorRef:E,mode:m,initialString:{type:b.type,value:b.value},dynamicHeight:x,onBlur:f,doNotShowBorderInViewMode:v||!1})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("./Editor/constants/editorConfig.js"),o=require("./Editor/Editor.js"),i=require("../../store/ref.context.js"),a=require("@lexical/html"),u=require("turndown"),c=require("turndown-plugin-gfm");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=new(l(u).default)({headingStyle:"atx",codeBlockStyle:"fenced"});d.keep(["ins","del","mark"]),d.keep(function(e){var t,r;return"A"===e.nodeName&&null!==(r=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.includes("ai_reasoning$"))&&void 0!==r&&r}),d.keep(function(e){return"SPAN"===e.nodeName&&e.hasAttribute("highlight-id")}),d.addRule("md-table-passthrough",{filter:function(e){return"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table")},replacement:function(e,t){return t.textContent||""}}),d.use(c.tables);exports.default=function(u){var c=u.type,l=u.value,s=u.handleUpdateState,f=u.onBlur,h=u.placeholder,g=u.minHeight,p=u.height,m=u.mode,v=u.doNotShowBorderInViewMode,E=r.useRef(null),A=r.useState({type:c,value:l}),b=A[0],y=A[1],w=r.useState(0),x=w[0],S=w[1],q=i.useRefStore(),N=q.contentRef;q.setContentRef;r.useEffect(function(){y(function(t){return e.__assign(e.__assign({},t),{value:l})})},[l]);return r.useEffect(function(){var e=function(){N&&N.current&&S(N.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[N]),t.jsx(t.Fragment,{children:t.jsx(o.default,{minHeight:g,height:p,placeholder:h||"Enter some text...",onChange:function(e,t){e.read(function(){var e=a.$generateHtmlFromNodes(t,null),r=(new DOMParser).parseFromString(e,"text/html");function n(e){return Array.from(e.childNodes).map(function(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";if(e.nodeType===Node.ELEMENT_NODE){var t=e,r=t.tagName.toLowerCase(),o=n(t);if("strong"===r||"b"===r)return o.startsWith("<strong>")&&o.endsWith("</strong>")?o:"<strong>".concat(o,"</strong>");if("em"===r||"i"===r)return o.startsWith("<em>")&&o.endsWith("</em>")?o:"<em>".concat(o,"</em>");if("code"===r)return"<code>".concat(o,"</code>");if("u"===r)return"<u>".concat(o,"</u>");if("s"===r)return"<s>".concat(o,"</s>");if("a"===r){var i=t.getAttribute("href")||"";return'<a href="'.concat(i,'">').concat(o,"</a>")}return o}return""}).join("")}r.querySelectorAll("span").forEach(function(e){var t=e.getAttribute("style")||"";t.includes("background-color")&&t.includes("rgb(219, 234, 254)")&&e.setAttribute("data-review","insert"),t.includes("text-decoration")&&t.includes("line-through")&&e.setAttribute("data-review","delete")}),r.querySelectorAll("strong code").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll("code strong").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e){e.innerHTML=n(e)});var o=[];r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e,t){o.push(e.outerHTML);var n=r.createElement("span");n.textContent="%%REVIEW_".concat(t,"%%"),e.replaceWith(n)});var i=[];r.querySelectorAll("table").forEach(function(e,t){i.push(e.outerHTML);var n=r.createElement("p");n.textContent="%%TABLE_".concat(t,"%%"),e.replaceWith(n)});var u=d.turndown(r.body.innerHTML);o.forEach(function(e,t){u=u.replace("%%REVIEW\\_".concat(t,"%%"),e)}),i.forEach(function(e,t){u=u.replace("%%TABLE\\_".concat(t,"%%"),"\n\n".concat(e,"\n\n"))}),function(e,t){s(e,t)}("prompt",u=u.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"))})},toolbarConfig:n.DEFAULT_TOOLBAR_CONFIG,editorRef:E,mode:m,initialString:{type:b.type,value:b.value},dynamicHeight:x,onBlur:f,doNotShowBorderInViewMode:v||!1})})};
2
2
  //# sourceMappingURL=RichTextEditor.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),o=require("rehype-raw"),a=require("./UserStoryWithCitation.module.css.js"),r=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),d=require("@mui/material"),s=require("dompurify"),c=require("../../shared/UpdatedAnimationContent.js"),u=require("../../shared/GeneratedCodeCitation.js"),v=require("../../shared/CitationLoadingIndicator.js"),g=require("../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("../../icons/CognitiveDecision.js"),p=require("../../icons/BrainRed.js"),h=require("../ai-reasoning/AiReasoningCitation.js"),m=require("../../icons/RelevanceScoreIcon.js"),C=require("../RecommendationBlock/RecommendationBlock.js"),_=require("../UserStoryCard/AttachedContext.js"),x=require("../ai-reasoning/AiReasoningCitationContent.js"),j=require("./components/InlineUpdatedComponent.js"),y=require("../segment/SegmentWrapper.js"),S=require("../../store/markdown-context.js");function R(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var I=R(i),w=R(t),b=R(o),N=R(s),k=i.createContext(!1),A=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),q=i.createContext({rowId:""}),E=function(t){var o,r=t.aiReason,l=t.isHighConfidence,d=t.customStyle,s=t.customIcons,c=i.useContext(A),u=c.expandedInfo,v=c.setExpanded,g=c.reasonToRow,h=i.useContext(q).rowId,m=String(r.id);h&&g.current.set(m,h);var C=(null===(o=null==u?void 0:u.aiReason)||void 0===o?void 0:o.id)===r.id,_=l?(null==s?void 0:s.highConfidence)||n.jsx(f.default,{}):(null==s?void 0:s.lowConfidence)||n.jsx(p.default,{});return n.jsxs("button",e.__assign({className:a.default.aiReasoningButton,style:d,onClick:function(e){e.stopPropagation(),e.preventDefault(),v(C?null:h,C?null:r)}},{children:[_,C?n.jsx("i",{className:"pi pi-angle-up ".concat(l?a.default.aiReasoningIconHighConfidence:a.default.aiReasoningIconLowConfidence)}):n.jsx("i",{className:"pi pi-angle-down ".concat(l?a.default.aiReasoningIconHighConfidence:a.default.aiReasoningIconLowConfidence)})]}))},M=function(t){var o,r,l=t.children,d=t.node,s=t.customStyles,c=t.customIcons,u=i.useRef(Math.random().toString(36).slice(2)).current,v=i.useContext(A).expandedInfo,g=(null==v?void 0:v.rowId)===u,f=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,p=null!==(r=null===(o=null==d?void 0:d.properties)||void 0===o?void 0:o.style)&&void 0!==r?r:void 0;return n.jsxs(q.Provider,e.__assign({value:{rowId:u}},{children:[n.jsx("tr",e.__assign({style:p?{cssText:p}:void 0},{children:l})),g&&(null==v?void 0:v.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:f||1,className:a.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellInner},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellContent},{children:n.jsx(x.default,{aiReason:v.aiReason,customIcons:c,customStyles:{aiReasoningContent:null==s?void 0:s.aiReasoningContent,aiReasoningAccordion:null==s?void 0:s.aiReasoningAccordion,aiReasoningMarkdown:null==s?void 0:s.aiReasoningMarkdown,aiReasoningPill:null==s?void 0:s.aiReasoningPill,webCitation:null==s?void 0:s.webCitation,stormeeCitation:null==s?void 0:s.stormeeCitation,waveformCitation:null==s?void 0:s.waveformCitation,imageCitation:null==s?void 0:s.imageCitation,fileCitation:null==s?void 0:s.fileCitation,appModCitation:null==s?void 0:s.appModCitation,rcaCitation:null==s?void 0:s.rcaCitation,readFileCitation:null==s?void 0:s.readFileCitation,loadingCitations:null==s?void 0:s.loadingCitations,chatCitation:null==s?void 0:s.chatCitation}})}))}))}))}))]}))};var U=["del","ins"];function T(e){return function(e,n,i){var t=n.join("|");return e.replace(new RegExp("<(".concat(t,")>([\\s\\S]*?)<\\/\\1>"),"gi"),function(e,n,t){return"<".concat(n,">").concat(i(t),"</").concat(n,">")})}(e,U,function(e){return e.split(/(<[^>]+>)/g).map(function(e){return!e||/^<[^>]+>$/.test(e)?e:function(e){if(!e)return e;var n=[];return e.replace(/`([^`\n]+)`/g,function(e,i){var t=n.push(i)-1;return"@@CODE_SPAN_".concat(t,"@@")}).replace(/\*\*([\s\S]+?)\*\*/g,"<strong>$1</strong>").replace(/__([\s\S]+?)__/g,"<strong>$1</strong>").replace(/@@CODE_SPAN_(\d+)@@/g,function(e,i){var t,o=null!==(t=n[Number(i)])&&void 0!==t?t:"";return"<code>".concat(o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),"</code>")})}(e)}).join("")})}exports.default=function(t){var o,s=t.message,f=t.noMarkdownContent,p=t.useMarkdown,x=void 0===p||p,R=t.isParent,q=t.scenario,U=t.showUserStoryDiff,L=void 0!==U&&U,P=t.aiReasoningsForBlock,$=t.isCitationLoadingDisplay,D=void 0!==$&&$,H=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var O=t.customStyles,F=t.customIcons,B=t.contextVariant,W=t.aiReasoningDiffView,z=t.userStoryCitations,V=t.artifactId,G=t.isCraflow,Q=t.onCraAccept,J=t.onCraReject,K=t.craFlowConfig,X=t.isDisplayHighlightControl,Y=void 0!==X&&X,Z=t.showConfidenceScore,ee=void 0===Z||Z,ne=i.useRef(null),ie=g.useRequirementAI(),te=ie.userStory,oe=ie.inlineUpdateComponentConfig,ae=ie.getAvgScoreForStory,re=ie.setUserStory,le=ie.aiReasoning,de=ie.setAiReasoning,se=ie.customIcons,ce=ie.searchQueryList,ue=ie.searchQueryReasoningIdList,ve=ie.currentHighlightIndex,ge=ie.segmentComponentConfig,fe=null!=F?F:null==se?void 0:se.userStoryIcons;null==O||O.searchHighlight;var pe=r.useMarkdownSearch(ne),he=pe.search,me=pe.clear,Ce=i.useState("1"),_e=Ce[0],xe=Ce[1],je=i.useState(null),ye=je[0],Se=je[1],Re=i.useRef(new Map),Ie=i.useCallback(function(e,n){Se(e&&n?{rowId:e,aiReason:n}:null)},[]),we=V?ae(V):0,be=i.useState([]),Ne=be[0],ke=be[1],Ae=function(e){return null==e?"":"string"==typeof e?e:"number"==typeof e?String(e):Array.isArray(e)?e.map(Ae).join(""):I.default.isValidElement(e)?Ae(e.props.children):""},qe=function(e){var n=e;return n=function(e){for(var n,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,t=[],o=new RegExp(i.source,i.flags);null!==(n=o.exec(e));){var a=n[0],r=a.match(/<deleted>([\s\S]*?)<\/deleted>/i),l=a.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(e){return(e.match(/^\s*\d+\.\s/gm)||[]).length};t.push({index:n.index,endIndex:n.index+n[0].length,deletedItemCount:d((null==r?void 0:r[1])||""),changedItemCount:d((null==l?void 0:l[1])||"")})}if(0===t.length)return e;for(var s=e,c=function(e){var n=t[e],i=n.changedItemCount-n.deletedItemCount;if(0===i)return"continue";for(var o=!1,a=0,r=s.substring(0,n.index).split("\n").reverse();a<r.length;a++){var l=r[a].trim();if(""!==l){/^\d+\.\s/.test(l)&&(o=!0);break}}if(!o)return"continue";var d=n.endIndex,c=e+1<t.length?t[e+1].index:s.length,u=s.substring(d,c);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(e,n,t){return"".concat(n).concat(parseInt(t,10)+i,". ")}),s=s.substring(0,d)+u+s.substring(c)},u=t.length-1;u>=0;u--)c(u);return s}(n=(n=(n=(n=(n=(n=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,function(e,n,i,t,o){var a=t.match(/<table[\s\S]*?<\/table>/i);if(a){var r=btoa(encodeURIComponent(a[0]));return"<segment".concat(i,' data-table="').concat(r,'"></segment>')}return e})).replace(/<updatedsegment([^>]*)>([\s\S]*?)<\/updatedsegment>/gi,function(e,n,i){if(/<table[\s>]/i.test(i)){var t=btoa(encodeURIComponent(i));return"<updatedsegment".concat(n,' data-raw="').concat(t,'"></updatedsegment>')}return e})).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(e,i,t,o){var a=n.substring(0,o),r=a.lastIndexOf("\n"),l=/^\s+[-*]\s/.test(a.substring(r+1))||/^\s+\d+\.\s/.test(a.substring(r+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(a.substring(r+1));if(l||d){var s=t;return s=(s=(s=(s=s.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(s,"</updated>")}return e})),n=function(e){var n=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==n}),"<deleted>".concat(i,"</deleted>")});return n.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==n,preview:n.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(n),n=T(n)},Ee=i.useMemo(function(){return s?qe(s):s},[s]);i.useEffect(function(){ke(P||le)},[P,le]);var Me=i.useMemo(function(){return{upt:function(i){var t;i.node;var o=i.children,a=e.__rest(i,["node","children"]),r=null==a?void 0:a.id,l=r?null===(t=r.split("$"))||void 0===t?void 0:t[1]:null,d=le.find(function(e){return e.id.toString()===l});return d?n.jsx(j.default,e.__assign({aiReason:d,customStyles:null==O?void 0:O.inlineUpdatedComponent,handleClickCognitiveDecision:null==oe?void 0:oe.handleClickCognitiveDecision,handleClickUpdatedPill:null==oe?void 0:oe.handleClickUpdatedPill,handleClickOutputValue:null==oe?void 0:oe.handleClickOutputValue,customIcons:null==oe?void 0:oe.customIcons},{children:o})):o},del:function(i){var t,o,r,l;i.node;var d=i.children,s=e.__rest(i,["node","children"]),c=s.aireason,u=c&&(null===(t=c.deviation_details)||void 0===t?void 0:t.resolved)&&("rejected"===(null===(o=c.deviation_details)||void 0===o?void 0:o.resolved)||"reverted"===(null===(r=c.deviation_details)||void 0===r?void 0:r.resolved));return n.jsx("span",e.__assign({className:a.default.deleted,style:e.__assign(e.__assign({},null!==(l=null==O?void 0:O.deleted)&&void 0!==l?l:{}),{textDecoration:u?"none":"line-through"})},s,{onClick:s.onclick},{children:d}))},ins:function(i){var t=i.children,o=e.__rest(i,["children"]);return n.jsx("span",e.__assign({className:a.default.inserted,style:null==O?void 0:O.inserted},o,{onClick:o.onclick},{children:t}))},preserved:function(i){var t=i.children,o=e.__rest(i,["children"]);return n.jsx("span",e.__assign({className:a.default.preserved,style:null==O?void 0:O.preserved},o,{onClick:o.onclick},{children:t}))},h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:a.default.heading1,style:null==O?void 0:O.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:a.default.heading2,style:null==O?void 0:O.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:a.default.heading3,style:null==O?void 0:O.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:a.default.bold,style:null==O?void 0:O.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:a.default.paragraph,style:null==O?void 0:O.paragraph},{children:t.children}))},updated:function(i){var t=i.node,o=e.__rest(i,["node"]);return n.jsx(c.default,e.__assign({},o,{showUserStoryDiff:L,currentUpdatedTagId:_e,setCurrentUpdatedTagId:xe,userStory:te,setUserStory:re,setAiReasoning:de,node:t,isCraflow:G,onCraAccept:Q,onCraReject:J,customStyles:null==O?void 0:O.updatedContent,craFlowConfig:K}))},ol:function(i){var t,o,r,l=i.node,d=e.__rest(i,["node"]),s=null!==(r=null!==(o=null===(t=null==l?void 0:l.properties)||void 0===t?void 0:t.start)&&void 0!==o?o:null==d?void 0:d.start)&&void 0!==r?r:void 0;return n.jsx("ol",e.__assign({className:a.default.orderedList,style:null==O?void 0:O.olist},s?{start:Number(s)}:{},{children:null==d?void 0:d.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:a.default.unorderedList,style:null==O?void 0:O.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:a.default.tableWrapper},{children:n.jsx("table",e.__assign({className:a.default.table,style:null==O?void 0:O.table},{children:t}))}))},tr:function(e){var i=e.node,t=e.children;return n.jsx(M,{node:i,children:t,customStyles:O})},td:function(i){var t,o=i.node,a=i.children,r=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},l=r.style,d=e.__rest(r,["style"]);return n.jsx(k.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},d,{style:l?{cssText:l}:void 0},{children:a}))}))},th:function(i){var t,o=i.node,a=i.children,r=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},l=r.style,d=e.__rest(r,["style"]);return n.jsx(k.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},d,{style:l?{cssText:l}:void 0},{children:a}))}))},recommendation:function(i){var t;i.node;var o=e.__rest(i,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==o?void 0:o.children)||void 0===t?void 0:t[0])||"");return n.jsx(C.default,e.__assign({},o,{customStyles:null==O?void 0:O.recommendationBlock,label:a}))},a:function(t){var o,a,r;t.inline;var l=t.children;t.node;var d=e.__rest(t,["inline","children","node"]),s=i.useContext(k)||"true"==(null==d?void 0:d.table),c="".concat(null==d?void 0:d.href),u=null===(o=c.split("$"))||void 0===o?void 0:o[0],v=null===(a=c.split("$"))||void 0===a?void 0:a[1];if("ai_reasoning"===u){var g=(null!==(r=L?W:le)&&void 0!==r?r:[]).find(function(e){return e.id.toString()===decodeURIComponent(v)}),f=ue.includes(v);if(g){if(s)return n.jsx(E,{aiReason:g,customStyle:null==O?void 0:O.tableAiReasoning,customIcons:fe,isHighConfidence:g.relevance_score>=h.SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING});var p="source"!==I.default.Children.toArray(l).join("").trim().toLowerCase();return n.jsx(h.default,{aiReason:g,isSourceHasHighlight:f,inlineLabel:l,isInlineCitation:p,customIcons:fe,customStyles:{aiReasoningContent:null==O?void 0:O.aiReasoningContent,aiReasoningAccordion:null==O?void 0:O.aiReasoningAccordion,aiReasoningMarkdown:null==O?void 0:O.aiReasoningMarkdown,aiReasoningPill:null==O?void 0:O.aiReasoningPill,webCitation:null==O?void 0:O.webCitation,stormeeCitation:null==O?void 0:O.stormeeCitation,waveformCitation:null==O?void 0:O.waveformCitation,imageCitation:null==O?void 0:O.imageCitation,fileCitation:null==O?void 0:O.fileCitation,appModCitation:null==O?void 0:O.appModCitation,rcaCitation:null==O?void 0:O.rcaCitation,readFileCitation:null==O?void 0:O.readFileCitation,loadingCitations:null==O?void 0:O.loadingCitations,chatCitation:null==O?void 0:O.chatCitation,bigEnoughCitation:null==O?void 0:O.bigEnoughCitation}})}}return null},code:function(i){i.inline;var t=i.children,o=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:a.default.blockCode,style:null==O?void 0:O.code},{children:t}))}):n.jsx("code",e.__assign({className:a.default.inlineCode,style:null==O?void 0:O.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(d.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(l.Info,{size:16,className:a.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),o=(null==t?void 0:t.language)||"python",a=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(t);return n.jsx(u.default,{title:"Generated Code",code:a,language:o,customStyles:{pill:null==O?void 0:O.generatedCodePill,content:null==O?void 0:O.generatedCodeContent}})},updatedsegment:function(i){var t,o,a,r,l=i.node,d=i.children,s=e.__rest(i,["node","children"]),c="".concat(null===(t=l.position)||void 0===t?void 0:t.start.line,"-").concat(null===(o=l.position)||void 0===o?void 0:o.start.column,"-").concat(null===(a=l.position)||void 0===a?void 0:a.end.line,"-").concat(null===(r=l.position)||void 0===r?void 0:r.end.column),u=function(e){if(!e["data-raw"])return null;try{return decodeURIComponent(atob(e["data-raw"]))}catch(e){return console.error("Error decoding segment raw content:",e),null}}(s),v=u?n.jsx("div",{dangerouslySetInnerHTML:{__html:N.default.sanitize(u)}}):n.jsx("div",{children:d});return n.jsx(y.default,{id:c,node:l,children:v,props:s,segmentComponentConfig:ge,customStyles:O,customIcons:F,extractText:Ae,isUpdatedSegment:!0})},segment:function(i){var t,o,a,r,l=i.node,d=i.children,s=e.__rest(i,["node","children"]),c="".concat(null===(t=l.position)||void 0===t?void 0:t.start.line,"-").concat(null===(o=l.position)||void 0===o?void 0:o.start.column,"-").concat(null===(a=l.position)||void 0===a?void 0:a.end.line,"-").concat(null===(r=l.position)||void 0===r?void 0:r.end.column);return n.jsx(y.default,{id:c,node:l,children:d,props:s,segmentComponentConfig:ge,customStyles:O,customIcons:F,extractText:Ae})}}},[Ne,K,le,z,_e,L,s,F,ce,ue,O,ge]);return i.useEffect(function(){if(ne.current){if(ce.length){var e;if(0===ue.length||Y)requestAnimationFrame(function(){he([ce[ve].replace(/\*/g,"")])});else{var n=ne.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){he([ce[ve].replace(/\*/g,"")])})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}me()}},[ce,ue,ve,Y]),n.jsx(A.Provider,e.__assign({value:{expandedInfo:ye,setExpanded:Ie,reasonToRow:Re}},{children:n.jsxs("div",e.__assign({ref:ne,className:"".concat(a.default.container," ").concat("approving"!==q?a.default.wrapper:""," ").concat(H||""),style:null==O?void 0:O.container},{children:[x?n.jsx(S.MarkdownContextProvider,{children:n.jsx(w.default,e.__assign({components:Me,rehypePlugins:[b.default]},{children:Ee}))}):f,we>0&&ee&&n.jsx("div",e.__assign({className:a.default.confidenceScoreContainer,style:null==O?void 0:O.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:a.default.confidenceScore,style:null==O?void 0:O.confidenceScore},{children:[n.jsx(m.default,{size:14,color:(null==O?void 0:O.confidenceScoreIconColor)||"#166534"}),we,"%"]}))})),D&&n.jsx("div",e.__assign({className:a.default.citationLoader,style:null==O?void 0:O.citationLoaderContainer},{children:n.jsx(v.default,{customStyles:{container:null==O?void 0:O.citationLoadingContainer,icon:null==O?void 0:O.citationLoadingIcon,text:null==O?void 0:O.citationLoadingText}})})),R&&n.jsx("div",e.__assign({style:e.__assign({},null===(o=null==O?void 0:O.attachedContext)||void 0===o?void 0:o.wrapper),className:"flex mt-5"},{children:n.jsx(_.default,{customStyles:null==O?void 0:O.attachedContext,variant:B})}))]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),o=require("rehype-raw"),l=require("./UserStoryWithCitation.module.css.js"),a=require("../../shared/useMarkdownSearch.js"),r=require("lucide-react"),d=require("@mui/material"),s=require("dompurify"),c=require("../../shared/UpdatedAnimationContent.js"),u=require("../../shared/GeneratedCodeCitation.js"),v=require("../../shared/CitationLoadingIndicator.js"),g=require("../RequirementAIWrapper/RequirementAIWrapper.js"),h=require("../../icons/CognitiveDecision.js"),f=require("../../icons/BrainRed.js"),p=require("../ai-reasoning/AiReasoningCitation.js"),m=require("../../icons/RelevanceScoreIcon.js"),C=require("../RecommendationBlock/RecommendationBlock.js"),_=require("../UserStoryCard/AttachedContext.js"),x=require("../ai-reasoning/AiReasoningCitationContent.js"),j=require("./components/InlineUpdatedComponent.js"),y=require("../segment/SegmentWrapper.js"),S=require("../../store/markdown-context.js"),w=require("./components/HighlightButtonComponent.js");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var R=I(i),b=I(t),N=I(o),k=I(s),q=i.createContext(!1),A=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),E=i.createContext({rowId:""}),M=function(t){var o,a=t.aiReason,r=t.isHighConfidence,d=t.customStyle,s=t.customIcons,c=i.useContext(A),u=c.expandedInfo,v=c.setExpanded,g=c.reasonToRow,p=i.useContext(E).rowId,m=String(a.id);p&&g.current.set(m,p);var C=(null===(o=null==u?void 0:u.aiReason)||void 0===o?void 0:o.id)===a.id,_=r?(null==s?void 0:s.highConfidence)||n.jsx(h.default,{}):(null==s?void 0:s.lowConfidence)||n.jsx(f.default,{});return n.jsxs("button",e.__assign({className:l.default.aiReasoningButton,style:d,onClick:function(e){e.stopPropagation(),e.preventDefault(),v(C?null:p,C?null:a)}},{children:[_,C?n.jsx("i",{className:"pi pi-angle-up ".concat(r?l.default.aiReasoningIconHighConfidence:l.default.aiReasoningIconLowConfidence)}):n.jsx("i",{className:"pi pi-angle-down ".concat(r?l.default.aiReasoningIconHighConfidence:l.default.aiReasoningIconLowConfidence)})]}))},U=function(t){var o,a,r=t.children,d=t.node,s=t.customStyles,c=t.customIcons,u=i.useRef(Math.random().toString(36).slice(2)).current,v=i.useContext(A).expandedInfo,g=(null==v?void 0:v.rowId)===u,h=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(a=null===(o=null==d?void 0:d.properties)||void 0===o?void 0:o.style)&&void 0!==a?a:void 0;return n.jsxs(E.Provider,e.__assign({value:{rowId:u}},{children:[n.jsx("tr",e.__assign({style:f?{cssText:f}:void 0},{children:r})),g&&(null==v?void 0:v.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:h||1,className:l.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:l.default.tableExpandedCellInner},{children:n.jsx("div",e.__assign({className:l.default.tableExpandedCellContent},{children:n.jsx(x.default,{aiReason:v.aiReason,customIcons:c,customStyles:{aiReasoningContent:null==s?void 0:s.aiReasoningContent,aiReasoningAccordion:null==s?void 0:s.aiReasoningAccordion,aiReasoningMarkdown:null==s?void 0:s.aiReasoningMarkdown,aiReasoningPill:null==s?void 0:s.aiReasoningPill,webCitation:null==s?void 0:s.webCitation,stormeeCitation:null==s?void 0:s.stormeeCitation,waveformCitation:null==s?void 0:s.waveformCitation,imageCitation:null==s?void 0:s.imageCitation,fileCitation:null==s?void 0:s.fileCitation,appModCitation:null==s?void 0:s.appModCitation,rcaCitation:null==s?void 0:s.rcaCitation,readFileCitation:null==s?void 0:s.readFileCitation,loadingCitations:null==s?void 0:s.loadingCitations,chatCitation:null==s?void 0:s.chatCitation}})}))}))}))}))]}))};var T=["del","ins"];function L(e){return function(e,n,i){var t=n.join("|");return e.replace(new RegExp("<(".concat(t,")>([\\s\\S]*?)<\\/\\1>"),"gi"),function(e,n,t){return"<".concat(n,">").concat(i(t),"</").concat(n,">")})}(e,T,function(e){return e.split(/(<[^>]+>)/g).map(function(e){return!e||/^<[^>]+>$/.test(e)?e:function(e){if(!e)return e;var n=[];return e.replace(/`([^`\n]+)`/g,function(e,i){var t=n.push(i)-1;return"@@CODE_SPAN_".concat(t,"@@")}).replace(/\*\*([\s\S]+?)\*\*/g,"<strong>$1</strong>").replace(/__([\s\S]+?)__/g,"<strong>$1</strong>").replace(/@@CODE_SPAN_(\d+)@@/g,function(e,i){var t,o=null!==(t=n[Number(i)])&&void 0!==t?t:"";return"<code>".concat(o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),"</code>")})}(e)}).join("")})}exports.default=function(t){var o,s=t.message,h=t.noMarkdownContent,f=t.useMarkdown,x=void 0===f||f,I=t.isParent,E=t.scenario,T=t.showUserStoryDiff,P=void 0!==T&&T,H=t.aiReasoningsForBlock,$=t.isCitationLoadingDisplay,D=void 0!==$&&$,F=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var O=t.customStyles,B=t.customIcons,W=t.contextVariant,z=t.aiReasoningDiffView,V=t.userStoryCitations,G=t.artifactId,Q=t.isCraflow,J=t.onCraAccept,K=t.onCraReject,X=t.craFlowConfig,Y=t.isDisplayHighlightControl,Z=void 0!==Y&&Y,ee=t.showConfidenceScore,ne=void 0===ee||ee,ie=i.useRef(null),te=g.useRequirementAI(),oe=te.userStory,le=te.inlineUpdateComponentConfig,ae=te.getAvgScoreForStory,re=te.setUserStory,de=te.aiReasoning,se=te.setAiReasoning,ce=te.customIcons,ue=te.searchQueryList,ve=te.searchQueryReasoningIdList,ge=te.currentHighlightIndex,he=te.segmentComponentConfig,fe=te.diffEditConfig,pe=null!=B?B:null==ce?void 0:ce.userStoryIcons;null==O||O.searchHighlight;var me=a.useMarkdownSearch(ie),Ce=me.search,_e=me.clear,xe=i.useState("1"),je=xe[0],ye=xe[1],Se=i.useState(null),we=Se[0],Ie=Se[1],Re=i.useRef(new Map),be=i.useState(new Set),Ne=be[0],ke=be[1],qe=i.useCallback(function(e,n){Ie(e&&n?{rowId:e,aiReason:n}:null)},[]),Ae=G?ae(G):0,Ee=i.useState([]),Me=Ee[0],Ue=Ee[1],Te=i.useCallback(function(e){ke(function(n){var i=new Set(n);return i.has(e)?i.delete(e):i.add(e),i})},[]),Le=function(e){return null==e?"":"string"==typeof e?e:"number"==typeof e?String(e):Array.isArray(e)?e.map(Le).join(""):R.default.isValidElement(e)?Le(e.props.children):""},Pe=function(e){var n=e;return n=function(e){for(var n,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,t=[],o=new RegExp(i.source,i.flags);null!==(n=o.exec(e));){var l=n[0],a=l.match(/<deleted>([\s\S]*?)<\/deleted>/i),r=l.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(e){return(e.match(/^\s*\d+\.\s/gm)||[]).length};t.push({index:n.index,endIndex:n.index+n[0].length,deletedItemCount:d((null==a?void 0:a[1])||""),changedItemCount:d((null==r?void 0:r[1])||"")})}if(0===t.length)return e;for(var s=e,c=function(e){var n=t[e],i=n.changedItemCount-n.deletedItemCount;if(0===i)return"continue";for(var o=!1,l=0,a=s.substring(0,n.index).split("\n").reverse();l<a.length;l++){var r=a[l].trim();if(""!==r){/^\d+\.\s/.test(r)&&(o=!0);break}}if(!o)return"continue";var d=n.endIndex,c=e+1<t.length?t[e+1].index:s.length,u=s.substring(d,c);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(e,n,t){return"".concat(n).concat(parseInt(t,10)+i,". ")}),s=s.substring(0,d)+u+s.substring(c)},u=t.length-1;u>=0;u--)c(u);return s}(n=(n=(n=(n=(n=(n=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,function(e,n,i,t,o){var l=t.match(/<table[\s\S]*?<\/table>/i);if(l){var a=btoa(encodeURIComponent(l[0]));return"<segment".concat(i,' data-table="').concat(a,'"></segment>')}return e})).replace(/<updatedsegment([^>]*)>([\s\S]*?)<\/updatedsegment>/gi,function(e,n,i){if(/<table[\s>]/i.test(i)){var t=btoa(encodeURIComponent(i));return"<updatedsegment".concat(n,' data-raw="').concat(t,'"></updatedsegment>')}return e})).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(e,i,t,o){var l=n.substring(0,o),a=l.lastIndexOf("\n"),r=/^\s+[-*]\s/.test(l.substring(a+1))||/^\s+\d+\.\s/.test(l.substring(a+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(l.substring(a+1));if(r||d){var s=t;return s=(s=(s=(s=s.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(s,"</updated>")}return e})),n=function(e){var n=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==n}),"<deleted>".concat(i,"</deleted>")});return n.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==n,preview:n.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(n),n=L(n)},He=i.useMemo(function(){return s?Pe(s):s},[s]);i.useEffect(function(){Ue(H||de)},[H,de]);var $e=i.useMemo(function(){return{span:function(i){var t,o,l,a,r,d=i.node,s=i.children,c=e.__rest(i,["node","children"]),u=null!==(o=null===(t=null==d?void 0:d.properties)||void 0===t?void 0:t["highlight-id"])&&void 0!==o?o:null==c?void 0:c["highlight-id"],v="string"==typeof u&&Ne.has(u),g=null!==(a=null===(l=null==d?void 0:d.properties)||void 0===l?void 0:l["highlight-color"])&&void 0!==a?a:null==c?void 0:c["highlight-color"];return n.jsx("span",e.__assign({style:e.__assign(e.__assign({},null!==(r=null==O?void 0:O.span)&&void 0!==r?r:{}),v?{backgroundColor:g||"#fef08a"}:{})},{children:s}))},button:function(i){var t,o,l,a,r,d,s=i.node;i.children;var c=e.__rest(i,["node","children"]),u=null!==(o=null===(t=null==s?void 0:s.properties)||void 0===t?void 0:t.action)&&void 0!==o?o:null==c?void 0:c.action,v=null!==(a=null===(l=null==s?void 0:s.properties)||void 0===l?void 0:l["highlight-id"])&&void 0!==a?a:null==c?void 0:c["highlight-id"],g=null!==(d=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r["highlight-type"])&&void 0!==d?d:null==c?void 0:c["highlight-type"];return"highlight"===u?n.jsx(w.default,{highlightId:v,handleHighlightSpan:Te,icon:"web"===g?null==pe?void 0:pe.webCitationIcon:"doc"===g?null==pe?void 0:pe.fileCitationIcon:n.jsx(n.Fragment,{}),customStyles:"web"===g?null==O?void 0:O.webButton:"doc"===g?null==O?void 0:O.docButton:{}}):null},upt:function(i){var t;i.node;var o=i.children,l=e.__rest(i,["node","children"]),a=null==l?void 0:l.id,r=a?null===(t=a.split("$"))||void 0===t?void 0:t[1]:null,d=de.find(function(e){return e.id.toString()===r});return d?n.jsx(j.default,e.__assign({aiReason:d,customStyles:null==O?void 0:O.inlineUpdatedComponent,handleClickCognitiveDecision:null==le?void 0:le.handleClickCognitiveDecision,handleClickUpdatedPill:null==le?void 0:le.handleClickUpdatedPill,handleClickOutputValue:null==le?void 0:le.handleClickOutputValue,customIcons:null==le?void 0:le.customIcons},{children:o})):o},del:function(i){var t,o,a,r;i.node;var d=i.children,s=e.__rest(i,["node","children"]),c=s.aireason,u=c&&(null===(t=c.deviation_details)||void 0===t?void 0:t.resolved)&&("rejected"===(null===(o=c.deviation_details)||void 0===o?void 0:o.resolved)||"reverted"===(null===(a=c.deviation_details)||void 0===a?void 0:a.resolved));return n.jsx("span",e.__assign({className:l.default.deleted,style:e.__assign(e.__assign({},null!==(r=null==O?void 0:O.deleted)&&void 0!==r?r:{}),{textDecoration:u?"none":"line-through"})},s,{onClick:s.onclick},{children:d}))},ins:function(i){var t=i.children,o=e.__rest(i,["children"]);return n.jsx("span",e.__assign({className:l.default.inserted,style:null==O?void 0:O.inserted},o,{onClick:o.onclick},{children:t}))},preserved:function(i){var t=i.children,o=e.__rest(i,["children"]);return n.jsx("span",e.__assign({className:l.default.preserved,style:null==O?void 0:O.preserved},o,{onClick:o.onclick},{children:t}))},h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:l.default.heading1,style:null==O?void 0:O.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:l.default.heading2,style:null==O?void 0:O.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:l.default.heading3,style:null==O?void 0:O.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:l.default.bold,style:null==O?void 0:O.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:l.default.paragraph,style:null==O?void 0:O.paragraph},{children:t.children}))},updated:function(i){var t=i.node,o=e.__rest(i,["node"]);return n.jsx(c.default,e.__assign({},o,{showUserStoryDiff:P,currentUpdatedTagId:je,setCurrentUpdatedTagId:ye,userStory:oe,setUserStory:re,setAiReasoning:se,node:t,isCraflow:Q,onCraAccept:J,onCraReject:K,diffEditConfig:fe,customStyles:null==O?void 0:O.updatedContent,craFlowConfig:X}))},ol:function(i){var t,o,a,r=i.node,d=e.__rest(i,["node"]),s=null!==(a=null!==(o=null===(t=null==r?void 0:r.properties)||void 0===t?void 0:t.start)&&void 0!==o?o:null==d?void 0:d.start)&&void 0!==a?a:void 0;return n.jsx("ol",e.__assign({className:l.default.orderedList,style:null==O?void 0:O.olist},s?{start:Number(s)}:{},{children:null==d?void 0:d.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:l.default.unorderedList,style:null==O?void 0:O.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:l.default.tableWrapper},{children:n.jsx("table",e.__assign({className:l.default.table,style:null==O?void 0:O.table},{children:t}))}))},tr:function(e){var i=e.node,t=e.children;return n.jsx(U,{node:i,children:t,customStyles:O})},td:function(i){var t,o=i.node,l=i.children,a=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},r=a.style,d=e.__rest(a,["style"]);return n.jsx(q.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},d,{style:r?{cssText:r}:void 0},{children:l}))}))},th:function(i){var t,o=i.node,l=i.children,a=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},r=a.style,d=e.__rest(a,["style"]);return n.jsx(q.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},d,{style:r?{cssText:r}:void 0},{children:l}))}))},recommendation:function(i){var t;i.node;var o=e.__rest(i,["node"]),l="The AI has selected this content based on: ".concat((null===(t=null==o?void 0:o.children)||void 0===t?void 0:t[0])||"");return n.jsx(C.default,e.__assign({},o,{customStyles:null==O?void 0:O.recommendationBlock,label:l}))},a:function(t){var o,l,a;t.inline;var r=t.children;t.node;var d=e.__rest(t,["inline","children","node"]),s=i.useContext(q)||"true"==(null==d?void 0:d.table),c="".concat(null==d?void 0:d.href),u=null===(o=c.split("$"))||void 0===o?void 0:o[0],v=null===(l=c.split("$"))||void 0===l?void 0:l[1];if("ai_reasoning"===u){var g=(null!==(a=P?z:de)&&void 0!==a?a:[]).find(function(e){return e.id.toString()===decodeURIComponent(v)}),h=ve.includes(v);if(g){if(s)return n.jsx(M,{aiReason:g,customStyle:null==O?void 0:O.tableAiReasoning,customIcons:pe,isHighConfidence:g.relevance_score>=p.SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING});var f=Le(r),m="source"!==f.trim().toLowerCase();return n.jsx(p.default,{aiReason:g,isSourceHasHighlight:h,inlineLabel:f,isInlineCitation:m,customIcons:pe,customStyles:{aiReasoningContent:null==O?void 0:O.aiReasoningContent,aiReasoningAccordion:null==O?void 0:O.aiReasoningAccordion,aiReasoningMarkdown:null==O?void 0:O.aiReasoningMarkdown,aiReasoningPill:null==O?void 0:O.aiReasoningPill,webCitation:null==O?void 0:O.webCitation,stormeeCitation:null==O?void 0:O.stormeeCitation,waveformCitation:null==O?void 0:O.waveformCitation,imageCitation:null==O?void 0:O.imageCitation,fileCitation:null==O?void 0:O.fileCitation,appModCitation:null==O?void 0:O.appModCitation,rcaCitation:null==O?void 0:O.rcaCitation,readFileCitation:null==O?void 0:O.readFileCitation,loadingCitations:null==O?void 0:O.loadingCitations,chatCitation:null==O?void 0:O.chatCitation,bigEnoughCitation:null==O?void 0:O.bigEnoughCitation}})}}return null},code:function(i){i.inline;var t=i.children,o=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:l.default.blockCode,style:null==O?void 0:O.code},{children:t}))}):n.jsx("code",e.__assign({className:l.default.inlineCode,style:null==O?void 0:O.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(d.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(r.Info,{size:16,className:l.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),o=(null==t?void 0:t.language)||"python",l=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(t);return n.jsx(u.default,{title:"Generated Code",code:l,language:o,customStyles:{pill:null==O?void 0:O.generatedCodePill,content:null==O?void 0:O.generatedCodeContent}})},updatedsegment:function(i){var t,o,l,a,r=i.node,d=i.children,s=e.__rest(i,["node","children"]),c="".concat(null===(t=r.position)||void 0===t?void 0:t.start.line,"-").concat(null===(o=r.position)||void 0===o?void 0:o.start.column,"-").concat(null===(l=r.position)||void 0===l?void 0:l.end.line,"-").concat(null===(a=r.position)||void 0===a?void 0:a.end.column),u=function(e){if(!e["data-raw"])return null;try{return decodeURIComponent(atob(e["data-raw"]))}catch(e){return console.error("Error decoding segment raw content:",e),null}}(s),v=u?n.jsx("div",{dangerouslySetInnerHTML:{__html:k.default.sanitize(u)}}):n.jsx("div",{children:d});return n.jsx(y.default,{id:c,node:r,children:v,props:s,segmentComponentConfig:he,customStyles:O,customIcons:B,extractText:Le,isUpdatedSegment:!0})},segment:function(i){var t,o,l,a,r=i.node,d=i.children,s=e.__rest(i,["node","children"]),c="".concat(null===(t=r.position)||void 0===t?void 0:t.start.line,"-").concat(null===(o=r.position)||void 0===o?void 0:o.start.column,"-").concat(null===(l=r.position)||void 0===l?void 0:l.end.line,"-").concat(null===(a=r.position)||void 0===a?void 0:a.end.column);return n.jsx(y.default,{id:c,node:r,children:d,props:s,segmentComponentConfig:he,customStyles:O,customIcons:B,extractText:Le})}}},[Me,X,de,V,je,P,s,B,ue,ve,O,he,Ne,Te]);return i.useEffect(function(){if(ie.current){if(ue.length){var e;if(0===ve.length||Z)requestAnimationFrame(function(){Ce([ue[ge].replace(/\*/g,"")])});else{var n=ie.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){Ce([ue[ge].replace(/\*/g,"")])})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}_e()}},[ue,ve,ge,Z]),n.jsx(A.Provider,e.__assign({value:{expandedInfo:we,setExpanded:qe,reasonToRow:Re}},{children:n.jsxs("div",e.__assign({ref:ie,className:"".concat(l.default.container," ").concat("approving"!==E?l.default.wrapper:""," ").concat(F||""),style:null==O?void 0:O.container},{children:[x?n.jsx(S.MarkdownContextProvider,{children:n.jsx(b.default,e.__assign({components:$e,rehypePlugins:[N.default]},{children:He}))}):h,Ae>0&&ne&&n.jsx("div",e.__assign({className:l.default.confidenceScoreContainer,style:null==O?void 0:O.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:l.default.confidenceScore,style:null==O?void 0:O.confidenceScore},{children:[n.jsx(m.default,{size:14,color:(null==O?void 0:O.confidenceScoreIconColor)||"#166534"}),Ae,"%"]}))})),D&&n.jsx("div",e.__assign({className:l.default.citationLoader,style:null==O?void 0:O.citationLoaderContainer},{children:n.jsx(v.default,{customStyles:{container:null==O?void 0:O.citationLoadingContainer,icon:null==O?void 0:O.citationLoadingIcon,text:null==O?void 0:O.citationLoadingText}})})),I&&n.jsx("div",e.__assign({style:e.__assign({},null===(o=null==O?void 0:O.attachedContext)||void 0===o?void 0:o.wrapper),className:"flex mt-5"},{children:n.jsx(_.default,{customStyles:null==O?void 0:O.attachedContext,variant:W})}))]}))}))};
2
2
  //# sourceMappingURL=UserStoryWithCitation.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime");exports.default=function(t){var l=t.props,n=t.highlightId,r=t.handleHighlightSpan,s=t.customStyles,o=t.icon;return i.jsx("button",e.__assign({},l,{onClick:function(e){var i;null===(i=null==l?void 0:l.onClick)||void 0===i||i.call(l,e),r(n)},style:e.__assign({},s)},{children:o}))};
2
+ //# sourceMappingURL=HighlightButtonComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HighlightButtonComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),r=require("lucide-react"),t=require("react"),i=require("./UpdatedAnimationContent.module.css.js"),l=require("../utils/diff-edit.utils.js");exports.default=function(o){var a,u,s,d,c=o.isCraflow,f=o.onCraAccept,v=o.onCraReject,p=o.craFlowConfig,g=o.showUserStoryDiff,_=void 0!==g&&g,y=o.currentUpdatedTagId,h=o.setCurrentUpdatedTagId;o.node;var m=o.userStory,S=o.setUserStory,x=o.setAiReasoning,C=o.customStyles,N=o.customIcons,b=e.__rest(o,["isCraflow","onCraAccept","onCraReject","craFlowConfig","showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),j=t.useState(!1),w=j[0],A=j[1],T=t.useState(null),M=T[0],U=T[1],I=t.useRef(null),k=t.useRef(null),q=null!==(a=null==C?void 0:C.iconSize)&&void 0!==a?a:16,L=null!==(u=null==C?void 0:C.actionIconSize)&&void 0!==u?u:q;t.useEffect(function(){if(k.current){var e=setTimeout(function(){var e=k.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[y]);var D,z=(Array.isArray(null==b?void 0:b.children)?b.children:null!=(null==b?void 0:b.children)?[b.children]:[]).filter(function(e){return"string"!=typeof e}),B=z.find(function(e){return"deleted"===(null==e?void 0:e.type)}),E=z.findIndex(function(e){return"deleted"===(null==e?void 0:e.type)}),F=null===(s=null==B?void 0:B.props)||void 0===s?void 0:s.children,R=z.findIndex(function(e){return"changed"===(null==e?void 0:e.type)}),H=-1!==R?z[R]:null,O=null===(d=null==H?void 0:H.props)||void 0===d?void 0:d.children,P=Math.max(R,E),J=-1!==P?z.slice(P+1).filter(function(e){return"deleted"!==(null==e?void 0:e.type)&&"changed"!==(null==e?void 0:e.type)}):[];D=O&&J.length>0?e.__spreadArray(e.__spreadArray([],Array.isArray(O)?O:[O],!0),J,!0):O||(J.length>0?J:void 0);function V(n,r,t){var i;(null==p?void 0:p.isCraflow)&&p.craUserStory&&(n=p.craUserStory);var o=JSON.parse(JSON.stringify(n)),a=function(e,n){var r=function(e){for(var t=0,i=e;t<i.length;t++){var l=i[t];if((new DOMParser).parseFromString(l.value,"text/html").querySelector('updated[id="'.concat(n,'"]')))return l;if(l.sub_features&&l.sub_features.length>0){var o=r(l.sub_features);if(o)return o}}return null};return r(e)}(o,r);if(!a)return console.warn("No user story found with updated id: ".concat(r)),!1;var u=(new DOMParser).parseFromString(a.value,"text/html"),s=u.querySelector('updated[id="'.concat(r,'"]'));if(!s)return console.warn("No <updated> block found with id: ".concat(r)),!1;var d,c=s.innerHTML,f=l.getDirectChild(s,"deleted"),v=l.getDirectChild(s,"changed"),g=f?f.innerHTML.trim():null,_=v?v.innerHTML.trim():null,y="";if("reject"===t){var m=(d=(g||_||"").match(/ai_reasoning\$(\d+)/))?parseInt(d[1],10):null;null!==m&&x(function(n){var r=n.map(function(n){return e.__assign({},n)}),t="".concat(m,"-legacy"),i=r.find(function(e){var n;return(null===(n=e.id)||void 0===n?void 0:n.toString())===t});if(i){var l=i.id.toString().replace("-legacy","");r=r.filter(function(e){return e.id.toString()!==l}),i.id=l}return e.__spreadArray([],r,!0)})}"accept"===t?y=g&&_?_:g&&!_?"":!g&&_?_:c:"reject"===t&&(y=g&&_||g&&!_?g:!g&&_?"":c);var C=u.createElement("div");C.innerHTML=y;var N=Array.from(C.childNodes);s.replaceWith.apply(s,N);var b=new XMLSerializer;return a.value=b.serializeToString(u),(null==p?void 0:p.isCraflow)?p.setCraUserStory(o):S(o),h(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),null===(i=null==p?void 0:p.onCraFlowDiffAgentAction)||void 0===i||i.call(p,t,o),!0}var W=function(n){var r=(null==C?void 0:C.actionButton)||{},t=M===n&&(null==C?void 0:C.actionButtonHover)||{};return e.__assign(e.__assign({},r),t)};return n.jsxs("span",e.__assign({},b,{className:i.default.container,style:e.__assign(e.__assign({},null==C?void 0:C.container),{display:"block"}),onMouseEnter:function(){I.current&&(clearTimeout(I.current),I.current=null),A(!0)},onMouseLeave:function(){I.current=setTimeout(function(){A(!1),I.current=null},2e3)},ref:(null==b?void 0:b.id)===y?k:null},{children:[(w||(null==C?void 0:C.showFixedActionButtons))&&!_&&n.jsxs("span",e.__assign({className:i.default.hoverActions,style:null==C?void 0:C.hoverActions,onMouseEnter:function(){return A(!0)}},{children:[n.jsx("button",e.__assign({className:i.default.actionButton,style:W("undo"),onMouseEnter:function(){return U("undo")},onMouseLeave:function(){return U(null)},onClick:function(){c&&v?v(null==b?void 0:b.id):V(m,null==b?void 0:b.id,"reject"),A(!1)}},{children:(null==N?void 0:N.undo)?N.undo:n.jsx(r.Undo,{size:L,color:null==C?void 0:C.undoIconColor,className:i.default.hw})})),n.jsx("span",{className:i.default.divider,style:null==C?void 0:C.divider}),n.jsx("button",e.__assign({className:i.default.actionButton,style:W("accept"),onMouseEnter:function(){return U("accept")},onMouseLeave:function(){return U(null)},onClick:function(){c&&f?f(null==b?void 0:b.id):V(m,null==b?void 0:b.id,"accept"),A(!1)}},{children:(null==N?void 0:N.accept)?N.accept:n.jsx(r.ThumbsUp,{size:L,color:null==C?void 0:C.thumbsUpIconColor,className:i.default.hw})}))]})),F&&n.jsx("span",e.__assign({className:i.default.deletedContainer,style:e.__assign(e.__assign({},null==C?void 0:C.deletedContainer),{display:"block"})},{children:n.jsx("span",e.__assign({className:i.default.deletedText,style:e.__assign(e.__assign({},null==C?void 0:C.deletedText),{display:"block"})},{children:F}))})),D&&n.jsx("span",e.__assign({className:i.default.changedContainer,style:e.__assign(e.__assign({},null==C?void 0:C.changedContainer),{display:"block"})},{children:n.jsx("span",e.__assign({className:i.default.changedText,style:e.__assign(e.__assign({},null==C?void 0:C.changedText),{display:"block"})},{children:D}))}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("lucide-react"),r=require("react"),i=require("./UpdatedAnimationContent.module.css.js"),l=require("../utils/diff-edit.utils.js");exports.default=function(o){var a,u,s,d,c=o.isCraflow,f=o.onCraAccept,v=o.onCraReject,g=o.craFlowConfig,p=o.showUserStoryDiff,_=void 0!==p&&p,y=o.currentUpdatedTagId,h=o.setCurrentUpdatedTagId;o.node;var m=o.userStory,C=o.setUserStory,S=o.setAiReasoning,x=o.diffEditConfig,b=o.customStyles,N=o.customIcons,j=e.__rest(o,["isCraflow","onCraAccept","onCraReject","craFlowConfig","showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","diffEditConfig","customStyles","customIcons"]),w=r.useState(!1),A=w[0],T=w[1],M=r.useState(null),U=M[0],I=M[1],k=r.useRef(null),E=r.useRef(null),q=null!==(a=null==b?void 0:b.iconSize)&&void 0!==a?a:16,D=null!==(u=null==b?void 0:b.actionIconSize)&&void 0!==u?u:q;r.useEffect(function(){if(E.current){var e=setTimeout(function(){var e=E.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[y]);var L,z=(Array.isArray(null==j?void 0:j.children)?j.children:null!=(null==j?void 0:j.children)?[j.children]:[]).filter(function(e){return"string"!=typeof e}),B=z.find(function(e){return"deleted"===(null==e?void 0:e.type)}),F=z.findIndex(function(e){return"deleted"===(null==e?void 0:e.type)}),R=null===(s=null==B?void 0:B.props)||void 0===s?void 0:s.children,H=z.findIndex(function(e){return"changed"===(null==e?void 0:e.type)}),O=-1!==H?z[H]:null,P=null===(d=null==O?void 0:O.props)||void 0===d?void 0:d.children,J=Math.max(H,F),V=-1!==J?z.slice(J+1).filter(function(e){return"deleted"!==(null==e?void 0:e.type)&&"changed"!==(null==e?void 0:e.type)}):[];L=P&&V.length>0?e.__spreadArray(e.__spreadArray([],Array.isArray(P)?P:[P],!0),V,!0):P||(V.length>0?V:void 0);function W(n,t,r){var i,o;(null==g?void 0:g.isCraflow)&&g.craUserStory&&(n=g.craUserStory);var a=JSON.parse(JSON.stringify(n)),u=function(e,n){var t=function(e){for(var r=0,i=e;r<i.length;r++){var l=i[r];if((new DOMParser).parseFromString(l.value,"text/html").querySelector('updated[id="'.concat(n,'"]')))return l;if(l.sub_features&&l.sub_features.length>0){var o=t(l.sub_features);if(o)return o}}return null};return t(e)}(a,t);if(!u)return console.warn("No user story found with updated id: ".concat(t)),!1;var s=(new DOMParser).parseFromString(u.value,"text/html"),d=s.querySelector('updated[id="'.concat(t,'"]'));if(!d)return console.warn("No <updated> block found with id: ".concat(t)),!1;var c,f=d.innerHTML,v=l.getDirectChild(d,"deleted"),p=l.getDirectChild(d,"changed"),_=v?v.innerHTML.trim():null,y=p?p.innerHTML.trim():null,m="";if("reject"===r){var b=(c=(_||y||"").match(/ai_reasoning\$(\d+)/))?parseInt(c[1],10):null;null!==b&&S(function(n){var t=n.map(function(n){return e.__assign({},n)}),r="".concat(b,"-legacy"),i=t.find(function(e){var n;return(null===(n=e.id)||void 0===n?void 0:n.toString())===r});if(i){var l=i.id.toString().replace("-legacy","");t=t.filter(function(e){return e.id.toString()!==l}),i.id=l}return e.__spreadArray([],t,!0)})}"accept"===r?m=_&&y?y:_&&!y?"":!_&&y?y:f:"reject"===r&&(m=_&&y||_&&!y?_:!_&&y?"":f);var N=s.createElement("div");N.innerHTML=m;var j=Array.from(N.childNodes);d.replaceWith.apply(d,j);var w=new XMLSerializer;return u.value=w.serializeToString(s),(null==g?void 0:g.isCraflow)?g.setCraUserStory(a):C(a),null===(i=null==x?void 0:x.handleDiffEditActionCallback)||void 0===i||i.call(x,r,a),h(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),null===(o=null==g?void 0:g.onCraFlowDiffAgentAction)||void 0===o||o.call(g,r,a),!0}var X=function(n){var t=(null==b?void 0:b.actionButton)||{},r=U===n&&(null==b?void 0:b.actionButtonHover)||{};return e.__assign(e.__assign({},t),r)};return n.jsxs("span",e.__assign({},j,{className:i.default.container,style:e.__assign(e.__assign({},null==b?void 0:b.container),{display:"block"}),onMouseEnter:function(){k.current&&(clearTimeout(k.current),k.current=null),T(!0)},onMouseLeave:function(){k.current=setTimeout(function(){T(!1),k.current=null},2e3)},ref:(null==j?void 0:j.id)===y?E:null},{children:[(A||(null==b?void 0:b.showFixedActionButtons))&&!_&&n.jsxs("span",e.__assign({className:i.default.hoverActions,style:null==b?void 0:b.hoverActions,onMouseEnter:function(){return T(!0)}},{children:[n.jsx("button",e.__assign({className:i.default.actionButton,style:X("undo"),onMouseEnter:function(){return I("undo")},onMouseLeave:function(){return I(null)},onClick:function(){c&&v?v(null==j?void 0:j.id):W(m,null==j?void 0:j.id,"reject"),T(!1)}},{children:(null==N?void 0:N.undo)?N.undo:n.jsx(t.Undo,{size:D,color:null==b?void 0:b.undoIconColor,className:i.default.hw})})),n.jsx("span",{className:i.default.divider,style:null==b?void 0:b.divider}),n.jsx("button",e.__assign({className:i.default.actionButton,style:X("accept"),onMouseEnter:function(){return I("accept")},onMouseLeave:function(){return I(null)},onClick:function(){c&&f?f(null==j?void 0:j.id):W(m,null==j?void 0:j.id,"accept"),T(!1)}},{children:(null==N?void 0:N.accept)?N.accept:n.jsx(t.ThumbsUp,{size:D,color:null==b?void 0:b.thumbsUpIconColor,className:i.default.hw})}))]})),R&&n.jsx("span",e.__assign({className:i.default.deletedContainer,style:e.__assign(e.__assign({},null==b?void 0:b.deletedContainer),{display:"block"})},{children:n.jsx("span",e.__assign({className:i.default.deletedText,style:e.__assign(e.__assign({},null==b?void 0:b.deletedText),{display:"block"})},{children:R}))})),L&&n.jsx("span",e.__assign({className:i.default.changedContainer,style:e.__assign(e.__assign({},null==b?void 0:b.changedContainer),{display:"block"})},{children:n.jsx("span",e.__assign({className:i.default.changedText,style:e.__assign(e.__assign({},null==b?void 0:b.changedText),{display:"block"})},{children:L}))}))]}))};
2
2
  //# sourceMappingURL=UpdatedAnimationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as n}from"tslib";import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as i,useMemo as r,useCallback as o,useContext as s}from"react";import{RefProvider as a}from"../../store/ref.context.js";var u;!function(n){n.WAITING="waiting",n.IN_PROGRESS="in_progress",n.GENERATED="generated",n.FAILED="failed",n.GENERATE="generate"}(u||(u={}));var c=e(null),g=function(e){var s=e.children,u=e.userStory,g=e.setUserStory,f=e.aiReasoning,l=e.setAiReasoning,d=e.citations,h=e.setCitations,C=e.apiCachingConfig,m=e.customStyles,p=e.customIcons,v=e.searchQueryList,S=e.searchQueryReasoningIdList,y=e.citationConfig,I=e.chatHistory,R=e.chatCitationConfigs,A=e.gptCitationConfigs,E=e.aiReasoningAccordionOpenStates,x=e.persistedDataFiles,N=e.inlineUpdateComponentConfig,L=e.segmentComponentConfig,_=e.sectionStatusConfig,b=e.customSectionConfig,w=i(0),D=w[0],F=w[1],G=r(function(){if(0===u.length||0===f.length)return Array(u.length).fill(0);var n=Array.from({length:u.length},function(){return[]});return f.forEach(function(t){var e=Number(t.relevance_score);if(!(isNaN(e)||e<=0)){var i="ai_reasoning$".concat(t.id),r=u.findIndex(function(n){var t;return n.value.includes(i)||(null===(t=n.sub_features)||void 0===t?void 0:t.some(function(n){return n.value.includes(i)}))});-1!==r&&n[r].push(e)}}),n.map(function(n){return 0===n.length?0:Math.round(n.reduce(function(n,t){return n+t},0)/n.length)})},[u,f]),H=o(function(n){var t,e=u.findIndex(function(t){return t.artifactId===n});return-1===e?0:null!==(t=G[e])&&void 0!==t?t:0},[u,G]);return t(c.Provider,n({value:{chatHistory:I,userStory:u,setUserStory:g,aiReasoning:f,setAiReasoning:l,citations:d,setCitations:h,apiCachingConfig:C,customStyles:m,customIcons:p,searchQueryList:v,searchQueryReasoningIdList:S,citationConfig:y,getAvgScoreForStory:H,chatCitationConfigs:R,gptCitationConfigs:A,aiReasoningAccordionOpenStates:E,persistedDataFiles:x,currentHighlightIndex:D,setCurrentHighlightIndex:F,inlineUpdateComponentConfig:N,segmentComponentConfig:L,sectionStatusConfig:_,customSectionConfig:b}},{children:t(a,{children:s})}))},f=function(){var n=s(c);if(!n)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return n};export{u as SectionStatus,g as default,f as useRequirementAI};
1
+ import{__assign as n}from"tslib";import{jsx as t}from"react/jsx-runtime";import{createContext as i,useState as e,useMemo as o,useCallback as r,useContext as s}from"react";import{RefProvider as a}from"../../store/ref.context.js";var u;!function(n){n.WAITING="waiting",n.IN_PROGRESS="in_progress",n.GENERATED="generated",n.FAILED="failed",n.GENERATE="generate"}(u||(u={}));var c=i(null),f=function(i){var s=i.children,u=i.userStory,f=i.setUserStory,g=i.aiReasoning,d=i.setAiReasoning,l=i.citations,C=i.setCitations,h=i.apiCachingConfig,m=i.customStyles,p=i.customIcons,v=i.searchQueryList,S=i.searchQueryReasoningIdList,y=i.citationConfig,I=i.chatHistory,R=i.chatCitationConfigs,A=i.gptCitationConfigs,E=i.diffEditConfig,x=i.aiReasoningAccordionOpenStates,N=i.persistedDataFiles,L=i.inlineUpdateComponentConfig,_=i.segmentComponentConfig,b=i.sectionStatusConfig,w=i.customSectionConfig,D=e(0),F=D[0],G=D[1],H=o(function(){if(0===u.length||0===g.length)return Array(u.length).fill(0);var n=Array.from({length:u.length},function(){return[]});return g.forEach(function(t){var i=Number(t.relevance_score);if(!(isNaN(i)||i<=0)){var e="ai_reasoning$".concat(t.id),o=u.findIndex(function(n){var t;return n.value.includes(e)||(null===(t=n.sub_features)||void 0===t?void 0:t.some(function(n){return n.value.includes(e)}))});-1!==o&&n[o].push(i)}}),n.map(function(n){return 0===n.length?0:Math.round(n.reduce(function(n,t){return n+t},0)/n.length)})},[u,g]),Q=r(function(n){var t,i=u.findIndex(function(t){return t.artifactId===n});return-1===i?0:null!==(t=H[i])&&void 0!==t?t:0},[u,H]);return t(c.Provider,n({value:{chatHistory:I,userStory:u,setUserStory:f,aiReasoning:g,setAiReasoning:d,citations:l,setCitations:C,apiCachingConfig:h,customStyles:m,customIcons:p,searchQueryList:v,searchQueryReasoningIdList:S,citationConfig:y,getAvgScoreForStory:Q,chatCitationConfigs:R,gptCitationConfigs:A,diffEditConfig:E,aiReasoningAccordionOpenStates:x,persistedDataFiles:N,currentHighlightIndex:F,setCurrentHighlightIndex:G,inlineUpdateComponentConfig:L,segmentComponentConfig:_,sectionStatusConfig:b,customSectionConfig:w}},{children:t(a,{children:s})}))},g=function(){var n=s(c);if(!n)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return n};export{u as SectionStatus,f as default,g as useRequirementAI};
2
2
  //# sourceMappingURL=RequirementAIWrapper.js.map
@@ -1,2 +1,2 @@
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};
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 h}from"@lexical/rich-text";import{TablePlugin as v}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 H from"./components/Context/ContextMenu.js";import{MarkNode as w}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{HighlightSpanNode as W,HighlightButtonNode as q}from"./plugins/HighlightNode.js";import{useLexicalComposerContext as O}from"@lexical/react/LexicalComposerContext";function V(e){console.log(e)}function X(){var e=O()[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 Y(l){var T,E,O,Y=l.minHeight,z=l.height,G=l.placeholder,J=l.onFocus,K=l.onBlur,Q=l.onChange,U=l.onToolbarButtonClick,Z=l.toolbarConfig,$=void 0===Z?R:Z,ee=l.editorRef,te=l.editorState,oe=l.initialString,re=l.customToolbar,ie=l.plugins;l.nodes,l.dynamicHeight,l.artifactContext,l.commentsPanelState;var ne=l.mode,le=l.doNotShowBorderInViewMode,ae=i(null),ce={namespace:"MyEditor",theme:D,onError:V,nodes:[L,s,p,g,x,h,C,y,b,w,I,A,F,W,q],editorState:te},me=n(null),ue=me[0],se=me[1],pe=n(!1),fe=pe[0],de=pe[1],ge=B().customStyles,xe=function(e){var t;null===(t=ee.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==ge?void 0:ge.textEditorStyles)||void 0===T?void 0:T.themeStyles)&&r("style",{children:null===(E=null==ge?void 0:ge.textEditorStyles)||void 0===E?void 0:E.themeStyles}),t("div",e({ref:ae,className:"w-full lexical_editor_wrapper ".concat(le&&"readOnly"===ne?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:function(e){var t;e.preventDefault(),null===(t=ee.current)||void 0===t||t.update(function(){var t=j();S(t)&&!t.isCollapsed()?(de(!0),se({x:e.clientX,y:e.clientY})):(de(!1),se(null))})},style:e({minHeight:Y,height:z},null===(O=null==ge?void 0:ge.textEditorStyles)||void 0===O?void 0:O.textArea)},{children:[t(a,e({initialConfig:ce},{children:[" ","edit"===ne&&r(X,{}),"edit"===ne&&r(N,{onToolbarButtonClick:U,editorWrapperRef:ae,toolbarConfig:$,customToolbar:re,editorRef:ee}),r(P,{placeholder:G}),r(u,{}),r(c,{}),r(f,{}),r(d,{}),r(v,{}),r(_,{onFocus:J,onBlur:K,editorRef:ee}),r(m,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:function(e,t,o){Q&&Q(e,t,o)}}),oe&&r(M,{initialValue:oe.value,initialFormat:oe.type,mode:ne}),ie&&ie]})),ue&&fe&&"edit"===ne&&r(H,{position:ue,options:[{label:"Change Color to Red",action:function(){return xe("red")}},{label:"Change Color to Blue",action:function(){return xe("blue")}}],onClose:function(){se(null)}})]}))]})}export{Y as default};
2
2
  //# sourceMappingURL=Editor.js.map
@@ -0,0 +1,2 @@
1
+ import{__extends as t,__assign as i}from"tslib";import{ElementNode as h}from"lexical";var e=function(h){function e(t,i,e){void 0===i&&(i=null);var n=h.call(this,e)||this;return n.__highlightId=t,n.__highlightColor=i,n}return t(e,h),e.getType=function(){return"highlight-span"},e.clone=function(t){return new e(t.__highlightId,t.__highlightColor,t.__key)},e.prototype.createDOM=function(){return this.createHighlightElement()},e.prototype.exportDOM=function(){return{element:this.createHighlightElement()}},e.prototype.createHighlightElement=function(){var t=document.createElement("span");return t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightColor&&t.setAttribute("highlight-color",this.__highlightColor),t},e.prototype.updateDOM=function(t,i){return t.__highlightId!==this.__highlightId&&i.setAttribute("highlight-id",this.__highlightId),t.__highlightColor!==this.__highlightColor&&(null===this.__highlightColor?i.removeAttribute("highlight-color"):i.setAttribute("highlight-color",this.__highlightColor)),!1},e.importDOM=function(){return{span:function(t){return t.hasAttribute("highlight-id")?{conversion:n,priority:1}:null}}},e.importJSON=function(t){var i=new e(t.highlightId,t.highlightColor);return i.setFormat(t.format),i.setIndent(t.indent),i.setDirection(t.direction),i},e.prototype.exportJSON=function(){return i(i({},h.prototype.exportJSON.call(this)),{type:"highlight-span",version:1,highlightId:this.__highlightId,highlightColor:this.__highlightColor})},e.prototype.isInline=function(){return!0},e}(h);function n(t){return{node:new e(t.getAttribute("highlight-id")||"",t.getAttribute("highlight-color"))}}var r=function(h){function e(t,i,e){void 0===t&&(t=null),void 0===i&&(i=null);var n=h.call(this,e)||this;return n.__highlightId=t,n.__highlightType=i,n}return t(e,h),e.getType=function(){return"highlight-button"},e.clone=function(t){return new e(t.__highlightId,t.__highlightType,t.__key)},e.prototype.createDOM=function(t){var i=this.createHighlightButtonElement(),h=t.theme.highlightButton;return"string"==typeof h&&(i.className=h),i.contentEditable="false",i},e.prototype.exportDOM=function(){return{element:this.createHighlightButtonElement()}},e.prototype.createHighlightButtonElement=function(){var t=document.createElement("button");return t.setAttribute("action","highlight"),null!==this.__highlightId&&t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightType&&t.setAttribute("highlight-type",this.__highlightType),t},e.prototype.updateDOM=function(){return!1},e.importDOM=function(){return{button:function(t){return"highlight"!==t.getAttribute("action")?null:{conversion:o,priority:1}}}},e.importJSON=function(t){var i=new e(t.highlightId,t.highlightType);return i.setFormat(t.format),i.setIndent(t.indent),i.setDirection(t.direction),i},e.prototype.exportJSON=function(){return i(i({},h.prototype.exportJSON.call(this)),{type:"highlight-button",version:1,highlightId:this.__highlightId,highlightType:this.__highlightType})},e.prototype.isInline=function(){return!0},e}(h);function o(t){return{node:new r(t.getAttribute("highlight-id"),t.getAttribute("highlight-type"))}}export{r as HighlightButtonNode,e as HighlightSpanNode};
2
+ //# sourceMappingURL=HighlightNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HighlightNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__delete-node{text-decoration:var(--delete-node-text-decoration,line-through);text-decoration-color:var(--delete-node-decoration-color,#dc2626);text-decoration-thickness:var(--delete-node-decoration-thickness,2px)}.PlaygroundEditorTheme__insert-node{background-color:var(--insert-node-bg,#dbeafe);border-radius:var(--insert-node-border-radius,2px);color:var(--insert-node-color,#1e3a8a);padding:var(--insert-node-padding,1px 2px);text-decoration:var(--insert-node-text-decoration,none)}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}();export{e as default};
1
+ var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__delete-node{text-decoration:var(--delete-node-text-decoration,line-through);text-decoration-color:var(--delete-node-decoration-color,#dc2626);text-decoration-thickness:var(--delete-node-decoration-thickness,2px)}.PlaygroundEditorTheme__insert-node{background-color:var(--insert-node-bg,#dbeafe);border-radius:var(--insert-node-border-radius,2px);color:var(--insert-node-color,#1e3a8a);padding:var(--insert-node-padding,1px 2px);text-decoration:var(--insert-node-text-decoration,none)}.PlaygroundEditorTheme__highlight-button{display:none}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}();export{e as default};
2
2
  //# sourceMappingURL=theme.css.js.map
@@ -1,2 +1,2 @@
1
- import"./theme.css.js";var e={characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",operator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},image:"editor-image",link:"PlaygroundEditorTheme__link",list:{listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"},deleteNode:"PlaygroundEditorTheme__delete-node",insertNode:"PlaygroundEditorTheme__insert-node"};export{e as default};
1
+ import"./theme.css.js";var e={characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",operator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},image:"editor-image",link:"PlaygroundEditorTheme__link",list:{listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"},deleteNode:"PlaygroundEditorTheme__delete-node",insertNode:"PlaygroundEditorTheme__insert-node",highlightButton:"PlaygroundEditorTheme__highlight-button"};export{e as default};
2
2
  //# sourceMappingURL=theme.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t,Fragment as r}from"react/jsx-runtime";import{useRef as n,useState as o,useEffect as i}from"react";import{DEFAULT_TOOLBAR_CONFIG as a}from"./Editor/constants/editorConfig.js";import c from"./Editor/Editor.js";import{useRefStore as u}from"../../store/ref.context.js";import{$generateHtmlFromNodes as l}from"@lexical/html";import d from"turndown";import{tables as f}from"turndown-plugin-gfm";var s=new d({headingStyle:"atx",codeBlockStyle:"fenced"});s.keep(["ins","del","mark"]),s.keep(function(e){var t,r;return"A"===e.nodeName&&null!==(r=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.includes("ai_reasoning$"))&&void 0!==r&&r}),s.addRule("md-table-passthrough",{filter:function(e){return"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table")},replacement:function(e,t){return t.textContent||""}}),s.use(f);var h=function(d){var f=d.type,h=d.value,m=d.handleUpdateState,p=d.onBlur,g=d.placeholder,v=d.minHeight,E=d.height,A=d.mode,w=d.doNotShowBorderInViewMode,y=n(null),b=o({type:f,value:h}),x=b[0],S=b[1],C=o(0),N=C[0],T=C[1],L=u(),_=L.contentRef;L.setContentRef;i(function(){S(function(t){return e(e({},t),{value:h})})},[h]);return i(function(){var e=function(){_&&_.current&&T(_.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[_]),t(r,{children:t(c,{minHeight:v,height:E,placeholder:g||"Enter some text...",onChange:function(e,t){e.read(function(){var e=l(t,null),r=(new DOMParser).parseFromString(e,"text/html");function n(e){return Array.from(e.childNodes).map(function(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";if(e.nodeType===Node.ELEMENT_NODE){var t=e,r=t.tagName.toLowerCase(),o=n(t);if("strong"===r||"b"===r)return o.startsWith("<strong>")&&o.endsWith("</strong>")?o:"<strong>".concat(o,"</strong>");if("em"===r||"i"===r)return o.startsWith("<em>")&&o.endsWith("</em>")?o:"<em>".concat(o,"</em>");if("code"===r)return"<code>".concat(o,"</code>");if("u"===r)return"<u>".concat(o,"</u>");if("s"===r)return"<s>".concat(o,"</s>");if("a"===r){var i=t.getAttribute("href")||"";return'<a href="'.concat(i,'">').concat(o,"</a>")}return o}return""}).join("")}r.querySelectorAll("span").forEach(function(e){var t=e.getAttribute("style")||"";t.includes("background-color")&&t.includes("rgb(219, 234, 254)")&&e.setAttribute("data-review","insert"),t.includes("text-decoration")&&t.includes("line-through")&&e.setAttribute("data-review","delete")}),r.querySelectorAll("strong code").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll("code strong").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e){e.innerHTML=n(e)});var o=[];r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e,t){o.push(e.outerHTML);var n=r.createElement("span");n.textContent="%%REVIEW_".concat(t,"%%"),e.replaceWith(n)});var i=[];r.querySelectorAll("table").forEach(function(e,t){i.push(e.outerHTML);var n=r.createElement("p");n.textContent="%%TABLE_".concat(t,"%%"),e.replaceWith(n)});var a=s.turndown(r.body.innerHTML);o.forEach(function(e,t){a=a.replace("%%REVIEW\\_".concat(t,"%%"),e)}),i.forEach(function(e,t){a=a.replace("%%TABLE\\_".concat(t,"%%"),"\n\n".concat(e,"\n\n"))}),function(e,t){m(e,t)}("prompt",a=a.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"))})},toolbarConfig:a,editorRef:y,mode:A,initialString:{type:x.type,value:x.value},dynamicHeight:N,onBlur:p,doNotShowBorderInViewMode:w||!1})})};export{h as default};
1
+ import{__assign as e}from"tslib";import{jsx as t,Fragment as r}from"react/jsx-runtime";import{useRef as n,useState as o,useEffect as i}from"react";import{DEFAULT_TOOLBAR_CONFIG as a}from"./Editor/constants/editorConfig.js";import c from"./Editor/Editor.js";import{useRefStore as u}from"../../store/ref.context.js";import{$generateHtmlFromNodes as l}from"@lexical/html";import d from"turndown";import{tables as f}from"turndown-plugin-gfm";var s=new d({headingStyle:"atx",codeBlockStyle:"fenced"});s.keep(["ins","del","mark"]),s.keep(function(e){var t,r;return"A"===e.nodeName&&null!==(r=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.includes("ai_reasoning$"))&&void 0!==r&&r}),s.keep(function(e){return"SPAN"===e.nodeName&&e.hasAttribute("highlight-id")}),s.addRule("md-table-passthrough",{filter:function(e){return"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table")},replacement:function(e,t){return t.textContent||""}}),s.use(f);var h=function(d){var f=d.type,h=d.value,m=d.handleUpdateState,p=d.onBlur,g=d.placeholder,v=d.minHeight,E=d.height,A=d.mode,b=d.doNotShowBorderInViewMode,w=n(null),y=o({type:f,value:h}),x=y[0],S=y[1],N=o(0),C=N[0],T=N[1],L=u(),_=L.contentRef;L.setContentRef;i(function(){S(function(t){return e(e({},t),{value:h})})},[h]);return i(function(){var e=function(){_&&_.current&&T(_.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[_]),t(r,{children:t(c,{minHeight:v,height:E,placeholder:g||"Enter some text...",onChange:function(e,t){e.read(function(){var e=l(t,null),r=(new DOMParser).parseFromString(e,"text/html");function n(e){return Array.from(e.childNodes).map(function(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";if(e.nodeType===Node.ELEMENT_NODE){var t=e,r=t.tagName.toLowerCase(),o=n(t);if("strong"===r||"b"===r)return o.startsWith("<strong>")&&o.endsWith("</strong>")?o:"<strong>".concat(o,"</strong>");if("em"===r||"i"===r)return o.startsWith("<em>")&&o.endsWith("</em>")?o:"<em>".concat(o,"</em>");if("code"===r)return"<code>".concat(o,"</code>");if("u"===r)return"<u>".concat(o,"</u>");if("s"===r)return"<s>".concat(o,"</s>");if("a"===r){var i=t.getAttribute("href")||"";return'<a href="'.concat(i,'">').concat(o,"</a>")}return o}return""}).join("")}r.querySelectorAll("span").forEach(function(e){var t=e.getAttribute("style")||"";t.includes("background-color")&&t.includes("rgb(219, 234, 254)")&&e.setAttribute("data-review","insert"),t.includes("text-decoration")&&t.includes("line-through")&&e.setAttribute("data-review","delete")}),r.querySelectorAll("strong code").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll("code strong").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e){e.innerHTML=n(e)});var o=[];r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e,t){o.push(e.outerHTML);var n=r.createElement("span");n.textContent="%%REVIEW_".concat(t,"%%"),e.replaceWith(n)});var i=[];r.querySelectorAll("table").forEach(function(e,t){i.push(e.outerHTML);var n=r.createElement("p");n.textContent="%%TABLE_".concat(t,"%%"),e.replaceWith(n)});var a=s.turndown(r.body.innerHTML);o.forEach(function(e,t){a=a.replace("%%REVIEW\\_".concat(t,"%%"),e)}),i.forEach(function(e,t){a=a.replace("%%TABLE\\_".concat(t,"%%"),"\n\n".concat(e,"\n\n"))}),function(e,t){m(e,t)}("prompt",a=a.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"))})},toolbarConfig:a,editorRef:w,mode:A,initialString:{type:x.type,value:x.value},dynamicHeight:C,onBlur:p,doNotShowBorderInViewMode:b||!1})})};export{h as default};
2
2
  //# sourceMappingURL=RichTextEditor.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as n,__assign as e}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import t,{createContext as r,useRef as l,useState as a,useCallback as d,useMemo as c,useEffect as s,useContext as u}from"react";import v from"react-markdown";import g from"rehype-raw";import m from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as p}from"../../shared/useMarkdownSearch.js";import{Info as h}from"lucide-react";import{Tooltip as f}from"@mui/material";import C from"dompurify";import y from"../../shared/UpdatedAnimationContent.js";import S from"../../shared/GeneratedCodeCitation.js";import w from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as R}from"../RequirementAIWrapper/RequirementAIWrapper.js";import I from"../../icons/CognitiveDecision.js";import b from"../../icons/BrainRed.js";import x,{SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING as N}from"../ai-reasoning/AiReasoningCitation.js";import k from"../../icons/RelevanceScoreIcon.js";import A from"../RecommendationBlock/RecommendationBlock.js";import j from"../UserStoryCard/AttachedContext.js";import U from"../ai-reasoning/AiReasoningCitationContent.js";import T from"./components/InlineUpdatedComponent.js";import L from"../segment/SegmentWrapper.js";import{MarkdownContextProvider as _}from"../../store/markdown-context.js";var M=r(!1),P=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),E=r({rowId:""}),$=function(n){var t,r=n.aiReason,l=n.isHighConfidence,a=n.customStyle,d=n.customIcons,c=u(P),s=c.expandedInfo,v=c.setExpanded,g=c.reasonToRow,p=u(E).rowId,h=String(r.id);p&&g.current.set(h,p);var f=(null===(t=null==s?void 0:s.aiReason)||void 0===t?void 0:t.id)===r.id,C=l?(null==d?void 0:d.highConfidence)||i(I,{}):(null==d?void 0:d.lowConfidence)||i(b,{});return o("button",e({className:m.aiReasoningButton,style:a,onClick:function(n){n.stopPropagation(),n.preventDefault(),v(f?null:p,f?null:r)}},{children:[C,i("i",f?{className:"pi pi-angle-up ".concat(l?m.aiReasoningIconHighConfidence:m.aiReasoningIconLowConfidence)}:{className:"pi pi-angle-down ".concat(l?m.aiReasoningIconHighConfidence:m.aiReasoningIconLowConfidence)})]}))},D=function(n){var t,r,a=n.children,d=n.node,c=n.customStyles,s=n.customIcons,v=l(Math.random().toString(36).slice(2)).current,g=u(P).expandedInfo,p=(null==g?void 0:g.rowId)===v,h=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(n){return"element"===n.type}).length:1,f=null!==(r=null===(t=null==d?void 0:d.properties)||void 0===t?void 0:t.style)&&void 0!==r?r:void 0;return o(E.Provider,e({value:{rowId:v}},{children:[i("tr",e({style:f?{cssText:f}:void 0},{children:a})),p&&(null==g?void 0:g.aiReason)&&i("tr",e({style:{width:"100%"}},{children:i("td",e({colSpan:h||1,className:m.tableExpandedCell},{children:i("div",e({className:m.tableExpandedCellInner},{children:i("div",e({className:m.tableExpandedCellContent},{children:i(U,{aiReason:g.aiReason,customIcons:s,customStyles:{aiReasoningContent:null==c?void 0:c.aiReasoningContent,aiReasoningAccordion:null==c?void 0:c.aiReasoningAccordion,aiReasoningMarkdown:null==c?void 0:c.aiReasoningMarkdown,aiReasoningPill:null==c?void 0:c.aiReasoningPill,webCitation:null==c?void 0:c.webCitation,stormeeCitation:null==c?void 0:c.stormeeCitation,waveformCitation:null==c?void 0:c.waveformCitation,imageCitation:null==c?void 0:c.imageCitation,fileCitation:null==c?void 0:c.fileCitation,appModCitation:null==c?void 0:c.appModCitation,rcaCitation:null==c?void 0:c.rcaCitation,readFileCitation:null==c?void 0:c.readFileCitation,loadingCitations:null==c?void 0:c.loadingCitations,chatCitation:null==c?void 0:c.chatCitation}})}))}))}))}))]}))};var F=["del","ins"];function H(n){return function(n,e,i){var o=e.join("|");return n.replace(new RegExp("<(".concat(o,")>([\\s\\S]*?)<\\/\\1>"),"gi"),function(n,e,o){return"<".concat(e,">").concat(i(o),"</").concat(e,">")})}(n,F,function(n){return n.split(/(<[^>]+>)/g).map(function(n){return!n||/^<[^>]+>$/.test(n)?n:function(n){if(!n)return n;var e=[];return n.replace(/`([^`\n]+)`/g,function(n,i){var o=e.push(i)-1;return"@@CODE_SPAN_".concat(o,"@@")}).replace(/\*\*([\s\S]+?)\*\*/g,"<strong>$1</strong>").replace(/__([\s\S]+?)__/g,"<strong>$1</strong>").replace(/@@CODE_SPAN_(\d+)@@/g,function(n,i){var o,t=null!==(o=e[Number(i)])&&void 0!==o?o:"";return"<code>".concat(t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),"</code>")})}(n)}).join("")})}var B=function(r){var I,b=r.message,U=r.noMarkdownContent,E=r.useMarkdown,F=void 0===E||E,B=r.isParent,O=r.scenario,q=r.showUserStoryDiff,z=void 0!==q&&q,V=r.aiReasoningsForBlock,W=r.isCitationLoadingDisplay,G=void 0!==W&&W,Q=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var J=r.customStyles,K=r.customIcons,X=r.contextVariant,Y=r.aiReasoningDiffView,Z=r.userStoryCitations,nn=r.artifactId,en=r.isCraflow,on=r.onCraAccept,tn=r.onCraReject,rn=r.craFlowConfig,ln=r.isDisplayHighlightControl,an=void 0!==ln&&ln,dn=r.showConfidenceScore,cn=void 0===dn||dn,sn=l(null),un=R(),vn=un.userStory,gn=un.inlineUpdateComponentConfig,mn=un.getAvgScoreForStory,pn=un.setUserStory,hn=un.aiReasoning,fn=un.setAiReasoning,Cn=un.customIcons,yn=un.searchQueryList,Sn=un.searchQueryReasoningIdList,wn=un.currentHighlightIndex,Rn=un.segmentComponentConfig,In=null!=K?K:null==Cn?void 0:Cn.userStoryIcons;null==J||J.searchHighlight;var bn=p(sn),xn=bn.search,Nn=bn.clear,kn=a("1"),An=kn[0],jn=kn[1],Un=a(null),Tn=Un[0],Ln=Un[1],_n=l(new Map),Mn=d(function(n,e){Ln(n&&e?{rowId:n,aiReason:e}:null)},[]),Pn=nn?mn(nn):0,En=a([]),$n=En[0],Dn=En[1],Fn=function(n){return null==n?"":"string"==typeof n?n:"number"==typeof n?String(n):Array.isArray(n)?n.map(Fn).join(""):t.isValidElement(n)?Fn(n.props.children):""},Hn=function(n){var e=n;return e=function(n){for(var e,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,o=[],t=new RegExp(i.source,i.flags);null!==(e=t.exec(n));){var r=e[0],l=r.match(/<deleted>([\s\S]*?)<\/deleted>/i),a=r.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(n){return(n.match(/^\s*\d+\.\s/gm)||[]).length};o.push({index:e.index,endIndex:e.index+e[0].length,deletedItemCount:d((null==l?void 0:l[1])||""),changedItemCount:d((null==a?void 0:a[1])||"")})}if(0===o.length)return n;for(var c=n,s=function(n){var e=o[n],i=e.changedItemCount-e.deletedItemCount;if(0===i)return"continue";for(var t=!1,r=0,l=c.substring(0,e.index).split("\n").reverse();r<l.length;r++){var a=l[r].trim();if(""!==a){/^\d+\.\s/.test(a)&&(t=!0);break}}if(!t)return"continue";var d=e.endIndex,s=n+1<o.length?o[n+1].index:c.length,u=c.substring(d,s);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(n,e,o){return"".concat(e).concat(parseInt(o,10)+i,". ")}),c=c.substring(0,d)+u+c.substring(s)},u=o.length-1;u>=0;u--)s(u);return c}(e=(e=(e=(e=(e=(e=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/ai_reasoning\$(\d+)/g,function(n,e){return"ai_reasoning$".concat(e,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(n,e,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(e,' data-raw="').concat(o,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,function(n,e,i,o,t){var r=o.match(/<table[\s\S]*?<\/table>/i);if(r){var l=btoa(encodeURIComponent(r[0]));return"<segment".concat(i,' data-table="').concat(l,'"></segment>')}return n})).replace(/<updatedsegment([^>]*)>([\s\S]*?)<\/updatedsegment>/gi,function(n,e,i){if(/<table[\s>]/i.test(i)){var o=btoa(encodeURIComponent(i));return"<updatedsegment".concat(e,' data-raw="').concat(o,'"></updatedsegment>')}return n})).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(n,i,o,t){var r=e.substring(0,t),l=r.lastIndexOf("\n"),a=/^\s+[-*]\s/.test(r.substring(l+1))||/^\s+\d+\.\s/.test(r.substring(l+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(r.substring(l+1));if(a||d){var c=o;return c=(c=(c=(c=c.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(c,"</updated>")}return n})),e=function(n){var e=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==e}),"<deleted>".concat(i,"</deleted>")});return e.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==e,preview:e.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(e),e=H(e)},Bn=c(function(){return b?Hn(b):b},[b]);s(function(){Dn(V||hn)},[V,hn]);var On=c(function(){return{upt:function(o){var t;o.node;var r=o.children,l=n(o,["node","children"]),a=null==l?void 0:l.id,d=a?null===(t=a.split("$"))||void 0===t?void 0:t[1]:null,c=hn.find(function(n){return n.id.toString()===d});return c?i(T,e({aiReason:c,customStyles:null==J?void 0:J.inlineUpdatedComponent,handleClickCognitiveDecision:null==gn?void 0:gn.handleClickCognitiveDecision,handleClickUpdatedPill:null==gn?void 0:gn.handleClickUpdatedPill,handleClickOutputValue:null==gn?void 0:gn.handleClickOutputValue,customIcons:null==gn?void 0:gn.customIcons},{children:r})):r},del:function(o){var t,r,l,a;o.node;var d=o.children,c=n(o,["node","children"]),s=c.aireason,u=s&&(null===(t=s.deviation_details)||void 0===t?void 0:t.resolved)&&("rejected"===(null===(r=s.deviation_details)||void 0===r?void 0:r.resolved)||"reverted"===(null===(l=s.deviation_details)||void 0===l?void 0:l.resolved));return i("span",e({className:m.deleted,style:e(e({},null!==(a=null==J?void 0:J.deleted)&&void 0!==a?a:{}),{textDecoration:u?"none":"line-through"})},c,{onClick:c.onclick},{children:d}))},ins:function(o){var t=o.children,r=n(o,["children"]);return i("span",e({className:m.inserted,style:null==J?void 0:J.inserted},r,{onClick:r.onclick},{children:t}))},preserved:function(o){var t=o.children,r=n(o,["children"]);return i("span",e({className:m.preserved,style:null==J?void 0:J.preserved},r,{onClick:r.onclick},{children:t}))},h1:function(o){o.node;var t=n(o,["node"]);return i("h1",e({className:m.heading1,style:null==J?void 0:J.heading1},{children:t.children}))},h2:function(o){o.node;var t=n(o,["node"]);return i("h2",e({className:m.heading2,style:null==J?void 0:J.heading2},{children:t.children}))},h3:function(o){o.node;var t=n(o,["node"]);return i("h3",e({className:m.heading3,style:null==J?void 0:J.heading3},{children:t.children}))},b:function(o){o.node;var t=n(o,["node"]);return i("b",e({className:m.bold,style:null==J?void 0:J.bold},{children:null==t?void 0:t.children}))},p:function(o){o.node;var t=n(o,["node"]);return i("p",e({},t,{className:m.paragraph,style:null==J?void 0:J.paragraph},{children:t.children}))},updated:function(o){var t=o.node,r=n(o,["node"]);return i(y,e({},r,{showUserStoryDiff:z,currentUpdatedTagId:An,setCurrentUpdatedTagId:jn,userStory:vn,setUserStory:pn,setAiReasoning:fn,node:t,isCraflow:en,onCraAccept:on,onCraReject:tn,customStyles:null==J?void 0:J.updatedContent,craFlowConfig:rn}))},ol:function(o){var t,r,l,a=o.node,d=n(o,["node"]),c=null!==(l=null!==(r=null===(t=null==a?void 0:a.properties)||void 0===t?void 0:t.start)&&void 0!==r?r:null==d?void 0:d.start)&&void 0!==l?l:void 0;return i("ol",e({className:m.orderedList,style:null==J?void 0:J.olist},c?{start:Number(c)}:{},{children:null==d?void 0:d.children}))},ul:function(o){o.node;var t=n(o,["node"]);return i("ul",e({className:m.unorderedList,style:null==J?void 0:J.ulist},{children:null==t?void 0:t.children}))},table:function(n){var o=n.children;return i("div",e({className:m.tableWrapper},{children:i("table",e({className:m.table,style:null==J?void 0:J.table},{children:o}))}))},tr:function(n){var e=n.node,o=n.children;return i(D,{node:e,children:o,customStyles:J})},td:function(o){var t,r=o.node,l=o.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},d=a.style,c=n(a,["style"]);return i(M.Provider,e({value:!0},{children:i("td",e({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(o){var t,r=o.node,l=o.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},d=a.style,c=n(a,["style"]);return i(M.Provider,e({value:!0},{children:i("th",e({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},recommendation:function(o){var t;o.node;var r=n(o,["node"]),l="The AI has selected this content based on: ".concat((null===(t=null==r?void 0:r.children)||void 0===t?void 0:t[0])||"");return i(A,e({},r,{customStyles:null==J?void 0:J.recommendationBlock,label:l}))},a:function(e){var o,r,l;e.inline;var a=e.children;e.node;var d=n(e,["inline","children","node"]),c=u(M)||"true"==(null==d?void 0:d.table),s="".concat(null==d?void 0:d.href),v=null===(o=s.split("$"))||void 0===o?void 0:o[0],g=null===(r=s.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===v){var m=(null!==(l=z?Y:hn)&&void 0!==l?l:[]).find(function(n){return n.id.toString()===decodeURIComponent(g)}),p=Sn.includes(g);if(m){if(c)return i($,{aiReason:m,customStyle:null==J?void 0:J.tableAiReasoning,customIcons:In,isHighConfidence:m.relevance_score>=N});var h="source"!==t.Children.toArray(a).join("").trim().toLowerCase();return i(x,{aiReason:m,isSourceHasHighlight:p,inlineLabel:a,isInlineCitation:h,customIcons:In,customStyles:{aiReasoningContent:null==J?void 0:J.aiReasoningContent,aiReasoningAccordion:null==J?void 0:J.aiReasoningAccordion,aiReasoningMarkdown:null==J?void 0:J.aiReasoningMarkdown,aiReasoningPill:null==J?void 0:J.aiReasoningPill,webCitation:null==J?void 0:J.webCitation,stormeeCitation:null==J?void 0:J.stormeeCitation,waveformCitation:null==J?void 0:J.waveformCitation,imageCitation:null==J?void 0:J.imageCitation,fileCitation:null==J?void 0:J.fileCitation,appModCitation:null==J?void 0:J.appModCitation,rcaCitation:null==J?void 0:J.rcaCitation,readFileCitation:null==J?void 0:J.readFileCitation,loadingCitations:null==J?void 0:J.loadingCitations,chatCitation:null==J?void 0:J.chatCitation,bigEnoughCitation:null==J?void 0:J.bigEnoughCitation}})}}return null},code:function(o){o.inline;var t=o.children,r=o.className;return o.node,n(o,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?i("div",{children:i("code",e({className:m.blockCode,style:null==J?void 0:J.code},{children:t}))}):i("code",e({className:m.inlineCode,style:null==J?void 0:J.code},{children:t}))},learned:function(n){var o=n.children;return i(f,e({title:o,placement:"top"},{children:i(h,{size:16,className:m.learned})}))},generatedcode:function(e){e.node;var o=n(e,["node"]),t=(null==o?void 0:o.language)||"python",r=function(n){var e="";try{if(n["data-raw"])e=decodeURIComponent(atob(n["data-raw"]));else{var i=function(n){var e;return"string"==typeof n?n:Array.isArray(n)?n.map(i).join(""):(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)?i(n.props.children):""};e=i(n.children)}}catch(i){console.error("Error decoding generated code:",i),e=String(n.children)}return e}(o);return i(S,{title:"Generated Code",code:r,language:t,customStyles:{pill:null==J?void 0:J.generatedCodePill,content:null==J?void 0:J.generatedCodeContent}})},updatedsegment:function(e){var o,t,r,l,a=e.node,d=e.children,c=n(e,["node","children"]),s="".concat(null===(o=a.position)||void 0===o?void 0:o.start.line,"-").concat(null===(t=a.position)||void 0===t?void 0:t.start.column,"-").concat(null===(r=a.position)||void 0===r?void 0:r.end.line,"-").concat(null===(l=a.position)||void 0===l?void 0:l.end.column),u=function(n){if(!n["data-raw"])return null;try{return decodeURIComponent(atob(n["data-raw"]))}catch(n){return console.error("Error decoding segment raw content:",n),null}}(c),v=i("div",u?{dangerouslySetInnerHTML:{__html:C.sanitize(u)}}:{children:d});return i(L,{id:s,node:a,children:v,props:c,segmentComponentConfig:Rn,customStyles:J,customIcons:K,extractText:Fn,isUpdatedSegment:!0})},segment:function(e){var o,t,r,l,a=e.node,d=e.children,c=n(e,["node","children"]),s="".concat(null===(o=a.position)||void 0===o?void 0:o.start.line,"-").concat(null===(t=a.position)||void 0===t?void 0:t.start.column,"-").concat(null===(r=a.position)||void 0===r?void 0:r.end.line,"-").concat(null===(l=a.position)||void 0===l?void 0:l.end.column);return i(L,{id:s,node:a,children:d,props:c,segmentComponentConfig:Rn,customStyles:J,customIcons:K,extractText:Fn})}}},[$n,rn,hn,Z,An,z,b,K,yn,Sn,J,Rn]);return s(function(){if(sn.current){if(yn.length){var n;if(0===Sn.length||an)requestAnimationFrame(function(){xn([yn[wn].replace(/\*/g,"")])});else{var e=sn.current,i=new MutationObserver(function(){clearTimeout(n),n=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){xn([yn[wn].replace(/\*/g,"")])})},50)});i.observe(e,{childList:!0,subtree:!0})}return function(){clearTimeout(n)}}Nn()}},[yn,Sn,wn,an]),i(P.Provider,e({value:{expandedInfo:Tn,setExpanded:Mn,reasonToRow:_n}},{children:o("div",e({ref:sn,className:"".concat(m.container," ").concat("approving"!==O?m.wrapper:""," ").concat(Q||""),style:null==J?void 0:J.container},{children:[F?i(_,{children:i(v,e({components:On,rehypePlugins:[g]},{children:Bn}))}):U,Pn>0&&cn&&i("div",e({className:m.confidenceScoreContainer,style:null==J?void 0:J.confidenceScoreContainer},{children:o("span",e({className:m.confidenceScore,style:null==J?void 0:J.confidenceScore},{children:[i(k,{size:14,color:(null==J?void 0:J.confidenceScoreIconColor)||"#166534"}),Pn,"%"]}))})),G&&i("div",e({className:m.citationLoader,style:null==J?void 0:J.citationLoaderContainer},{children:i(w,{customStyles:{container:null==J?void 0:J.citationLoadingContainer,icon:null==J?void 0:J.citationLoadingIcon,text:null==J?void 0:J.citationLoadingText}})})),B&&i("div",e({style:e({},null===(I=null==J?void 0:J.attachedContext)||void 0===I?void 0:I.wrapper),className:"flex mt-5"},{children:i(j,{customStyles:null==J?void 0:J.attachedContext,variant:X})}))]}))}))};export{B as default};
1
+ import{__rest as n,__assign as e}from"tslib";import{jsx as i,Fragment as o,jsxs as t}from"react/jsx-runtime";import l,{createContext as r,useRef as a,useState as d,useCallback as c,useMemo as s,useEffect as u,useContext as v}from"react";import g from"react-markdown";import p from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as m}from"../../shared/useMarkdownSearch.js";import{Info as f}from"lucide-react";import{Tooltip as C}from"@mui/material";import y from"dompurify";import S from"../../shared/UpdatedAnimationContent.js";import w from"../../shared/GeneratedCodeCitation.js";import I from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as b}from"../RequirementAIWrapper/RequirementAIWrapper.js";import R from"../../icons/CognitiveDecision.js";import x from"../../icons/BrainRed.js";import N,{SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING as k}from"../ai-reasoning/AiReasoningCitation.js";import A from"../../icons/RelevanceScoreIcon.js";import j from"../RecommendationBlock/RecommendationBlock.js";import U from"../UserStoryCard/AttachedContext.js";import T from"../ai-reasoning/AiReasoningCitationContent.js";import E from"./components/InlineUpdatedComponent.js";import L from"../segment/SegmentWrapper.js";import{MarkdownContextProvider as _}from"../../store/markdown-context.js";import M from"./components/HighlightButtonComponent.js";var P=r(!1),$=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),D=r({rowId:""}),H=function(n){var o,l=n.aiReason,r=n.isHighConfidence,a=n.customStyle,d=n.customIcons,c=v($),s=c.expandedInfo,u=c.setExpanded,g=c.reasonToRow,p=v(D).rowId,m=String(l.id);p&&g.current.set(m,p);var f=(null===(o=null==s?void 0:s.aiReason)||void 0===o?void 0:o.id)===l.id,C=r?(null==d?void 0:d.highConfidence)||i(R,{}):(null==d?void 0:d.lowConfidence)||i(x,{});return t("button",e({className:h.aiReasoningButton,style:a,onClick:function(n){n.stopPropagation(),n.preventDefault(),u(f?null:p,f?null:l)}},{children:[C,i("i",f?{className:"pi pi-angle-up ".concat(r?h.aiReasoningIconHighConfidence:h.aiReasoningIconLowConfidence)}:{className:"pi pi-angle-down ".concat(r?h.aiReasoningIconHighConfidence:h.aiReasoningIconLowConfidence)})]}))},F=function(n){var o,l,r=n.children,d=n.node,c=n.customStyles,s=n.customIcons,u=a(Math.random().toString(36).slice(2)).current,g=v($).expandedInfo,p=(null==g?void 0:g.rowId)===u,m=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(n){return"element"===n.type}).length:1,f=null!==(l=null===(o=null==d?void 0:d.properties)||void 0===o?void 0:o.style)&&void 0!==l?l:void 0;return t(D.Provider,e({value:{rowId:u}},{children:[i("tr",e({style:f?{cssText:f}:void 0},{children:r})),p&&(null==g?void 0:g.aiReason)&&i("tr",e({style:{width:"100%"}},{children:i("td",e({colSpan:m||1,className:h.tableExpandedCell},{children:i("div",e({className:h.tableExpandedCellInner},{children:i("div",e({className:h.tableExpandedCellContent},{children:i(T,{aiReason:g.aiReason,customIcons:s,customStyles:{aiReasoningContent:null==c?void 0:c.aiReasoningContent,aiReasoningAccordion:null==c?void 0:c.aiReasoningAccordion,aiReasoningMarkdown:null==c?void 0:c.aiReasoningMarkdown,aiReasoningPill:null==c?void 0:c.aiReasoningPill,webCitation:null==c?void 0:c.webCitation,stormeeCitation:null==c?void 0:c.stormeeCitation,waveformCitation:null==c?void 0:c.waveformCitation,imageCitation:null==c?void 0:c.imageCitation,fileCitation:null==c?void 0:c.fileCitation,appModCitation:null==c?void 0:c.appModCitation,rcaCitation:null==c?void 0:c.rcaCitation,readFileCitation:null==c?void 0:c.readFileCitation,loadingCitations:null==c?void 0:c.loadingCitations,chatCitation:null==c?void 0:c.chatCitation}})}))}))}))}))]}))};var B=["del","ins"];function O(n){return function(n,e,i){var o=e.join("|");return n.replace(new RegExp("<(".concat(o,")>([\\s\\S]*?)<\\/\\1>"),"gi"),function(n,e,o){return"<".concat(e,">").concat(i(o),"</").concat(e,">")})}(n,B,function(n){return n.split(/(<[^>]+>)/g).map(function(n){return!n||/^<[^>]+>$/.test(n)?n:function(n){if(!n)return n;var e=[];return n.replace(/`([^`\n]+)`/g,function(n,i){var o=e.push(i)-1;return"@@CODE_SPAN_".concat(o,"@@")}).replace(/\*\*([\s\S]+?)\*\*/g,"<strong>$1</strong>").replace(/__([\s\S]+?)__/g,"<strong>$1</strong>").replace(/@@CODE_SPAN_(\d+)@@/g,function(n,i){var o,t=null!==(o=e[Number(i)])&&void 0!==o?o:"";return"<code>".concat(t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),"</code>")})}(n)}).join("")})}var q=function(r){var R,x=r.message,T=r.noMarkdownContent,D=r.useMarkdown,B=void 0===D||D,q=r.isParent,z=r.scenario,V=r.showUserStoryDiff,W=void 0!==V&&V,G=r.aiReasoningsForBlock,Q=r.isCitationLoadingDisplay,J=void 0!==Q&&Q,K=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var X=r.customStyles,Y=r.customIcons,Z=r.contextVariant,nn=r.aiReasoningDiffView,en=r.userStoryCitations,on=r.artifactId,tn=r.isCraflow,ln=r.onCraAccept,rn=r.onCraReject,an=r.craFlowConfig,dn=r.isDisplayHighlightControl,cn=void 0!==dn&&dn,sn=r.showConfidenceScore,un=void 0===sn||sn,vn=a(null),gn=b(),pn=gn.userStory,hn=gn.inlineUpdateComponentConfig,mn=gn.getAvgScoreForStory,fn=gn.setUserStory,Cn=gn.aiReasoning,yn=gn.setAiReasoning,Sn=gn.customIcons,wn=gn.searchQueryList,In=gn.searchQueryReasoningIdList,bn=gn.currentHighlightIndex,Rn=gn.segmentComponentConfig,xn=gn.diffEditConfig,Nn=null!=Y?Y:null==Sn?void 0:Sn.userStoryIcons;null==X||X.searchHighlight;var kn=m(vn),An=kn.search,jn=kn.clear,Un=d("1"),Tn=Un[0],En=Un[1],Ln=d(null),_n=Ln[0],Mn=Ln[1],Pn=a(new Map),$n=d(new Set),Dn=$n[0],Hn=$n[1],Fn=c(function(n,e){Mn(n&&e?{rowId:n,aiReason:e}:null)},[]),Bn=on?mn(on):0,On=d([]),qn=On[0],zn=On[1],Vn=c(function(n){Hn(function(e){var i=new Set(e);return i.has(n)?i.delete(n):i.add(n),i})},[]),Wn=function(n){return null==n?"":"string"==typeof n?n:"number"==typeof n?String(n):Array.isArray(n)?n.map(Wn).join(""):l.isValidElement(n)?Wn(n.props.children):""},Gn=function(n){var e=n;return e=function(n){for(var e,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,o=[],t=new RegExp(i.source,i.flags);null!==(e=t.exec(n));){var l=e[0],r=l.match(/<deleted>([\s\S]*?)<\/deleted>/i),a=l.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(n){return(n.match(/^\s*\d+\.\s/gm)||[]).length};o.push({index:e.index,endIndex:e.index+e[0].length,deletedItemCount:d((null==r?void 0:r[1])||""),changedItemCount:d((null==a?void 0:a[1])||"")})}if(0===o.length)return n;for(var c=n,s=function(n){var e=o[n],i=e.changedItemCount-e.deletedItemCount;if(0===i)return"continue";for(var t=!1,l=0,r=c.substring(0,e.index).split("\n").reverse();l<r.length;l++){var a=r[l].trim();if(""!==a){/^\d+\.\s/.test(a)&&(t=!0);break}}if(!t)return"continue";var d=e.endIndex,s=n+1<o.length?o[n+1].index:c.length,u=c.substring(d,s);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(n,e,o){return"".concat(e).concat(parseInt(o,10)+i,". ")}),c=c.substring(0,d)+u+c.substring(s)},u=o.length-1;u>=0;u--)s(u);return c}(e=(e=(e=(e=(e=(e=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/ai_reasoning\$(\d+)/g,function(n,e){return"ai_reasoning$".concat(e,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(n,e,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(e,' data-raw="').concat(o,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,function(n,e,i,o,t){var l=o.match(/<table[\s\S]*?<\/table>/i);if(l){var r=btoa(encodeURIComponent(l[0]));return"<segment".concat(i,' data-table="').concat(r,'"></segment>')}return n})).replace(/<updatedsegment([^>]*)>([\s\S]*?)<\/updatedsegment>/gi,function(n,e,i){if(/<table[\s>]/i.test(i)){var o=btoa(encodeURIComponent(i));return"<updatedsegment".concat(e,' data-raw="').concat(o,'"></updatedsegment>')}return n})).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(n,i,o,t){var l=e.substring(0,t),r=l.lastIndexOf("\n"),a=/^\s+[-*]\s/.test(l.substring(r+1))||/^\s+\d+\.\s/.test(l.substring(r+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(l.substring(r+1));if(a||d){var c=o;return c=(c=(c=(c=c.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(c,"</updated>")}return n})),e=function(n){var e=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==e}),"<deleted>".concat(i,"</deleted>")});return e.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==e,preview:e.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(e),e=O(e)},Qn=s(function(){return x?Gn(x):x},[x]);u(function(){zn(G||Cn)},[G,Cn]);var Jn=s(function(){return{span:function(o){var t,l,r,a,d,c=o.node,s=o.children,u=n(o,["node","children"]),v=null!==(l=null===(t=null==c?void 0:c.properties)||void 0===t?void 0:t["highlight-id"])&&void 0!==l?l:null==u?void 0:u["highlight-id"],g="string"==typeof v&&Dn.has(v),p=null!==(a=null===(r=null==c?void 0:c.properties)||void 0===r?void 0:r["highlight-color"])&&void 0!==a?a:null==u?void 0:u["highlight-color"];return i("span",e({style:e(e({},null!==(d=null==X?void 0:X.span)&&void 0!==d?d:{}),g?{backgroundColor:p||"#fef08a"}:{})},{children:s}))},button:function(e){var t,l,r,a,d,c,s=e.node;e.children;var u=n(e,["node","children"]),v=null!==(l=null===(t=null==s?void 0:s.properties)||void 0===t?void 0:t.action)&&void 0!==l?l:null==u?void 0:u.action,g=null!==(a=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r["highlight-id"])&&void 0!==a?a:null==u?void 0:u["highlight-id"],p=null!==(c=null===(d=null==s?void 0:s.properties)||void 0===d?void 0:d["highlight-type"])&&void 0!==c?c:null==u?void 0:u["highlight-type"];return"highlight"===v?i(M,{highlightId:g,handleHighlightSpan:Vn,icon:"web"===p?null==Nn?void 0:Nn.webCitationIcon:"doc"===p?null==Nn?void 0:Nn.fileCitationIcon:i(o,{}),customStyles:"web"===p?null==X?void 0:X.webButton:"doc"===p?null==X?void 0:X.docButton:{}}):null},upt:function(o){var t;o.node;var l=o.children,r=n(o,["node","children"]),a=null==r?void 0:r.id,d=a?null===(t=a.split("$"))||void 0===t?void 0:t[1]:null,c=Cn.find(function(n){return n.id.toString()===d});return c?i(E,e({aiReason:c,customStyles:null==X?void 0:X.inlineUpdatedComponent,handleClickCognitiveDecision:null==hn?void 0:hn.handleClickCognitiveDecision,handleClickUpdatedPill:null==hn?void 0:hn.handleClickUpdatedPill,handleClickOutputValue:null==hn?void 0:hn.handleClickOutputValue,customIcons:null==hn?void 0:hn.customIcons},{children:l})):l},del:function(o){var t,l,r,a;o.node;var d=o.children,c=n(o,["node","children"]),s=c.aireason,u=s&&(null===(t=s.deviation_details)||void 0===t?void 0:t.resolved)&&("rejected"===(null===(l=s.deviation_details)||void 0===l?void 0:l.resolved)||"reverted"===(null===(r=s.deviation_details)||void 0===r?void 0:r.resolved));return i("span",e({className:h.deleted,style:e(e({},null!==(a=null==X?void 0:X.deleted)&&void 0!==a?a:{}),{textDecoration:u?"none":"line-through"})},c,{onClick:c.onclick},{children:d}))},ins:function(o){var t=o.children,l=n(o,["children"]);return i("span",e({className:h.inserted,style:null==X?void 0:X.inserted},l,{onClick:l.onclick},{children:t}))},preserved:function(o){var t=o.children,l=n(o,["children"]);return i("span",e({className:h.preserved,style:null==X?void 0:X.preserved},l,{onClick:l.onclick},{children:t}))},h1:function(o){o.node;var t=n(o,["node"]);return i("h1",e({className:h.heading1,style:null==X?void 0:X.heading1},{children:t.children}))},h2:function(o){o.node;var t=n(o,["node"]);return i("h2",e({className:h.heading2,style:null==X?void 0:X.heading2},{children:t.children}))},h3:function(o){o.node;var t=n(o,["node"]);return i("h3",e({className:h.heading3,style:null==X?void 0:X.heading3},{children:t.children}))},b:function(o){o.node;var t=n(o,["node"]);return i("b",e({className:h.bold,style:null==X?void 0:X.bold},{children:null==t?void 0:t.children}))},p:function(o){o.node;var t=n(o,["node"]);return i("p",e({},t,{className:h.paragraph,style:null==X?void 0:X.paragraph},{children:t.children}))},updated:function(o){var t=o.node,l=n(o,["node"]);return i(S,e({},l,{showUserStoryDiff:W,currentUpdatedTagId:Tn,setCurrentUpdatedTagId:En,userStory:pn,setUserStory:fn,setAiReasoning:yn,node:t,isCraflow:tn,onCraAccept:ln,onCraReject:rn,diffEditConfig:xn,customStyles:null==X?void 0:X.updatedContent,craFlowConfig:an}))},ol:function(o){var t,l,r,a=o.node,d=n(o,["node"]),c=null!==(r=null!==(l=null===(t=null==a?void 0:a.properties)||void 0===t?void 0:t.start)&&void 0!==l?l:null==d?void 0:d.start)&&void 0!==r?r:void 0;return i("ol",e({className:h.orderedList,style:null==X?void 0:X.olist},c?{start:Number(c)}:{},{children:null==d?void 0:d.children}))},ul:function(o){o.node;var t=n(o,["node"]);return i("ul",e({className:h.unorderedList,style:null==X?void 0:X.ulist},{children:null==t?void 0:t.children}))},table:function(n){var o=n.children;return i("div",e({className:h.tableWrapper},{children:i("table",e({className:h.table,style:null==X?void 0:X.table},{children:o}))}))},tr:function(n){var e=n.node,o=n.children;return i(F,{node:e,children:o,customStyles:X})},td:function(o){var t,l=o.node,r=o.children,a=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=a.style,c=n(a,["style"]);return i(P.Provider,e({value:!0},{children:i("td",e({},c,{style:d?{cssText:d}:void 0},{children:r}))}))},th:function(o){var t,l=o.node,r=o.children,a=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=a.style,c=n(a,["style"]);return i(P.Provider,e({value:!0},{children:i("th",e({},c,{style:d?{cssText:d}:void 0},{children:r}))}))},recommendation:function(o){var t;o.node;var l=n(o,["node"]),r="The AI has selected this content based on: ".concat((null===(t=null==l?void 0:l.children)||void 0===t?void 0:t[0])||"");return i(j,e({},l,{customStyles:null==X?void 0:X.recommendationBlock,label:r}))},a:function(e){var o,t,l;e.inline;var r=e.children;e.node;var a=n(e,["inline","children","node"]),d=v(P)||"true"==(null==a?void 0:a.table),c="".concat(null==a?void 0:a.href),s=null===(o=c.split("$"))||void 0===o?void 0:o[0],u=null===(t=c.split("$"))||void 0===t?void 0:t[1];if("ai_reasoning"===s){var g=(null!==(l=W?nn:Cn)&&void 0!==l?l:[]).find(function(n){return n.id.toString()===decodeURIComponent(u)}),p=In.includes(u);if(g){if(d)return i(H,{aiReason:g,customStyle:null==X?void 0:X.tableAiReasoning,customIcons:Nn,isHighConfidence:g.relevance_score>=k});var h=Wn(r),m="source"!==h.trim().toLowerCase();return i(N,{aiReason:g,isSourceHasHighlight:p,inlineLabel:h,isInlineCitation:m,customIcons:Nn,customStyles:{aiReasoningContent:null==X?void 0:X.aiReasoningContent,aiReasoningAccordion:null==X?void 0:X.aiReasoningAccordion,aiReasoningMarkdown:null==X?void 0:X.aiReasoningMarkdown,aiReasoningPill:null==X?void 0:X.aiReasoningPill,webCitation:null==X?void 0:X.webCitation,stormeeCitation:null==X?void 0:X.stormeeCitation,waveformCitation:null==X?void 0:X.waveformCitation,imageCitation:null==X?void 0:X.imageCitation,fileCitation:null==X?void 0:X.fileCitation,appModCitation:null==X?void 0:X.appModCitation,rcaCitation:null==X?void 0:X.rcaCitation,readFileCitation:null==X?void 0:X.readFileCitation,loadingCitations:null==X?void 0:X.loadingCitations,chatCitation:null==X?void 0:X.chatCitation,bigEnoughCitation:null==X?void 0:X.bigEnoughCitation}})}}return null},code:function(o){o.inline;var t=o.children,l=o.className;return o.node,n(o,["inline","children","className","node"]),/language-(\w+)/.exec(l||"")||(null==l?void 0:l.includes("language-"))?i("div",{children:i("code",e({className:h.blockCode,style:null==X?void 0:X.code},{children:t}))}):i("code",e({className:h.inlineCode,style:null==X?void 0:X.code},{children:t}))},learned:function(n){var o=n.children;return i(C,e({title:o,placement:"top"},{children:i(f,{size:16,className:h.learned})}))},generatedcode:function(e){e.node;var o=n(e,["node"]),t=(null==o?void 0:o.language)||"python",l=function(n){var e="";try{if(n["data-raw"])e=decodeURIComponent(atob(n["data-raw"]));else{var i=function(n){var e;return"string"==typeof n?n:Array.isArray(n)?n.map(i).join(""):(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)?i(n.props.children):""};e=i(n.children)}}catch(i){console.error("Error decoding generated code:",i),e=String(n.children)}return e}(o);return i(w,{title:"Generated Code",code:l,language:t,customStyles:{pill:null==X?void 0:X.generatedCodePill,content:null==X?void 0:X.generatedCodeContent}})},updatedsegment:function(e){var o,t,l,r,a=e.node,d=e.children,c=n(e,["node","children"]),s="".concat(null===(o=a.position)||void 0===o?void 0:o.start.line,"-").concat(null===(t=a.position)||void 0===t?void 0:t.start.column,"-").concat(null===(l=a.position)||void 0===l?void 0:l.end.line,"-").concat(null===(r=a.position)||void 0===r?void 0:r.end.column),u=function(n){if(!n["data-raw"])return null;try{return decodeURIComponent(atob(n["data-raw"]))}catch(n){return console.error("Error decoding segment raw content:",n),null}}(c),v=i("div",u?{dangerouslySetInnerHTML:{__html:y.sanitize(u)}}:{children:d});return i(L,{id:s,node:a,children:v,props:c,segmentComponentConfig:Rn,customStyles:X,customIcons:Y,extractText:Wn,isUpdatedSegment:!0})},segment:function(e){var o,t,l,r,a=e.node,d=e.children,c=n(e,["node","children"]),s="".concat(null===(o=a.position)||void 0===o?void 0:o.start.line,"-").concat(null===(t=a.position)||void 0===t?void 0:t.start.column,"-").concat(null===(l=a.position)||void 0===l?void 0:l.end.line,"-").concat(null===(r=a.position)||void 0===r?void 0:r.end.column);return i(L,{id:s,node:a,children:d,props:c,segmentComponentConfig:Rn,customStyles:X,customIcons:Y,extractText:Wn})}}},[qn,an,Cn,en,Tn,W,x,Y,wn,In,X,Rn,Dn,Vn]);return u(function(){if(vn.current){if(wn.length){var n;if(0===In.length||cn)requestAnimationFrame(function(){An([wn[bn].replace(/\*/g,"")])});else{var e=vn.current,i=new MutationObserver(function(){clearTimeout(n),n=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){An([wn[bn].replace(/\*/g,"")])})},50)});i.observe(e,{childList:!0,subtree:!0})}return function(){clearTimeout(n)}}jn()}},[wn,In,bn,cn]),i($.Provider,e({value:{expandedInfo:_n,setExpanded:Fn,reasonToRow:Pn}},{children:t("div",e({ref:vn,className:"".concat(h.container," ").concat("approving"!==z?h.wrapper:""," ").concat(K||""),style:null==X?void 0:X.container},{children:[B?i(_,{children:i(g,e({components:Jn,rehypePlugins:[p]},{children:Qn}))}):T,Bn>0&&un&&i("div",e({className:h.confidenceScoreContainer,style:null==X?void 0:X.confidenceScoreContainer},{children:t("span",e({className:h.confidenceScore,style:null==X?void 0:X.confidenceScore},{children:[i(A,{size:14,color:(null==X?void 0:X.confidenceScoreIconColor)||"#166534"}),Bn,"%"]}))})),J&&i("div",e({className:h.citationLoader,style:null==X?void 0:X.citationLoaderContainer},{children:i(I,{customStyles:{container:null==X?void 0:X.citationLoadingContainer,icon:null==X?void 0:X.citationLoadingIcon,text:null==X?void 0:X.citationLoadingText}})})),q&&i("div",e({style:e({},null===(R=null==X?void 0:X.attachedContext)||void 0===R?void 0:R.wrapper),className:"flex mt-5"},{children:i(U,{customStyles:null==X?void 0:X.attachedContext,variant:Z})}))]}))}))};export{q as default};
2
2
  //# sourceMappingURL=UserStoryWithCitation.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as t}from"tslib";import{jsx as i}from"react/jsx-runtime";var l=function(l){var n=l.props,o=l.highlightId,r=l.handleHighlightSpan,a=l.customStyles,c=l.icon;return i("button",t({},n,{onClick:function(t){var i;null===(i=null==n?void 0:n.onClick)||void 0===i||i.call(n,t),r(o)},style:t({},a)},{children:c}))};export{l as default};
2
+ //# sourceMappingURL=HighlightButtonComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HighlightButtonComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{__rest as n,__spreadArray as e,__assign as r}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Undo as l,ThumbsUp as i}from"lucide-react";import{useState as u,useRef as a,useEffect as c}from"react";import d from"./UpdatedAnimationContent.module.css.js";import{getDirectChild as s}from"../utils/diff-edit.utils.js";var v=function(v){var f,p,m,y,h=v.isCraflow,g=v.onCraAccept,S=v.onCraReject,C=v.craFlowConfig,N=v.showUserStoryDiff,w=void 0!==N&&N,b=v.currentUpdatedTagId,T=v.setCurrentUpdatedTagId;v.node;var M=v.userStory,A=v.setUserStory,x=v.setAiReasoning,I=v.customStyles,U=v.customIcons,k=n(v,["isCraflow","onCraAccept","onCraReject","craFlowConfig","showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),j=u(!1),L=j[0],z=j[1],B=u(null),F=B[0],D=B[1],E=a(null),H=a(null),O=null!==(f=null==I?void 0:I.iconSize)&&void 0!==f?f:16,R=null!==(p=null==I?void 0:I.actionIconSize)&&void 0!==p?p:O;c(function(){if(H.current){var n=setTimeout(function(){var n=H.current;n&&(n.style.scrollMarginBottom="20px",n.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(n)}}},[b]);var _,q=(Array.isArray(null==k?void 0:k.children)?k.children:null!=(null==k?void 0:k.children)?[k.children]:[]).filter(function(n){return"string"!=typeof n}),J=q.find(function(n){return"deleted"===(null==n?void 0:n.type)}),P=q.findIndex(function(n){return"deleted"===(null==n?void 0:n.type)}),V=null===(m=null==J?void 0:J.props)||void 0===m?void 0:m.children,W=q.findIndex(function(n){return"changed"===(null==n?void 0:n.type)}),X=-1!==W?q[W]:null,$=null===(y=null==X?void 0:X.props)||void 0===y?void 0:y.children,G=Math.max(W,P),K=-1!==G?q.slice(G+1).filter(function(n){return"deleted"!==(null==n?void 0:n.type)&&"changed"!==(null==n?void 0:n.type)}):[];_=$&&K.length>0?e(e([],Array.isArray($)?$:[$],!0),K,!0):$||(K.length>0?K:void 0);function Q(n,t,o){var l;(null==C?void 0:C.isCraflow)&&C.craUserStory&&(n=C.craUserStory);var i=JSON.parse(JSON.stringify(n)),u=function(n,e){var r=function(n){for(var t=0,o=n;t<o.length;t++){var l=o[t];if((new DOMParser).parseFromString(l.value,"text/html").querySelector('updated[id="'.concat(e,'"]')))return l;if(l.sub_features&&l.sub_features.length>0){var i=r(l.sub_features);if(i)return i}}return null};return r(n)}(i,t);if(!u)return console.warn("No user story found with updated id: ".concat(t)),!1;var a=(new DOMParser).parseFromString(u.value,"text/html"),c=a.querySelector('updated[id="'.concat(t,'"]'));if(!c)return console.warn("No <updated> block found with id: ".concat(t)),!1;var d,v=c.innerHTML,f=s(c,"deleted"),p=s(c,"changed"),m=f?f.innerHTML.trim():null,y=p?p.innerHTML.trim():null,h="";if("reject"===o){var g=(d=(m||y||"").match(/ai_reasoning\$(\d+)/))?parseInt(d[1],10):null;null!==g&&x(function(n){var t=n.map(function(n){return r({},n)}),o="".concat(g,"-legacy"),l=t.find(function(n){var e;return(null===(e=n.id)||void 0===e?void 0:e.toString())===o});if(l){var i=l.id.toString().replace("-legacy","");t=t.filter(function(n){return n.id.toString()!==i}),l.id=i}return e([],t,!0)})}"accept"===o?h=m&&y?y:m&&!y?"":!m&&y?y:v:"reject"===o&&(h=m&&y||m&&!y?m:!m&&y?"":v);var S=a.createElement("div");S.innerHTML=h;var N=Array.from(S.childNodes);c.replaceWith.apply(c,N);var w=new XMLSerializer;return u.value=w.serializeToString(a),(null==C?void 0:C.isCraflow)?C.setCraUserStory(i):A(i),T(function(n){return Number.isNaN(Number(n))?n:String(Number(n)+1)}),null===(l=null==C?void 0:C.onCraFlowDiffAgentAction)||void 0===l||l.call(C,o,i),!0}var Y=function(n){var e=(null==I?void 0:I.actionButton)||{},t=F===n&&(null==I?void 0:I.actionButtonHover)||{};return r(r({},e),t)};return t("span",r({},k,{className:d.container,style:r(r({},null==I?void 0:I.container),{display:"block"}),onMouseEnter:function(){E.current&&(clearTimeout(E.current),E.current=null),z(!0)},onMouseLeave:function(){E.current=setTimeout(function(){z(!1),E.current=null},2e3)},ref:(null==k?void 0:k.id)===b?H:null},{children:[(L||(null==I?void 0:I.showFixedActionButtons))&&!w&&t("span",r({className:d.hoverActions,style:null==I?void 0:I.hoverActions,onMouseEnter:function(){return z(!0)}},{children:[o("button",r({className:d.actionButton,style:Y("undo"),onMouseEnter:function(){return D("undo")},onMouseLeave:function(){return D(null)},onClick:function(){h&&S?S(null==k?void 0:k.id):Q(M,null==k?void 0:k.id,"reject"),z(!1)}},{children:(null==U?void 0:U.undo)?U.undo:o(l,{size:R,color:null==I?void 0:I.undoIconColor,className:d.hw})})),o("span",{className:d.divider,style:null==I?void 0:I.divider}),o("button",r({className:d.actionButton,style:Y("accept"),onMouseEnter:function(){return D("accept")},onMouseLeave:function(){return D(null)},onClick:function(){h&&g?g(null==k?void 0:k.id):Q(M,null==k?void 0:k.id,"accept"),z(!1)}},{children:(null==U?void 0:U.accept)?U.accept:o(i,{size:R,color:null==I?void 0:I.thumbsUpIconColor,className:d.hw})}))]})),V&&o("span",r({className:d.deletedContainer,style:r(r({},null==I?void 0:I.deletedContainer),{display:"block"})},{children:o("span",r({className:d.deletedText,style:r(r({},null==I?void 0:I.deletedText),{display:"block"})},{children:V}))})),_&&o("span",r({className:d.changedContainer,style:r(r({},null==I?void 0:I.changedContainer),{display:"block"})},{children:o("span",r({className:d.changedText,style:r(r({},null==I?void 0:I.changedText),{display:"block"})},{children:_}))}))]}))};export{v as default};
1
+ import{__rest as n,__spreadArray as e,__assign as r}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Undo as l,ThumbsUp as i}from"lucide-react";import{useState as u,useRef as a,useEffect as c}from"react";import d from"./UpdatedAnimationContent.module.css.js";import{getDirectChild as s}from"../utils/diff-edit.utils.js";var f=function(f){var v,p,m,h,y=f.isCraflow,g=f.onCraAccept,C=f.onCraReject,S=f.craFlowConfig,N=f.showUserStoryDiff,w=void 0!==N&&N,b=f.currentUpdatedTagId,T=f.setCurrentUpdatedTagId;f.node;var A=f.userStory,M=f.setUserStory,x=f.setAiReasoning,I=f.diffEditConfig,U=f.customStyles,k=f.customIcons,j=n(f,["isCraflow","onCraAccept","onCraReject","craFlowConfig","showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","diffEditConfig","customStyles","customIcons"]),E=u(!1),L=E[0],z=E[1],B=u(null),D=B[0],F=B[1],H=a(null),O=a(null),R=null!==(v=null==U?void 0:U.iconSize)&&void 0!==v?v:16,_=null!==(p=null==U?void 0:U.actionIconSize)&&void 0!==p?p:R;c(function(){if(O.current){var n=setTimeout(function(){var n=O.current;n&&(n.style.scrollMarginBottom="20px",n.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(n)}}},[b]);var q,J=(Array.isArray(null==j?void 0:j.children)?j.children:null!=(null==j?void 0:j.children)?[j.children]:[]).filter(function(n){return"string"!=typeof n}),P=J.find(function(n){return"deleted"===(null==n?void 0:n.type)}),V=J.findIndex(function(n){return"deleted"===(null==n?void 0:n.type)}),W=null===(m=null==P?void 0:P.props)||void 0===m?void 0:m.children,X=J.findIndex(function(n){return"changed"===(null==n?void 0:n.type)}),$=-1!==X?J[X]:null,G=null===(h=null==$?void 0:$.props)||void 0===h?void 0:h.children,K=Math.max(X,V),Q=-1!==K?J.slice(K+1).filter(function(n){return"deleted"!==(null==n?void 0:n.type)&&"changed"!==(null==n?void 0:n.type)}):[];q=G&&Q.length>0?e(e([],Array.isArray(G)?G:[G],!0),Q,!0):G||(Q.length>0?Q:void 0);function Y(n,t,o){var l,i;(null==S?void 0:S.isCraflow)&&S.craUserStory&&(n=S.craUserStory);var u=JSON.parse(JSON.stringify(n)),a=function(n,e){var r=function(n){for(var t=0,o=n;t<o.length;t++){var l=o[t];if((new DOMParser).parseFromString(l.value,"text/html").querySelector('updated[id="'.concat(e,'"]')))return l;if(l.sub_features&&l.sub_features.length>0){var i=r(l.sub_features);if(i)return i}}return null};return r(n)}(u,t);if(!a)return console.warn("No user story found with updated id: ".concat(t)),!1;var c=(new DOMParser).parseFromString(a.value,"text/html"),d=c.querySelector('updated[id="'.concat(t,'"]'));if(!d)return console.warn("No <updated> block found with id: ".concat(t)),!1;var f,v=d.innerHTML,p=s(d,"deleted"),m=s(d,"changed"),h=p?p.innerHTML.trim():null,y=m?m.innerHTML.trim():null,g="";if("reject"===o){var C=(f=(h||y||"").match(/ai_reasoning\$(\d+)/))?parseInt(f[1],10):null;null!==C&&x(function(n){var t=n.map(function(n){return r({},n)}),o="".concat(C,"-legacy"),l=t.find(function(n){var e;return(null===(e=n.id)||void 0===e?void 0:e.toString())===o});if(l){var i=l.id.toString().replace("-legacy","");t=t.filter(function(n){return n.id.toString()!==i}),l.id=i}return e([],t,!0)})}"accept"===o?g=h&&y?y:h&&!y?"":!h&&y?y:v:"reject"===o&&(g=h&&y||h&&!y?h:!h&&y?"":v);var N=c.createElement("div");N.innerHTML=g;var w=Array.from(N.childNodes);d.replaceWith.apply(d,w);var b=new XMLSerializer;return a.value=b.serializeToString(c),(null==S?void 0:S.isCraflow)?S.setCraUserStory(u):M(u),null===(l=null==I?void 0:I.handleDiffEditActionCallback)||void 0===l||l.call(I,o,u),T(function(n){return Number.isNaN(Number(n))?n:String(Number(n)+1)}),null===(i=null==S?void 0:S.onCraFlowDiffAgentAction)||void 0===i||i.call(S,o,u),!0}var Z=function(n){var e=(null==U?void 0:U.actionButton)||{},t=D===n&&(null==U?void 0:U.actionButtonHover)||{};return r(r({},e),t)};return t("span",r({},j,{className:d.container,style:r(r({},null==U?void 0:U.container),{display:"block"}),onMouseEnter:function(){H.current&&(clearTimeout(H.current),H.current=null),z(!0)},onMouseLeave:function(){H.current=setTimeout(function(){z(!1),H.current=null},2e3)},ref:(null==j?void 0:j.id)===b?O:null},{children:[(L||(null==U?void 0:U.showFixedActionButtons))&&!w&&t("span",r({className:d.hoverActions,style:null==U?void 0:U.hoverActions,onMouseEnter:function(){return z(!0)}},{children:[o("button",r({className:d.actionButton,style:Z("undo"),onMouseEnter:function(){return F("undo")},onMouseLeave:function(){return F(null)},onClick:function(){y&&C?C(null==j?void 0:j.id):Y(A,null==j?void 0:j.id,"reject"),z(!1)}},{children:(null==k?void 0:k.undo)?k.undo:o(l,{size:_,color:null==U?void 0:U.undoIconColor,className:d.hw})})),o("span",{className:d.divider,style:null==U?void 0:U.divider}),o("button",r({className:d.actionButton,style:Z("accept"),onMouseEnter:function(){return F("accept")},onMouseLeave:function(){return F(null)},onClick:function(){y&&g?g(null==j?void 0:j.id):Y(A,null==j?void 0:j.id,"accept"),z(!1)}},{children:(null==k?void 0:k.accept)?k.accept:o(i,{size:_,color:null==U?void 0:U.thumbsUpIconColor,className:d.hw})}))]})),W&&o("span",r({className:d.deletedContainer,style:r(r({},null==U?void 0:U.deletedContainer),{display:"block"})},{children:o("span",r({className:d.deletedText,style:r(r({},null==U?void 0:U.deletedText),{display:"block"})},{children:W}))})),q&&o("span",r({className:d.changedContainer,style:r(r({},null==U?void 0:U.changedContainer),{display:"block"})},{children:o("span",r({className:d.changedText,style:r(r({},null==U?void 0:U.changedText),{display:"block"})},{children:q}))}))]}))};export{f as default};
2
2
  //# sourceMappingURL=UpdatedAnimationContent.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,+CAspHtB,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;AAOvJ,QAAA,MAAM,iBAAiB,+CA0pHtB,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"}
@@ -2,7 +2,7 @@ import React, { ReactNode } from "react";
2
2
  import { IOrganizedFiles, IUserStory } from "../../interfaces/userstory.interface";
3
3
  import { AiReasonAccordionStyles, AiReasoningAccordionStates, AiReasoningContentStyles, AiReasoningCustomStyles, AppModCitationStyleGroup, BigEnoughCitationStyles, CitationStyleGroup, FileCitationStyles, ImageCitationStyles, MarkdownCustomStyles, RCACitationStyleGroup, ReadFileCitationStyleGroup, SegmentStyles, StormeeCitationStyles, TAIReasoning, UserStoryIcons, WaveformCitationStyles } from "../../types/aiReasoning.type";
4
4
  import { CitationConfig, GptWebCitationPayload, IChatHistoryItem, UserStoryCitations } from "../../interfaces/citation.interface";
5
- import { UpdatedAnimatedContentStyles, UpdatedAnimatedContentIcons } from "../../shared/UpdatedAnimationContent";
5
+ import type { UpdatedAnimatedContentStyles, UpdatedAnimatedContentIcons } from "../../shared/UpdatedAnimationContent";
6
6
  import { GapSidebarCustomStyles, GapSidebarCustomIcons } from "../GapRiskSidebar/types/gapRiskSidebar.types";
7
7
  import { UserStoryWithCitationCustomStyles } from "../userstory-with-citation/UserStoryWithCitation";
8
8
  import { TSegmentComponentConfig } from "../../types/segment.type";
@@ -114,6 +114,9 @@ export interface RequirementAICustomStyles {
114
114
  deleted?: React.CSSProperties;
115
115
  inserted?: React.CSSProperties;
116
116
  segment?: SegmentStyles;
117
+ span?: React.CSSProperties;
118
+ webButton?: React.CSSProperties;
119
+ docButton?: React.CSSProperties;
117
120
  };
118
121
  streamingSidebar?: {
119
122
  container?: React.CSSProperties;
@@ -367,6 +370,9 @@ interface IRequirementAIContext {
367
370
  title?: string;
368
371
  gptCitationProps?: any;
369
372
  };
373
+ diffEditConfig?: {
374
+ handleDiffEditActionCallback?: (action: 'accept' | 'reject', userStoryData: IUserStory[]) => void;
375
+ };
370
376
  aiReasoning: TAIReasoning[];
371
377
  setAiReasoning: React.Dispatch<React.SetStateAction<TAIReasoning[]>>;
372
378
  citations: UserStoryCitations;
@@ -435,6 +441,9 @@ export interface RequirementAIWrapperProps {
435
441
  title?: string;
436
442
  gptCitationProps?: any;
437
443
  };
444
+ diffEditConfig?: {
445
+ handleDiffEditActionCallback?: (action: 'accept' | 'reject', userStoryData: IUserStory[]) => void;
446
+ };
438
447
  aiReasoning: TAIReasoning[];
439
448
  setAiReasoning: React.Dispatch<React.SetStateAction<TAIReasoning[]>>;
440
449
  citations: UserStoryCitations;
@@ -463,7 +472,7 @@ export interface RequirementAIWrapperProps {
463
472
  onSave?: (story: IUserStory, value: CustomSectionData) => Promise<void> | void;
464
473
  };
465
474
  }
466
- declare const RequirementAIWrapper: ({ children, userStory, setUserStory, aiReasoning, setAiReasoning, citations, setCitations, apiCachingConfig, customStyles, customIcons, searchQueryList, searchQueryReasoningIdList, citationConfig, chatHistory, chatCitationConfigs, gptCitationConfigs, aiReasoningAccordionOpenStates, persistedDataFiles, inlineUpdateComponentConfig, segmentComponentConfig, sectionStatusConfig, customSectionConfig }: RequirementAIWrapperProps) => import("react/jsx-runtime").JSX.Element;
475
+ declare const RequirementAIWrapper: ({ children, userStory, setUserStory, aiReasoning, setAiReasoning, citations, setCitations, apiCachingConfig, customStyles, customIcons, searchQueryList, searchQueryReasoningIdList, citationConfig, chatHistory, chatCitationConfigs, gptCitationConfigs, diffEditConfig, aiReasoningAccordionOpenStates, persistedDataFiles, inlineUpdateComponentConfig, segmentComponentConfig, sectionStatusConfig, customSectionConfig }: RequirementAIWrapperProps) => import("react/jsx-runtime").JSX.Element;
467
476
  export declare const useRequirementAI: () => IRequirementAIContext;
468
477
  export default RequirementAIWrapper;
469
478
  //# sourceMappingURL=RequirementAIWrapper.d.ts.map
@@ -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,u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,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,CAAC;IACjD,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE;QACpB,YAAY,CAAC,EAAE,CACb,KAAK,EAAE,UAAU,KACd,OAAO,CAAC;QAEb,SAAS,CAAC,EAAE,CACV,KAAK,EAAE,UAAU,KACd,YAAY,EAAE,CAAC;QAEpB,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,UAAU,KACd,iBAAiB,CAAC;QAEvB,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,UAAU,KACd,OAAO,CAAC;QAEb,MAAM,CAAC,EAAE,CACP,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,iBAAiB,KACrB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;KAC3B,CAAC;CAEH;AAID,QAAA,MAAM,oBAAoB,mZAuBvB,yBAAyB,4CA0E3B,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,wBAA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IAAI,CAAC;KAC3B,CAAC;CAEH;AAID,QAAA,MAAM,oBAAoB,maAwBvB,yBAAyB,4CA2E3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1 +1 @@
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,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IACxD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IACvD,QAAQ,CAAC,EAAE,CACT,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,KACd,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,SAAS,EAAE,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IAClD,aAAa,CAAC,EAAE;QACd,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;QACxB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,aAAa,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAClC,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,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;AAqGD,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,2CAkJZ;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,C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,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,2CAoJZ;AAED,eAAe,MAAM,CAAC;AAEtB,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { DOMConversionMap, DOMExportOutput, EditorConfig, ElementNode, NodeKey, SerializedElementNode } from "lexical";
2
+ export type SerializedHighlightSpanNode = SerializedElementNode & {
3
+ type: "highlight-span";
4
+ version: 1;
5
+ highlightId: string;
6
+ highlightColor: string | null;
7
+ };
8
+ export declare class HighlightSpanNode extends ElementNode {
9
+ __highlightId: string;
10
+ __highlightColor: string | null;
11
+ static getType(): string;
12
+ static clone(node: HighlightSpanNode): HighlightSpanNode;
13
+ constructor(highlightId: string, highlightColor?: string | null, key?: NodeKey);
14
+ createDOM(): HTMLElement;
15
+ exportDOM(): DOMExportOutput;
16
+ private createHighlightElement;
17
+ updateDOM(prevNode: HighlightSpanNode, dom: HTMLElement): boolean;
18
+ static importDOM(): DOMConversionMap | null;
19
+ static importJSON(serializedNode: SerializedHighlightSpanNode): HighlightSpanNode;
20
+ exportJSON(): SerializedHighlightSpanNode;
21
+ isInline(): true;
22
+ }
23
+ export type SerializedHighlightButtonNode = SerializedElementNode & {
24
+ type: "highlight-button";
25
+ version: 1;
26
+ highlightId: string | null;
27
+ highlightType: string | null;
28
+ };
29
+ export declare class HighlightButtonNode extends ElementNode {
30
+ __highlightId: string | null;
31
+ __highlightType: string | null;
32
+ static getType(): string;
33
+ static clone(node: HighlightButtonNode): HighlightButtonNode;
34
+ constructor(highlightId?: string | null, highlightType?: string | null, key?: NodeKey);
35
+ createDOM(config: EditorConfig): HTMLElement;
36
+ exportDOM(): DOMExportOutput;
37
+ private createHighlightButtonElement;
38
+ updateDOM(): false;
39
+ static importDOM(): DOMConversionMap | null;
40
+ static importJSON(serializedNode: SerializedHighlightButtonNode): HighlightButtonNode;
41
+ exportJSON(): SerializedHighlightButtonNode;
42
+ isInline(): true;
43
+ }
44
+ //# sourceMappingURL=HighlightNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HighlightNode.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,eAAe,EACf,YAAY,EACZ,WAAW,EACX,OAAO,EACP,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,GAAG;IAChE,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,CAAC,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,iBAAiB,GAAG,iBAAiB;gBAStD,WAAW,EAAE,MAAM,EACnB,cAAc,GAAE,MAAM,GAAG,IAAW,EACpC,GAAG,CAAC,EAAE,OAAO;IAOf,SAAS,IAAI,WAAW;IAIxB,SAAS,IAAI,eAAe;IAI5B,OAAO,CAAC,sBAAsB;IAW9B,SAAS,CAAC,QAAQ,EAAE,iBAAiB,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO;IAgBjE,MAAM,CAAC,SAAS,IAAI,gBAAgB,GAAG,IAAI;IAe3C,MAAM,CAAC,UAAU,CACf,cAAc,EAAE,2BAA2B,GAC1C,iBAAiB;IAWpB,UAAU,IAAI,2BAA2B;IAUzC,QAAQ,IAAI,IAAI;CAGjB;AAaD,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,GAAG;IAClE,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,CAAC,CAAC;IACX,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,WAAW;IAClD,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,mBAAmB,GAAG,mBAAmB;gBAS1D,WAAW,GAAE,MAAM,GAAG,IAAW,EACjC,aAAa,GAAE,MAAM,GAAG,IAAW,EACnC,GAAG,CAAC,EAAE,OAAO;IAOf,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;IAY5C,SAAS,IAAI,eAAe;IAI5B,OAAO,CAAC,4BAA4B;IAepC,SAAS,IAAI,KAAK;IAIlB,MAAM,CAAC,SAAS,IAAI,gBAAgB,GAAG,IAAI;IAe3C,MAAM,CAAC,UAAU,CACf,cAAc,EAAE,6BAA6B,GAC5C,mBAAmB;IAWtB,UAAU,IAAI,6BAA6B;IAU3C,QAAQ,IAAI,IAAI;CAGjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"PlaygroundEditorTheme.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/theme/PlaygroundEditorTheme.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAEhD,OAAO,6BAA6B,CAAC;AAErC,QAAA,MAAM,KAAK,EAAE,kBA+GZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"PlaygroundEditorTheme.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/theme/PlaygroundEditorTheme.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAEhD,OAAO,6BAA6B,CAAC;AAErC,QAAA,MAAM,KAAK,EAAE,kBAgHZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,aAAa,CAAC;AAErB,QAAA,MAAM,KAAK,EAAE,kBAuFZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,aAAa,CAAC;AAErB,QAAA,MAAM,KAAK,EAAE,kBAwFZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AA8BA,UAAU,eAAe;IACvB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AAED,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG,MAAM,CAAA;AAEvC,QAAA,MAAM,cAAc,gHAUjB,eAAe,4CAuMjB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAmCA,UAAU,eAAe;IACvB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AAED,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG,MAAM,CAAA;AAEvC,QAAA,MAAM,cAAc,gHAUjB,eAAe,4CAuMjB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -22,6 +22,9 @@ export interface UserStoryWithCitationCustomStyles {
22
22
  heading1?: React.CSSProperties;
23
23
  heading2?: React.CSSProperties;
24
24
  heading3?: React.CSSProperties;
25
+ span?: React.CSSProperties;
26
+ webButton?: React.CSSProperties;
27
+ docButton?: React.CSSProperties;
25
28
  paragraph?: React.CSSProperties;
26
29
  table?: React.CSSProperties;
27
30
  ulist?: React.CSSProperties;
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-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AAE,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;QAC5F,oBAAoB,EAAE,OAAO,CAAC;KAC/B,CAAC;CAEH;AAiVD,QAAA,MAAM,sBAAsB,8XA+BzB,2BAA2B,4CAwlB7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqG,MAAM,OAAO,CAAC;AAY1H,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,aAAa,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC7Y,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AASzI,OAAwB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AA2BlE,MAAM,WAAW,iCAAiC;IAChD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,eAAe,CAAC,EAAE;QAChB,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACvC,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACxC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACpC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAClC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;Q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AW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC,aAAa,CAAC,EAAE;QACd,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,EAAE,UAAU,EAAE,CAAC;QAC3B,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACpE,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;QAC5F,oBAAoB,EAAE,OAAO,CAAC;KAC/B,CAAC;CAEH;AAiVD,QAAA,MAAM,sBAAsB,8XA+BzB,2BAA2B,4CA2pB7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from "react";
2
+ interface IProps {
3
+ props?: any;
4
+ highlightId: string;
5
+ handleHighlightSpan: (highlightId: string) => void;
6
+ customStyles?: React.CSSProperties;
7
+ icon?: ReactNode;
8
+ }
9
+ declare const HighlightButtonComponent: ({ props, highlightId, handleHighlightSpan, customStyles, icon }: IProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default HighlightButtonComponent;
11
+ //# sourceMappingURL=HighlightButtonComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HighlightButtonComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,UAAU,MAAM;IACd,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnD,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAClC,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,QAAA,MAAM,wBAAwB,oEAAqE,MAAM,4CAgBxG,CAAA;AAED,eAAe,wBAAwB,CAAA"}
@@ -34,6 +34,9 @@ interface UpdatedAnimatedContentProps {
34
34
  userStory: IUserStory[];
35
35
  setUserStory: React.Dispatch<React.SetStateAction<IUserStory[]>>;
36
36
  setAiReasoning: React.Dispatch<React.SetStateAction<any[]>>;
37
+ diffEditConfig?: {
38
+ handleDiffEditActionCallback?: (action: 'accept' | 'reject', userStoryData: IUserStory[]) => void;
39
+ };
37
40
  customStyles?: UpdatedAnimatedContentStyles;
38
41
  customIcons?: UpdatedAnimatedContentIcons;
39
42
  isCraflow?: boolean;
@@ -41,6 +44,6 @@ interface UpdatedAnimatedContentProps {
41
44
  onCraReject?: (updatedId: string) => void;
42
45
  [key: string]: any;
43
46
  }
44
- declare const UpdatedAnimatedContent: ({ isCraflow, onCraAccept, onCraReject, craFlowConfig, showUserStoryDiff, currentUpdatedTagId, setCurrentUpdatedTagId, node, userStory, setUserStory, setAiReasoning, customStyles, customIcons, ...props }: UpdatedAnimatedContentProps) => import("react/jsx-runtime").JSX.Element;
47
+ declare const UpdatedAnimatedContent: ({ isCraflow, onCraAccept, onCraReject, craFlowConfig, showUserStoryDiff, currentUpdatedTagId, setCurrentUpdatedTagId, node, userStory, setUserStory, setAiReasoning, diffEditConfig, customStyles, customIcons, ...props }: UpdatedAnimatedContentProps) => import("react/jsx-runtime").JSX.Element;
45
48
  export default UpdatedAnimatedContent;
46
49
  //# sourceMappingURL=UpdatedAnimationContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UpdatedAnimationContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/UpdatedAnimationContent.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mCA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AAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACrE,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACjE,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,QAAA,MAAM,sBAAsB,+MAezB,2BAA2B,4CAsZ7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"UpdatedAnimationContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/UpdatedAnimationContent.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAG/D,MAAM,WAAW,4BAA4B;IACzC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxC,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,WAAW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Aa,EAAE,UAAU,EAAE,KAC1B,IAAI,CAAC;KACb,CAAC;IACF,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,QAAA,MAAM,sBAAsB,+NAgBzB,2BAA2B,4CAwZ7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.204",
3
+ "version": "0.0.206",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",