@e-llm-studio/requirement-ai 0.0.53 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/cjs/features/UserStoryImport/index.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.css.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.css.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.css.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.css.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.css.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.css.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.css.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.css.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.css.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.css.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
- package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/features/UserStoryImport/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/ExpandableOl.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/shared/ExpandableOl.d.ts.map +1 -1
- package/dist/types/src/features/UserStoryImport/index.d.ts +0 -1
- package/dist/types/src/features/UserStoryImport/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/features/UserStoryImport/demo.js +0 -2
- package/dist/cjs/features/UserStoryImport/demo.js.map +0 -1
- package/dist/features/UserStoryImport/demo.js +0 -2
- package/dist/features/UserStoryImport/demo.js.map +0 -1
- package/dist/types/src/features/UserStoryImport/demo.d.ts +0 -10
- package/dist/types/src/features/UserStoryImport/demo.d.ts.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='@import "./theme/colors.css";.lexical_editor_wrapper{background:#fff;border-radius:12px;box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;text-align:left}.lexical_editor_wrapper_box{border:1px solid var(--color-border-grey)}.lexical_editor_wrapper *{box-sizing:inherit}.context-menu{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 5px #0003;position:absolute;z-index:1000}.context-menu button{background:none;border:none;cursor:pointer;display:block;padding:8px 12px;text-align:left;width:100%}.context-menu button:hover{background-color:#f0f0f0}';!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 n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(o)}(),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=Editor.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Editor.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),o=require("@lexical/react/LexicalComposer"),r=require("@lexical/react/LexicalHistoryPlugin"),n=require("@lexical/react/LexicalOnChangePlugin"),l=require("@lexical/react/LexicalTabIndentationPlugin"),a=require("@lexical/list"),u=require("@lexical/react/LexicalListPlugin"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),o=require("@lexical/react/LexicalComposer"),r=require("@lexical/react/LexicalHistoryPlugin"),n=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"),p=require("lexical");require("./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js");var m=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("./components/EditorContainer/EditorContainer.js"),q=require("./components/EditorToolbar/EditorToolbar.js"),C=require("./plugins/LayoutPlugin.js"),h=require("./theme/theme.js");require("./theme/theme.css.js"),require("./Editor.css.js");var j=require("./components/Context/ContextMenu.js"),b=require("@lexical/mark"),T=require("./plugins/CommentPlugin/HTMLNode.js"),L=require("./constants/editorConfig.js"),v=require("./plugins/InitialHtml.js");function _(e){console.log(e)}exports.default=function(P){var y,N=P.minHeight,S=P.height,R=P.placeholder,E=P.onFocus,I=P.onBlur,B=P.onChange,H=P.onToolbarButtonClick,k=P.toolbarConfig,w=void 0===k?L.DEFAULT_TOOLBAR_CONFIG:k,M=P.editorRef,O=P.editorState,A=P.initialString,F=P.customToolbar,$=P.plugins;P.nodes,P.dynamicHeight,P.artifactContext,P.commentsPanelState;var W=P.mode,D=P.doNotShowBorderInViewMode,V=t.useRef(null),G={namespace:"MyEditor",theme:h.default,onError:_,nodes:[p.TextNode,a.ListNode,a.ListItemNode,c.LinkNode,d.QuoteNode,d.HeadingNode,x.TableNode,x.TableRowNode,x.TableCellNode,b.MarkNode,T.default],editorState:O},Q=t.useState(null),U=Q[0],X=Q[1],Y=t.useState(!1),z=Y[0],J=Y[1],K=m.useRequirementAI().customStyles,Z=function(e){var i;null===(i=M.current)||void 0===i||i.update(function(){var i=p.$getSelection();p.$isRangeSelection(i)&&i.getNodes().forEach(function(i){p.$isTextNode(i)&&i.setStyle("color: ".concat(e))})})};return document.getElementById("lexical_editor_wrapper"),i.jsxs("div",e.__assign({ref:V,className:"w-full lexical_editor_wrapper ".concat(D&&"readOnly"===W?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:function(e){var i;e.preventDefault(),null===(i=M.current)||void 0===i||i.update(function(){var i=p.$getSelection();p.$isRangeSelection(i)&&!i.isCollapsed()?(J(!0),X({x:e.clientX,y:e.clientY})):(J(!1),X(null))})},style:e.__assign({minHeight:N,height:S},null===(y=null==K?void 0:K.textEditorStyles)||void 0===y?void 0:y.textArea)},{children:[i.jsxs(o.LexicalComposer,e.__assign({initialConfig:G},{children:[" ","edit"===W&&i.jsx(q.default,{onToolbarButtonClick:H,editorWrapperRef:V,toolbarConfig:w,customToolbar:F,editorRef:M}),i.jsx(f.default,{placeholder:R}),i.jsx(l.TabIndentationPlugin,{}),i.jsx(r.HistoryPlugin,{}),i.jsx(u.ListPlugin,{}),i.jsx(s.LinkPlugin,{}),i.jsx(g.TablePlugin,{}),i.jsx(C.LayoutPlugin,{onFocus:E,onBlur:I,editorRef:M}),i.jsx(n.OnChangePlugin,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:function(e,i,t){B&&B(e,i,t)}}),A&&i.jsx(v.InitialHtml,{initialValue:A.value,initialFormat:A.type,mode:W}),$&&$]})),U&&z&&"edit"===W&&i.jsx(j.default,{position:U,options:[{label:"Change Color to Red",action:function(){return Z("red")}},{label:"Change Color to Blue",action:function(){return Z("blue")}}],onClose:function(){X(null)}})]}))};
|
|
2
2
|
//# sourceMappingURL=Editor.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=".lexical_editor_container{height:calc(100% - 65px);position:relative}.lexical_editor_content{height:100%!important;max-height:100%;max-width:100%;min-height:100px;min-width:100%;overflow:auto;padding:1rem;position:relative;resize:both;text-align:left;width:100%}.lexical_editor_content:focus-visible{outline:none}";!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&t.setAttribute("nonce",n),t.appendChild(document.createTextNode(e));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(t)}(),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=EditorContainer.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorContainer.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("@lexical/react/LexicalContentEditable"),l=require("@lexical/react/LexicalErrorBoundary"),t=require("@lexical/react/LexicalRichTextPlugin"),a=require("../EditorPlaceholder/EditorPlaceholder.js");require("./EditorContainer.css.js");exports.default=function(c){var n=c.placeholder;return r.jsx("div",e.__assign({className:"lexical_editor_container"},{children:r.jsx(t.RichTextPlugin,{contentEditable:r.jsx(i.ContentEditable,{className:"lexical_editor_content",id:"lexical_editor_content"}),placeholder:n?function(){return r.jsx(a.default,{placeholder:n})}:null,ErrorBoundary:l.LexicalErrorBoundary})}))};
|
|
2
2
|
//# sourceMappingURL=EditorContainer.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=".lexical_editor_placeholder{left:1.4rem;opacity:.5;pointer-events:none;position:absolute;top:1rem}";!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&t.setAttribute("nonce",n),t.appendChild(document.createTextNode(e));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(t)}(),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=EditorPlaceholder.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorPlaceholder.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");require("./EditorPlaceholder.css.js");exports.default=function(s){var i=s.placeholder;return r.jsx("div",e.__assign({className:"lexical_editor_placeholder"},{children:i}))};
|
|
2
2
|
//# sourceMappingURL=EditorPlaceholder.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='@import "./../../theme/colors.css";.lexical_editor_toolbar{align-items:center;background:#fff;border-bottom:1px solid var(--color-border-grey);border-radius:12px 12px 0 0;display:flex;flex-wrap:wrap;overflow-x:auto;overflow-y:hidden;padding:.2rem;top:0;z-index:2}.lexical_editor_toolbar_container{height:100%}';!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&t.setAttribute("nonce",o),t.appendChild(document.createTextNode(e));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(t)}(),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=EditorToolbar.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorToolbar.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),o=require("react"),r=require("lexical"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),o=require("react"),r=require("lexical"),i=require("@lexical/selection"),n=require("@lexical/rich-text"),a=require("@lexical/list"),l=require("@lexical/react/LexicalComposerContext"),s=require("@lexical/utils"),u=require("@lexical/link"),c=require("@lexical/code"),d=require("./components/ToolbarButton/ToolbarButton.js"),g=require("./components/ToolbarDivider/ToolbarDivider.js"),f=require("./components/UndoRedo/UndoRedo.js");require("./EditorToolbar.css.js");var p=require("../../constants/objects.js"),v=require("../../utils/getSelectedNode.js"),C=require("../Icons/Icon.js"),T=require("../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(S){var _;S.editorWrapperRef;var m=S.onToolbarButtonClick,x=S.toolbarConfig,N=S.customToolbar;S.editorRef;var R=l.useLexicalComposerContext()[0],$=o.useState(p.ACTIVE_FORMATS),y=$[0],b=$[1],q=o.useState("15px");q[0];var A=q[1],h=o.useState("Arial");h[0];var M=h[1],O=o.useState("");O[0];var I=O[1],j=o.useState(!1),k=j[0],L=j[1],E=o.useState("paragraph"),D=E[0],F=E[1],B=o.useState(null);B[0];var P=B[1],U=o.useState("");U[0];var K=U[1],G=o.useState(!1),V=G[0],W=G[1],z=o.useState(!1),H=z[0],Y=z[1],w=o.useRef(null),Q=T.useRequirementAI().customStyles,X=o.useCallback(function(){var t,o=r.$getSelection();if(r.$isRangeSelection(o)){var l=o.anchor.getNode(),d="root"===l.getKey()?l:l.getTopLevelElementOrThrow(),g=d.getKey();if(null!==R.getElementByKey(g))if(P(g),a.$isListNode(d)){var f=s.$getNearestNodeOfType(l,a.ListNode),C=f?f.getTag():d.getTag();F(C)}else{C=n.$isHeadingNode(d)?d.getTag():d.getType();F(C),c.$isCodeNode(d)&&K(d.getLanguage()||c.getDefaultCodeLanguage())}Object.keys(p.ACTIVE_FORMATS).forEach(function(t){o.hasFormat(t)?b(function(o){var r;return e.__assign(e.__assign({},o),((r={})[t]=!0,r))}):b(function(o){var r;return e.__assign(e.__assign({},o),((r={})[t]=!1,r))})});var T=v.getSelectedNode(o),S=T.getParent();u.$isLinkNode(S)||u.$isLinkNode(T)?L(!0):L(!1),A(i.$getSelectionStyleValueForProperty(o,"font-size","15px")),M(i.$getSelectionStyleValueForProperty(o,"font-family","Arial"));var _=null===(t=o.anchor.getNode().getParent())||void 0===t?void 0:t.getFormatType();I(_)}},[R]);o.useEffect(function(){return s.mergeRegister(R.registerUpdateListener(function(e){e.editorState.read(function(){X()})}),R.registerCommand(r.CAN_UNDO_COMMAND,function(e){return W(e),!1},r.COMMAND_PRIORITY_CRITICAL),R.registerCommand(r.CAN_REDO_COMMAND,function(e){return Y(e),!1},r.COMMAND_PRIORITY_CRITICAL))},[R,X]);var J=o.useCallback(function(e,t){R.dispatchCommand(r.FORMAT_TEXT_COMMAND,t)},[R]);o.useCallback(function(e,t){["left","center","right","justify"].includes(t)&&R.dispatchCommand(r.FORMAT_ELEMENT_COMMAND,t)},[R]),o.useCallback(function(e,t){R.update(function(){var e,o=r.$getSelection();r.$isRangeSelection(o)&&i.$patchStyleText(o,((e={})["font-size"]=t,e))})},[R]);return o.useCallback(function(e,t){var o;"h1"!==t&&"h2"!==t&&"h3"!==t||D!==(o=t)&&R.update(function(){var e=r.$getSelection();r.$isRangeSelection(e)&&i.$setBlocksType(e,function(){return n.$createHeadingNode(o)})}),"paragraph"===t&&"paragraph"!==D&&R.update(function(){var e=r.$getSelection();r.$isRangeSelection(e)&&i.$setBlocksType(e,function(){return r.$createParagraphNode()})}),"quote"===t&&"quote"!==D&&R.update(function(){var e=r.$getSelection();r.$isRangeSelection(e)&&i.$setBlocksType(e,function(){return n.$createQuoteNode()})})},[R,D]),o.useCallback(function(e,t){R.update(function(){var e,o=r.$getSelection();r.$isRangeSelection(o)&&i.$patchStyleText(o,((e={})["font-family"]=t,e))})},[R]),o.useCallback(function(){k?R.dispatchCommand(u.TOGGLE_LINK_COMMAND,null):R.dispatchCommand(u.TOGGLE_LINK_COMMAND,"https://")},[R,k]),t.jsxs("div",e.__assign({className:"lexical_editor_toolbar",id:"lexical_editor_toolbar",ref:w,style:e.__assign({},null===(_=null==Q?void 0:Q.textEditorStyles)||void 0===_?void 0:_.tooltextArea)},{children:[(null==x?void 0:x.undoRedo.display)&&t.jsx(f.UndoRedo,{canUndo:V,canRedo:H}),(null==x?void 0:x.inline.display)&&t.jsxs(t.Fragment,{children:[x.inline.options.map(function(e){var o;return t.jsx(d.default,{toolbarItem:e,active:y[e],onClick:J,icon:t.jsx(C.Icon,{icon:e,iconColors:null===(o=null==Q?void 0:Q.textEditorStyles)||void 0===o?void 0:o.toolIconColors}),onToolbarButtonClick:m},e)}),t.jsx(g.ToolbarDivider,{})]}),N&&N]}))};
|
|
2
2
|
//# sourceMappingURL=EditorToolbar.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='@import "./../../../../theme/colors.css";.lexical_editor_toolbar_button{align-items:center;background:none;border:0;border-radius:4px;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin:0 2px;min-width:34px;width:34px}.lexical_editor_toolbar_button:hover{background-color:var(--color-hover-grey)}.lexical_editor_toolbar_button__active{background-color:var(--color-active-grey)}.lexical_editor_toolbar_button__active:hover{background-color:var(--color-active-grey);border:1px solid #7d8c94}.lexical_editor_toolbar_button:disabled{cursor:default;opacity:.3}.lexical_editor_toolbar_button:disabled:hover{background:none}.lexical_editor_toolbar_button_icon{background-position:50%;background-repeat:no-repeat;background-size:24px 24px;display:inline-block;height:24px;width:24px}';!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
|
+
//# sourceMappingURL=ToolbarButton.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarButton.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),o=require("react")
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),o=require("react");require("./ToolbarButton.css.js");var r=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(i){var n,l,u,s,a=i.toolbarItem,d=i.active,c=i.onClick,v=i.icon,_=i.disabled,b=i.onToolbarButtonClick,x=r.useRequirementAI().customStyles,q=o.useState(!1),f=q[0],m=q[1],p=d?null===(n=null==x?void 0:x.textEditorStyles)||void 0===n?void 0:n.activeToolButton:null===(l=null==x?void 0:x.textEditorStyles)||void 0===l?void 0:l.toolbarButton,y=null===(u=null==x?void 0:x.textEditorStyles)||void 0===u?void 0:u.toolbarButtonHover,B=null===(s=null==x?void 0:x.textEditorStyles)||void 0===s?void 0:s.toolbarButtonDisabled,S=t.__assign(t.__assign(t.__assign({},p),f&&!_?y:{}),_?B:{});return e.jsx("button",t.__assign({className:"lexical_editor_toolbar_button ".concat(d?"lexical_editor_toolbar_button__active":""),onClick:function(t){return function(t,e){c(t,e),b&&b()}(t,a)},disabled:_,style:S,onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)}},{children:v}))};
|
|
2
2
|
//# sourceMappingURL=ToolbarButton.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='@import "./../../../../theme/colors.css";.lexical-editor_toolbar_divider{border-left:1px solid var(--color-border-grey);height:20px;margin:0 2px;width:1px}';!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&t.setAttribute("nonce",o),t.appendChild(document.createTextNode(e));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(t)}(),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=ToolbarDivider.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarDivider.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.ToolbarDivider=function(){return e.jsx("div",{className:"lexical-editor_toolbar_divider"})};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./ToolbarDivider.css.js");exports.ToolbarDivider=function(){return e.jsx("div",{className:"lexical-editor_toolbar_divider"})};
|
|
2
2
|
//# sourceMappingURL=ToolbarDivider.js.map
|
|
@@ -0,0 +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}';!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
|
+
//# sourceMappingURL=theme.css.js.map
|
package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});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"}};
|
|
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"}};
|
|
2
2
|
//# sourceMappingURL=theme.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),t=require("react/jsx-runtime"),e=require("react"),n=require("react-markdown"),o=require("rehype-raw"),a=require("lucide-react"),l=require("@mui/material"),s=require("./AiReasonMarkdownWrapper.module.css.js"),d=require("../../shared/ExpandableOl.js"),r=require("../citations/web-citation/WebCitationWithImageRenderer.js"),c=require("../citations/web-citation/WebCitationRenderer.js"),u=require("../citations/image-citation/ImageCitationRenderer.js"),v=require("../citations/file-citation/FileCitationRender.js"),_=require("../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("../citations/stormee-citation/StormeeCitationRenderer.js"),p=require("../citations/audio-citation/WaveformCitationRenderer.js"),f=require("../citations/appmod-citation/AppmodCitationRenderer.js"),g=require("../citations/rca-citation/RCACitationRenderer.js"),h=require("../citations/readfile-citation/ReadFileCitationRenderer.js"),j=require("../citations/chat-citation/ChatCitationRenderer.js"),C=require("@e-llm-studio/citation");function x(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var b=x(n),y=x(o),S=["appmode_citation","image_citation","audio_citation","document_citation","rca_citation","web_citation","code_generated","chat_citation","readfile_citation"],q=function(t,e,n){return i.__spreadArray([],t.map(function(t,o){var a=o>=e&&o<=n;return i.__assign(i.__assign({},t),{highlighted_text:a?t.message:""})}),!0)};exports.AiReasonMarkdownWrapper=function(n){var o=n.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),t=require("react/jsx-runtime"),e=require("react"),n=require("react-markdown"),o=require("rehype-raw"),a=require("lucide-react"),l=require("@mui/material"),s=require("./AiReasonMarkdownWrapper.module.css.js"),d=require("../../shared/ExpandableOl.js"),r=require("../citations/web-citation/WebCitationWithImageRenderer.js"),c=require("../citations/web-citation/WebCitationRenderer.js"),u=require("../citations/image-citation/ImageCitationRenderer.js"),v=require("../citations/file-citation/FileCitationRender.js"),_=require("../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("../citations/stormee-citation/StormeeCitationRenderer.js"),p=require("../citations/audio-citation/WaveformCitationRenderer.js"),f=require("../citations/appmod-citation/AppmodCitationRenderer.js"),g=require("../citations/rca-citation/RCACitationRenderer.js"),h=require("../citations/readfile-citation/ReadFileCitationRenderer.js"),j=require("../citations/chat-citation/ChatCitationRenderer.js"),C=require("@e-llm-studio/citation");function x(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var b=x(n),y=x(o),S=["appmode_citation","image_citation","audio_citation","document_citation","rca_citation","web_citation","code_generated","chat_citation","readfile_citation"],q=function(t,e,n){return i.__spreadArray([],t.map(function(t,o){var a=o>=e&&o<=n;return i.__assign(i.__assign({},t),{highlighted_text:a?t.message:""})}),!0)};exports.AiReasonMarkdownWrapper=function(n){var o=n.label,x=n.message,I=n.isExpandableOrderedListEnabled,M=n.customStyles,R=n.citationStyles,k=n.customIcons,w=n.onSelectProceed,N=n.isDisableProceedButton,F=e.useRef(null),W=_.useRequirementAI(),P=W.citations,A=W.citationConfig,L=W.chatHistory,T=W.chatCitationConfigs,D=W.gptCitationConfigs,O=e.useMemo(function(){return{h1:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h1",i.__assign({className:s.default.h1,style:null==M?void 0:M.h1},{children:null==n?void 0:n.children}))},h2:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h2,style:null==M?void 0:M.h2},{children:null==n?void 0:n.children}))},h3:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h3,style:null==M?void 0:M.h3},{children:null==n?void 0:n.children}))},b:function(e){return e.node,i.__rest(e,["node"]),t.jsx("b",{className:s.default.bold,style:null==M?void 0:M.b})},p:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("p",i.__assign({},n,{className:s.default.paragraph,style:null==M?void 0:M.p},{children:null==n?void 0:n.children}))},ol:function(e){e.node;var n=i.__rest(e,["node"]);return I?t.jsx(d.default,i.__assign({label:o,customStyles:null==M?void 0:M.expandOlStyle,onProceed:w,isProceedDisabled:N,aiReasoningCitation:P},{children:null==n?void 0:n.children})):t.jsx("ol",i.__assign({className:s.default.orderedList,style:null==M?void 0:M.ol},{children:null==n?void 0:n.children}))},ul:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("ul",i.__assign({className:s.default.unorderedList},{children:null==n?void 0:n.children}))},a:function(n){var o,d,_,x,b,y,I,w,N,F,W,O,z,E,U,G,H,$,B,X,J,K,Q,V,Y,Z;n.inline;var ii=n.children;n.node;var ti=i.__rest(n,["inline","children","node"]),ei="true"===(null==ti?void 0:ti.table),ni="".concat(null==ti?void 0:ti.href),oi=null===(o=ni.split("$"))||void 0===o?void 0:o[0],ai=null===(d=ni.split("$"))||void 0===d?void 0:d[1],li=("appmode_citation"===oi||"appmode_citations"===oi?(null==P?void 0:P.appmod_citations)||[]:"image_citation"===oi||"image_citations"===oi?(null==P?void 0:P.image_citations)||[]:"audio_citation"===oi||"audio_citations"===oi?(null==P?void 0:P.audio_citations)||[]:"document_citation"===oi||"document_citations"===oi?(null==P?void 0:P.file_citations)||[]:"rca_citation"===oi||"rca_citations"===oi?(null==P?void 0:P.rca_citations)||[]:"web_citation"===oi||"web_citations"===oi?(null==P?void 0:P.web_citations)||[]:"code_generated"===oi?(null==P?void 0:P.code_generated)||[]:"readfile_citation"===oi||"readfile_citations"===oi?(null==P?void 0:P.readfile_citations)||[]:("gpt_citation"===oi||"gpt_citations"===oi)&&(null==P?void 0:P.gpt_citations)||[]).find(function(i){return i.citation_number===decodeURIComponent(ai)}),si=S.includes(oi);if("chat_citation"===oi){if(!L||0===L.length)return null;var di=ai.split("-").map(Number),ri=di[0],ci=di[1];return ri=ri>0?ri-1:ri,ci=ci<L.length-1?ci+1:ci,t.jsx(j.default,{customIcon:null==k?void 0:k.chatCitationIcon,title:ii,chatHistory:q(L,ri,ci),isTable:ei,chatCitationProps:null==T?void 0:T.chatCitationProps,onCitationClick:null==T?void 0:T.handleCitationClicked,customStyles:null==R?void 0:R.chatCitation})}if("gpt_citation"===oi&&li)return t.jsx(C.NonWebReasoningComponent,i.__assign({item:{text:"",dataSource:null===(x=null===(_=li.customMetadata)||void 0===_?void 0:_.data_sources)||void 0===x?void 0:x[0],trainingDataTitle:null===(y=null===(b=li.customMetadata)||void 0===b?void 0:b.training_data_title)||void 0===y?void 0:y[0],paraphrase:null===(w=null===(I=li.customMetadata)||void 0===I?void 0:I.paraphrase)||void 0===w?void 0:w[0]},headerTitle:(null==D?void 0:D.title)||"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:a.ChevronDown,ChevronUpIcon:a.ChevronUp,MaximizeIcon:a.Maximize2,CloseIcon:a.X}},null==D?void 0:D.gptCitationProps));if("image_citation"===oi&&!li)return null;if("web_citation"===(null===(N=null==li?void 0:li.customMetadata)||void 0===N?void 0:N.type))return(null===(F=li.customMetadata)||void 0===F?void 0:F.screenshot_url)?t.jsx(r.default,{title:ii,citation:li,customStyles:null==R?void 0:R.webCitation,customIcons:k}):t.jsx(c.default,{label:ii,url:null===(W=li.customMetadata)||void 0===W?void 0:W.link,customStyles:null==R?void 0:R.webCitation,customIcons:k});if("audio_transcript"===(null===(O=null==li?void 0:li.customMetadata)||void 0===O?void 0:O.type))return"stormee"===(null==li?void 0:li.customMetadata.audio_citation_mode)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(m.default,{title:"".concat(ii),citation:li,customStyles:null==R?void 0:R.stormeeCitation,customIcons:k})})):t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(p.default,{title:"".concat(ii),citation:li,customStyles:null==R?void 0:R.waveformCitation,customIcons:k})}));if("image_citation"===(null==li?void 0:li.customMetadata.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(u.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.imageCitation})}));if("book_citation_doc"===(null===(z=null==li?void 0:li.customMetadata)||void 0===z?void 0:z.type)||"book_citation_pdf"===(null==li?void 0:li.customMetadata.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(v.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.fileCitation})}));if("app_mod_rag_question"===(null===(E=null==li?void 0:li.customMetadata)||void 0===E?void 0:E.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(f.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.appModCitation,codeLinkConfig:null===(U=null==A?void 0:A.appMod)||void 0===U?void 0:U.codeLinkConfig,isLoading:null===(G=null==A?void 0:A.appMod)||void 0===G?void 0:G.isLoading})}));if("rca_citation"===(null===(H=null==li?void 0:li.customMetadata)||void 0===H?void 0:H.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(g.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.rcaCitation})}));if("readfile_citation"===(null===($=null==li?void 0:li.customMetadata)||void 0===$?void 0:$.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(h.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.readFileCitation,fileCallback:null===(B=null==A?void 0:A.readFile)||void 0===B?void 0:B.fileCallback,editorConfig:null===(X=null==A?void 0:A.readFile)||void 0===X?void 0:X.editorConfig,customColors:null===(J=null==A?void 0:A.readFile)||void 0===J?void 0:J.customColors})}));if(si&&!li){var ui=null!==(K=null==k?void 0:k.citationLoadingIcon)&&void 0!==K?K:t.jsx("span",{className:s.default.citationSpinner,style:null===(Q=null==R?void 0:R.loadingCitations)||void 0===Q?void 0:Q.citationSpinner});return t.jsx(l.Tooltip,i.__assign({title:null!==(Y=null===(V=null==R?void 0:R.loadingCitations)||void 0===V?void 0:V.tooltipTitle)&&void 0!==Y?Y:"".concat(oi," loading..."),arrow:!0},{children:t.jsxs("span",i.__assign({className:s.default.citationSpinnerWrapper,style:null===(Z=null==R?void 0:R.loadingCitations)||void 0===Z?void 0:Z.citationSpinnerWrapper},{children:[ii,ui]}))}))}return t.jsx("span",i.__assign({},ti,{className:s.default.paragraph,style:null==M?void 0:M.p},{children:null==ti?void 0:ti.children}))},code:function(e){e.inline;var n=e.children,o=e.className;return e.node,i.__rest(e,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?t.jsx("div",{children:t.jsx("code",i.__assign({className:s.default.blockCode},{children:n}))}):t.jsx("code",i.__assign({className:s.default.inlineCode,style:null==M?void 0:M.code},{children:n}))},learned:function(e){var n=e.children;return t.jsx(t.Fragment,{children:t.jsx(l.Tooltip,i.__assign({title:n,placement:"top"},{children:t.jsx(a.Info,{size:16,className:s.default.learnedIcon})}))})}}},[P,I,A,L]);return t.jsx("div",i.__assign({ref:F,className:"w-full"},{children:t.jsx(b.default,i.__assign({components:O,rehypePlugins:[y.default]},{children:x}))}))},exports.formatChatData=q;
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),n=require("react/jsx-runtime"),e=require("../../icons/AiReasoningIcon.js"),o=require("./AIReasonAccordion.js"),a=require("../../icons/ReasoningBulbIcon.js"),t=require("./AiReasonMarkdownWrapper.js"),l=require("../../icons/AiGapIcon.js"),s=require("react"),d=require("lucide-react"),r=require("./AiReasoningCitationContent.module.css.js"),c=require("../../shared/CitationAIConfidenceDisplay.js");exports.default=function(u){var v,C,g,p,f,m,x,h,j,y,R,_,w,b,S,I,N=u.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),n=require("react/jsx-runtime"),e=require("../../icons/AiReasoningIcon.js"),o=require("./AIReasonAccordion.js"),a=require("../../icons/ReasoningBulbIcon.js"),t=require("./AiReasonMarkdownWrapper.js"),l=require("../../icons/AiGapIcon.js"),s=require("react"),d=require("lucide-react"),r=require("./AiReasoningCitationContent.module.css.js"),c=require("../../shared/CitationAIConfidenceDisplay.js");exports.default=function(u){var v,C,g,p,f,m,x,h,j,y,R,_,w,b,S,I,N=u.label,A=u.aiReason,M=u.scenario,k=u.customStyles,B=u.customIcons,D=u.cognitiveDecisionHeaders,q=u.AiReasoningIcon;void 0===q&&n.jsx(e.default,{});var F=u.reasoningIcon;void 0===F&&n.jsx(a.default,{});var W=u.gapIcon;void 0===W&&n.jsx(l.default,{}),u.className;var O=u.onSelectProceed,P=u.isDisableProceedButton,H=s.useState("noCitation"),T=H[0];H[1];var E=s.useState(null),G=E[0];E[1];var L,U,z=(null==B?void 0:B.aireasonIcon)||n.jsx(e.default,{}),J=(null==B?void 0:B.reasoningIcon)||n.jsx(a.default,{}),K=(null==B?void 0:B.gapIcon)||n.jsx(l.default,{}),Q=s.useState(!1),V=Q[0],X=Q[1];return n.jsxs("div",i.__assign({className:"".concat(r.default.container," ").concat("riskSideBar"===M?"":r.default.containerBordered),style:null===(v=null==k?void 0:k.aiReasoningContent)||void 0===v?void 0:v.container},{children:[n.jsx("div",i.__assign({className:"".concat((null==A?void 0:A.explanation)&&"riskSideBar"!==M?"":r.default.explanationDivider),style:null===(C=null==k?void 0:k.aiReasoningContent)||void 0===C?void 0:C.explanationDivider},{children:(null==A?void 0:A.explanation)&&n.jsx(o.default,{icon:n.jsx(n.Fragment,{}),title:"Explanation",subTitle:"",customStyles:null==k?void 0:k.aiReasoningAccordion,content:n.jsx(t.AiReasonMarkdownWrapper,{label:N,message:A.explanation,isExpandableOrderedListEnabled:!0,customStyles:null==k?void 0:k.aiReasoningMarkdown,citationStyles:{webCitation:null==k?void 0:k.webCitation,stormeeCitation:null==k?void 0:k.stormeeCitation,waveformCitation:null==k?void 0:k.waveformCitation,imageCitation:null==k?void 0:k.imageCitation,fileCitation:null==k?void 0:k.fileCitation,appModCitation:null==k?void 0:k.appModCitation,rcaCitation:null==k?void 0:k.rcaCitation,readFileCitation:null==k?void 0:k.readFileCitation,loadingCitations:null==k?void 0:k.loadingCitations,chatCitation:null==k?void 0:k.chatCitation},customIcons:B,onSelectProceed:O,isDisableProceedButton:P}),scenario:M})})),"riskSideBar"!==M&&n.jsxs("div",i.__assign({onClick:function(){return X(function(i){return!i})},className:"".concat(r.default.headerBar," ").concat("riskSideBar"===M?"":r.default.headerBarRounded),style:null===(g=null==k?void 0:k.aiReasoningContent)||void 0===g?void 0:g.headerBar},{children:[n.jsxs("div",i.__assign({className:r.default.headerBrand,style:null===(p=null==k?void 0:k.aiReasoningContent)||void 0===p?void 0:p.headerBrand},{children:[z,n.jsx("p",{children:null!==(f=null==D?void 0:D.mainHeader)&&void 0!==f?f:"Cognitive Decisioning AI"})]})),n.jsxs("div",i.__assign({className:r.default.headerScore,style:null===(m=null==k?void 0:k.aiReasoningContent)||void 0===m?void 0:m.headerScore},{children:[!isNaN(null==A?void 0:A.relevance_score)&&c.renderAIConfidenceDisplay(A.relevance_score,A.relevance_score_diff,null===(x=null==k?void 0:k.aiReasoningContent)||void 0===x?void 0:x.confidenceDisplay,B),n.jsx("button",i.__assign({className:r.default.chevronWrapper,style:null===(h=null==k?void 0:k.aiReasoningContent)||void 0===h?void 0:h.chevronWrapper},{children:V?n.jsx(d.ChevronUp,{className:null===r.default||void 0===r.default?void 0:r.default.chevronIcon,style:null===(j=null==k?void 0:k.aiReasoningContent)||void 0===j?void 0:j.chevronIcon}):n.jsx(d.ChevronDown,{className:null===r.default||void 0===r.default?void 0:r.default.chevronIcon,style:null===(y=null==k?void 0:k.aiReasoningContent)||void 0===y?void 0:y.chevronIcon})}))]}))]})),"riskSideBar"!==M&&V&&n.jsx("div",i.__assign({className:r.default.bodyRow,style:i.__assign({width:"100%"},null===(R=null==k?void 0:k.aiReasoningContent)||void 0===R?void 0:R.bodyRow)},{children:n.jsxs("div",i.__assign({className:"flex flex-col ".concat("noCitation"!==T&&null!==G?"styles.bodyNarrow":"styles.bodyFull"),style:{width:"100%"}},{children:[n.jsx(o.default,{icon:n.jsx("div",i.__assign({className:r.default.iconWrapper,style:null===(_=null==k?void 0:k.aiReasoningContent)||void 0===_?void 0:_.iconWrapper},{children:J})),title:null!==(w=null==D?void 0:D.decisionHeader)&&void 0!==w?w:"Decision Making Factors",subTitle:"",customStyles:null==k?void 0:k.aiReasoningAccordion,alwaysOpen:!0,defaultOpen:!0,content:n.jsx(t.AiReasonMarkdownWrapper,{message:A.reason,customStyles:null==k?void 0:k.aiReasoningMarkdown,citationStyles:{webCitation:null==k?void 0:k.webCitation,stormeeCitation:null==k?void 0:k.stormeeCitation,waveformCitation:null==k?void 0:k.waveformCitation,imageCitation:null==k?void 0:k.imageCitation,fileCitation:null==k?void 0:k.fileCitation,appModCitation:null==k?void 0:k.appModCitation,rcaCitation:null==k?void 0:k.rcaCitation,readFileCitation:null==k?void 0:k.readFileCitation,loadingCitations:null==k?void 0:k.loadingCitations,chatCitation:null==k?void 0:k.chatCitation},customIcons:B})}),(null==A?void 0:A.gap)&&A.relevance_score<100&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:r.default.divider,style:null===(b=null==k?void 0:k.aiReasoningContent)||void 0===b?void 0:b.divider}),n.jsx(o.default,{icon:n.jsx("div",i.__assign({className:r.default.iconWrapper,style:null===(S=null==k?void 0:k.aiReasoningContent)||void 0===S?void 0:S.iconWrapper},{children:K})),title:null!==(I=null==D?void 0:D.gapHeader)&&void 0!==I?I:"Gaps in Decision",subTitle:"",customStyles:null==k?void 0:k.aiReasoningAccordion,alwaysOpen:!1,defaultOpen:!1,content:n.jsx(t.AiReasonMarkdownWrapper,{message:(L=A.relevance_score,U=A.gap,100===A.relevance_score?"No Gaps is identified.":A.relevance_score<100?"The decision strength is ".concat(L,"% because: \n").concat(U):A.gap),customStyles:null==k?void 0:k.aiReasoningMarkdown,citationStyles:{webCitation:null==k?void 0:k.webCitation,stormeeCitation:null==k?void 0:k.stormeeCitation,waveformCitation:null==k?void 0:k.waveformCitation,imageCitation:null==k?void 0:k.imageCitation,fileCitation:null==k?void 0:k.fileCitation,appModCitation:null==k?void 0:k.appModCitation,rcaCitation:null==k?void 0:k.rcaCitation,readFileCitation:null==k?void 0:k.readFileCitation,loadingCitations:null==k?void 0:k.loadingCitations,chatCitation:null==k?void 0:k.chatCitation},customIcons:B}),className:r.default.gapAccordion})]})]}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=AiReasoningCitationContent.js.map
|
package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),l=require("./CustomChatCrRedirection.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),o=require("../../icons/CognitiveDecision.js");exports.CustomChatCrRedirection=function(t){var r=t.isDefaultOpen,d=t.processItemId,c=t.isCompleted,u=t.mode,g=t.msg,v=t.type,_=t.id,p=t.aiReason,f=t.text,x=t.headerText,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),l=require("./CustomChatCrRedirection.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),o=require("../../icons/CognitiveDecision.js");exports.CustomChatCrRedirection=function(t){var r=t.isDefaultOpen,d=t.processItemId,c=t.isCompleted,u=t.mode,g=t.msg,v=t.type,_=t.id,p=t.aiReason,f=t.text,x=t.headerText,h=t.decisionStrength;t.statusUi,t.panelRef;var m=t.onHandleSend,j=t.onRedirectClick,y=t.gapType,C=t.isGenerating,b=void 0!==C&&C,D=t.customStyles,N=t.customIcons,I=t.cognitiveDecisionHeaders,S=n.useState(r),T=S[0],R=S[1],k=(null==N?void 0:N.highConfidence)||i.jsx(o.default,{}),q=function(){"cra"===u?null==m||m("Discuss ambiguities on ".concat(f),_):null==m||m("Deep Dive into ".concat(y," ").concat(x,": ").concat(f),_)};return i.jsxs("div",e.__assign({className:[l.default.outerWrapper,b?l.default.outerWrapperDisabled:""].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.redirectionOuterWrapper),b?null==D?void 0:D.redirectionOuterWrapperDisabled:{})},{children:[i.jsxs("div",e.__assign({className:[l.default.card,b?l.default.cardDisabled:l.default.cardInteractive].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.redirectionCard),b?null==D?void 0:D.redirectionCardDisabled:null==D?void 0:D.redirectionCardInteractive)},{children:[i.jsxs("div",e.__assign({className:l.default.leftSide,style:null==D?void 0:D.redirectionLeftSide},{children:[i.jsxs("span",e.__assign({className:l.default.textBlock,style:null==D?void 0:D.redirectionTextBlock},{children:[x&&i.jsxs("span",e.__assign({className:l.default.headerText,style:null==D?void 0:D.redirectionHeaderText},{children:[x,f?" ":""]})),f]})),i.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),b||R(!T)},className:[l.default.reasoningToggle,b?l.default.reasoningToggleDisabled:l.default.reasoningToggleActive].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.reasoningToggle),b?null==D?void 0:D.reasoningToggleDisabled:null==D?void 0:D.reasoningToggleActive)},{children:[k,T?i.jsx(s.ChevronUp,{className:l.default.chevronIcon,style:null==D?void 0:D.chevronIcon}):i.jsx(s.ChevronDown,{className:l.default.chevronIcon,style:null==D?void 0:D.chevronIcon})]}))]})),c?i.jsx("div",e.__assign({className:l.default.completeTickWrapper,style:null==D?void 0:D.completeTickWrapper},{children:i.jsx(s.Check,{color:(null==D?void 0:D.checkColor)||"green"})})):i.jsxs(i.Fragment,{children:["risk-gap"===u&&i.jsxs("div",e.__assign({className:l.default.rightSide,style:null==D?void 0:D.redirectionRightSide},{children:[i.jsx("button",e.__assign({disabled:b,className:[l.default.fixButton,b?l.default.fixButtonDisabled:""].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.redirectionFixButton),b?null==D?void 0:D.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),b||q()}},{children:"Fix"})),i.jsx(s.SquareArrowOutUpRight,{onClick:b?void 0:function(){b||null==j||j({type:v,id:_,aiReason:p,msg:g,meta:{headerText:x,decisionStrength:h,text:f}})},size:18,className:[b?l.default.redirectIconDisabled:l.default.redirectIcon].join(" "),style:e.__assign({},b?null==D?void 0:D.redirectIconDisabled:null==D?void 0:D.redirectIcon)})]})),"cra"===u&&!r&&i.jsx("div",e.__assign({className:l.default.rightSide,style:null==D?void 0:D.redirectionRightSide},{children:d===_?i.jsx("div",e.__assign({className:l.default.loaderWrapper,style:null==D?void 0:D.loaderWrapper},{children:i.jsx(s.Loader2,{size:16,className:l.default.loaderIcon,color:"grey",style:e.__assign({animation:"spin 1s linear infinite"},null==D?void 0:D.loaderIcon)})})):i.jsx("button",e.__assign({className:[l.default.clarifyButton].join(" "),style:e.__assign({color:b?"grey":""},null==D?void 0:D.redirectionClarifyButton),disabled:b,onClick:function(e){e.stopPropagation(),q()}},{children:"Clarify"}))}))]})]})),T&&i.jsx(a.default,{label:"cra"===u?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==p?void 0:p.Reasoning)||"",gap:(null==p?void 0:p.Gap)||"",relevance_score:Number(null==p?void 0:p.Confidence_score),explanation:(null==p?void 0:p.explanation)||""},onSelectProceed:q,customStyles:null==D?void 0:D.aiReasoningStyles,customIcons:N,cognitiveDecisionHeaders:I})]}))};
|
|
2
2
|
//# sourceMappingURL=CustomChatCrRedirection.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),o=require("lucide-react"),i=require("react"),t=require("@mui/material"),n=require("./GapFilterItem.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),l=require("../../icons/CognitiveDecision.js"),r=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:n.default.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:n.default.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:n.default.scoreBadgeLow}};exports.GapFilterItem=function(c){var d=c.isDefaultOpen;c.isCompleted
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),o=require("lucide-react"),i=require("react"),t=require("@mui/material"),n=require("./GapFilterItem.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),l=require("../../icons/CognitiveDecision.js"),r=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:n.default.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:n.default.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:n.default.scoreBadgeLow}};exports.GapFilterItem=function(c){var d=c.isDefaultOpen;c.isCompleted;var u=c.mode,m=c.index,g=c.isSelected,f=c.onClick,v=c.item,p=c.onFixClick,_=c.onRedirect,x=c.aiReason;c.panelRef;var h=c.id,j=c.isGenerating,C=void 0!==j&&j,N=c.customStyles,y=c.customIcons,R=c.cognitiveDecisionHeaders,S=i.useState(d),T=S[0],b=S[1],w=(null==y?void 0:y.highConfidence)||s.jsx(l.default,{});i.useMemo(function(){return v.components?v.components.split("||"):[]},[v.components]);var q=i.useMemo(function(){return v.score&&isNaN(parseInt(v.score))?0:v.score?parseInt(v.score):0},[v.score]),B=r(q);return s.jsx("div",e.__assign({className:n.default.outerWrapper,onClick:f,style:null==N?void 0:N.itemOuterWrapper},{children:s.jsxs("div",e.__assign({className:n.default.innerCard,style:null==N?void 0:N.itemInnerCard},{children:[s.jsxs("div",e.__assign({className:n.default.contentBlock,style:null==N?void 0:N.contentBlock},{children:[s.jsxs("div",e.__assign({className:n.default.topRow,style:null==N?void 0:N.itemTopRow},{children:[s.jsx("div",e.__assign({className:[n.default.questionText,g?n.default.questionTextSelected:n.default.questionTextDefault].join(" "),style:e.__assign(e.__assign({},null==N?void 0:N.itemQuestionText),g?null==N?void 0:N.itemQuestionTextSelected:null==N?void 0:N.itemQuestionTextDefault)},{children:s.jsx(t.Tooltip,e.__assign({title:v.question||"",placement:"top"},{children:s.jsx("span",{className:n.default.questionSpan,style:null==N?void 0:N.itemQuestionSpan})}))})),s.jsxs("div",e.__assign({className:n.default.actionsRow,style:null==N?void 0:N.itemActionsRow},{children:[q>0&&s.jsx("div",e.__assign({className:[n.default.scoreBadge,B.className].join(" "),style:e.__assign(e.__assign(e.__assign(e.__assign({},null==N?void 0:N.itemScoreBadge),q>90?null==N?void 0:N.itemScoreBadgeHigh:{}),q>=70&&q<=90?null==N?void 0:N.itemScoreBadgeMedium:{}),q<70?null==N?void 0:N.itemScoreBadgeLow:{})},{children:"".concat(q,"%")})),v.showFix&&s.jsx("button",e.__assign({className:n.default.fixButton,onClick:function(e){e.stopPropagation(),p()},style:null==N?void 0:N.itemFixButton},{children:"Fix"})),v.showRedirect&&s.jsx(o.SquareArrowOutUpRight,{color:"#3b82f6",size:14,className:n.default.redirectIcon,onClick:function(e){e.stopPropagation(),_()},style:null==N?void 0:N.itemRedirectIcon})]}))]})),s.jsxs("div",e.__assign({className:[n.default.bottomRow,g?n.default.bottomRowSelected:n.default.bottomRowDefault].join(" "),style:g?e.__assign(e.__assign({},null==N?void 0:N.itemBottomRow),null==N?void 0:N.bottomRowSelected):e.__assign(e.__assign({},null==N?void 0:N.itemBottomRow),null==N?void 0:N.bottomRowDefault)},{children:[s.jsxs("span",e.__assign({className:n.default.gapTextSpan,style:null==N?void 0:N.itemGapText},{children:[(null==v?void 0:v.headerText)?s.jsx("span",e.__assign({className:n.default.gapHeaderText,style:null==N?void 0:N.itemGapHeaderText},{children:v.headerText})):s.jsxs("span",e.__assign({className:n.default.gapHeaderText,style:null==N?void 0:N.itemGapHeaderText},{children:["Gap ",m+1,"."]}))," ",v.text]})),h&&s.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),C||b(!T)},className:[n.default.reasoningToggle,C?n.default.reasoningToggleDisabled:n.default.reasoningToggleActive].join(" "),style:null==N?void 0:N.itemReasoningToggle},{children:[w,T?s.jsx(o.ChevronUp,{className:n.default.chevronIcon,style:null==N?void 0:N.chevronIcon}):s.jsx(o.ChevronDown,{className:n.default.chevronIcon,style:null==N?void 0:N.chevronIcon})]}))]}))]})),T&&s.jsx(a.default,{label:"cra"===u?"Clarify":"Select this option",aiReason:{id:"1",reason:x.Reasoning||"",gap:x.Gap||"",relevance_score:Number(x.Confidence_score),explanation:x.explanation||""},onSelectProceed:p,customStyles:null==N?void 0:N.aiReasoningStyles,customIcons:y,cognitiveDecisionHeaders:R})]}))}))},exports.getScoreColorStyles=r;
|
|
2
2
|
//# sourceMappingURL=GapFilterItem.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),l=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),s=require("./ExpandableOl.module.css.js"),i=require("./ReqAiCitationRenderer.js");exports.default=function(r){var o=r.label,a=r.children,d=r.onProceed,u=r.isProceedDisabled,c=r.defaultVisibleItems,p=void 0===c?2:c,h=r.customStyles,m=r.citationStyles,y=r.customIcons,_=t.useState(!1),g=_[0],v=_[1],f=t.useCallback(function(n){var s,r;if(!t.isValidElement(n))return n;var o=n;return"a"===(null===(s=null==o?void 0:o.type)||void 0===s?void 0:s.name)?l.jsx(i.default,e.__assign({href:o.props.href,citationStyles:m,customIcons:y},{children:o.props.children})):(null===(r=o.props)||void 0===r?void 0:r.children)?t.cloneElement(o,{children:t.Children.map(o.props.children,f)}):o},[m,y]),x=t.useMemo(function(){return t.Children.toArray(a).map(function(e){return f(e)})},[a,f]),b=t.Children.toArray(a).length>p,j=t.useMemo(function(){return g?x:x.slice(0,2)},[g,x]);return l.jsxs(l.Fragment,{children:[l.jsx("ol",e.__assign({className:s.default.list,style:null==h?void 0:h.listStyle},{children:j.map(function(n,i){var r=i===j.length-1;return t.isValidElement(n)?r&&b?t.cloneElement(n,{style:e.__assign(e.__assign({},n.props.style),null==h?void 0:h.itemStyle),children:l.jsxs(l.Fragment,{children:[l.jsx("span",e.__assign({style:null==h?void 0:h.itemTextStyle},{children:n.props.children})),!g&&l.jsx("button",e.__assign({type:"button",onClick:function(){return v(!0)},className:s.default.toggleButton,style:null==h?void 0:h.moreButton},{children:"show more"})),g&&l.jsx("button",e.__assign({type:"button",onClick:function(){return v(!1)},className:s.default.toggleButton,style:null==h?void 0:h.toggleButton},{children:"see less"}))]})}):t.cloneElement(n,{style:e.__assign(e.__assign({},n.props.style),null==h?void 0:h.itemStyle),children:l.jsx("span",e.__assign({style:null==h?void 0:h.itemTextStyle},{children:n.props.children}))}):l.jsx("li",e.__assign({style:null==h?void 0:h.itemStyle},{children:l.jsx("span",e.__assign({style:null==h?void 0:h.itemTextStyle},{children:n}))}),i)})})),d&&l.jsx("div",e.__assign({className:s.default.proceedContainer},{children:l.jsxs("button",e.__assign({type:"button",disabled:u,onClick:function(e){e.stopPropagation(),u||d()},className:"".concat(s.default.proceedButton," ").concat(u?s.default.proceedDisabled:s.default.proceedEnabled),style:u?null==h?void 0:h.disableProceedStyle:null==h?void 0:h.enableProceedStyle},{children:[l.jsx("span",{children:null!=o?o:""}),l.jsx(n.ArrowRight,{size:15,strokeWidth:1.5})]}))}))]})};
|
|
2
2
|
//# sourceMappingURL=ExpandableOl.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./UserStoryPicker.js"),o=require("./components/Header.js"),r=require("./components/Toolbar.js"),t=require("./components/SearchInput.js"),s=require("./components/BrowseProjectsButton.js"),n=require("./components/SectionHeading.js"),i=require("./components/CardGrid.js"),a=require("./components/UserStoryCard.js"),p=require("./components/ProjectCard.js"),c=require("./components/Badge.js"),d=require("./components/BackNav.js"),S=require("./components/SortDropdown.js"),u=require("./components/ShowMore.js"),m=require("./components/ProceedButton.js"),j=require("./components/Footer.js"),q=require("./components/SplitLayout.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./UserStoryPicker.js"),o=require("./components/Header.js"),r=require("./components/Toolbar.js"),t=require("./components/SearchInput.js"),s=require("./components/BrowseProjectsButton.js"),n=require("./components/SectionHeading.js"),i=require("./components/CardGrid.js"),a=require("./components/UserStoryCard.js"),p=require("./components/ProjectCard.js"),c=require("./components/Badge.js"),d=require("./components/BackNav.js"),S=require("./components/SortDropdown.js"),u=require("./components/ShowMore.js"),m=require("./components/ProceedButton.js"),j=require("./components/Footer.js"),q=require("./components/SplitLayout.js"),l=require("./components/Sidebar.js"),P=require("./components/SidebarSection.js"),y=require("./components/SidebarProjectList.js"),h=require("./components/SidebarFavoritesList.js"),w=require("./components/ContentArea.js"),U=require("./components/NavRow.js"),D=require("./components/UserStoryImportDialog.js"),C=require("./components/ResizeHandle.js"),b=require("./components/ScopeDropdown.js"),g=require("./components/TypeDropdown.js"),x=require("./components/UserStoryScopeDropdown.js"),T=require("./UserStoryPicker.context.js"),B=require("./hooks/useUSPData.js"),v=require("./components/usePanelResize.js"),R=require("./UserStoryPicker.theme.js"),k=Object.assign(e.UserStoryPickerRoot,{Header:o.Header,Toolbar:r.Toolbar,SearchInput:t.SearchInput,BrowseProjectsButton:s.BrowseProjectsButton,SectionHeading:n.SectionHeading,CardGrid:i.CardGrid,UserStoryCard:a.UserStoryCard,ProjectCard:p.ProjectCard,Badge:c.Badge,BackNav:d.BackNav,SortDropdown:S.SortDropdown,ScopeDropdown:b.ScopeDropdown,TypeDropdown:g.TypeDropdown,UserStoryScopeDropdown:x.UserStoryScopeDropdown,ShowMore:u.ShowMore,ProceedButton:m.ProceedButton,Footer:j.Footer,SplitLayout:q.SplitLayout,Sidebar:l.Sidebar,SidebarSection:P.SidebarSection,SidebarProjectList:y.SidebarProjectList,SidebarFavoritesList:h.SidebarFavoritesList,ContentArea:w.ContentArea,NavRow:U.NavRow,UserStoryImportDialog:D.UserStoryImportDialog,ResizeHandle:C.ResizeHandle});exports.UserStoryImportDialog=D.UserStoryImportDialog,exports.ResizeHandle=C.ResizeHandle,exports.useUSPContext=T.useUSPContext,exports.useUSPData=B.useUSPData,exports.usePanelResize=v.usePanelResize,exports.darkTheme=R.darkTheme,exports.lightTheme=R.lightTheme,exports.themeToStyle=R.themeToStyle,exports.uspColorPalette=R.uspColorPalette,exports.uspVSCodeLightTheme=R.uspVSCodeLightTheme,exports.vscodeTheme=R.vscodeTheme,exports.UserStoryPicker=k;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js"),r=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js"),t=require("./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js"),o=require("./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js"),s=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js"),i=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js"),a=require("./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js"),n=require("./features/RequirementAI/components/story-screen/UserStoryScreen.js"),p=require("./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js"),u=require("./features/RequirementAI/components/RichTextEditor/RichTextEditor.js"),d=require("./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js"),c=require("./features/RequirementAI/components/story-screen/SubfeatureBlock.js"),m=require("./features/RequirementAI/shared/AtomicButton.js"),S=require("./features/RequirementAI/icons/SidebarOpenIcon.js"),l=require("./features/RequirementAI/icons/SidebarCloseIcon.js"),f=require("./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js"),r=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js"),t=require("./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js"),o=require("./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js"),s=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js"),i=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js"),a=require("./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js"),n=require("./features/RequirementAI/components/story-screen/UserStoryScreen.js"),p=require("./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js"),u=require("./features/RequirementAI/components/RichTextEditor/RichTextEditor.js"),d=require("./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js"),c=require("./features/RequirementAI/components/story-screen/SubfeatureBlock.js"),m=require("./features/RequirementAI/shared/AtomicButton.js"),S=require("./features/RequirementAI/icons/SidebarOpenIcon.js"),l=require("./features/RequirementAI/icons/SidebarCloseIcon.js"),f=require("./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js"),R=require("./features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js"),q=require("./features/RequirementAI/hooks/useStreamContentHandler.js"),I=require("./features/RequirementAI/utils/proccess-stream.utils.js"),y=require("./features/RequirementAI/utils/diff-edit.utils.js"),j=require("./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js"),x=require("./features/RequirementAI/hooks/useDiffEditReviewMode.js"),A=require("./features/RequirementAI/components/UserStoryCard/UserStoryCard.js"),C=require("./features/RequirementAI/components/citations/file-citation/FileCitationRender.js"),U=require("./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js"),h=require("./features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js"),b=require("./features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js"),k=require("./features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js"),g=require("./features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js"),D=require("./features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js"),w=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js"),B=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js"),P=require("./features/RequirementAI/utils/userstory-approval-transform.utils.js"),v=require("./features/UserStoryImport/UserStoryPicker.js"),T=require("./features/UserStoryImport/components/Header.js"),F=require("./features/UserStoryImport/components/Toolbar.js"),G=require("./features/UserStoryImport/components/SearchInput.js"),W=require("./features/UserStoryImport/components/BrowseProjectsButton.js"),H=require("./features/UserStoryImport/components/SectionHeading.js"),L=require("./features/UserStoryImport/components/CardGrid.js"),M=require("./features/UserStoryImport/components/UserStoryCard.js"),z=require("./features/UserStoryImport/components/ProjectCard.js"),E=require("./features/UserStoryImport/components/Badge.js"),N=require("./features/UserStoryImport/components/BackNav.js"),O=require("./features/UserStoryImport/components/SortDropdown.js"),V=require("./features/UserStoryImport/components/ShowMore.js"),_=require("./features/UserStoryImport/components/ProceedButton.js"),J=require("./features/UserStoryImport/components/Footer.js"),K=require("./features/UserStoryImport/components/SplitLayout.js"),Q=require("./features/UserStoryImport/components/Sidebar.js"),X=require("./features/UserStoryImport/components/SidebarSection.js"),Y=require("./features/UserStoryImport/components/SidebarProjectList.js"),Z=require("./features/UserStoryImport/components/SidebarFavoritesList.js"),$=require("./features/UserStoryImport/components/ContentArea.js"),ee=require("./features/UserStoryImport/components/NavRow.js"),re=require("./features/UserStoryImport/components/UserStoryImportDialog.js"),te=require("./features/UserStoryImport/components/ResizeHandle.js"),oe=require("./features/UserStoryImport/components/ScopeDropdown.js"),se=require("./features/UserStoryImport/components/TypeDropdown.js"),ie=require("./features/UserStoryImport/UserStoryPicker.context.js"),ae=require("./features/UserStoryImport/hooks/useUSPData.js"),ne=require("./features/UserStoryImport/components/usePanelResize.js"),pe=require("./features/UserStoryImport/UserStoryPicker.theme.js"),ue=Object.assign(v.UserStoryPickerRoot,{Header:T.Header,Toolbar:F.Toolbar,SearchInput:G.SearchInput,BrowseProjectsButton:W.BrowseProjectsButton,SectionHeading:H.SectionHeading,CardGrid:L.CardGrid,UserStoryCard:M.UserStoryCard,ProjectCard:z.ProjectCard,Badge:E.Badge,BackNav:N.BackNav,SortDropdown:O.SortDropdown,ScopeDropdown:oe.ScopeDropdown,TypeDropdown:se.TypeDropdown,ShowMore:V.ShowMore,ProceedButton:_.ProceedButton,Footer:J.Footer,SplitLayout:K.SplitLayout,Sidebar:Q.Sidebar,SidebarSection:X.SidebarSection,SidebarProjectList:Y.SidebarProjectList,SidebarFavoritesList:Z.SidebarFavoritesList,ContentArea:$.ContentArea,NavRow:ee.NavRow,UserStoryImportDialog:re.UserStoryImportDialog,ResizeHandle:te.ResizeHandle});exports.ReadFileCitationRenderer=e.default,exports.ReadFileCitationContent=r.default,exports.RCACitationRenderer=t.default,exports.RCACitationContent=o.default,exports.AppModCitationRenderer=s.default,exports.AppModCitationContent=i.default,exports.RequirementAIWrapper=a.default,exports.useRequirementAI=a.useRequirementAI,exports.UserStoryScreen=n.default,exports.UserStoryApprovalScreen=p.default,exports.RichTextEditor=u.default,exports.UserStoryWithCitation=d.default,exports.SubFeatureBlock=c.default,exports.AtomicButton=m.default,exports.SidebarOpenIcon=S.SidebarOpenIcon,exports.SidebarCloseIcon=l.SidebarCloseIcon,exports.StreamingScreenSidebar=f.default,exports.AiReasoningCitationContent=R.default,exports.useStreamContentHandler=q.useStreamContentHandler,exports.extractBlockStreams=I.extractBlockStreams,exports.extractDescription=I.extractDescription,exports.processAIReasoningFromBlocks=I.processAIReasoningFromBlocks,exports.processUserStoryValue=I.processUserStoryValue,exports.handleAcceptAllChanges=y.handleAcceptAllChanges,exports.handleDiffEditApplied=y.handleDiffEditApplied,exports.handleDiscardAll=y.handleDiscardAll,exports.GapFilterBlock=j.GapFilterBlock,exports.hasAnyUpdatedTags=x.hasAnyUpdatedTags,exports.useDiffEditReviewMode=x.useDiffEditReviewMode,exports.UserStoryCardWrapper=A.UserStoryCardWrapper,exports.FileCitationRender=C.default,exports.WebCitationWithImageRenderer=U.default,exports.WebCitationRenderer=h.default,exports.StormeeCitationRenderer=b.default,exports.WaveformCitationRenderer=k.default,exports.ImageCitationRenderer=g.default,exports.GapRiskSidebar=D.default,exports.NoGapsFound=D.NoGapsFound,exports.useGapRiskSidebar=D.useGapRiskSidebar,exports.buildStoryWithGap=w.buildStoryWithGap,exports.updateGapInRawData=w.updateGapInRawData,exports.updateGapStory=w.updateGapStory,exports.buildStoryWithRisk=B.buildStoryWithRisk,exports.updateRiskInRawData=B.updateRiskInRawData,exports.updateStory=B.updateStory,exports.cloneUserStories=P.cloneUserStories,exports.createUserStoriesForApproval=P.createUserStoriesForApproval,exports.splitByHeaders=P.splitByHeaders,exports.transformApprovalToUserStory=P.transformApprovalToUserStory,exports.UserStoryImportDialog=re.UserStoryImportDialog,exports.ResizeHandle=te.ResizeHandle,exports.useUSPContext=ie.useUSPContext,exports.useUSPData=ae.useUSPData,exports.usePanelResize=ne.usePanelResize,exports.darkTheme=pe.darkTheme,exports.lightTheme=pe.lightTheme,exports.themeToStyle=pe.themeToStyle,exports.uspColorPalette=pe.uspColorPalette,exports.uspVSCodeLightTheme=pe.uspVSCodeLightTheme,exports.vscodeTheme=pe.vscodeTheme,exports.UserStoryPicker=ue;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e='@import "./theme/colors.css";.lexical_editor_wrapper{background:#fff;border-radius:12px;box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;text-align:left}.lexical_editor_wrapper_box{border:1px solid var(--color-border-grey)}.lexical_editor_wrapper *{box-sizing:inherit}.context-menu{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 5px #0003;position:absolute;z-index:1000}.context-menu button{background:none;border:none;cursor:pointer;display:block;padding:8px 12px;text-align:left;width:100%}.context-menu button:hover{background-color:#f0f0f0}';!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 n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(o)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=Editor.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Editor.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as o}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as o}from"tslib";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{useRef as i,useState as r}from"react";import{LexicalComposer as n}from"@lexical/react/LexicalComposer";import{HistoryPlugin as l}from"@lexical/react/LexicalHistoryPlugin";import{OnChangePlugin as a}from"@lexical/react/LexicalOnChangePlugin";import{TabIndentationPlugin as m}from"@lexical/react/LexicalTabIndentationPlugin";import{ListNode as c,ListItemNode as p}from"@lexical/list";import{ListPlugin as u}from"@lexical/react/LexicalListPlugin";import{LinkPlugin as s}from"@lexical/react/LexicalLinkPlugin";import{LinkNode as d}from"@lexical/link";import{QuoteNode as f,HeadingNode as g}from"@lexical/rich-text";import{TablePlugin as x}from"@lexical/react/LexicalTablePlugin";import{TableNode as h,TableRowNode as C,TableCellNode as b}from"@lexical/table";import{TextNode as v,$getSelection as j,$isRangeSelection as y,$isTextNode as T}from"lexical";import"./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js";import{useRequirementAI as E}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import L from"./components/EditorContainer/EditorContainer.js";import B from"./components/EditorToolbar/EditorToolbar.js";import{LayoutPlugin as P}from"./plugins/LayoutPlugin.js";import S from"./theme/theme.js";import"./theme/theme.css.js";import"./Editor.css.js";import _ from"./components/Context/ContextMenu.js";import{MarkNode as w}from"@lexical/mark";import H from"./plugins/CommentPlugin/HTMLNode.js";import{DEFAULT_TOOLBAR_CONFIG as R}from"./constants/editorConfig.js";import{InitialHtml as I}from"./plugins/InitialHtml.js";function M(o){console.log(o)}function k(k){var N,A=k.minHeight,F=k.height,W=k.placeholder,q=k.onFocus,O=k.onBlur,V=k.onChange,D=k.onToolbarButtonClick,X=k.toolbarConfig,Y=void 0===X?R:X,z=k.editorRef,G=k.editorState,J=k.initialString,K=k.customToolbar,Q=k.plugins;k.nodes,k.dynamicHeight,k.artifactContext,k.commentsPanelState;var U=k.mode,Z=k.doNotShowBorderInViewMode,$=i(null),oo={namespace:"MyEditor",theme:S,onError:M,nodes:[v,c,p,d,f,g,h,C,b,w,H],editorState:G},to=r(null),eo=to[0],io=to[1],ro=r(!1),no=ro[0],lo=ro[1],ao=E().customStyles,mo=function(o){var t;null===(t=z.current)||void 0===t||t.update(function(){var t=j();y(t)&&t.getNodes().forEach(function(t){T(t)&&t.setStyle("color: ".concat(o))})})};return document.getElementById("lexical_editor_wrapper"),t("div",o({ref:$,className:"w-full lexical_editor_wrapper ".concat(Z&&"readOnly"===U?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:function(o){var t;o.preventDefault(),null===(t=z.current)||void 0===t||t.update(function(){var t=j();y(t)&&!t.isCollapsed()?(lo(!0),io({x:o.clientX,y:o.clientY})):(lo(!1),io(null))})},style:o({minHeight:A,height:F},null===(N=null==ao?void 0:ao.textEditorStyles)||void 0===N?void 0:N.textArea)},{children:[t(n,o({initialConfig:oo},{children:[" ","edit"===U&&e(B,{onToolbarButtonClick:D,editorWrapperRef:$,toolbarConfig:Y,customToolbar:K,editorRef:z}),e(L,{placeholder:W}),e(m,{}),e(l,{}),e(u,{}),e(s,{}),e(x,{}),e(P,{onFocus:q,onBlur:O,editorRef:z}),e(a,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:function(o,t,e){V&&V(o,t,e)}}),J&&e(I,{initialValue:J.value,initialFormat:J.type,mode:U}),Q&&Q]})),eo&&no&&"edit"===U&&e(_,{position:eo,options:[{label:"Change Color to Red",action:function(){return mo("red")}},{label:"Change Color to Blue",action:function(){return mo("blue")}}],onClose:function(){io(null)}})]}))}export{k as default};
|
|
2
2
|
//# sourceMappingURL=Editor.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=".lexical_editor_container{height:calc(100% - 65px);position:relative}.lexical_editor_content{height:100%!important;max-height:100%;max-width:100%;min-height:100px;min-width:100%;overflow:auto;padding:1rem;position:relative;resize:both;text-align:left;width:100%}.lexical_editor_content:focus-visible{outline:none}";!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&t.setAttribute("nonce",n),t.appendChild(document.createTextNode(e));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(t)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=EditorContainer.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorContainer.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import{ContentEditable as
|
|
1
|
+
import{__assign as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import{ContentEditable as t}from"@lexical/react/LexicalContentEditable";import{LexicalErrorBoundary as o}from"@lexical/react/LexicalErrorBoundary";import{RichTextPlugin as i}from"@lexical/react/LexicalRichTextPlugin";import l from"../EditorPlaceholder/EditorPlaceholder.js";import"./EditorContainer.css.js";var a=function(a){var c=a.placeholder;return e("div",r({className:"lexical_editor_container"},{children:e(i,{contentEditable:e(t,{className:"lexical_editor_content",id:"lexical_editor_content"}),placeholder:c?function(){return e(l,{placeholder:c})}:null,ErrorBoundary:o})}))};export{a as default};
|
|
2
2
|
//# sourceMappingURL=EditorContainer.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=".lexical_editor_placeholder{left:1.4rem;opacity:.5;pointer-events:none;position:absolute;top:1rem}";!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&t.setAttribute("nonce",n),t.appendChild(document.createTextNode(e));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(t)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=EditorPlaceholder.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorPlaceholder.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsx as e}from"react/jsx-runtime";var
|
|
1
|
+
import{__assign as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import"./EditorPlaceholder.css.js";var l=function(l){var o=l.placeholder;return e("div",r({className:"lexical_editor_placeholder"},{children:o}))};export{l as default};
|
|
2
2
|
//# sourceMappingURL=EditorPlaceholder.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e='@import "./../../theme/colors.css";.lexical_editor_toolbar{align-items:center;background:#fff;border-bottom:1px solid var(--color-border-grey);border-radius:12px 12px 0 0;display:flex;flex-wrap:wrap;overflow-x:auto;overflow-y:hidden;padding:.2rem;top:0;z-index:2}.lexical_editor_toolbar_container{height:100%}';!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&t.setAttribute("nonce",o),t.appendChild(document.createTextNode(e));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(t)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=EditorToolbar.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorToolbar.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as o}from"tslib";import{jsxs as t,jsx as r,Fragment as e}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as a,useEffect as l}from"react";import{$getSelection as c,$isRangeSelection as u,CAN_UNDO_COMMAND as m,COMMAND_PRIORITY_CRITICAL as f,CAN_REDO_COMMAND as d,FORMAT_TEXT_COMMAND as p,FORMAT_ELEMENT_COMMAND as s,$createParagraphNode as v}from"lexical";import{$getSelectionStyleValueForProperty as g,$patchStyleText as h,$setBlocksType as x}from"@lexical/selection";import{$isHeadingNode as y,$createHeadingNode as b,$createQuoteNode as
|
|
1
|
+
import{__assign as o}from"tslib";import{jsxs as t,jsx as r,Fragment as e}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as a,useEffect as l}from"react";import{$getSelection as c,$isRangeSelection as u,CAN_UNDO_COMMAND as m,COMMAND_PRIORITY_CRITICAL as f,CAN_REDO_COMMAND as d,FORMAT_TEXT_COMMAND as p,FORMAT_ELEMENT_COMMAND as s,$createParagraphNode as v}from"lexical";import{$getSelectionStyleValueForProperty as g,$patchStyleText as h,$setBlocksType as x}from"@lexical/selection";import{$isHeadingNode as y,$createHeadingNode as b,$createQuoteNode as T}from"@lexical/rich-text";import{$isListNode as C,ListNode as j}from"@lexical/list";import{useLexicalComposerContext as R}from"@lexical/react/LexicalComposerContext";import{$getNearestNodeOfType as E,mergeRegister as I}from"@lexical/utils";import{$isLinkNode as k,TOGGLE_LINK_COMMAND as A}from"@lexical/link";import{$isCodeNode as B,getDefaultCodeLanguage as S}from"@lexical/code";import q from"./components/ToolbarButton/ToolbarButton.js";import{ToolbarDivider as L}from"./components/ToolbarDivider/ToolbarDivider.js";import{UndoRedo as N}from"./components/UndoRedo/UndoRedo.js";import"./EditorToolbar.css.js";import{ACTIVE_FORMATS as U}from"../../constants/objects.js";import{getSelectedNode as _}from"../../utils/getSelectedNode.js";import{Icon as K}from"../Icons/Icon.js";import{useRequirementAI as W}from"../../../../RequirementAIWrapper/RequirementAIWrapper.js";var z=function(z){var D;z.editorWrapperRef;var F=z.onToolbarButtonClick,O=z.toolbarConfig,P=z.customToolbar;z.editorRef;var w=R()[0],G=n(U),H=G[0],J=G[1],M=n("15px");M[0];var Q=M[1],V=n("Arial");V[0];var X=V[1],Y=n("");Y[0];var Z=Y[1],$=n(!1),oo=$[0],to=$[1],ro=n("paragraph"),eo=ro[0],no=ro[1],io=n(null);io[0];var ao=io[1],lo=n("");lo[0];var co=lo[1],uo=n(!1),mo=uo[0],fo=uo[1],po=n(!1),so=po[0],vo=po[1],go=i(null),ho=W().customStyles,xo=a(function(){var t,r=c();if(u(r)){var e=r.anchor.getNode(),n="root"===e.getKey()?e:e.getTopLevelElementOrThrow(),i=n.getKey();if(null!==w.getElementByKey(i))if(ao(i),C(n)){var a=E(e,j),l=a?a.getTag():n.getTag();no(l)}else{l=y(n)?n.getTag():n.getType();no(l),B(n)&&co(n.getLanguage()||S())}Object.keys(U).forEach(function(t){r.hasFormat(t)?J(function(r){var e;return o(o({},r),((e={})[t]=!0,e))}):J(function(r){var e;return o(o({},r),((e={})[t]=!1,e))})});var m=_(r),f=m.getParent();k(f)||k(m)?to(!0):to(!1),Q(g(r,"font-size","15px")),X(g(r,"font-family","Arial"));var d=null===(t=r.anchor.getNode().getParent())||void 0===t?void 0:t.getFormatType();Z(d)}},[w]);l(function(){return I(w.registerUpdateListener(function(o){o.editorState.read(function(){xo()})}),w.registerCommand(m,function(o){return fo(o),!1},f),w.registerCommand(d,function(o){return vo(o),!1},f))},[w,xo]);var yo=a(function(o,t){w.dispatchCommand(p,t)},[w]);a(function(o,t){["left","center","right","justify"].includes(t)&&w.dispatchCommand(s,t)},[w]),a(function(o,t){w.update(function(){var o,r=c();u(r)&&h(r,((o={})["font-size"]=t,o))})},[w]);return a(function(o,t){var r;"h1"!==t&&"h2"!==t&&"h3"!==t||eo!==(r=t)&&w.update(function(){var o=c();u(o)&&x(o,function(){return b(r)})}),"paragraph"===t&&"paragraph"!==eo&&w.update(function(){var o=c();u(o)&&x(o,function(){return v()})}),"quote"===t&&"quote"!==eo&&w.update(function(){var o=c();u(o)&&x(o,function(){return T()})})},[w,eo]),a(function(o,t){w.update(function(){var o,r=c();u(r)&&h(r,((o={})["font-family"]=t,o))})},[w]),a(function(){oo?w.dispatchCommand(A,null):w.dispatchCommand(A,"https://")},[w,oo]),t("div",o({className:"lexical_editor_toolbar",id:"lexical_editor_toolbar",ref:go,style:o({},null===(D=null==ho?void 0:ho.textEditorStyles)||void 0===D?void 0:D.tooltextArea)},{children:[(null==O?void 0:O.undoRedo.display)&&r(N,{canUndo:mo,canRedo:so}),(null==O?void 0:O.inline.display)&&t(e,{children:[O.inline.options.map(function(o){var t;return r(q,{toolbarItem:o,active:H[o],onClick:yo,icon:r(K,{icon:o,iconColors:null===(t=null==ho?void 0:ho.textEditorStyles)||void 0===t?void 0:t.toolIconColors}),onToolbarButtonClick:F},o)}),r(L,{})]}),P&&P]}))};export{z as default};
|
|
2
2
|
//# sourceMappingURL=EditorToolbar.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e='@import "./../../../../theme/colors.css";.lexical_editor_toolbar_button{align-items:center;background:none;border:0;border-radius:4px;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin:0 2px;min-width:34px;width:34px}.lexical_editor_toolbar_button:hover{background-color:var(--color-hover-grey)}.lexical_editor_toolbar_button__active{background-color:var(--color-active-grey)}.lexical_editor_toolbar_button__active:hover{background-color:var(--color-active-grey);border:1px solid #7d8c94}.lexical_editor_toolbar_button:disabled{cursor:default;opacity:.3}.lexical_editor_toolbar_button:disabled:hover{background:none}.lexical_editor_toolbar_button_icon{background-position:50%;background-repeat:no-repeat;background-size:24px 24px;display:inline-block;height:24px;width:24px}';!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
|
+
//# sourceMappingURL=ToolbarButton.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarButton.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|