@e-llm-studio/requirement-ai 0.0.170 → 0.0.172
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/plugins/DeleteNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/segment.module.css.js +1 -1
- package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
- package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/adaptLabel.js +2 -0
- package/dist/cjs/features/UserStoryImport/lib/adaptLabel.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
- package/dist/features/RequirementAI/components/segment/segment.module.css.js +1 -1
- package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
- package/dist/features/UserStoryImport/components/Header.js +1 -1
- package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
- package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
- package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
- package/dist/features/UserStoryImport/lib/adaptLabel.js +2 -0
- package/dist/features/UserStoryImport/lib/adaptLabel.js.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +2 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +3 -3
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -1
- package/dist/types/src/features/UserStoryImport/UserStoryPicker.d.ts.map +1 -1
- package/dist/types/src/features/UserStoryImport/components/Header.d.ts.map +1 -1
- package/dist/types/src/features/UserStoryImport/components/SearchInput.d.ts.map +1 -1
- package/dist/types/src/features/UserStoryImport/components/SectionHeading.d.ts.map +1 -1
- package/dist/types/src/features/UserStoryImport/hooks/useUSPData.d.ts +1 -1
- package/dist/types/src/features/UserStoryImport/hooks/useUSPData.d.ts.map +1 -1
- package/dist/types/src/features/UserStoryImport/lib/adaptLabel.d.ts +2 -0
- package/dist/types/src/features/UserStoryImport/lib/adaptLabel.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=function(t){function n(e,r){void 0===e&&(e=crypto.randomUUID());var n=t.call(this,r)||this;return n.__reviewId=e,n}return e.__extends(n,t),n.getType=function(){return"delete"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(){var e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=function(t){function n(e,r){void 0===e&&(e=crypto.randomUUID());var n=t.call(this,r)||this;return n.__reviewId=e,n}return e.__extends(n,t),n.getType=function(){return"delete"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(){var e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__delete-node",e.contentEditable="false",e},n.prototype.exportDOM=function(){var e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__delete-node",{element:e}},n.prototype.updateDOM=function(){return!1},n.importDOM=function(){return{del:function(){return{conversion:r,priority:1}}}},n.importJSON=function(e){return new n(e.reviewId)},n.prototype.exportJSON=function(){return e.__assign(e.__assign({},t.prototype.exportJSON.call(this)),{type:"delete",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n.prototype.canBeEmpty=function(){return!1},n.prototype.canInsertTextBefore=function(){return!1},n.prototype.canInsertTextAfter=function(){return!1},n.prototype.canMergeWith=function(){return!1},n}(require("lexical").ElementNode);function r(e){var r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(r)}}exports.DeleteNode=t;
|
|
2
2
|
//# sourceMappingURL=DeleteNode.js.map
|
package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=function(t){function n(e,r){void 0===e&&(e=crypto.randomUUID());var n=t.call(this,r)||this;return n.__reviewId=e,n}return e.__extends(n,t),n.getType=function(){return"insert"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=function(t){function n(e,r){void 0===e&&(e=crypto.randomUUID());var n=t.call(this,r)||this;return n.__reviewId=e,n}return e.__extends(n,t),n.getType=function(){return"insert"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(){var e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__insert-node",e},n.prototype.exportDOM=function(){var e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__insert-node",{element:e}},n.prototype.updateDOM=function(e,t,r){return e.__reviewId!==this.__reviewId},n.importDOM=function(){return{ins:function(){return{conversion:r,priority:1}}}},n.importJSON=function(e){var t=new n(e.reviewId);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t},n.prototype.exportJSON=function(){return e.__assign(e.__assign({},t.prototype.exportJSON.call(this)),{type:"insert",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n}(require("lexical").ElementNode);function r(e){var r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(r)}}exports.InsertNode=t;
|
|
2
2
|
//# sourceMappingURL=InsertNode.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='.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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__delete-node{text-decoration:var(--delete-node-text-decoration,line-through);text-decoration-color:var(--delete-node-decoration-color,#dc2626);text-decoration-thickness:var(--delete-node-decoration-thickness,2px)}.PlaygroundEditorTheme__insert-node{background-color:var(--insert-node-bg,#dbeafe);border-radius:var(--insert-node-border-radius,2px);color:var(--insert-node-color,#1e3a8a);padding:var(--insert-node-padding,1px 2px);text-decoration:var(--insert-node-text-decoration,none)}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}(),exports.default=e;
|
|
2
2
|
//# sourceMappingURL=theme.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./theme.css.js");exports.default={characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",operator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},image:"editor-image",link:"PlaygroundEditorTheme__link",list:{listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"}};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./theme.css.js");exports.default={characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",operator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},image:"editor-image",link:"PlaygroundEditorTheme__link",list:{listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"},deleteNode:"PlaygroundEditorTheme__delete-node",insertNode:"PlaygroundEditorTheme__insert-node"};
|
|
2
2
|
//# sourceMappingURL=theme.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("./Editor/constants/editorConfig.js"),o=require("./Editor/Editor.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("./Editor/constants/editorConfig.js"),o=require("./Editor/Editor.js"),a=require("../../store/ref.context.js"),i=require("@lexical/html"),u=require("turndown"),c=require("turndown-plugin-gfm");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=new(l(u).default)({headingStyle:"atx",codeBlockStyle:"fenced"});d.keep(["ins","del","mark"]),d.keep(function(e){var t,r;return"A"===e.nodeName&&null!==(r=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.includes("ai_reasoning$"))&&void 0!==r&&r}),d.addRule("md-table-passthrough",{filter:function(e){return"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table")},replacement:function(e,t){return t.textContent||""}}),d.use(c.tables);exports.default=function(u){var c=u.type,l=u.value,s=u.handleUpdateState,f=u.onBlur,h=u.placeholder,g=u.minHeight,p=u.height,m=u.mode,v=u.doNotShowBorderInViewMode,E=r.useRef(null),A=r.useState({type:c,value:l}),b=A[0],y=A[1],w=r.useState(0),x=w[0],S=w[1],q=a.useRefStore(),_=q.contentRef;q.setContentRef;r.useEffect(function(){y(function(t){return e.__assign(e.__assign({},t),{value:l})})},[l]);return r.useEffect(function(){var e=function(){_&&_.current&&S(_.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[_]),t.jsx(t.Fragment,{children:t.jsx(o.default,{minHeight:g,height:p,placeholder:h||"Enter some text...",onChange:function(e,t){e.read(function(){var e=i.$generateHtmlFromNodes(t,null),r=(new DOMParser).parseFromString(e,"text/html");function n(e){return Array.from(e.childNodes).map(function(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";if(e.nodeType===Node.ELEMENT_NODE){var t=e,r=t.tagName.toLowerCase(),o=n(t);if("strong"===r||"b"===r)return o.startsWith("<strong>")&&o.endsWith("</strong>")?o:"<strong>".concat(o,"</strong>");if("em"===r||"i"===r)return o.startsWith("<em>")&&o.endsWith("</em>")?o:"<em>".concat(o,"</em>");if("code"===r)return"<code>".concat(o,"</code>");if("u"===r)return"<u>".concat(o,"</u>");if("s"===r)return"<s>".concat(o,"</s>");if("a"===r){var a=t.getAttribute("href")||"";return'<a href="'.concat(a,'">').concat(o,"</a>")}return o}return""}).join("")}r.querySelectorAll("span").forEach(function(e){var t=e.getAttribute("style")||"";t.includes("background-color")&&t.includes("rgb(219, 234, 254)")&&e.setAttribute("data-review","insert"),t.includes("text-decoration")&&t.includes("line-through")&&e.setAttribute("data-review","delete")}),r.querySelectorAll("strong code").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll("code strong").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e){e.innerHTML=n(e)});var o=[];r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e,t){o.push(e.outerHTML);var n=r.createElement("span");n.textContent="%%REVIEW_".concat(t,"%%"),e.replaceWith(n)});var a=[];r.querySelectorAll("table").forEach(function(e,t){a.push(e.outerHTML);var n=r.createElement("p");n.textContent="%%TABLE_".concat(t,"%%"),e.replaceWith(n)});var u=d.turndown(r.body.innerHTML);o.forEach(function(e,t){u=u.replace("%%REVIEW\\_".concat(t,"%%"),e)}),a.forEach(function(e,t){u=u.replace("%%TABLE\\_".concat(t,"%%"),"\n\n".concat(e,"\n\n"))}),function(e,t){s(e,t)}("prompt",u=u.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"))})},toolbarConfig:n.DEFAULT_TOOLBAR_CONFIG,editorRef:E,mode:m,initialString:{type:b.type,value:b.value},dynamicHeight:x,onBlur:f,doNotShowBorderInViewMode:v||!1})})};
|
|
2
2
|
//# sourceMappingURL=RichTextEditor.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),s=require("../../../UserStoryImport/lib/cn.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),s=require("../../../UserStoryImport/lib/cn.js"),l=require("./segment.module.css.js"),o=require("./ExampleComponentWrapper.js"),i=require("../ai-reasoning/AiReasoningCitationContent.js"),r=require("./SegmentLoader.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./segment-common.css.js");var c=u(t);exports.default=function(t){var u=t.id,d=void 0===u?"Segment":u,m=t.label,g=t.originalValue;t.decisionStrength;var p=t.aiReason,v=t.customStyles,f=t.customIcons,_=t.aiReasoningCitationCustomStyles,x=t.segmentExampleComponent,j=t.handleViewGlossary,S=t.isUpdatedSegment,h=t.onOpen,y=c.default.useState(!1),C=y[0],b=y[1],q=c.default.useState(!1),E=q[0],I=q[1],w=c.default.useState(!1),N=w[0],R=w[1];return n.jsxs("div",e.__assign({className:"".concat(l.default.segmentWrapper),style:e.__assign({},null==v?void 0:v.segmentWrapper)},{children:[n.jsxs("div",e.__assign({className:"segment-".concat(d,"-container segmentContainer ").concat(S?"updatedSegmentContainer":""),style:e.__assign({},null==v?void 0:v.container)},{children:[n.jsx("span",e.__assign({className:"segment-".concat(d," segmentLabel ").concat(S?"updatedSegmentLabel":""),style:e.__assign({},null==v?void 0:v.label)},{children:S?g:m})),n.jsx("button",e.__assign({className:"".concat(l.default.segmentExplanationButtonContainer),style:e.__assign({},null==v?void 0:v.buttonContainer),onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(e){switch(e.label){case 0:if(n=!C,I(!1),!n||(null==p?void 0:p.reason))return[3,5];R(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,null==h?void 0:h()];case 2:return e.sent(),[3,4];case 3:return R(!1),b(!0),[7];case 4:return[3,6];case 5:b(n),e.label=6;case 6:return[2]}})})}},{children:N?n.jsx(a.Loader2,{size:16,className:l.default.spinner}):n.jsx(a.ChevronDown,{className:s.cn(S&&l.default.updatedChevronIcon,l.default.cheveronIcon,C&&l.default.cheveronIconRotated),style:e.__assign({},null==v?void 0:v.cheveronIcon)})}))]})),E&&!S?n.jsx(o.default,{label:null!=m?m:"",segmentExampleComponent:x,customStyles:null==v?void 0:v.segmentExample,handleCancelExample:function(){I(!1)}}):C&&(N?n.jsx(r.default,{customStyles:null==v?void 0:v.loadingSkeleton}):n.jsx(i.default,{aiReason:p,customStyles:_,customIcons:f,isSegmentExplanation:!0,handleViewGlossary:j?function(){b(!1),null==j||j(d)}:void 0,handleViewExample:x?function(){I(!0)}:void 0,isUpdatedSegment:S}))]}))};
|
|
2
2
|
//# sourceMappingURL=Segment.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("./Segment.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("./Segment.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=o(require("dompurify"));exports.default=function(o){var i,d,a,r,s,u,v,g,m,c,p,S,f,h=o.children,b=o.props,x=o.segmentComponentConfig,_=o.customStyles,y=o.customIcons,C=o.extractText,j=o.isUpdatedSegment,I=void 0!==j&&j,w=(null==b?void 0:b.id)||"Segment",q=(null==b?void 0:b.decisionstrength)||"80",D=x||{},E=D.segmentDataList,L=D.getSegmentExampleComponent,U=D.handleViewGlossary,k=D.upadatedSegmentDataList,F=D.handleFetchUpdatedSegmentDetails,O=D.handleFetchSegmentDetails,R=I?null==k?void 0:k.find(function(e){return String(e.segment_id)===String(w)}):null==E?void 0:E.find(function(e){return String(e.segment_id)===String(w)});console.log("meee work",R,I,E,k);var V={id:w,reason:null!==(i=null==R?void 0:R.reason)&&void 0!==i?i:"",gap:null!==(d=null==R?void 0:R.gap)&&void 0!==d?d:"",explanation:null!==(a=null==R?void 0:R.explanation)&&void 0!==a?a:"",relevance_score:null!==(r=null==R?void 0:R.relevance_score)&&void 0!==r?r:0,isOpen:!1},G=void 0,M=C(h),T=b["data-table"],W="";if(T&&!I)try{W=decodeURIComponent(atob(T))}catch(e){console.error("Failed to decode data-table for segment",w,e)}var z=l.default.sanitize(W);return R||!O||I||null==O||O(w),w&&R&&L&&!I&&(G=T?n.jsx(function(){return n.jsx("div",{dangerouslySetInnerHTML:{__html:z}})},{}):L(w,M,R.segment_type)),n.jsx(t.default,{id:w,label:null!==(s=null==R?void 0:R.label)&&void 0!==s?s:null==R?void 0:R.segment_name,originalValue:M,decisionStrength:q,aiReason:V,customIcons:y,aiReasoningCitationCustomStyles:_,segmentExampleComponent:G,handleViewGlossary:U,customStyles:{segmentWrapper:null===(u=null==_?void 0:_.segment)||void 0===u?void 0:u.segmentWrapper,container:null===(v=null==_?void 0:_.segment)||void 0===v?void 0:v.container,label:null===(g=null==_?void 0:_.segment)||void 0===g?void 0:g.label,decisionStrength:null===(m=null==_?void 0:_.segment)||void 0===m?void 0:m.decisionStrength,buttonContainer:null===(c=null==_?void 0:_.segment)||void 0===c?void 0:c.buttonContainer,cheveronIcon:null===(p=null==_?void 0:_.segment)||void 0===p?void 0:p.cheveronIcon,segmentExample:null===(S=null==_?void 0:_.segment)||void 0===S?void 0:S.segmentExample,loadingSkeleton:null===(f=null==_?void 0:_.segment)||void 0===f?void 0:f.SegmentLoadingSkeletonStyles},isUpdatedSegment:I,onOpen:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return R||!I?[3,2]:[4,null==F?void 0:F(w)];case 1:e.sent(),e.label=2;case 2:return[2]}})})}},w)};
|
|
2
2
|
//# sourceMappingURL=SegmentWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_updatedChevronIcon__8vN-t{color:#16a34a}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_loaderContainer__5Mhyz,.segment-module_loaderWrapper__SwIof{border:1px solid #e5e7eb;border-radius:8px;padding:12px}.segment-module_loaderHeader__J2JnY{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.segment-module_skeleton__2uZEf{animation:segment-module_pulse__A17cR 1.5s ease-in-out infinite;background:#e5e7eb;border-radius:6px}.segment-module_title__fW93U{height:18px;width:100px}.segment-module_icon__Dvee3{height:18px;width:18px}.segment-module_lineFull__MMmOD{height:14px;margin-bottom:10px;width:100%}.segment-module_line90__OFStl{height:14px;margin-bottom:10px;width:90%}.segment-module_line75__9r6Xp{height:14px;margin-bottom:10px;width:75%}.segment-module_line60__bLRec{height:14px;width:60%}@keyframes segment-module_pulse__A17cR{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",updatedChevronIcon:"segment-module_updatedChevronIcon__8vN-t",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",loaderWrapper:"segment-module_loaderWrapper__SwIof",loaderContainer:"segment-module_loaderContainer__5Mhyz",loaderHeader:"segment-module_loaderHeader__J2JnY",skeleton:"segment-module_skeleton__2uZEf",pulse:"segment-module_pulse__A17cR",title:"segment-module_title__fW93U",icon:"segment-module_icon__Dvee3",lineFull:"segment-module_lineFull__MMmOD",line90:"segment-module_line90__OFStl",line75:"segment-module_line75__9r6Xp",line60:"segment-module_line60__bLRec",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_updatedChevronIcon__8vN-t{color:#16a34a}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_loaderContainer__5Mhyz,.segment-module_loaderWrapper__SwIof{border:1px solid #e5e7eb;border-radius:8px;padding:12px}.segment-module_loaderHeader__J2JnY{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.segment-module_skeleton__2uZEf{animation:segment-module_pulse__A17cR 1.5s ease-in-out infinite;background:#e5e7eb;border-radius:6px}.segment-module_title__fW93U{height:18px;width:100px}.segment-module_icon__Dvee3{height:18px;width:18px}.segment-module_lineFull__MMmOD{height:14px;margin-bottom:10px;width:100%}.segment-module_line90__OFStl{height:14px;margin-bottom:10px;width:90%}.segment-module_line75__9r6Xp{height:14px;margin-bottom:10px;width:75%}.segment-module_line60__bLRec{height:14px;width:60%}@keyframes segment-module_pulse__A17cR{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}.segment-module_spinner__kRnWD{animation:segment-module_spin__MV6y5 1s linear infinite}@keyframes segment-module_spin__MV6y5{to{transform:rotate(1turn)}}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",updatedChevronIcon:"segment-module_updatedChevronIcon__8vN-t",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",loaderWrapper:"segment-module_loaderWrapper__SwIof",loaderContainer:"segment-module_loaderContainer__5Mhyz",loaderHeader:"segment-module_loaderHeader__J2JnY",skeleton:"segment-module_skeleton__2uZEf",pulse:"segment-module_pulse__A17cR",title:"segment-module_title__fW93U",icon:"segment-module_icon__Dvee3",lineFull:"segment-module_lineFull__MMmOD",line90:"segment-module_line90__OFStl",line75:"segment-module_line75__9r6Xp",line60:"segment-module_line60__bLRec",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ",spinner:"segment-module_spinner__kRnWD",spin:"segment-module_spin__MV6y5"};
|
|
2
2
|
//# sourceMappingURL=segment.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),r=require("react"),t=require("./UserStoryPicker.context.js"),i=require("./hooks/useUserStoryPickerState.js"),s=require("./hooks/useFilteredItems.js"),n=require("./hooks/useUSPData.js"),a=require("./UserStoryPicker.theme.js"),c=require("./lib/Tooltip.js");require("./user-story-picker.css.js");var d=require("./lib/cn.js"),l={},u={};exports.UserStoryPickerRoot=function(S){var v,j,P=S.userEmail,p=S.adapter,h=S.defaultView,f=void 0===h?"recent":h,g=S.defaultSort,M=void 0===g?"newest":g,m=S.defaultType,b=void 0===m?"All Types":m,y=S.defaultRepo,w=void 0===y?"allRepository":y,U=S.gitUrl,k=void 0===U?"":U,C=S.pageSize,I=void 0===C?4:C,T=S.theme,_=S.classNames,q=void 0===_?l:_,F=S.renderProps,x=void 0===F?u:F,L=S.onProceed,N=S.onStorySelect,E=S.onProjectSelect,R=S.onSearch,V=S.onViewChange,D=S.onSortChange,H=S.onShowMore,B=S.onViewMoreDescription,Q=S.onFavoriteToggle,z=S.hidePopUp,A=void 0!==z&&z,O=S.disableTooltip,G=void 0!==O&&O,J=S.tooltipClassName,K=S.children,W=S.mediaCacheHooks,X=S.showCitations,Y=void 0!==X&&X,Z=i.useUserStoryPickerState(f,M,b,w,I),$=Z[0],ee=Z[1];r.useEffect(function(){null==V||V($.viewMode)},[$.viewMode,V]);var oe=n.useUSPData(P,k,p.fetchProjects,p.fetchUserStories,$.sortBy,$.typeBy,$.scopeRepo,$.searchQuery,$.sidebarSearchQuery,$.selectedProjectId),re=oe.projects,te=oe.userStories,ie=oe.hasMoreProjects,se=oe.hasMoreStories,ne=oe.loadMoreProjects,ae=oe.loadMoreStories,ce=oe.isLoadingProjects,de=oe.isLoadingStories,le=oe.projectStories,ue=oe.hasMoreProjectStories,Se=oe.loadMoreProjectStories,ve=oe.isLoadingProjectStories,je=oe.sidebarProjects,Pe=oe.hasMoreSidebarProjects,pe=oe.loadMoreSidebarProjects,he=oe.scopedUserStories,fe=oe.toggleScopedUserStories,ge=oe.isLoadingSidebarProjects,Me=oe.favoriteStories,me=oe.hasMoreFavoriteStories,be=oe.loadMoreFavoriteStories,ye=oe.isLoadingFavoriteStories,we=oe.updateFavorite,Ue=$.selectedProjectId?ue:se,ke=$.selectedProjectId?Se:ae,Ce=$.selectedProjectId?ve:de,Ie=r.useMemo(function(){var e;return null!==(e=re.find(function(e){return e.id===$.selectedProjectId}))&&void 0!==e?e:null},[re,$.selectedProjectId]),Te=r.useMemo(function(){return Ie?le.map(function(o){return e.__assign(e.__assign({},o),{projectName:Ie.name})}):le},[le,Ie]),_e=r.useMemo(function(){var e;return null!==(e=($.selectedProjectId?Te:te).find(function(e){return e.user_story_id===$.selectedStoryId}))&&void 0!==e?e:null},[$.selectedProjectId,Te,te,$.selectedStoryId]),qe=s.useFilteredItems(te,re,$,Te,Me),Fe=qe.filteredStories,xe=qe.filteredProjects,Le=qe.visibleStories,Ne=qe.visibleProjects,Ee="favorites"===$.viewMode?(null!==(v=null==Fe?void 0:Fe.length)&&void 0!==v?v:0)>(null!==(j=null==Le?void 0:Le.length)&&void 0!==j?j:0):Ue,Re=r.useCallback(function(e,o){we(e,o),null==Q||Q(e,o)},[we,Q]),Ve=r.useMemo(function(){return{adapter:p,state:$,dispatch:ee,userStories:te,projects:re,filteredStories:Fe,filteredProjects:xe,visibleStories:Le,visibleProjects:Ne,hasMoreStories:Ee,hasMoreProjects:ie,selectedStory:_e,selectedProject:Ie,classNames:q,renderProps:x,mediaCacheHooks:W,showCitations:Y,loadMoreProjects:ne,loadMoreStories:ke,isLoadingProjects:ce,isLoadingStories:Ce,scopedUserStories:he,toggleScopedUserStories:fe,sidebarProjects:je,hasMoreSidebarProjects:Pe,loadMoreSidebarProjects:pe,isLoadingSidebarProjects:ge,favoriteStories:Me,hasMoreFavoriteStories:me,loadMoreFavoriteStories:be,isLoadingFavoriteStories:ye,onProceed:L,onStorySelect:N,onProjectSelect:E,onSearch:R,onViewChange:V,onSortChange:D,onShowMore:H,onViewMoreDescription:B,onFavoriteToggle:Re,hidePopUp:A,disableTooltip:G,tooltipClassName:J}},[p,$,ee,te,re,Fe,xe,Le,Ne,Ue,Ee,ie,_e,Ie,q,x,ne,ke,ce,Ce,je,Pe,pe,ge,Me,me,be,he,fe,ye,L,W,Y,N,E,R,V,D,H,B,Re,A,G,J]),De=r.useState(!1),He=De[0],Be=De[1],Qe=r.useRef(null);r.useEffect(function(){if(p.onHostEvent){var e=p.onHostEvent("cw-project-glow",function(){Be(!0),Qe.current&&clearTimeout(Qe.current),Qe.current=setTimeout(function(){Be(!1)},3e3)});return function(){Qe.current&&(clearTimeout(Qe.current),Qe.current=null),e&&e()}}},[p]);var ze=["usp-root",q.root].filter(Boolean).join(" "),Ae=T?a.themeToStyle(T):void 0;return o.jsx(c.TooltipProvider,{children:o.jsx(t.USPContext.Provider,e.__assign({value:Ve},{children:o.jsx("div",e.__assign({className:d.cn(ze,"rounded-lg flex-1 min-h-0 overflow-auto border-2 pt-2",He?"border-primary animate ease-in-out duration-500 mb-4":"transition-colors duration-500 border-transparent shadow-none"),style:Ae},{children:K}))}))})};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),r=require("react"),t=require("./UserStoryPicker.context.js"),i=require("./hooks/useUserStoryPickerState.js"),s=require("./hooks/useFilteredItems.js"),n=require("./hooks/useUSPData.js"),a=require("./UserStoryPicker.theme.js"),c=require("./lib/Tooltip.js");require("./user-story-picker.css.js");var d=require("./lib/cn.js"),l={},u={};exports.UserStoryPickerRoot=function(S){var v,j,P=S.userEmail,p=S.adapter,h=S.defaultView,f=void 0===h?"recent":h,g=S.defaultSort,M=void 0===g?"newest":g,m=S.defaultType,b=void 0===m?"All Types":m,y=S.defaultRepo,w=void 0===y?"allRepository":y,U=S.gitUrl,k=void 0===U?"":U,C=S.pageSize,I=void 0===C?4:C,T=S.theme,_=S.classNames,q=void 0===_?l:_,F=S.renderProps,x=void 0===F?u:F,L=S.onProceed,N=S.onStorySelect,E=S.onProjectSelect,R=S.onSearch,V=S.onViewChange,D=S.onSortChange,H=S.onShowMore,B=S.onViewMoreDescription,Q=S.onFavoriteToggle,z=S.hidePopUp,A=void 0!==z&&z,O=S.disableTooltip,G=void 0!==O&&O,J=S.tooltipClassName,K=S.children,W=S.mediaCacheHooks,X=S.showCitations,Y=void 0!==X&&X,Z=i.useUserStoryPickerState(f,M,b,w,I),$=Z[0],ee=Z[1];r.useEffect(function(){null==V||V($.viewMode)},[$.viewMode,V]);var oe=n.useUSPData(P,k,p.fetchProjects,p.fetchUserStories,$.sortBy,$.typeBy,$.scopeRepo,$.searchQuery,$.sidebarSearchQuery,$.selectedProjectId,Y),re=oe.projects,te=oe.userStories,ie=oe.hasMoreProjects,se=oe.hasMoreStories,ne=oe.loadMoreProjects,ae=oe.loadMoreStories,ce=oe.isLoadingProjects,de=oe.isLoadingStories,le=oe.projectStories,ue=oe.hasMoreProjectStories,Se=oe.loadMoreProjectStories,ve=oe.isLoadingProjectStories,je=oe.sidebarProjects,Pe=oe.hasMoreSidebarProjects,pe=oe.loadMoreSidebarProjects,he=oe.scopedUserStories,fe=oe.toggleScopedUserStories,ge=oe.isLoadingSidebarProjects,Me=oe.favoriteStories,me=oe.hasMoreFavoriteStories,be=oe.loadMoreFavoriteStories,ye=oe.isLoadingFavoriteStories,we=oe.updateFavorite,Ue=$.selectedProjectId?ue:se,ke=$.selectedProjectId?Se:ae,Ce=$.selectedProjectId?ve:de,Ie=r.useMemo(function(){var e;return null!==(e=re.find(function(e){return e.id===$.selectedProjectId}))&&void 0!==e?e:null},[re,$.selectedProjectId]),Te=r.useMemo(function(){return Ie?le.map(function(o){return e.__assign(e.__assign({},o),{projectName:Ie.name})}):le},[le,Ie]),_e=r.useMemo(function(){var e;return null!==(e=($.selectedProjectId?Te:te).find(function(e){return e.user_story_id===$.selectedStoryId}))&&void 0!==e?e:null},[$.selectedProjectId,Te,te,$.selectedStoryId]),qe=s.useFilteredItems(te,re,$,Te,Me),Fe=qe.filteredStories,xe=qe.filteredProjects,Le=qe.visibleStories,Ne=qe.visibleProjects,Ee="favorites"===$.viewMode?(null!==(v=null==Fe?void 0:Fe.length)&&void 0!==v?v:0)>(null!==(j=null==Le?void 0:Le.length)&&void 0!==j?j:0):Ue,Re=r.useCallback(function(e,o){we(e,o),null==Q||Q(e,o)},[we,Q]),Ve=r.useMemo(function(){return{adapter:p,state:$,dispatch:ee,userStories:te,projects:re,filteredStories:Fe,filteredProjects:xe,visibleStories:Le,visibleProjects:Ne,hasMoreStories:Ee,hasMoreProjects:ie,selectedStory:_e,selectedProject:Ie,classNames:q,renderProps:x,mediaCacheHooks:W,showCitations:Y,loadMoreProjects:ne,loadMoreStories:ke,isLoadingProjects:ce,isLoadingStories:Ce,scopedUserStories:he,toggleScopedUserStories:fe,sidebarProjects:je,hasMoreSidebarProjects:Pe,loadMoreSidebarProjects:pe,isLoadingSidebarProjects:ge,favoriteStories:Me,hasMoreFavoriteStories:me,loadMoreFavoriteStories:be,isLoadingFavoriteStories:ye,onProceed:L,onStorySelect:N,onProjectSelect:E,onSearch:R,onViewChange:V,onSortChange:D,onShowMore:H,onViewMoreDescription:B,onFavoriteToggle:Re,hidePopUp:A,disableTooltip:G,tooltipClassName:J}},[p,$,ee,te,re,Fe,xe,Le,Ne,Ue,Ee,ie,_e,Ie,q,x,ne,ke,ce,Ce,je,Pe,pe,ge,Me,me,be,he,fe,ye,L,W,Y,N,E,R,V,D,H,B,Re,A,G,J]),De=r.useState(!1),He=De[0],Be=De[1],Qe=r.useRef(null);r.useEffect(function(){if(p.onHostEvent){var e=p.onHostEvent("cw-project-glow",function(){Be(!0),Qe.current&&clearTimeout(Qe.current),Qe.current=setTimeout(function(){Be(!1)},3e3)});return function(){Qe.current&&(clearTimeout(Qe.current),Qe.current=null),e&&e()}}},[p]);var ze=["usp-root",q.root].filter(Boolean).join(" "),Ae=T?a.themeToStyle(T):void 0;return o.jsx(c.TooltipProvider,{children:o.jsx(t.USPContext.Provider,e.__assign({value:Ve},{children:o.jsx("div",e.__assign({className:d.cn(ze,"rounded-lg flex-1 min-h-0 overflow-auto border-2 pt-2",He?"border-primary animate ease-in-out duration-500 mb-4":"transition-colors duration-500 border-transparent shadow-none"),style:Ae},{children:K}))}))})};
|
|
2
2
|
//# sourceMappingURL=UserStoryPicker.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"),t=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js"),a=require("../lib/adaptLabel.js");exports.Header=function(r){var l=r.title,i=r.subtitle,n=r.className,u=r.style,d=r.titleStyle,o=r.subtitleStyle,c=r.children,p=s.useUSPContext(),y=p.classNames,_=p.state;l=a.adaptLabel(l,_.typeBy),i=i?a.adaptLabel(i,_.typeBy):i;var h=["usp-header",y.header,n].filter(Boolean).join(" "),b=["usp-header__title",y.headerTitle].filter(Boolean).join(" "),j=["usp-header__subtitle",y.headerSubtitle].filter(Boolean).join(" ");return t.jsxs("div",e.__assign({className:h,style:u},{children:[t.jsx("h1",e.__assign({className:b,style:d},{children:l})),i&&t.jsx("p",e.__assign({className:j,style:o},{children:i})),c]}))};
|
|
2
2
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),a=require("../UserStoryPicker.context.js");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),a=require("../UserStoryPicker.context.js"),t=require("../lib/adaptLabel.js");function n(){return r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[r.jsx("circle",{cx:"11",cy:"11",r:"8"}),r.jsx("path",{d:"m21 21-4.3-4.3"})]}))}exports.SearchInput=function(c){var i=c.placeholder,o=void 0===i?"Search...":i,l=c.className,u=c.style,p=c.inputStyle,d=c.iconStyle,h=c.scope,y=void 0===h?"main":h,x=a.useUSPContext(),S=x.state,_=x.dispatch,j=x.classNames,v=x.renderProps,b=x.onSearch;o=t.adaptLabel(o,S.typeBy);var m=s.useCallback(function(e){var r=e.target.value;"sidebar"===y?_({type:"SET_SIDEBAR_SEARCH",payload:r}):(_({type:"SET_SEARCH",payload:r}),null==b||b(r))},[_,b,y]),g="sidebar"===y?S.sidebarSearchQuery:S.searchQuery,f=["usp-search__input",j.searchInput,l].filter(Boolean).join(" "),k=["usp-search__icon",j.searchIcon].filter(Boolean).join(" ");return r.jsxs("div",e.__assign({className:"usp-search",style:u},{children:[r.jsx("span",e.__assign({className:k,style:d},{children:v.renderSearchIcon?v.renderSearchIcon():r.jsx(n,{})})),r.jsx("input",{type:"text",className:f,style:p,placeholder:o,value:g,onChange:m})]}))};
|
|
2
2
|
//# sourceMappingURL=SearchInput.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js"),r=require("./UserStoryScopeDropdown.js");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js"),r=require("./UserStoryScopeDropdown.js"),t=require("../lib/adaptLabel.js");function o(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[n.jsx("path",{d:"m12 19-7-7 7-7"}),n.jsx("path",{d:"M19 12H5"})]}))}function i(){return n.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:n.jsx("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function a(){return n.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:n.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function l(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[n.jsx("circle",{cx:"12",cy:"12",r:"10"}),n.jsx("polyline",{points:"12 6 12 12 16 14"})]}))}exports.SectionHeading=function(c){var u=c.label,d=c.icon,x=c.className,j=c.style,p=c.iconStyle,g=c.labelStyle,h=c.showBackButton,_=c.onBack,w=s.useUSPContext(),k=w.classNames,f=w.state;u=t.adaptLabel(u,f.typeBy);var v="recent"===f.viewMode,y=["usp-section-heading",k.sectionHeading,x].filter(Boolean).join(" "),m=function(e){if("string"==typeof e)switch(e){case"bookmark":return n.jsx(i,{});case"folder":return n.jsx(a,{});case"recent":return n.jsx(l,{});default:return null}return null!=e?e:null}(d);return n.jsxs("div",e.__assign({className:y,style:j},{children:[n.jsxs("div",e.__assign({className:["usp-section-heading__left",k.sectionHeadingLeft].filter(Boolean).join(" ")},{children:[h&&n.jsx("button",e.__assign({type:"button",className:"usp-section-heading__back",onClick:_},{children:n.jsx(o,{})})),m&&n.jsx("span",e.__assign({className:["usp-section-heading__icon",k.sectionHeadingLeft].filter(Boolean).join(" "),style:p},{children:m})),n.jsx("span",e.__assign({style:g},{children:u}))]})),v&&n.jsx(r.UserStoryScopeDropdown,{})]}))};
|
|
2
2
|
//# sourceMappingURL=SectionHeading.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react")
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react");function r(e){return Array.isArray(e)?e:e&&Array.isArray(e.data)?e.data:e&&Array.isArray(e.items)?e.items:[]}function n(e){return r(e).map(function(e){var t,r,n=(null===(t=e.files)||void 0===t?void 0:t.length)>0?e.files.reduce(function(e,t){return new Date(t.timestamp)>new Date(e)?t.timestamp:e},e.files[0].timestamp):e.timestamp;return{id:e._id,name:e.name,description:""!==e.description&&null!==e.description&&void 0!==e.description&&!1!==e.description?e.description:"No Description Available",artifactCount:null!==(r=e.artifactCount)&&void 0!==r?r:0,lastUpdated:n}})}function i(e,t){var n=r(e);return 0===n.length?[]:n.map(function(e){var t,r,n,i,a,o,s,u,c;return{storyId:e.ticket_id,title:e.title,description:null!==(t=e.description)&&void 0!==t?t:"",projectName:null!==(r=e.project_name)&&void 0!==r?r:"PROJECT",projectId:null!==(n=e.project_id)&&void 0!==n?n:"",lastUpdated:null!==(i=e.updated_at)&&void 0!==i?i:"",gs_util_url:null!==(a=e.gs_util_url)&&void 0!==a?a:"",artifact_id:null!==(o=e.artifact_id)&&void 0!==o?o:"",user_story_id:null!==(s=e.user_story_id)&&void 0!==s?s:"",isFavorite:Boolean(e.is_favorite),isNew:null!==(u=e.is_new)&&void 0!==u&&u,multi_user_story:Boolean(e.multi_user_story),user_stories_type:null!==(c=e.user_stories_type)&&void 0!==c?c:"",ai_reasonings_snaphost:e.ai_reasonings_snapshot&&e.ai_reasonings_snapshot.length>0?e.ai_reasonings_snapshot:[]}})}function a(e){return[e.user_story_id,e.storyId].filter(Boolean)}function o(e,t){for(var r=0,n=a(e);r<n.length;r++){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i))return t[i]}}function s(t,r){return t.length&&r&&0!==Object.keys(r).length?t.map(function(t){return void 0!==o(t,r)?e.__assign(e.__assign({},t),{isFavorite:o(t,r)}):t}):t}exports.useUSPData=function(r,u,c,f,l,d,_,v,p,y,m){void 0===l&&(l="newest"),void 0===d&&(d="All Types"),void 0===_&&(_="allRepository"),void 0===v&&(v=""),void 0===p&&(p=""),void 0===y&&(y=null),void 0===m&&(m=!1);var g=t.useRef(c);g.current=c;var h=t.useRef(f);h.current=f;var S=t.useState(1),A=S[0],j=S[1],b=t.useState(1),E=b[0],P=b[1],C=t.useState(1),F=C[0],M=C[1],k=t.useState(1),O=k[0],w=k[1],T=t.useState(1),I=T[0],x=T[1],R=t.useState(v),U=R[0],B=R[1],L=t.useState(p),N=L[0],q=L[1],D=t.useState("all"),z=D[0],J=D[1],G=t.useState([]),H=G[0],K=G[1],Q=t.useState([]),V=Q[0],W=Q[1],X=t.useState(!1),Y=X[0],Z=X[1],$=t.useState(!1),ee=$[0],te=$[1],re=t.useState([]),ne=re[0],ie=re[1],ae=t.useState(!1),oe=ae[0],se=ae[1],ue=t.useState([]),ce=ue[0],fe=ue[1],le=t.useState(!1),de=le[0],_e=le[1],ve=t.useState([]),pe=ve[0],ye=ve[1],me=t.useState(!1),ge=me[0],he=me[1],Se=t.useState({}),Ae=Se[0],je=Se[1],be=t.useState(!1),Ee=be[0],Pe=be[1],Ce=t.useState(!1),Fe=Ce[0],Me=Ce[1],ke=t.useState(!1),Oe=ke[0],we=ke[1],Te=t.useState(!1),Ie=Te[0],xe=Te[1],Re=t.useState(!1),Ue=Re[0],Be=Re[1],Le=t.useState(0),Ne=Le[0],qe=Le[1],De=Boolean(r),ze=function(e){switch(e){case"newest":default:return"date-desc";case"oldest":return"date-asc";case"a-z":return"name-asc";case"z-a":return"name-desc"}}(l);t.useEffect(function(){var e=setTimeout(function(){return B(v)},700);return function(){return clearTimeout(e)}},[v]),t.useEffect(function(){var e=setTimeout(function(){return q(p)},700);return function(){return clearTimeout(e)}},[p]),t.useEffect(function(){j(1),K([]),Z(!1)},[r,l,U]),t.useEffect(function(){P(1),W([]),te(!1)},[r,d,_,U,z]),t.useEffect(function(){M(1),ie([]),se(!1)},[r,N]),t.useEffect(function(){w(1),fe([]),_e(!1)},[y,r,d,_,U,z]),t.useEffect(function(){x(1),ye([]),he(!1)},[r]),t.useEffect(function(){if(De){var t=!1;Pe(!0);var i=e.__assign({user_email:r,page:A,limit:6,sortOrder:ze,modeName:"Requirement AI",artifactCaption:"User Story Artifact",subProject:!1,countTotalItems:!0},U?{nameContains:U}:{});return g.current(i).then(function(r){var i;if(!t){var a=n(r);K(function(t){return 1===A?a:e.__spreadArray(e.__spreadArray([],t,!0),a,!0)});var o=null===(i=null==r?void 0:r.pagination)||void 0===i?void 0:i.has_next;Z("boolean"==typeof o?o:a.length>=6)}}).catch(function(){}).finally(function(){t||Pe(!1)}),function(){t=!0}}},[De,r,A,ze,U]),t.useEffect(function(){if(De){var t=!1;we(!0);var i=e.__assign({user_email:r,page:F,limit:10,sortOrder:"date-desc",modeName:"Requirement AI",artifactCaption:"User Story Artifact",subProject:!1,countTotalItems:!0},N?{nameContains:N}:{});return g.current(i).then(function(r){var i;if(!t){var a=n(r);ie(function(t){return 1===F?a:e.__spreadArray(e.__spreadArray([],t,!0),a,!0)});var o=null===(i=null==r?void 0:r.pagination)||void 0===i?void 0:i.has_next;se("boolean"==typeof o?o:a.length>=10)}}).catch(function(){}).finally(function(){t||we(!1)}),function(){t=!0}}},[De,r,F,N]),t.useEffect(function(){if(De){var t=!1;Me(!0);var n=e.__assign({email:r,page:E,limit:6,scope:z,user_stories_type:"All Types"===d?"":d,repository_url:"allRepository"===_?"":u,paginate:!0,project_id_search:"",sortOrder:"date-desc",is_ai_snapshot:m},U?{search:U}:{});return h.current(n).then(function(r){var n;if(!t){var a=s(i(null==r?void 0:r.artifacts),Ae);W(function(t){return 1===E?a:e.__spreadArray(e.__spreadArray([],t,!0),a,!0)});var o=null===(n=null==r?void 0:r.pagination)||void 0===n?void 0:n.has_next;te("boolean"==typeof o?o:a.length>=6)}}).catch(function(){}).finally(function(){t||Me(!1)}),function(){t=!0}}},[De,r,E,d,_,U,z]),t.useEffect(function(){if(De&&y){var t=!1;xe(!0);var n=e.__assign({email:r,page:O,limit:6,paginate:!0,project_id_search:y,scope:z,sortOrder:"date-desc",is_ai_snapshot:m},U?{search:U}:{});return h.current(n).then(function(r){var n;if(!t){var a=s(i(null==r?void 0:r.artifacts),Ae);fe(function(t){return 1===O?a:e.__spreadArray(e.__spreadArray([],t,!0),a,!0)});var o=null===(n=null==r?void 0:r.pagination)||void 0===n?void 0:n.has_next;_e("boolean"==typeof o?o:a.length>=6)}}).catch(function(){}).finally(function(){t||xe(!1)}),function(){t=!0}}},[De,r,y,O,U,z]),t.useEffect(function(){if(De){var t=!1;Be(!0);var n={email:r,page:I,limit:10,paginate:!0,project_id_search:"",favorite_only:!0};return h.current(n).then(function(r){var n;if(!t){var a=s(i(null==r?void 0:r.artifacts),Ae);ye(function(t){return 1===I?a:e.__spreadArray(e.__spreadArray([],t,!0),a,!0)});var o=null===(n=null==r?void 0:r.pagination)||void 0===n?void 0:n.has_next;he("boolean"==typeof o?o:a.length>=10)}}).catch(function(){}).finally(function(){t||Be(!1)}),function(){t=!0}}},[De,r,I,Ne]),t.useEffect(function(){Ae&&0!==Object.keys(Ae).length&&ye(function(e){return s(e,Ae)})},[Ae]);var Je=t.useCallback(function(){return j(function(e){return e+1})},[]),Ge=t.useCallback(function(){return P(function(e){return e+1})},[]),He=t.useCallback(function(){return w(function(e){return e+1})},[]),Ke=t.useCallback(function(){return M(function(e){return e+1})},[]),Qe=t.useCallback(function(){return x(function(e){return e+1})},[]),Ve=t.useCallback(function(e){return J(e)},[]),We=t.useCallback(function(t,r){var n=a(t);je(function(t){var i=e.__assign({},t);return n.forEach(function(e){i[e]=r}),i}),W(function(i){return i.some(function(e){return a(e).some(function(e){return n.includes(e)})})?i.map(function(t){return a(t).some(function(e){return n.includes(e)})?e.__assign(e.__assign({},t),{isFavorite:r}):t}):r?e.__spreadArray(e.__spreadArray([],i,!0),[e.__assign(e.__assign({},t),{isFavorite:r})],!1):i}),fe(function(t){return t.map(function(t){return a(t).some(function(e){return n.includes(e)})?e.__assign(e.__assign({},t),{isFavorite:r}):t})}),ye(function(i){var o=i.some(function(e){return a(e).some(function(e){return n.includes(e)})});return r?o?i.map(function(t){return a(t).some(function(e){return n.includes(e)})?e.__assign(e.__assign({},t),{isFavorite:r}):t}):e.__spreadArray(e.__spreadArray([],i,!0),[e.__assign(e.__assign({},t),{isFavorite:r})],!1):i.filter(function(e){return!a(e).some(function(e){return n.includes(e)})})}),x(1),qe(function(e){return e+1})},[]),Xe=t.useMemo(function(){var t=new Map;return e.__spreadArray(e.__spreadArray(e.__spreadArray([],pe,!0),V,!0),ce,!0).forEach(function(r){if(r){var n=o(r,Ae);if(void 0!==n?n:Boolean(r.isFavorite)){var i=r.user_story_id||r.storyId;i&&!t.has(i)&&t.set(i,e.__assign(e.__assign({},r),{isFavorite:!0}))}}}),Array.from(t.values())},[pe,V,ce,Ae]);return{projects:H,userStories:V,hasMoreProjects:Y,hasMoreStories:ee,loadMoreProjects:Je,loadMoreStories:Ge,isLoadingProjects:Ee,isLoadingStories:Fe,projectStories:ce,hasMoreProjectStories:de,loadMoreProjectStories:He,scopedUserStories:z,toggleScopedUserStories:Ve,isLoadingProjectStories:Ie,sidebarProjects:ne,hasMoreSidebarProjects:oe,loadMoreSidebarProjects:Ke,isLoadingSidebarProjects:Oe,favoriteStories:Xe,hasMoreFavoriteStories:ge,loadMoreFavoriteStories:Qe,isLoadingFavoriteStories:Ue,updateFavorite:We}};
|
|
2
2
|
//# sourceMappingURL=useUSPData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adaptLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__extends as
|
|
1
|
+
import{__extends as e,__assign as t}from"tslib";import{ElementNode as r}from"lexical";var n=function(r){function n(e,t){void 0===e&&(e=crypto.randomUUID());var n=r.call(this,t)||this;return n.__reviewId=e,n}return e(n,r),n.getType=function(){return"delete"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(){var e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__delete-node",e.contentEditable="false",e},n.prototype.exportDOM=function(){var e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__delete-node",{element:e}},n.prototype.updateDOM=function(){return!1},n.importDOM=function(){return{del:function(){return{conversion:o,priority:1}}}},n.importJSON=function(e){return new n(e.reviewId)},n.prototype.exportJSON=function(){return t(t({},r.prototype.exportJSON.call(this)),{type:"delete",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n.prototype.canBeEmpty=function(){return!1},n.prototype.canInsertTextBefore=function(){return!1},n.prototype.canInsertTextAfter=function(){return!1},n.prototype.canMergeWith=function(){return!1},n}(r);function o(e){var t=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new n(t)}}export{n as DeleteNode};
|
|
2
2
|
//# sourceMappingURL=DeleteNode.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__extends as e,__assign as t}from"tslib";import{ElementNode as r}from"lexical";var n=function(r){function n(e,t){void 0===e&&(e=crypto.randomUUID());var n=r.call(this,t)||this;return n.__reviewId=e,n}return e(n,r),n.getType=function(){return"insert"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(
|
|
1
|
+
import{__extends as e,__assign as t}from"tslib";import{ElementNode as r}from"lexical";var n=function(r){function n(e,t){void 0===e&&(e=crypto.randomUUID());var n=r.call(this,t)||this;return n.__reviewId=e,n}return e(n,r),n.getType=function(){return"insert"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(){var e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__insert-node",e},n.prototype.exportDOM=function(){var e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__insert-node",{element:e}},n.prototype.updateDOM=function(e,t,r){return e.__reviewId!==this.__reviewId},n.importDOM=function(){return{ins:function(){return{conversion:i,priority:1}}}},n.importJSON=function(e){var t=new n(e.reviewId);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t},n.prototype.exportJSON=function(){return t(t({},r.prototype.exportJSON.call(this)),{type:"insert",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n}(r);function i(e){var t=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new n(t)}}export{n as InsertNode};
|
|
2
2
|
//# sourceMappingURL=InsertNode.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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)}();export{e as default};
|
|
1
|
+
var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__delete-node{text-decoration:var(--delete-node-text-decoration,line-through);text-decoration-color:var(--delete-node-decoration-color,#dc2626);text-decoration-thickness:var(--delete-node-decoration-thickness,2px)}.PlaygroundEditorTheme__insert-node{background-color:var(--insert-node-bg,#dbeafe);border-radius:var(--insert-node-border-radius,2px);color:var(--insert-node-color,#1e3a8a);padding:var(--insert-node-padding,1px 2px);text-decoration:var(--insert-node-text-decoration,none)}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=theme.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./theme.css.js";var e={characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",operator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},image:"editor-image",link:"PlaygroundEditorTheme__link",list:{listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"}};export{e as default};
|
|
1
|
+
import"./theme.css.js";var e={characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",operator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},image:"editor-image",link:"PlaygroundEditorTheme__link",list:{listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"},deleteNode:"PlaygroundEditorTheme__delete-node",insertNode:"PlaygroundEditorTheme__insert-node"};export{e as default};
|
|
2
2
|
//# sourceMappingURL=theme.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as t,Fragment as r}from"react/jsx-runtime";import{useRef as n,useState as o,useEffect as i}from"react";import{DEFAULT_TOOLBAR_CONFIG as a}from"./Editor/constants/editorConfig.js";import
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t,Fragment as r}from"react/jsx-runtime";import{useRef as n,useState as o,useEffect as i}from"react";import{DEFAULT_TOOLBAR_CONFIG as a}from"./Editor/constants/editorConfig.js";import c from"./Editor/Editor.js";import{useRefStore as u}from"../../store/ref.context.js";import{$generateHtmlFromNodes as l}from"@lexical/html";import d from"turndown";import{tables as f}from"turndown-plugin-gfm";var s=new d({headingStyle:"atx",codeBlockStyle:"fenced"});s.keep(["ins","del","mark"]),s.keep(function(e){var t,r;return"A"===e.nodeName&&null!==(r=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.includes("ai_reasoning$"))&&void 0!==r&&r}),s.addRule("md-table-passthrough",{filter:function(e){return"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table")},replacement:function(e,t){return t.textContent||""}}),s.use(f);var h=function(d){var f=d.type,h=d.value,m=d.handleUpdateState,p=d.onBlur,g=d.placeholder,v=d.minHeight,E=d.height,A=d.mode,w=d.doNotShowBorderInViewMode,y=n(null),b=o({type:f,value:h}),x=b[0],S=b[1],C=o(0),N=C[0],T=C[1],L=u(),_=L.contentRef;L.setContentRef;i(function(){S(function(t){return e(e({},t),{value:h})})},[h]);return i(function(){var e=function(){_&&_.current&&T(_.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[_]),t(r,{children:t(c,{minHeight:v,height:E,placeholder:g||"Enter some text...",onChange:function(e,t){e.read(function(){var e=l(t,null),r=(new DOMParser).parseFromString(e,"text/html");function n(e){return Array.from(e.childNodes).map(function(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";if(e.nodeType===Node.ELEMENT_NODE){var t=e,r=t.tagName.toLowerCase(),o=n(t);if("strong"===r||"b"===r)return o.startsWith("<strong>")&&o.endsWith("</strong>")?o:"<strong>".concat(o,"</strong>");if("em"===r||"i"===r)return o.startsWith("<em>")&&o.endsWith("</em>")?o:"<em>".concat(o,"</em>");if("code"===r)return"<code>".concat(o,"</code>");if("u"===r)return"<u>".concat(o,"</u>");if("s"===r)return"<s>".concat(o,"</s>");if("a"===r){var i=t.getAttribute("href")||"";return'<a href="'.concat(i,'">').concat(o,"</a>")}return o}return""}).join("")}r.querySelectorAll("span").forEach(function(e){var t=e.getAttribute("style")||"";t.includes("background-color")&&t.includes("rgb(219, 234, 254)")&&e.setAttribute("data-review","insert"),t.includes("text-decoration")&&t.includes("line-through")&&e.setAttribute("data-review","delete")}),r.querySelectorAll("strong code").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll("code strong").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e){e.innerHTML=n(e)});var o=[];r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e,t){o.push(e.outerHTML);var n=r.createElement("span");n.textContent="%%REVIEW_".concat(t,"%%"),e.replaceWith(n)});var i=[];r.querySelectorAll("table").forEach(function(e,t){i.push(e.outerHTML);var n=r.createElement("p");n.textContent="%%TABLE_".concat(t,"%%"),e.replaceWith(n)});var a=s.turndown(r.body.innerHTML);o.forEach(function(e,t){a=a.replace("%%REVIEW\\_".concat(t,"%%"),e)}),i.forEach(function(e,t){a=a.replace("%%TABLE\\_".concat(t,"%%"),"\n\n".concat(e,"\n\n"))}),function(e,t){m(e,t)}("prompt",a=a.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"))})},toolbarConfig:a,editorRef:y,mode:A,initialString:{type:x.type,value:x.value},dynamicHeight:N,onBlur:p,doNotShowBorderInViewMode:w||!1})})};export{h as default};
|
|
2
2
|
//# sourceMappingURL=RichTextEditor.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as n,__generator as t}from"tslib";import{jsxs as o,jsx as a}from"react/jsx-runtime";import s from"react";import{ChevronDown as
|
|
1
|
+
import{__assign as e,__awaiter as n,__generator as t}from"tslib";import{jsxs as o,jsx as a}from"react/jsx-runtime";import s from"react";import{Loader2 as l,ChevronDown as i}from"lucide-react";import{cn as r}from"../../../UserStoryImport/lib/cn.js";import c from"./segment.module.css.js";import m from"./ExampleComponentWrapper.js";import u from"../ai-reasoning/AiReasoningCitationContent.js";import d from"./SegmentLoader.js";import"./segment-common.css.js";var p=function(p){var g=p.id,v=void 0===g?"Segment":g,f=p.label,S=p.originalValue;p.decisionStrength;var h=p.aiReason,y=p.customStyles,C=p.customIcons,b=p.aiReasoningCitationCustomStyles,x=p.segmentExampleComponent,E=p.handleViewGlossary,j=p.isUpdatedSegment,I=p.onOpen,N=s.useState(!1),R=N[0],w=N[1],V=s.useState(!1),L=V[0],U=V[1],W=s.useState(!1),k=W[0],G=W[1];return o("div",e({className:"".concat(c.segmentWrapper),style:e({},null==y?void 0:y.segmentWrapper)},{children:[o("div",e({className:"segment-".concat(v,"-container segmentContainer ").concat(j?"updatedSegmentContainer":""),style:e({},null==y?void 0:y.container)},{children:[a("span",e({className:"segment-".concat(v," segmentLabel ").concat(j?"updatedSegmentLabel":""),style:e({},null==y?void 0:y.label)},{children:j?S:f})),a("button",e({className:"".concat(c.segmentExplanationButtonContainer),style:e({},null==y?void 0:y.buttonContainer),onClick:function(){return n(void 0,void 0,void 0,function(){var e;return t(this,function(n){switch(n.label){case 0:if(e=!R,U(!1),!e||(null==h?void 0:h.reason))return[3,5];G(!0),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,null==I?void 0:I()];case 2:return n.sent(),[3,4];case 3:return G(!1),w(!0),[7];case 4:return[3,6];case 5:w(e),n.label=6;case 6:return[2]}})})}},{children:k?a(l,{size:16,className:c.spinner}):a(i,{className:r(j&&c.updatedChevronIcon,c.cheveronIcon,R&&c.cheveronIconRotated),style:e({},null==y?void 0:y.cheveronIcon)})}))]})),L&&!j?a(m,{label:null!=f?f:"",segmentExampleComponent:x,customStyles:null==y?void 0:y.segmentExample,handleCancelExample:function(){U(!1)}}):R&&(k?a(d,{customStyles:null==y?void 0:y.loadingSkeleton}):a(u,{aiReason:h,customStyles:b,customIcons:C,isSegmentExplanation:!0,handleViewGlossary:E?function(){w(!1),null==E||E(v)}:void 0,handleViewExample:x?function(){U(!0)}:void 0,isUpdatedSegment:j}))]}))};export{p as default};
|
|
2
2
|
//# sourceMappingURL=Segment.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as n}from"tslib";import{jsx as
|
|
1
|
+
import{__awaiter as e,__generator as n}from"tslib";import{jsx as o}from"react/jsx-runtime";import t from"./Segment.js";import l from"dompurify";var i=function(i){var d,a,r,s,u,m,v,g,c,p,S,f,h,b=i.children,x=i.props,y=i.segmentComponentConfig,C=i.customStyles,_=i.customIcons,I=i.extractText,w=i.isUpdatedSegment,D=void 0!==w&&w,E=(null==x?void 0:x.id)||"Segment",L=(null==x?void 0:x.decisionstrength)||"80",U=y||{},k=U.segmentDataList,F=U.getSegmentExampleComponent,R=U.handleViewGlossary,V=U.upadatedSegmentDataList,j=U.handleFetchUpdatedSegmentDetails,G=U.handleFetchSegmentDetails,O=D?null==V?void 0:V.find(function(e){return String(e.segment_id)===String(E)}):null==k?void 0:k.find(function(e){return String(e.segment_id)===String(E)});console.log("meee work",O,D,k,V);var T={id:E,reason:null!==(d=null==O?void 0:O.reason)&&void 0!==d?d:"",gap:null!==(a=null==O?void 0:O.gap)&&void 0!==a?a:"",explanation:null!==(r=null==O?void 0:O.explanation)&&void 0!==r?r:"",relevance_score:null!==(s=null==O?void 0:O.relevance_score)&&void 0!==s?s:0,isOpen:!1},W=void 0,z=I(b),H=x["data-table"],M="";if(H&&!D)try{M=decodeURIComponent(atob(H))}catch(e){console.error("Failed to decode data-table for segment",E,e)}var q=l.sanitize(M);return O||!G||D||null==G||G(E),E&&O&&F&&!D&&(W=H?o(function(){return o("div",{dangerouslySetInnerHTML:{__html:q}})},{}):F(E,z,O.segment_type)),o(t,{id:E,label:null!==(u=null==O?void 0:O.label)&&void 0!==u?u:null==O?void 0:O.segment_name,originalValue:z,decisionStrength:L,aiReason:T,customIcons:_,aiReasoningCitationCustomStyles:C,segmentExampleComponent:W,handleViewGlossary:R,customStyles:{segmentWrapper:null===(m=null==C?void 0:C.segment)||void 0===m?void 0:m.segmentWrapper,container:null===(v=null==C?void 0:C.segment)||void 0===v?void 0:v.container,label:null===(g=null==C?void 0:C.segment)||void 0===g?void 0:g.label,decisionStrength:null===(c=null==C?void 0:C.segment)||void 0===c?void 0:c.decisionStrength,buttonContainer:null===(p=null==C?void 0:C.segment)||void 0===p?void 0:p.buttonContainer,cheveronIcon:null===(S=null==C?void 0:C.segment)||void 0===S?void 0:S.cheveronIcon,segmentExample:null===(f=null==C?void 0:C.segment)||void 0===f?void 0:f.segmentExample,loadingSkeleton:null===(h=null==C?void 0:C.segment)||void 0===h?void 0:h.SegmentLoadingSkeletonStyles},isUpdatedSegment:D,onOpen:function(){return e(void 0,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return O||!D?[3,2]:[4,null==j?void 0:j(E)];case 1:e.sent(),e.label=2;case 2:return[2]}})})}},E)};export{i as default};
|
|
2
2
|
//# sourceMappingURL=SegmentWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",updatedChevronIcon:"segment-module_updatedChevronIcon__8vN-t",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",loaderWrapper:"segment-module_loaderWrapper__SwIof",loaderContainer:"segment-module_loaderContainer__5Mhyz",loaderHeader:"segment-module_loaderHeader__J2JnY",skeleton:"segment-module_skeleton__2uZEf",pulse:"segment-module_pulse__A17cR",title:"segment-module_title__fW93U",icon:"segment-module_icon__Dvee3",lineFull:"segment-module_lineFull__MMmOD",line90:"segment-module_line90__OFStl",line75:"segment-module_line75__9r6Xp",line60:"segment-module_line60__bLRec",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const
|
|
1
|
+
var e={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",updatedChevronIcon:"segment-module_updatedChevronIcon__8vN-t",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",loaderWrapper:"segment-module_loaderWrapper__SwIof",loaderContainer:"segment-module_loaderContainer__5Mhyz",loaderHeader:"segment-module_loaderHeader__J2JnY",skeleton:"segment-module_skeleton__2uZEf",pulse:"segment-module_pulse__A17cR",title:"segment-module_title__fW93U",icon:"segment-module_icon__Dvee3",lineFull:"segment-module_lineFull__MMmOD",line90:"segment-module_line90__OFStl",line75:"segment-module_line75__9r6Xp",line60:"segment-module_line60__bLRec",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ",spinner:"segment-module_spinner__kRnWD",spin:"segment-module_spin__MV6y5"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_updatedChevronIcon__8vN-t{color:#16a34a}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_loaderContainer__5Mhyz,.segment-module_loaderWrapper__SwIof{border:1px solid #e5e7eb;border-radius:8px;padding:12px}.segment-module_loaderHeader__J2JnY{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.segment-module_skeleton__2uZEf{animation:segment-module_pulse__A17cR 1.5s ease-in-out infinite;background:#e5e7eb;border-radius:6px}.segment-module_title__fW93U{height:18px;width:100px}.segment-module_icon__Dvee3{height:18px;width:18px}.segment-module_lineFull__MMmOD{height:14px;margin-bottom:10px;width:100%}.segment-module_line90__OFStl{height:14px;margin-bottom:10px;width:90%}.segment-module_line75__9r6Xp{height:14px;margin-bottom:10px;width:75%}.segment-module_line60__bLRec{height:14px;width:60%}@keyframes segment-module_pulse__A17cR{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}.segment-module_spinner__kRnWD{animation:segment-module_spin__MV6y5 1s linear infinite}@keyframes segment-module_spin__MV6y5{to{transform:rotate(1turn)}}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=segment.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useEffect as r,useMemo as t,useCallback as i,useState as s,useRef as n}from"react";import{USPContext as a}from"./UserStoryPicker.context.js";import{useUserStoryPickerState as d}from"./hooks/useUserStoryPickerState.js";import{useFilteredItems as c}from"./hooks/useFilteredItems.js";import{useUSPData as l}from"./hooks/useUSPData.js";import{themeToStyle as u}from"./UserStoryPicker.theme.js";import{TooltipProvider as S}from"./lib/Tooltip.js";import"./user-story-picker.css.js";import{cn as p}from"./lib/cn.js";var v={},j={};function P(P){var f,m,h=P.userEmail,g=P.adapter,M=P.defaultView,b=void 0===M?"recent":M,y=P.defaultSort,w=void 0===y?"newest":y,U=P.defaultType,I=void 0===U?"All Types":U,C=P.defaultRepo,F=void 0===C?"allRepository":C,T=P.gitUrl,k=void 0===T?"":T,L=P.pageSize,N=void 0===L?4:L,V=P.theme,x=P.classNames,H=void 0===x?v:x,B=P.renderProps,D=void 0===B?j:B,E=P.onProceed,R=P.onStorySelect,Q=P.onProjectSelect,_=P.onSearch,z=P.onViewChange,A=P.onSortChange,q=P.onShowMore,G=P.onViewMoreDescription,J=P.onFavoriteToggle,K=P.hidePopUp,O=void 0!==K&&K,W=P.disableTooltip,X=void 0!==W&&W,Y=P.tooltipClassName,Z=P.children,$=P.mediaCacheHooks,ee=P.showCitations,oe=void 0!==ee&&ee,re=d(b,w,I,F,N),te=re[0],ie=re[1];r(function(){null==z||z(te.viewMode)},[te.viewMode,z]);var se=l(h,k,g.fetchProjects,g.fetchUserStories,te.sortBy,te.typeBy,te.scopeRepo,te.searchQuery,te.sidebarSearchQuery,te.selectedProjectId),ne=se.projects,ae=se.userStories,de=se.hasMoreProjects,ce=se.hasMoreStories,le=se.loadMoreProjects,ue=se.loadMoreStories,Se=se.isLoadingProjects,pe=se.isLoadingStories,ve=se.projectStories,je=se.hasMoreProjectStories,Pe=se.loadMoreProjectStories,fe=se.isLoadingProjectStories,me=se.sidebarProjects,he=se.hasMoreSidebarProjects,ge=se.loadMoreSidebarProjects,Me=se.scopedUserStories,be=se.toggleScopedUserStories,ye=se.isLoadingSidebarProjects,we=se.favoriteStories,Ue=se.hasMoreFavoriteStories,Ie=se.loadMoreFavoriteStories,Ce=se.isLoadingFavoriteStories,Fe=se.updateFavorite,Te=te.selectedProjectId?je:ce,ke=te.selectedProjectId?Pe:ue,Le=te.selectedProjectId?fe:pe,Ne=t(function(){var e;return null!==(e=ne.find(function(e){return e.id===te.selectedProjectId}))&&void 0!==e?e:null},[ne,te.selectedProjectId]),Ve=t(function(){return Ne?ve.map(function(o){return e(e({},o),{projectName:Ne.name})}):ve},[ve,Ne]),xe=t(function(){var e;return null!==(e=(te.selectedProjectId?Ve:ae).find(function(e){return e.user_story_id===te.selectedStoryId}))&&void 0!==e?e:null},[te.selectedProjectId,Ve,ae,te.selectedStoryId]),He=c(ae,ne,te,Ve,we),Be=He.filteredStories,De=He.filteredProjects,Ee=He.visibleStories,Re=He.visibleProjects,Qe="favorites"===te.viewMode?(null!==(f=null==Be?void 0:Be.length)&&void 0!==f?f:0)>(null!==(m=null==Ee?void 0:Ee.length)&&void 0!==m?m:0):Te,_e=i(function(e,o){Fe(e,o),null==J||J(e,o)},[Fe,J]),ze=t(function(){return{adapter:g,state:te,dispatch:ie,userStories:ae,projects:ne,filteredStories:Be,filteredProjects:De,visibleStories:Ee,visibleProjects:Re,hasMoreStories:Qe,hasMoreProjects:de,selectedStory:xe,selectedProject:Ne,classNames:H,renderProps:D,mediaCacheHooks:$,showCitations:oe,loadMoreProjects:le,loadMoreStories:ke,isLoadingProjects:Se,isLoadingStories:Le,scopedUserStories:Me,toggleScopedUserStories:be,sidebarProjects:me,hasMoreSidebarProjects:he,loadMoreSidebarProjects:ge,isLoadingSidebarProjects:ye,favoriteStories:we,hasMoreFavoriteStories:Ue,loadMoreFavoriteStories:Ie,isLoadingFavoriteStories:Ce,onProceed:E,onStorySelect:R,onProjectSelect:Q,onSearch:_,onViewChange:z,onSortChange:A,onShowMore:q,onViewMoreDescription:G,onFavoriteToggle:_e,hidePopUp:O,disableTooltip:X,tooltipClassName:Y}},[g,te,ie,ae,ne,Be,De,Ee,Re,Te,Qe,de,xe,Ne,H,D,le,ke,Se,Le,me,he,ge,ye,we,Ue,Ie,Me,be,Ce,E,$,oe,R,Q,_,z,A,q,G,_e,O,X,Y]),Ae=s(!1),qe=Ae[0],Ge=Ae[1],Je=n(null);r(function(){if(g.onHostEvent){var e=g.onHostEvent("cw-project-glow",function(){Ge(!0),Je.current&&clearTimeout(Je.current),Je.current=setTimeout(function(){Ge(!1)},3e3)});return function(){Je.current&&(clearTimeout(Je.current),Je.current=null),e&&e()}}},[g]);var Ke=["usp-root",H.root].filter(Boolean).join(" "),Oe=V?u(V):void 0;return o(S,{children:o(a.Provider,e({value:ze},{children:o("div",e({className:p(Ke,"rounded-lg flex-1 min-h-0 overflow-auto border-2 pt-2",qe?"border-primary animate ease-in-out duration-500 mb-4":"transition-colors duration-500 border-transparent shadow-none"),style:Oe},{children:Z}))}))})}export{P as UserStoryPickerRoot};
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useEffect as r,useMemo as t,useCallback as i,useState as s,useRef as n}from"react";import{USPContext as a}from"./UserStoryPicker.context.js";import{useUserStoryPickerState as d}from"./hooks/useUserStoryPickerState.js";import{useFilteredItems as c}from"./hooks/useFilteredItems.js";import{useUSPData as l}from"./hooks/useUSPData.js";import{themeToStyle as u}from"./UserStoryPicker.theme.js";import{TooltipProvider as S}from"./lib/Tooltip.js";import"./user-story-picker.css.js";import{cn as p}from"./lib/cn.js";var v={},j={};function P(P){var f,m,h=P.userEmail,g=P.adapter,M=P.defaultView,b=void 0===M?"recent":M,y=P.defaultSort,w=void 0===y?"newest":y,U=P.defaultType,I=void 0===U?"All Types":U,C=P.defaultRepo,F=void 0===C?"allRepository":C,T=P.gitUrl,k=void 0===T?"":T,L=P.pageSize,N=void 0===L?4:L,V=P.theme,x=P.classNames,H=void 0===x?v:x,B=P.renderProps,D=void 0===B?j:B,E=P.onProceed,R=P.onStorySelect,Q=P.onProjectSelect,_=P.onSearch,z=P.onViewChange,A=P.onSortChange,q=P.onShowMore,G=P.onViewMoreDescription,J=P.onFavoriteToggle,K=P.hidePopUp,O=void 0!==K&&K,W=P.disableTooltip,X=void 0!==W&&W,Y=P.tooltipClassName,Z=P.children,$=P.mediaCacheHooks,ee=P.showCitations,oe=void 0!==ee&&ee,re=d(b,w,I,F,N),te=re[0],ie=re[1];r(function(){null==z||z(te.viewMode)},[te.viewMode,z]);var se=l(h,k,g.fetchProjects,g.fetchUserStories,te.sortBy,te.typeBy,te.scopeRepo,te.searchQuery,te.sidebarSearchQuery,te.selectedProjectId,oe),ne=se.projects,ae=se.userStories,de=se.hasMoreProjects,ce=se.hasMoreStories,le=se.loadMoreProjects,ue=se.loadMoreStories,Se=se.isLoadingProjects,pe=se.isLoadingStories,ve=se.projectStories,je=se.hasMoreProjectStories,Pe=se.loadMoreProjectStories,fe=se.isLoadingProjectStories,me=se.sidebarProjects,he=se.hasMoreSidebarProjects,ge=se.loadMoreSidebarProjects,Me=se.scopedUserStories,be=se.toggleScopedUserStories,ye=se.isLoadingSidebarProjects,we=se.favoriteStories,Ue=se.hasMoreFavoriteStories,Ie=se.loadMoreFavoriteStories,Ce=se.isLoadingFavoriteStories,Fe=se.updateFavorite,Te=te.selectedProjectId?je:ce,ke=te.selectedProjectId?Pe:ue,Le=te.selectedProjectId?fe:pe,Ne=t(function(){var e;return null!==(e=ne.find(function(e){return e.id===te.selectedProjectId}))&&void 0!==e?e:null},[ne,te.selectedProjectId]),Ve=t(function(){return Ne?ve.map(function(o){return e(e({},o),{projectName:Ne.name})}):ve},[ve,Ne]),xe=t(function(){var e;return null!==(e=(te.selectedProjectId?Ve:ae).find(function(e){return e.user_story_id===te.selectedStoryId}))&&void 0!==e?e:null},[te.selectedProjectId,Ve,ae,te.selectedStoryId]),He=c(ae,ne,te,Ve,we),Be=He.filteredStories,De=He.filteredProjects,Ee=He.visibleStories,Re=He.visibleProjects,Qe="favorites"===te.viewMode?(null!==(f=null==Be?void 0:Be.length)&&void 0!==f?f:0)>(null!==(m=null==Ee?void 0:Ee.length)&&void 0!==m?m:0):Te,_e=i(function(e,o){Fe(e,o),null==J||J(e,o)},[Fe,J]),ze=t(function(){return{adapter:g,state:te,dispatch:ie,userStories:ae,projects:ne,filteredStories:Be,filteredProjects:De,visibleStories:Ee,visibleProjects:Re,hasMoreStories:Qe,hasMoreProjects:de,selectedStory:xe,selectedProject:Ne,classNames:H,renderProps:D,mediaCacheHooks:$,showCitations:oe,loadMoreProjects:le,loadMoreStories:ke,isLoadingProjects:Se,isLoadingStories:Le,scopedUserStories:Me,toggleScopedUserStories:be,sidebarProjects:me,hasMoreSidebarProjects:he,loadMoreSidebarProjects:ge,isLoadingSidebarProjects:ye,favoriteStories:we,hasMoreFavoriteStories:Ue,loadMoreFavoriteStories:Ie,isLoadingFavoriteStories:Ce,onProceed:E,onStorySelect:R,onProjectSelect:Q,onSearch:_,onViewChange:z,onSortChange:A,onShowMore:q,onViewMoreDescription:G,onFavoriteToggle:_e,hidePopUp:O,disableTooltip:X,tooltipClassName:Y}},[g,te,ie,ae,ne,Be,De,Ee,Re,Te,Qe,de,xe,Ne,H,D,le,ke,Se,Le,me,he,ge,ye,we,Ue,Ie,Me,be,Ce,E,$,oe,R,Q,_,z,A,q,G,_e,O,X,Y]),Ae=s(!1),qe=Ae[0],Ge=Ae[1],Je=n(null);r(function(){if(g.onHostEvent){var e=g.onHostEvent("cw-project-glow",function(){Ge(!0),Je.current&&clearTimeout(Je.current),Je.current=setTimeout(function(){Ge(!1)},3e3)});return function(){Je.current&&(clearTimeout(Je.current),Je.current=null),e&&e()}}},[g]);var Ke=["usp-root",H.root].filter(Boolean).join(" "),Oe=V?u(V):void 0;return o(S,{children:o(a.Provider,e({value:ze},{children:o("div",e({className:p(Ke,"rounded-lg flex-1 min-h-0 overflow-auto border-2 pt-2",qe?"border-primary animate ease-in-out duration-500 mb-4":"transition-colors duration-500 border-transparent shadow-none"),style:Oe},{children:Z}))}))})}export{P as UserStoryPickerRoot};
|
|
2
2
|
//# sourceMappingURL=UserStoryPicker.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as t,jsx as l}from"react/jsx-runtime";import{useUSPContext as r}from"../UserStoryPicker.context.js";function
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as l}from"react/jsx-runtime";import{useUSPContext as r}from"../UserStoryPicker.context.js";import{adaptLabel as i}from"../lib/adaptLabel.js";function s(s){var a=s.title,o=s.subtitle,n=s.className,m=s.style,c=s.titleStyle,d=s.subtitleStyle,p=s.children,h=r(),y=h.classNames,u=h.state;a=i(a,u.typeBy),o=o?i(o,u.typeBy):o;var f=["usp-header",y.header,n].filter(Boolean).join(" "),b=["usp-header__title",y.headerTitle].filter(Boolean).join(" "),j=["usp-header__subtitle",y.headerSubtitle].filter(Boolean).join(" ");return t("div",e({className:f,style:m},{children:[l("h1",e({className:b,style:c},{children:a})),o&&l("p",e({className:j,style:d},{children:o})),p]}))}export{s as Header};
|
|
2
2
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useCallback as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useCallback as a}from"react";import{useUSPContext as o}from"../UserStoryPicker.context.js";import{adaptLabel as n}from"../lib/adaptLabel.js";function s(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("circle",{cx:"11",cy:"11",r:"8"}),t("path",{d:"m21 21-4.3-4.3"})]}))}function c(c){var i=c.placeholder,l=void 0===i?"Search...":i,p=c.className,d=c.style,h=c.inputStyle,u=c.iconStyle,m=c.scope,y=void 0===m?"main":m,S=o(),f=S.state,v=S.dispatch,x=S.classNames,_=S.renderProps,b=S.onSearch;l=n(l,f.typeBy);var j=a(function(e){var r=e.target.value;"sidebar"===y?v({type:"SET_SIDEBAR_SEARCH",payload:r}):(v({type:"SET_SEARCH",payload:r}),null==b||b(r))},[v,b,y]),g="sidebar"===y?f.sidebarSearchQuery:f.searchQuery,k=["usp-search__input",x.searchInput,p].filter(Boolean).join(" "),w=["usp-search__icon",x.searchIcon].filter(Boolean).join(" ");return r("div",e({className:"usp-search",style:d},{children:[t("span",e({className:w,style:u},{children:_.renderSearchIcon?_.renderSearchIcon():t(s,{})})),t("input",{type:"text",className:k,style:h,placeholder:l,value:g,onChange:j})]}))}export{c as SearchInput};
|
|
2
2
|
//# sourceMappingURL=SearchInput.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import{useUSPContext as t}from"../UserStoryPicker.context.js";import{UserStoryScopeDropdown as r}from"./UserStoryScopeDropdown.js";function
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import{useUSPContext as t}from"../UserStoryPicker.context.js";import{UserStoryScopeDropdown as r}from"./UserStoryScopeDropdown.js";import{adaptLabel as i}from"../lib/adaptLabel.js";function s(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[o("path",{d:"m12 19-7-7 7-7"}),o("path",{d:"M19 12H5"})]}))}function l(){return o("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:o("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function c(){return o("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:o("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function a(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[o("circle",{cx:"12",cy:"12",r:"10"}),o("polyline",{points:"12 6 12 12 16 14"})]}))}function u(u){var d=u.label,p=u.icon,h=u.className,f=u.style,m=u.iconStyle,w=u.labelStyle,k=u.showBackButton,g=u.onBack,v=t(),y=v.classNames,x=v.state;d=i(d,x.typeBy);var L="recent"===x.viewMode,j=["usp-section-heading",y.sectionHeading,h].filter(Boolean).join(" "),B=function(e){if("string"==typeof e)switch(e){case"bookmark":return o(l,{});case"folder":return o(c,{});case"recent":return o(a,{});default:return null}return null!=e?e:null}(p);return n("div",e({className:j,style:f},{children:[n("div",e({className:["usp-section-heading__left",y.sectionHeadingLeft].filter(Boolean).join(" ")},{children:[k&&o("button",e({type:"button",className:"usp-section-heading__back",onClick:g},{children:o(s,{})})),B&&o("span",e({className:["usp-section-heading__icon",y.sectionHeadingLeft].filter(Boolean).join(" "),style:m},{children:B})),o("span",e({style:w},{children:d}))]})),L&&o(r,{})]}))}export{u as SectionHeading};
|
|
2
2
|
//# sourceMappingURL=SectionHeading.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t,__spreadArray as n}from"tslib";import{useRef as r,useState as e,useEffect as i,useCallback as o,useMemo as a}from"react";
|
|
1
|
+
import{__assign as t,__spreadArray as n}from"tslib";import{useRef as r,useState as e,useEffect as i,useCallback as o,useMemo as a}from"react";function u(t){return Array.isArray(t)?t:t&&Array.isArray(t.data)?t.data:t&&Array.isArray(t.items)?t.items:[]}function s(t){return u(t).map(function(t){var n,r,e=(null===(n=t.files)||void 0===n?void 0:n.length)>0?t.files.reduce(function(t,n){return new Date(n.timestamp)>new Date(t)?n.timestamp:t},t.files[0].timestamp):t.timestamp;return{id:t._id,name:t.name,description:""!==t.description&&null!==t.description&&void 0!==t.description&&!1!==t.description?t.description:"No Description Available",artifactCount:null!==(r=t.artifactCount)&&void 0!==r?r:0,lastUpdated:e}})}function c(t,n){var r=u(t);return 0===r.length?[]:r.map(function(t){var n,r,e,i,o,a,u,s,c;return{storyId:t.ticket_id,title:t.title,description:null!==(n=t.description)&&void 0!==n?n:"",projectName:null!==(r=t.project_name)&&void 0!==r?r:"PROJECT",projectId:null!==(e=t.project_id)&&void 0!==e?e:"",lastUpdated:null!==(i=t.updated_at)&&void 0!==i?i:"",gs_util_url:null!==(o=t.gs_util_url)&&void 0!==o?o:"",artifact_id:null!==(a=t.artifact_id)&&void 0!==a?a:"",user_story_id:null!==(u=t.user_story_id)&&void 0!==u?u:"",isFavorite:Boolean(t.is_favorite),isNew:null!==(s=t.is_new)&&void 0!==s&&s,multi_user_story:Boolean(t.multi_user_story),user_stories_type:null!==(c=t.user_stories_type)&&void 0!==c?c:"",ai_reasonings_snaphost:t.ai_reasonings_snapshot&&t.ai_reasonings_snapshot.length>0?t.ai_reasonings_snapshot:[]}})}function l(t){return[t.user_story_id,t.storyId].filter(Boolean)}function f(t,n){for(var r=0,e=l(t);r<e.length;r++){var i=e[r];if(Object.prototype.hasOwnProperty.call(n,i))return n[i]}}function d(n,r){return n.length&&r&&0!==Object.keys(r).length?n.map(function(n){return void 0!==f(n,r)?t(t({},n),{isFavorite:f(n,r)}):n}):n}function v(u,v,p,m,_,h,y,g,j,S,b){void 0===_&&(_="newest"),void 0===h&&(h="All Types"),void 0===y&&(y="allRepository"),void 0===g&&(g=""),void 0===j&&(j=""),void 0===S&&(S=null),void 0===b&&(b=!1);var A=r(p);A.current=p;var P=r(m);P.current=m;var F=e(1),M=F[0],w=F[1],O=e(1),T=O[0],I=O[1],C=e(1),x=C[0],U=C[1],B=e(1),L=B[0],N=B[1],R=e(1),k=R[0],D=R[1],E=e(g),q=E[0],z=E[1],J=e(j),G=J[0],H=J[1],K=e("all"),Q=K[0],V=K[1],W=e([]),X=W[0],Y=W[1],Z=e([]),$=Z[0],tt=Z[1],nt=e(!1),rt=nt[0],et=nt[1],it=e(!1),ot=it[0],at=it[1],ut=e([]),st=ut[0],ct=ut[1],lt=e(!1),ft=lt[0],dt=lt[1],vt=e([]),pt=vt[0],mt=vt[1],_t=e(!1),ht=_t[0],yt=_t[1],gt=e([]),jt=gt[0],St=gt[1],bt=e(!1),At=bt[0],Pt=bt[1],Ft=e({}),Mt=Ft[0],wt=Ft[1],Ot=e(!1),Tt=Ot[0],It=Ot[1],Ct=e(!1),xt=Ct[0],Ut=Ct[1],Bt=e(!1),Lt=Bt[0],Nt=Bt[1],Rt=e(!1),kt=Rt[0],Dt=Rt[1],Et=e(!1),qt=Et[0],zt=Et[1],Jt=e(0),Gt=Jt[0],Ht=Jt[1],Kt=Boolean(u),Qt=function(t){switch(t){case"newest":default:return"date-desc";case"oldest":return"date-asc";case"a-z":return"name-asc";case"z-a":return"name-desc"}}(_);i(function(){var t=setTimeout(function(){return z(g)},700);return function(){return clearTimeout(t)}},[g]),i(function(){var t=setTimeout(function(){return H(j)},700);return function(){return clearTimeout(t)}},[j]),i(function(){w(1),Y([]),et(!1)},[u,_,q]),i(function(){I(1),tt([]),at(!1)},[u,h,y,q,Q]),i(function(){U(1),ct([]),dt(!1)},[u,G]),i(function(){N(1),mt([]),yt(!1)},[S,u,h,y,q,Q]),i(function(){D(1),St([]),Pt(!1)},[u]),i(function(){if(Kt){var r=!1;It(!0);var e=t({user_email:u,page:M,limit:6,sortOrder:Qt,modeName:"Requirement AI",artifactCaption:"User Story Artifact",subProject:!1,countTotalItems:!0},q?{nameContains:q}:{});return A.current(e).then(function(t){var e;if(!r){var i=s(t);Y(function(t){return 1===M?i:n(n([],t,!0),i,!0)});var o=null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.has_next;et("boolean"==typeof o?o:i.length>=6)}}).catch(function(){}).finally(function(){r||It(!1)}),function(){r=!0}}},[Kt,u,M,Qt,q]),i(function(){if(Kt){var r=!1;Nt(!0);var e=t({user_email:u,page:x,limit:10,sortOrder:"date-desc",modeName:"Requirement AI",artifactCaption:"User Story Artifact",subProject:!1,countTotalItems:!0},G?{nameContains:G}:{});return A.current(e).then(function(t){var e;if(!r){var i=s(t);ct(function(t){return 1===x?i:n(n([],t,!0),i,!0)});var o=null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.has_next;dt("boolean"==typeof o?o:i.length>=10)}}).catch(function(){}).finally(function(){r||Nt(!1)}),function(){r=!0}}},[Kt,u,x,G]),i(function(){if(Kt){var r=!1;Ut(!0);var e=t({email:u,page:T,limit:6,scope:Q,user_stories_type:"All Types"===h?"":h,repository_url:"allRepository"===y?"":v,paginate:!0,project_id_search:"",sortOrder:"date-desc",is_ai_snapshot:b},q?{search:q}:{});return P.current(e).then(function(t){var e;if(!r){var i=d(c(null==t?void 0:t.artifacts),Mt);tt(function(t){return 1===T?i:n(n([],t,!0),i,!0)});var o=null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.has_next;at("boolean"==typeof o?o:i.length>=6)}}).catch(function(){}).finally(function(){r||Ut(!1)}),function(){r=!0}}},[Kt,u,T,h,y,q,Q]),i(function(){if(Kt&&S){var r=!1;Dt(!0);var e=t({email:u,page:L,limit:6,paginate:!0,project_id_search:S,scope:Q,sortOrder:"date-desc",is_ai_snapshot:b},q?{search:q}:{});return P.current(e).then(function(t){var e;if(!r){var i=d(c(null==t?void 0:t.artifacts),Mt);mt(function(t){return 1===L?i:n(n([],t,!0),i,!0)});var o=null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.has_next;yt("boolean"==typeof o?o:i.length>=6)}}).catch(function(){}).finally(function(){r||Dt(!1)}),function(){r=!0}}},[Kt,u,S,L,q,Q]),i(function(){if(Kt){var t=!1;zt(!0);var r={email:u,page:k,limit:10,paginate:!0,project_id_search:"",favorite_only:!0};return P.current(r).then(function(r){var e;if(!t){var i=d(c(null==r?void 0:r.artifacts),Mt);St(function(t){return 1===k?i:n(n([],t,!0),i,!0)});var o=null===(e=null==r?void 0:r.pagination)||void 0===e?void 0:e.has_next;Pt("boolean"==typeof o?o:i.length>=10)}}).catch(function(){}).finally(function(){t||zt(!1)}),function(){t=!0}}},[Kt,u,k,Gt]),i(function(){Mt&&0!==Object.keys(Mt).length&&St(function(t){return d(t,Mt)})},[Mt]);var Vt=o(function(){return w(function(t){return t+1})},[]),Wt=o(function(){return I(function(t){return t+1})},[]),Xt=o(function(){return N(function(t){return t+1})},[]),Yt=o(function(){return U(function(t){return t+1})},[]),Zt=o(function(){return D(function(t){return t+1})},[]),$t=o(function(t){return V(t)},[]),tn=o(function(r,e){var i=l(r);wt(function(n){var r=t({},n);return i.forEach(function(t){r[t]=e}),r}),tt(function(o){return o.some(function(t){return l(t).some(function(t){return i.includes(t)})})?o.map(function(n){return l(n).some(function(t){return i.includes(t)})?t(t({},n),{isFavorite:e}):n}):e?n(n([],o,!0),[t(t({},r),{isFavorite:e})],!1):o}),mt(function(n){return n.map(function(n){return l(n).some(function(t){return i.includes(t)})?t(t({},n),{isFavorite:e}):n})}),St(function(o){var a=o.some(function(t){return l(t).some(function(t){return i.includes(t)})});return e?a?o.map(function(n){return l(n).some(function(t){return i.includes(t)})?t(t({},n),{isFavorite:e}):n}):n(n([],o,!0),[t(t({},r),{isFavorite:e})],!1):o.filter(function(t){return!l(t).some(function(t){return i.includes(t)})})}),D(1),Ht(function(t){return t+1})},[]),nn=a(function(){var r=new Map;return n(n(n([],jt,!0),$,!0),pt,!0).forEach(function(n){if(n){var e=f(n,Mt);if(void 0!==e?e:Boolean(n.isFavorite)){var i=n.user_story_id||n.storyId;i&&!r.has(i)&&r.set(i,t(t({},n),{isFavorite:!0}))}}}),Array.from(r.values())},[jt,$,pt,Mt]);return{projects:X,userStories:$,hasMoreProjects:rt,hasMoreStories:ot,loadMoreProjects:Vt,loadMoreStories:Wt,isLoadingProjects:Tt,isLoadingStories:xt,projectStories:pt,hasMoreProjectStories:ht,loadMoreProjectStories:Xt,scopedUserStories:Q,toggleScopedUserStories:$t,isLoadingProjectStories:kt,sidebarProjects:st,hasMoreSidebarProjects:ft,loadMoreSidebarProjects:Yt,isLoadingSidebarProjects:Lt,favoriteStories:nn,hasMoreFavoriteStories:At,loadMoreFavoriteStories:Zt,isLoadingFavoriteStories:qt,updateFavorite:tn}}export{v as useUSPData};
|
|
2
2
|
//# sourceMappingURL=useUSPData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adaptLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -10,11 +10,11 @@ export declare class DeleteNode extends ElementNode {
|
|
|
10
10
|
static clone(node: DeleteNode): DeleteNode;
|
|
11
11
|
constructor(reviewId?: string, key?: NodeKey);
|
|
12
12
|
createDOM(): HTMLElement;
|
|
13
|
-
updateDOM(): false;
|
|
14
|
-
static importDOM(): DOMConversionMap | null;
|
|
15
13
|
exportDOM(): {
|
|
16
14
|
element: HTMLModElement;
|
|
17
15
|
};
|
|
16
|
+
updateDOM(): false;
|
|
17
|
+
static importDOM(): DOMConversionMap | null;
|
|
18
18
|
static importJSON(serializedNode: SerializedDeleteNode): DeleteNode;
|
|
19
19
|
exportJSON(): SerializedDeleteNode;
|
|
20
20
|
isInline(): true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteNode.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,OAAO,EACP,gBAAgB,EAEhB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,GAAG;IACzD,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,UAAW,SAAQ,WAAW;IACzC,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU;gBAKxC,QAAQ,GAAE,MAA4B,EACtC,GAAG,CAAC,EAAE,OAAO;IAMf,SAAS,IAAI,WAAW;
|
|
1
|
+
{"version":3,"file":"DeleteNode.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,OAAO,EACP,gBAAgB,EAEhB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,GAAG;IACzD,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,UAAW,SAAQ,WAAW;IACzC,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU;gBAKxC,QAAQ,GAAE,MAA4B,EACtC,GAAG,CAAC,EAAE,OAAO;IAMf,SAAS,IAAI,WAAW;IAQxB,SAAS;;;IAMT,SAAS,IAAI,KAAK;IAIlB,MAAM,CAAC,SAAS,IAAI,gBAAgB,GAAG,IAAI;IAS3C,MAAM,CAAC,UAAU,CACf,cAAc,EAAE,oBAAoB,GACnC,UAAU;IAIb,UAAU,IAAI,oBAAoB;IASlC,QAAQ,IAAI,IAAI;IAIhB,UAAU,IAAI,KAAK;IAInB,mBAAmB,IAAI,KAAK;IAI9B,kBAAkB,IAAI,KAAK;IAI3B,YAAY,IAAI,KAAK;CAGpB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementNode, NodeKey, SerializedElementNode, DOMConversionMap, EditorConfig,
|
|
1
|
+
import { ElementNode, NodeKey, SerializedElementNode, DOMConversionMap, EditorConfig, DOMExportOutput } from "lexical";
|
|
2
2
|
export type SerializedInsertNode = SerializedElementNode & {
|
|
3
3
|
type: "insert";
|
|
4
4
|
version: 1;
|
|
@@ -9,10 +9,10 @@ export declare class InsertNode extends ElementNode {
|
|
|
9
9
|
static getType(): string;
|
|
10
10
|
static clone(node: InsertNode): InsertNode;
|
|
11
11
|
constructor(reviewId?: string, key?: NodeKey);
|
|
12
|
-
createDOM(
|
|
12
|
+
createDOM(): HTMLElement;
|
|
13
|
+
exportDOM(): DOMExportOutput;
|
|
13
14
|
updateDOM(prevNode: InsertNode, dom: HTMLElement, config: EditorConfig): boolean;
|
|
14
15
|
static importDOM(): DOMConversionMap | null;
|
|
15
|
-
exportDOM(editor: LexicalEditor): DOMExportOutput;
|
|
16
16
|
static importJSON(serializedNode: SerializedInsertNode): InsertNode;
|
|
17
17
|
exportJSON(): SerializedInsertNode;
|
|
18
18
|
isInline(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsertNode.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,gBAAgB,EAEhB,YAAY,
|
|
1
|
+
{"version":3,"file":"InsertNode.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,gBAAgB,EAEhB,YAAY,EAEZ,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,GAAG;IACzD,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,UAAW,SAAQ,WAAW;IACzC,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU;gBAKxC,QAAQ,GAAE,MAA4B,EACtC,GAAG,CAAC,EAAE,OAAO;IAUf,SAAS,IAAI,WAAW;IAOxB,SAAS,IAAI,eAAe;IAO5B,SAAS,CACP,QAAQ,EAAE,UAAU,EACpB,GAAG,EAAE,WAAW,EAChB,MAAM,EAAE,YAAY,GACnB,OAAO;IAQV,MAAM,CAAC,SAAS,IAAI,gBAAgB,GAAG,IAAI;IAa3C,MAAM,CAAC,UAAU,CACf,cAAc,EAAE,oBAAoB,GACnC,UAAU;IAQb,UAAU,IAAI,oBAAoB;IAalC,QAAQ,IAAI,OAAO;CAGpB"}
|
package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,aAAa,CAAC;AAErB,QAAA,MAAM,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,aAAa,CAAC;AAErB,QAAA,MAAM,KAAK,EAAE,kBAuFZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AA8BA,UAAU,eAAe;IACvB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AAED,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG,MAAM,CAAA;AAEvC,QAAA,MAAM,cAAc,gHAUjB,eAAe,
|
|
1
|
+
{"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AA8BA,UAAU,eAAe;IACvB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AAED,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG,MAAM,CAAA;AAEvC,QAAA,MAAM,cAAc,gHAUjB,eAAe,4CAuMjB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/segment/Segment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOpH,OAAO,sBAAsB,CAAA;AAE7B,UAAU,YAAY;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,+BAA+B,CAAC,EAAE,uBAAuB,CAAC;IAC1D,uBAAuB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtC,kBAAkB,CAAC,EAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,CAAC,EAAC,OAAO,CAAA;IACzB,MAAM,CAAC,EAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5B;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/segment/Segment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOpH,OAAO,sBAAsB,CAAA;AAE7B,UAAU,YAAY;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,+BAA+B,CAAC,EAAE,uBAAuB,CAAC;IAC1D,uBAAuB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtC,kBAAkB,CAAC,EAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,CAAC,EAAC,OAAO,CAAA;IACzB,MAAM,CAAC,EAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5B;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA2InC,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/segment/SegmentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAGxC,OAAO,EAAY,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAI7E,UAAU,mBAAmB;IACzB,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;IACX,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;IACjD,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,WAAW,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,KAAK,MAAM,CAAC;IAC/C,gBAAgB,CAAC,EAAC,OAAO,CAAA;CAC5B;AAGD,QAAA,MAAM,cAAc,0GAQjB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"SegmentWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/segment/SegmentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAGxC,OAAO,EAAY,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAI7E,UAAU,mBAAmB;IACzB,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;IACX,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;IACjD,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,WAAW,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,KAAK,MAAM,CAAC;IAC/C,gBAAgB,CAAC,EAAC,OAAO,CAAA;CAC5B;AAGD,QAAA,MAAM,cAAc,0GAQjB,mBAAmB,4CAoFrB,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryPicker.d.ts","sourceRoot":"","sources":["../../../../../src/features/UserStoryImport/UserStoryPicker.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAiC,MAAM,yBAAyB,CAAC;AAG3F,OAAO,yBAAyB,CAAC;AAMjC,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,OAAO,EACP,WAAsB,EACtB,WAAsB,EACtB,WAAyB,EACzB,WAA6B,EAC7B,MAAW,EACX,QAAY,EACZ,KAAK,EACL,UAA8B,EAC9B,WAAgC,EAChC,SAAS,EACT,aAAa,EACb,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,SAAiB,EACjB,cAAsB,EACtB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,aAAqB,GACtB,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"UserStoryPicker.d.ts","sourceRoot":"","sources":["../../../../../src/features/UserStoryImport/UserStoryPicker.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAiC,MAAM,yBAAyB,CAAC;AAG3F,OAAO,yBAAyB,CAAC;AAMjC,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,OAAO,EACP,WAAsB,EACtB,WAAsB,EACtB,WAAyB,EACzB,WAA6B,EAC7B,MAAW,EACX,QAAY,EACZ,KAAK,EACL,UAA8B,EAC9B,WAAgC,EAChC,SAAS,EACT,aAAa,EACb,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,SAAiB,EACjB,cAAsB,EACtB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,aAAqB,GACtB,EAAE,YAAY,2CAyOd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,cAAc,2CAgBhH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/components/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/components/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAmBD,wBAAgB,WAAW,CAAC,EAAE,WAAyB,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,KAAc,EAAE,EAAE,mBAAmB,2CAwCtI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionHeading.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/components/SectionHeading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SectionHeading.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/components/SectionHeading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AA0HD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,IAAI,EACJ,SAAS,EACT,KAAK,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,MAAM,GACP,EAAE,sBAAsB,2CAiDxB"}
|
|
@@ -24,5 +24,5 @@ export interface USPDataResult {
|
|
|
24
24
|
isLoadingFavoriteStories: boolean;
|
|
25
25
|
updateFavorite: (story: USPUserStory, isFavorite: boolean) => void;
|
|
26
26
|
}
|
|
27
|
-
export declare function useUSPData(userEmail: string | null, gitUrl: string, fetchProjectsFn: (params: Record<string, any>) => Promise<any>, fetchUserStoriesFn: (params: Record<string, any>) => Promise<any>, sortBy?: USPSortOption, typeBy?: USPTypeOption, scopeRepo?: USPScopeOption, searchQuery?: string, sidebarSearchQuery?: string, selectedProjectId?: string | null): USPDataResult;
|
|
27
|
+
export declare function useUSPData(userEmail: string | null, gitUrl: string, fetchProjectsFn: (params: Record<string, any>) => Promise<any>, fetchUserStoriesFn: (params: Record<string, any>) => Promise<any>, sortBy?: USPSortOption, typeBy?: USPTypeOption, scopeRepo?: USPScopeOption, searchQuery?: string, sidebarSearchQuery?: string, selectedProjectId?: string | null, showCitations?: boolean): USPDataResult;
|
|
28
28
|
//# sourceMappingURL=useUSPData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUSPData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/hooks/useUSPData.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACf,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"useUSPData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/hooks/useUSPData.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACf,MAAM,0BAA0B,CAAC;AA+HlC,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,YAAY,EAAE,CAAC;IAC/B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,uBAAuB,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,UAAU,EAAE,CAAC;IAC9B,sBAAsB,EAAE,OAAO,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,wBAAwB,EAAE,OAAO,CAAC;IAClC,eAAe,EAAE,YAAY,EAAE,CAAC;IAChC,sBAAsB,EAAE,OAAO,CAAC;IAChC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,wBAAwB,EAAE,OAAO,CAAC;IAClC,cAAc,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CACpE;AAED,wBAAgB,UAAU,CACxB,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,EAC9D,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,EACjE,MAAM,GAAE,aAAwB,EAChC,MAAM,GAAE,aAA2B,EACnC,SAAS,GAAE,cAAgC,EAC3C,WAAW,GAAE,MAAW,EACxB,kBAAkB,GAAE,MAAW,EAC/B,iBAAiB,GAAE,MAAM,GAAG,IAAW,EACvC,aAAa,GAAE,OAAe,GAC7B,aAAa,CAkdf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adaptLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/lib/adaptLabel.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAKhE"}
|