@viswa-test/test-citation 0.0.325 → 0.0.326

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("@mui/icons-material/ChevronRight"),o=require("@mui/icons-material/Close"),r=require("@mui/material/Box"),l=require("@mui/material/Button"),a=require("@mui/material/ButtonBase"),s=require("@mui/material/Divider"),d=require("@mui/material/IconButton"),u=require("@mui/material/Paper"),c=require("@mui/material/Radio"),x=require("@mui/material/Stack"),f=require("@mui/material/TextField"),h=require("@mui/material/Typography"),m=require("./CognitiveIcon.js"),p=require("./CognitiveScoreBadge.js"),b=require("../../assests/icons/InfoAlert.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v,_=g(n),j=g(o),C=g(r),y=g(l),w=g(a),A=g(s),L=g(d),S=g(u),E=g(c),I=g(x),q=g(f),k=g(h),B=function(i,t){return e.__spreadArray([i],Array.isArray(t)?t:null==t?[]:[t],!0)};exports.LabelReviewActionEnum=void 0,(v=exports.LabelReviewActionEnum||(exports.LabelReviewActionEnum={})).KEEP_LABEL="KEEP_LABEL",v.SET_CUSTOM_LABEL="SET_CUSTOM_LABEL";var D=function(e){return e.user_actions.map(function(i){switch(i){case"KEEP_LABEL":return{id:i,title:"Keep as is",description:e.current_label?'Label stays "'.concat(e.current_label,'"'):"Keep the current document label"};case"SET_CUSTOM_LABEL":return{id:i,title:"Enter a custom label",description:"Create your own document label",requiresInput:!0,inputPlaceholder:e.current_label?"e.g. ".concat(e.current_label):"Enter a document label"}}})},z=function(e){return Object.values(exports.LabelReviewActionEnum).includes(e)};exports.createLabelCheckOptions=D,exports.default=function(n){var o,r=n.headerName,l=void 0===r?"Title Check":r,a=n.title,s=n.pageNo,d=n.content,u=void 0===d?"We're not fully confident about this label. Confirm it, choose a different type, or add a new one.":d,c=n.cognitiveScore,x=n.config,f=n.metadata,h=n.selectedIndex,g=n.defaultSelectedIndex,v=void 0===g?null:g,M=n.onSelectionChange,O=n.customLabel,W=n.defaultCustomLabel,F=n.onCustomLabelChange,R=n.onConfirm,T=n.onActionConfirm,P=n.onCognitiveClick;n.onAdjustManually;var K=n.onClose,H=n.confirmLabel,N=void 0===H?"Confirm":H,U=n.customInputAriaLabel,G=void 0===U?"Custom document label":U;n.manualPrompt,n.manualActionLabel;var J=n.cognitiveLabel,Q=void 0===J?"Cognitive Integrity":J;n.showAdjustManually;var V=n.showCognitiveIntegrity,X=void 0===V||V,Y=n.showCloseButton,Z=void 0===Y||Y,$=n.confirmDisabled,ee=void 0!==$&&$,ie=n.confirmationBlocked,te=void 0!==ie&&ie,ne=n.confirmationWarning,oe=n.disableAllActions,re=void 0!==oe&&oe,le=n.width,ae=void 0===le?260:le,se=n.maxWidth,de=void 0===se?260:se,ue=n.className,ce=n.styles,xe=t.useMemo(function(){return null!=x?x:f?D(f):[]},[x,f]),fe=t.useState(v),he=fe[0],me=fe[1],pe=t.useState(null!==(o=null!=W?W:null==f?void 0:f.custom_label)&&void 0!==o?o:""),be=pe[0],ge=pe[1],ve=void 0===h?he:h,_e=void 0===O?be:O,je=null==ve?void 0:xe[ve],Ce=Boolean(null==je?void 0:je.requiresInput),ye=te||re||ee||!R&&!T||!je||!0===je.disabled||Ce&&0===_e.trim().length,we=function(){if(!ye&&null!=ve&&je){var e=Ce?_e.trim():void 0;null==R||R(ve,je,e),T&&z(je.id)&&T(je.id,{selectedIndex:ve,option:je,customLabel:e,metadata:f})}};return i.jsx(S.default,e.__assign({className:ue,elevation:0,sx:B({width:ae,maxWidth:de,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",boxSizing:"border-box",boxShadow:"0 8px 16px rgba(16, 24, 40, 0.2)","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==ce?void 0:ce.root)},{children:i.jsx(C.default,e.__assign({sx:{overflow:"hidden"}},{children:i.jsxs(I.default,e.__assign({spacing:.75,sx:{p:1}},{children:[i.jsxs(I.default,e.__assign({direction:"row",alignItems:"center",spacing:.75,sx:null==ce?void 0:ce.header},{children:[i.jsx(b.default,{color:"error",height:16,width:16}),i.jsx(k.default,e.__assign({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:l})),Z&&i.jsx(L.default,e.__assign({size:"small",onClick:K,disabled:!K,"aria-label":"Close label check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:i.jsx(j.default,{sx:{fontSize:17}})}))]})),i.jsxs(C.default,{children:[i.jsx(k.default,e.__assign({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:a})),null!=s&&i.jsx(k.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:s})),i.jsx(A.default,{sx:{my:.625}}),null!=u&&i.jsx(k.default,e.__assign({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:u}))]}),i.jsxs(I.default,e.__assign({spacing:.625,role:"radiogroup","aria-label":"Label options"},{children:[xe.map(function(t,n){var o=ve===n;return i.jsxs(S.default,e.__assign({variant:"outlined",sx:B({borderColor:o?"#1976d2":"divider",borderRadius:2,overflow:"hidden"},null==ce?void 0:ce.option)},{children:[i.jsxs(w.default,e.__assign({role:"radio","aria-checked":o,disabled:ee||t.disabled||te,onClick:function(){return function(e,i){ee||i.disabled||(void 0===h&&me(e),null==M||M(e,i))}(n,t)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left",cursor:"pointer","&.Mui-disabled":{cursor:"not-allowed"}}},{children:[i.jsx(E.default,{checked:o,disabled:ee||t.disabled||te,tabIndex:-1,size:"small",sx:{p:.25,mr:.5,cursor:"pointer","&.Mui-disabled":{cursor:"not-allowed"}}}),i.jsxs(C.default,e.__assign({sx:{minWidth:0}},{children:[i.jsx(k.default,e.__assign({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:t.title})),null!=t.description&&i.jsx(k.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:11}},{children:t.description}))]}))]})),o&&t.requiresInput&&i.jsx(C.default,e.__assign({sx:{px:1.25,pb:1}},{children:i.jsx(q.default,{autoFocus:!0,fullWidth:!0,size:"small",value:_e,disabled:ee,placeholder:t.inputPlaceholder,inputProps:{"aria-label":G},onChange:function(e){return i=e.target.value,void 0===O&&ge(i),void(null==F||F(i));var i},onKeyDown:function(e){"Enter"===e.key&&we()},variant:"outlined",InputProps:{sx:{height:36,borderRadius:2,backgroundColor:"background.paper","& .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD",borderWidth:"1px"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD",borderWidth:"1.5px"},"& .MuiOutlinedInput-input":{height:"100%",boxSizing:"border-box",px:1.25,py:0,fontSize:12,lineHeight:1.25},"& .MuiOutlinedInput-input::placeholder":{color:"#98A2B3",opacity:1}}},sx:null==ce?void 0:ce.customInput})}))]}),t.id)}),null!=ne&&i.jsxs(I.default,e.__assign({direction:"row",alignItems:"flex-start",spacing:.5,role:"alert",sx:B({px:.75,py:.625,borderRadius:1,bgcolor:"#FEFCE8",color:"#CA8A04"},null==ce?void 0:ce.confirmationWarning)},{children:[i.jsx(b.default,{color:"inherit",height:15,width:15}),i.jsx(k.default,e.__assign({sx:{color:"inherit",fontSize:11.5,lineHeight:1.3}},{children:ne}))]})),i.jsx(y.default,e.__assign({variant:"contained",fullWidth:!0,disabled:ye,onClick:we,sx:B({minHeight:32,mt:.25,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==ce?void 0:ce.confirmButton)},{children:N}))]})),i.jsx(I.default,e.__assign({spacing:.625,sx:null==ce?void 0:ce.footer},{children:X&&i.jsxs(i.Fragment,{children:[i.jsx(A.default,{}),i.jsxs(w.default,e.__assign({onClick:P,disabled:!P,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:P?"pointer":"not-allowed"}},{children:[i.jsxs(I.default,e.__assign({direction:"row",alignItems:"center",spacing:1},{children:[i.jsx(m.default,{sx:{color:"text.secondary"}}),i.jsx(k.default,e.__assign({sx:{color:"text.primary",fontSize:12}},{children:Q}))]})),i.jsxs(I.default,e.__assign({direction:"row",alignItems:"center",spacing:.75},{children:[i.jsx(p.default,{score:c}),i.jsx(_.default,{sx:{color:"text.secondary",fontSize:18}})]}))]}))]})}))]}))}))}))},exports.isLabelReviewAction=z;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("@mui/icons-material/ChevronRight"),o=require("@mui/icons-material/Close"),r=require("@mui/material/Box"),l=require("@mui/material/Button"),a=require("@mui/material/ButtonBase"),s=require("@mui/material/Divider"),d=require("@mui/material/IconButton"),u=require("@mui/material/Paper"),c=require("@mui/material/Radio"),x=require("@mui/material/Stack"),f=require("@mui/material/TextField"),h=require("@mui/material/Typography"),p=require("./CognitiveIcon.js"),m=require("./CognitiveScoreBadge.js"),g=require("../../assests/icons/InfoAlert.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v,_=b(n),j=b(o),C=b(r),y=b(l),w=b(a),A=b(s),L=b(d),S=b(u),E=b(c),I=b(x),q=b(f),k=b(h),B=function(i,t){return e.__spreadArray([i],Array.isArray(t)?t:null==t?[]:[t],!0)};exports.LabelReviewActionEnum=void 0,(v=exports.LabelReviewActionEnum||(exports.LabelReviewActionEnum={})).KEEP_LABEL="KEEP_LABEL",v.SET_CUSTOM_LABEL="SET_CUSTOM_LABEL";var D=function(e){return e.user_actions.map(function(i){switch(i){case"KEEP_LABEL":return{id:i,title:"Keep as is",description:e.current_label?'Label stays "'.concat(e.current_label,'"'):"Keep the current document label"};case"SET_CUSTOM_LABEL":return{id:i,title:"Fix a document title",description:"Correct the page title if it's not right",requiresInput:!0,inputPlaceholder:e.current_label?"e.g. ".concat(e.current_label):"Enter a document label"}}})},z=function(e){return Object.values(exports.LabelReviewActionEnum).includes(e)};exports.createLabelCheckOptions=D,exports.default=function(n){var o,r=n.headerName,l=void 0===r?"Title Check":r,a=n.title,s=n.pageNo,d=n.content,u=void 0===d?"We're not fully confident about this label. Confirm it, choose a different type, or add a new one.":d,c=n.cognitiveScore,x=n.config,f=n.metadata,h=n.selectedIndex,b=n.defaultSelectedIndex,v=void 0===b?null:b,M=n.onSelectionChange,F=n.customLabel,O=n.defaultCustomLabel,W=n.onCustomLabelChange,R=n.onConfirm,T=n.onActionConfirm,P=n.onCognitiveClick;n.onAdjustManually;var K=n.onClose,H=n.confirmLabel,N=void 0===H?"Confirm":H,U=n.customInputAriaLabel,G=void 0===U?"Custom document label":U;n.manualPrompt,n.manualActionLabel;var J=n.cognitiveLabel,Q=void 0===J?"Cognitive Integrity":J;n.showAdjustManually;var V=n.showCognitiveIntegrity,X=void 0===V||V,Y=n.showCloseButton,Z=void 0===Y||Y,$=n.confirmDisabled,ee=void 0!==$&&$,ie=n.confirmationBlocked,te=void 0!==ie&&ie,ne=n.confirmationWarning,oe=n.disableAllActions,re=void 0!==oe&&oe,le=n.width,ae=void 0===le?260:le,se=n.maxWidth,de=void 0===se?260:se,ue=n.className,ce=n.styles,xe=t.useMemo(function(){return null!=x?x:f?D(f):[]},[x,f]),fe=t.useState(v),he=fe[0],pe=fe[1],me=t.useState(null!==(o=null!=O?O:null==f?void 0:f.custom_label)&&void 0!==o?o:""),ge=me[0],be=me[1],ve=void 0===h?he:h,_e=void 0===F?ge:F,je=null==ve?void 0:xe[ve],Ce=Boolean(null==je?void 0:je.requiresInput),ye=te||re||ee||!R&&!T||!je||!0===je.disabled||Ce&&0===_e.trim().length,we=function(){if(!ye&&null!=ve&&je){var e=Ce?_e.trim():void 0;null==R||R(ve,je,e),T&&z(je.id)&&T(je.id,{selectedIndex:ve,option:je,customLabel:e,metadata:f})}};return i.jsx(S.default,e.__assign({className:ue,elevation:0,sx:B({width:ae,maxWidth:de,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",boxSizing:"border-box",boxShadow:"0 8px 16px rgba(16, 24, 40, 0.2)","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==ce?void 0:ce.root)},{children:i.jsx(C.default,e.__assign({sx:{overflow:"hidden"}},{children:i.jsxs(I.default,e.__assign({spacing:.75,sx:{p:1}},{children:[i.jsxs(I.default,e.__assign({direction:"row",alignItems:"center",spacing:.75,sx:null==ce?void 0:ce.header},{children:[i.jsx(g.default,{color:"error",height:16,width:16}),i.jsx(k.default,e.__assign({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:l})),Z&&i.jsx(L.default,e.__assign({size:"small",onClick:K,disabled:!K,"aria-label":"Close label check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:i.jsx(j.default,{sx:{fontSize:17}})}))]})),i.jsxs(C.default,{children:[i.jsx(k.default,e.__assign({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:a})),null!=s&&i.jsx(k.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:s})),i.jsx(A.default,{sx:{my:.625}}),null!=u&&i.jsx(k.default,e.__assign({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:u}))]}),i.jsxs(I.default,e.__assign({spacing:.625,role:"radiogroup","aria-label":"Label options"},{children:[xe.map(function(t,n){var o=ve===n;return i.jsxs(S.default,e.__assign({variant:"outlined",sx:B({borderColor:o?"#1976d2":"divider",borderRadius:2,overflow:"hidden"},null==ce?void 0:ce.option)},{children:[i.jsxs(w.default,e.__assign({role:"radio","aria-checked":o,disabled:ee||t.disabled||te,onClick:function(){return function(e,i){ee||i.disabled||(void 0===h&&pe(e),null==M||M(e,i))}(n,t)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left",cursor:"pointer","&.Mui-disabled":{cursor:"not-allowed"}}},{children:[i.jsx(E.default,{checked:o,disabled:ee||t.disabled||te,tabIndex:-1,size:"small",sx:{p:.25,mr:.5,cursor:"pointer","&.Mui-disabled":{cursor:"not-allowed"}}}),i.jsxs(C.default,e.__assign({sx:{minWidth:0}},{children:[i.jsx(k.default,e.__assign({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:t.title})),null!=t.description&&i.jsx(k.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:11}},{children:t.description}))]}))]})),o&&t.requiresInput&&i.jsx(C.default,e.__assign({sx:{px:1.25,pb:1}},{children:i.jsx(q.default,{autoFocus:!0,fullWidth:!0,size:"small",value:_e,disabled:ee,placeholder:t.inputPlaceholder,inputProps:{"aria-label":G},onChange:function(e){return i=e.target.value,void 0===F&&be(i),void(null==W||W(i));var i},onKeyDown:function(e){"Enter"===e.key&&we()},variant:"outlined",InputProps:{sx:{height:36,borderRadius:2,backgroundColor:"background.paper","& .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD",borderWidth:"1px"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD",borderWidth:"1.5px"},"& .MuiOutlinedInput-input":{height:"100%",boxSizing:"border-box",px:1.25,py:0,fontSize:12,lineHeight:1.25},"& .MuiOutlinedInput-input::placeholder":{color:"#98A2B3",opacity:1}}},sx:null==ce?void 0:ce.customInput})}))]}),t.id)}),null!=ne&&i.jsxs(I.default,e.__assign({direction:"row",alignItems:"flex-start",spacing:.5,role:"alert",sx:B({px:.75,py:.625,borderRadius:1,bgcolor:"#FEFCE8",color:"#CA8A04"},null==ce?void 0:ce.confirmationWarning)},{children:[i.jsx(g.default,{color:"inherit",height:15,width:15}),i.jsx(k.default,e.__assign({sx:{color:"inherit",fontSize:11.5,lineHeight:1.3}},{children:ne}))]})),i.jsx(y.default,e.__assign({variant:"contained",fullWidth:!0,disabled:ye,onClick:we,sx:B({minHeight:32,mt:.25,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==ce?void 0:ce.confirmButton)},{children:N}))]})),i.jsx(I.default,e.__assign({spacing:.625,sx:null==ce?void 0:ce.footer},{children:X&&i.jsxs(i.Fragment,{children:[i.jsx(A.default,{}),i.jsxs(w.default,e.__assign({onClick:P,disabled:!P,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:P?"pointer":"not-allowed"}},{children:[i.jsxs(I.default,e.__assign({direction:"row",alignItems:"center",spacing:1},{children:[i.jsx(p.default,{sx:{color:"text.secondary"}}),i.jsx(k.default,e.__assign({sx:{color:"text.primary",fontSize:12}},{children:Q}))]})),i.jsxs(I.default,e.__assign({direction:"row",alignItems:"center",spacing:.75},{children:[i.jsx(m.default,{score:c}),i.jsx(_.default,{sx:{color:"text.secondary",fontSize:18}})]}))]}))]})}))]}))}))}))},exports.isLabelReviewAction=z;
2
2
  //# sourceMappingURL=LabelCheck.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as o}from"tslib";import{jsx as i,jsxs as r,Fragment as t}from"react/jsx-runtime";import{useMemo as n,useState as l}from"react";import a from"@mui/icons-material/ChevronRight";import d from"@mui/icons-material/Close";import c from"@mui/material/Box";import u from"@mui/material/Button";import s from"@mui/material/ButtonBase";import m from"@mui/material/Divider";import p from"@mui/material/IconButton";import h from"@mui/material/Paper";import f from"@mui/material/Radio";import b from"@mui/material/Stack";import x from"@mui/material/TextField";import v from"@mui/material/Typography";import g from"./CognitiveIcon.js";import C from"./CognitiveScoreBadge.js";import y from"../../assests/icons/InfoAlert.js";var w,S=function(e,i){return o([e],Array.isArray(i)?i:null==i?[]:[i],!0)};!function(e){e.KEEP_LABEL="KEEP_LABEL",e.SET_CUSTOM_LABEL="SET_CUSTOM_LABEL"}(w||(w={}));var I=function(e){return e.user_actions.map(function(o){switch(o){case"KEEP_LABEL":return{id:o,title:"Keep as is",description:e.current_label?'Label stays "'.concat(e.current_label,'"'):"Keep the current document label"};case"SET_CUSTOM_LABEL":return{id:o,title:"Enter a custom label",description:"Create your own document label",requiresInput:!0,inputPlaceholder:e.current_label?"e.g. ".concat(e.current_label):"Enter a document label"}}})},A=function(e){return Object.values(w).includes(e)};function L(o){var w,L=o.headerName,E=void 0===L?"Title Check":L,k=o.title,B=o.pageNo,D=o.content,z=void 0===D?"We're not fully confident about this label. Confirm it, choose a different type, or add a new one.":D,M=o.cognitiveScore,_=o.config,W=o.metadata,F=o.selectedIndex,O=o.defaultSelectedIndex,T=void 0===O?null:O,j=o.onSelectionChange,P=o.customLabel,R=o.defaultCustomLabel,K=o.onCustomLabelChange,H=o.onConfirm,N=o.onActionConfirm,q=o.onCognitiveClick;o.onAdjustManually;var U=o.onClose,G=o.confirmLabel,J=void 0===G?"Confirm":G,Q=o.customInputAriaLabel,V=void 0===Q?"Custom document label":Q;o.manualPrompt,o.manualActionLabel;var X=o.cognitiveLabel,Y=void 0===X?"Cognitive Integrity":X;o.showAdjustManually;var Z=o.showCognitiveIntegrity,$=void 0===Z||Z,ee=o.showCloseButton,oe=void 0===ee||ee,ie=o.confirmDisabled,re=void 0!==ie&&ie,te=o.confirmationBlocked,ne=void 0!==te&&te,le=o.confirmationWarning,ae=o.disableAllActions,de=void 0!==ae&&ae,ce=o.width,ue=void 0===ce?260:ce,se=o.maxWidth,me=void 0===se?260:se,pe=o.className,he=o.styles,fe=n(function(){return null!=_?_:W?I(W):[]},[_,W]),be=l(T),xe=be[0],ve=be[1],ge=l(null!==(w=null!=R?R:null==W?void 0:W.custom_label)&&void 0!==w?w:""),Ce=ge[0],ye=ge[1],we=void 0===F?xe:F,Se=void 0===P?Ce:P,Ie=null==we?void 0:fe[we],Ae=Boolean(null==Ie?void 0:Ie.requiresInput),Le=ne||de||re||!H&&!N||!Ie||!0===Ie.disabled||Ae&&0===Se.trim().length,Ee=function(){if(!Le&&null!=we&&Ie){var e=Ae?Se.trim():void 0;null==H||H(we,Ie,e),N&&A(Ie.id)&&N(Ie.id,{selectedIndex:we,option:Ie,customLabel:e,metadata:W})}};return i(h,e({className:pe,elevation:0,sx:S({width:ue,maxWidth:me,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",boxSizing:"border-box",boxShadow:"0 8px 16px rgba(16, 24, 40, 0.2)","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==he?void 0:he.root)},{children:i(c,e({sx:{overflow:"hidden"}},{children:r(b,e({spacing:.75,sx:{p:1}},{children:[r(b,e({direction:"row",alignItems:"center",spacing:.75,sx:null==he?void 0:he.header},{children:[i(y,{color:"error",height:16,width:16}),i(v,e({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:E})),oe&&i(p,e({size:"small",onClick:U,disabled:!U,"aria-label":"Close label check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:i(d,{sx:{fontSize:17}})}))]})),r(c,{children:[i(v,e({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:k})),null!=B&&i(v,e({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:B})),i(m,{sx:{my:.625}}),null!=z&&i(v,e({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:z}))]}),r(b,e({spacing:.625,role:"radiogroup","aria-label":"Label options"},{children:[fe.map(function(o,t){var n=we===t;return r(h,e({variant:"outlined",sx:S({borderColor:n?"#1976d2":"divider",borderRadius:2,overflow:"hidden"},null==he?void 0:he.option)},{children:[r(s,e({role:"radio","aria-checked":n,disabled:re||o.disabled||ne,onClick:function(){return function(e,o){re||o.disabled||(void 0===F&&ve(e),null==j||j(e,o))}(t,o)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left",cursor:"pointer","&.Mui-disabled":{cursor:"not-allowed"}}},{children:[i(f,{checked:n,disabled:re||o.disabled||ne,tabIndex:-1,size:"small",sx:{p:.25,mr:.5,cursor:"pointer","&.Mui-disabled":{cursor:"not-allowed"}}}),r(c,e({sx:{minWidth:0}},{children:[i(v,e({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:o.title})),null!=o.description&&i(v,e({sx:{mt:.125,color:"text.secondary",fontSize:11}},{children:o.description}))]}))]})),n&&o.requiresInput&&i(c,e({sx:{px:1.25,pb:1}},{children:i(x,{autoFocus:!0,fullWidth:!0,size:"small",value:Se,disabled:re,placeholder:o.inputPlaceholder,inputProps:{"aria-label":V},onChange:function(e){return o=e.target.value,void 0===P&&ye(o),void(null==K||K(o));var o},onKeyDown:function(e){"Enter"===e.key&&Ee()},variant:"outlined",InputProps:{sx:{height:36,borderRadius:2,backgroundColor:"background.paper","& .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD",borderWidth:"1px"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD",borderWidth:"1.5px"},"& .MuiOutlinedInput-input":{height:"100%",boxSizing:"border-box",px:1.25,py:0,fontSize:12,lineHeight:1.25},"& .MuiOutlinedInput-input::placeholder":{color:"#98A2B3",opacity:1}}},sx:null==he?void 0:he.customInput})}))]}),o.id)}),null!=le&&r(b,e({direction:"row",alignItems:"flex-start",spacing:.5,role:"alert",sx:S({px:.75,py:.625,borderRadius:1,bgcolor:"#FEFCE8",color:"#CA8A04"},null==he?void 0:he.confirmationWarning)},{children:[i(y,{color:"inherit",height:15,width:15}),i(v,e({sx:{color:"inherit",fontSize:11.5,lineHeight:1.3}},{children:le}))]})),i(u,e({variant:"contained",fullWidth:!0,disabled:Le,onClick:Ee,sx:S({minHeight:32,mt:.25,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==he?void 0:he.confirmButton)},{children:J}))]})),i(b,e({spacing:.625,sx:null==he?void 0:he.footer},{children:$&&r(t,{children:[i(m,{}),r(s,e({onClick:q,disabled:!q,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:q?"pointer":"not-allowed"}},{children:[r(b,e({direction:"row",alignItems:"center",spacing:1},{children:[i(g,{sx:{color:"text.secondary"}}),i(v,e({sx:{color:"text.primary",fontSize:12}},{children:Y}))]})),r(b,e({direction:"row",alignItems:"center",spacing:.75},{children:[i(C,{score:M}),i(a,{sx:{color:"text.secondary",fontSize:18}})]}))]}))]})}))]}))}))}))}export{w as LabelReviewActionEnum,I as createLabelCheckOptions,L as default,A as isLabelReviewAction};
1
+ import{__assign as e,__spreadArray as i}from"tslib";import{jsx as o,jsxs as r,Fragment as t}from"react/jsx-runtime";import{useMemo as n,useState as l}from"react";import a from"@mui/icons-material/ChevronRight";import d from"@mui/icons-material/Close";import c from"@mui/material/Box";import u from"@mui/material/Button";import s from"@mui/material/ButtonBase";import m from"@mui/material/Divider";import p from"@mui/material/IconButton";import h from"@mui/material/Paper";import f from"@mui/material/Radio";import b from"@mui/material/Stack";import x from"@mui/material/TextField";import g from"@mui/material/Typography";import v from"./CognitiveIcon.js";import C from"./CognitiveScoreBadge.js";import y from"../../assests/icons/InfoAlert.js";var S,w=function(e,o){return i([e],Array.isArray(o)?o:null==o?[]:[o],!0)};!function(e){e.KEEP_LABEL="KEEP_LABEL",e.SET_CUSTOM_LABEL="SET_CUSTOM_LABEL"}(S||(S={}));var I=function(e){return e.user_actions.map(function(i){switch(i){case"KEEP_LABEL":return{id:i,title:"Keep as is",description:e.current_label?'Label stays "'.concat(e.current_label,'"'):"Keep the current document label"};case"SET_CUSTOM_LABEL":return{id:i,title:"Fix a document title",description:"Correct the page title if it's not right",requiresInput:!0,inputPlaceholder:e.current_label?"e.g. ".concat(e.current_label):"Enter a document label"}}})},A=function(e){return Object.values(S).includes(e)};function L(i){var S,L=i.headerName,E=void 0===L?"Title Check":L,k=i.title,B=i.pageNo,D=i.content,z=void 0===D?"We're not fully confident about this label. Confirm it, choose a different type, or add a new one.":D,M=i.cognitiveScore,_=i.config,W=i.metadata,F=i.selectedIndex,O=i.defaultSelectedIndex,T=void 0===O?null:O,j=i.onSelectionChange,P=i.customLabel,R=i.defaultCustomLabel,K=i.onCustomLabelChange,H=i.onConfirm,N=i.onActionConfirm,q=i.onCognitiveClick;i.onAdjustManually;var U=i.onClose,G=i.confirmLabel,J=void 0===G?"Confirm":G,Q=i.customInputAriaLabel,V=void 0===Q?"Custom document label":Q;i.manualPrompt,i.manualActionLabel;var X=i.cognitiveLabel,Y=void 0===X?"Cognitive Integrity":X;i.showAdjustManually;var Z=i.showCognitiveIntegrity,$=void 0===Z||Z,ee=i.showCloseButton,ie=void 0===ee||ee,oe=i.confirmDisabled,re=void 0!==oe&&oe,te=i.confirmationBlocked,ne=void 0!==te&&te,le=i.confirmationWarning,ae=i.disableAllActions,de=void 0!==ae&&ae,ce=i.width,ue=void 0===ce?260:ce,se=i.maxWidth,me=void 0===se?260:se,pe=i.className,he=i.styles,fe=n(function(){return null!=_?_:W?I(W):[]},[_,W]),be=l(T),xe=be[0],ge=be[1],ve=l(null!==(S=null!=R?R:null==W?void 0:W.custom_label)&&void 0!==S?S:""),Ce=ve[0],ye=ve[1],Se=void 0===F?xe:F,we=void 0===P?Ce:P,Ie=null==Se?void 0:fe[Se],Ae=Boolean(null==Ie?void 0:Ie.requiresInput),Le=ne||de||re||!H&&!N||!Ie||!0===Ie.disabled||Ae&&0===we.trim().length,Ee=function(){if(!Le&&null!=Se&&Ie){var e=Ae?we.trim():void 0;null==H||H(Se,Ie,e),N&&A(Ie.id)&&N(Ie.id,{selectedIndex:Se,option:Ie,customLabel:e,metadata:W})}};return o(h,e({className:pe,elevation:0,sx:w({width:ue,maxWidth:me,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",boxSizing:"border-box",boxShadow:"0 8px 16px rgba(16, 24, 40, 0.2)","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==he?void 0:he.root)},{children:o(c,e({sx:{overflow:"hidden"}},{children:r(b,e({spacing:.75,sx:{p:1}},{children:[r(b,e({direction:"row",alignItems:"center",spacing:.75,sx:null==he?void 0:he.header},{children:[o(y,{color:"error",height:16,width:16}),o(g,e({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:E})),ie&&o(p,e({size:"small",onClick:U,disabled:!U,"aria-label":"Close label check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:o(d,{sx:{fontSize:17}})}))]})),r(c,{children:[o(g,e({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:k})),null!=B&&o(g,e({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:B})),o(m,{sx:{my:.625}}),null!=z&&o(g,e({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:z}))]}),r(b,e({spacing:.625,role:"radiogroup","aria-label":"Label options"},{children:[fe.map(function(i,t){var n=Se===t;return r(h,e({variant:"outlined",sx:w({borderColor:n?"#1976d2":"divider",borderRadius:2,overflow:"hidden"},null==he?void 0:he.option)},{children:[r(s,e({role:"radio","aria-checked":n,disabled:re||i.disabled||ne,onClick:function(){return function(e,i){re||i.disabled||(void 0===F&&ge(e),null==j||j(e,i))}(t,i)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left",cursor:"pointer","&.Mui-disabled":{cursor:"not-allowed"}}},{children:[o(f,{checked:n,disabled:re||i.disabled||ne,tabIndex:-1,size:"small",sx:{p:.25,mr:.5,cursor:"pointer","&.Mui-disabled":{cursor:"not-allowed"}}}),r(c,e({sx:{minWidth:0}},{children:[o(g,e({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:i.title})),null!=i.description&&o(g,e({sx:{mt:.125,color:"text.secondary",fontSize:11}},{children:i.description}))]}))]})),n&&i.requiresInput&&o(c,e({sx:{px:1.25,pb:1}},{children:o(x,{autoFocus:!0,fullWidth:!0,size:"small",value:we,disabled:re,placeholder:i.inputPlaceholder,inputProps:{"aria-label":V},onChange:function(e){return i=e.target.value,void 0===P&&ye(i),void(null==K||K(i));var i},onKeyDown:function(e){"Enter"===e.key&&Ee()},variant:"outlined",InputProps:{sx:{height:36,borderRadius:2,backgroundColor:"background.paper","& .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD",borderWidth:"1px"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD",borderWidth:"1.5px"},"& .MuiOutlinedInput-input":{height:"100%",boxSizing:"border-box",px:1.25,py:0,fontSize:12,lineHeight:1.25},"& .MuiOutlinedInput-input::placeholder":{color:"#98A2B3",opacity:1}}},sx:null==he?void 0:he.customInput})}))]}),i.id)}),null!=le&&r(b,e({direction:"row",alignItems:"flex-start",spacing:.5,role:"alert",sx:w({px:.75,py:.625,borderRadius:1,bgcolor:"#FEFCE8",color:"#CA8A04"},null==he?void 0:he.confirmationWarning)},{children:[o(y,{color:"inherit",height:15,width:15}),o(g,e({sx:{color:"inherit",fontSize:11.5,lineHeight:1.3}},{children:le}))]})),o(u,e({variant:"contained",fullWidth:!0,disabled:Le,onClick:Ee,sx:w({minHeight:32,mt:.25,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==he?void 0:he.confirmButton)},{children:J}))]})),o(b,e({spacing:.625,sx:null==he?void 0:he.footer},{children:$&&r(t,{children:[o(m,{}),r(s,e({onClick:q,disabled:!q,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:q?"pointer":"not-allowed"}},{children:[r(b,e({direction:"row",alignItems:"center",spacing:1},{children:[o(v,{sx:{color:"text.secondary"}}),o(g,e({sx:{color:"text.primary",fontSize:12}},{children:Y}))]})),r(b,e({direction:"row",alignItems:"center",spacing:.75},{children:[o(C,{score:M}),o(a,{sx:{color:"text.secondary",fontSize:18}})]}))]}))]})}))]}))}))}))}export{S as LabelReviewActionEnum,I as createLabelCheckOptions,L as default,A as isLabelReviewAction};
2
2
  //# sourceMappingURL=LabelCheck.js.map
@@ -18,17 +18,12 @@ export declare const hasStructuralBoundaryAction: (step: ReviewStepSource) => bo
18
18
  */
19
19
  export declare const getStructuralResultBadgeLabel: (segment: SegmentReviewSource) => "Split" | "Merged" | null;
20
20
  /**
21
- * Title checks represent completed structural actions after the corresponding
22
- * boundary badge is hidden.
21
+ * Title checks inherit only merge results from their segment. Split remains
22
+ * specific to the boundary step that performed it.
23
23
  */
24
24
  export declare const getTitleReviewActionBadgeLabel: (step: ReviewStepSource, segment: SegmentReviewSource, optimisticAction?: string | null) => "Split" | "Merged" | null;
25
25
  /** Optimistic structural state wins over stale polling for boundary badges. */
26
26
  export declare const getBoundaryReviewActionBadgeLabel: (step: ReviewStepSource, segment: SegmentReviewSource, optimisticAction?: string | null) => "Split" | "Merged" | null;
27
- /**
28
- * Hides completed structural boundaries. Split history is copied to both
29
- * outputs, so neither output should surface another boundary check for the
30
- * split operation. Merge moves to the result segment's title.
31
- */
32
27
  export declare const shouldHideStructuralBoundaryReview: (step: ReviewStepSource, segment: SegmentReviewSource, hasTitleReview: boolean, optimisticAction?: string | null) => boolean;
33
28
  /** Polling has taken ownership only when it reflects the same optimistic action. */
34
29
  export declare const hasPolledStructuralAction: (segment: SegmentReviewSource, optimisticAction?: string | null) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,eAAe,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,kBAY7D,CAAC;AAEF,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,GAAG,IAAI,wBAW1D,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,eAAe,MAAM,GAAG,IAAI,kBACnC,CAAC;AAEzD,eAAO,MAAM,WAAW,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,eAAe,MAAM,GAAG,IAAI,WAOrF,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,wBAAwB,iBAAkB,MAAM,GAAG,IAAI,8BAanE,CAAC;AAkCF,0EAA0E;AAC1E,eAAO,MAAM,6BAA6B,SAAU,gBAAgB,8BAGrB,CAAC;AAEhD,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,SAAU,gBAAgB,YAK1D,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,2BAA2B,SAAU,gBAAgB,YAMtD,CAAC;AAEb;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,YAC/B,mBAAmB,8BA0C7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,SACnC,gBAAgB,WACb,mBAAmB,qBACT,MAAM,GAAG,IAAI,8BASjC,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,iCAAiC,SACtC,gBAAgB,WACb,mBAAmB,qBACT,MAAM,GAAG,IAAI,8BAGM,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,SACvC,gBAAgB,WACb,mBAAmB,kBACZ,OAAO,qBACJ,MAAM,GAAG,IAAI,YAgBjC,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,YAC3B,mBAAmB,qBACT,MAAM,GAAG,IAAI,YAmBjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,aACtC,SAAS,mBAAmB,EAAE,qBACrB,YAAY,MAAM,EAAE,MAAM,CAAC,gBA2B/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,aACnC,SAAS,mBAAmB,EAAE,gBAsCzC,CAAC;AAYF,eAAO,MAAM,mBAAmB,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,eAAe,MAAM,GAAG,IAAI,iBAAiB,OAAO;;;;;;CAmDrH,CAAC"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,eAAe,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,kBAY7D,CAAC;AAEF,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,GAAG,IAAI,wBAW1D,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,eAAe,MAAM,GAAG,IAAI,kBACnC,CAAC;AAEzD,eAAO,MAAM,WAAW,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,eAAe,MAAM,GAAG,IAAI,WAOrF,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,wBAAwB,iBAAkB,MAAM,GAAG,IAAI,8BAanE,CAAC;AAkCF,0EAA0E;AAC1E,eAAO,MAAM,6BAA6B,SAAU,gBAAgB,8BAGrB,CAAC;AAEhD,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,SAAU,gBAAgB,YAK1D,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,2BAA2B,SAAU,gBAAgB,YAMtD,CAAC;AAEb;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,YAC/B,mBAAmB,8BAuC7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,SACnC,gBAAgB,WACb,mBAAmB,qBACT,MAAM,GAAG,IAAI,8BASjC,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,iCAAiC,SACtC,gBAAgB,WACb,mBAAmB,qBACT,MAAM,GAAG,IAAI,8BAGM,CAAC;AAEzC,eAAO,MAAM,kCAAkC,SACvC,gBAAgB,WACb,mBAAmB,kBACZ,OAAO,qBACJ,MAAM,GAAG,IAAI,YAgBjC,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,YAC3B,mBAAmB,qBACT,MAAM,GAAG,IAAI,YAmBjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,aACtC,SAAS,mBAAmB,EAAE,qBACrB,YAAY,MAAM,EAAE,MAAM,CAAC,gBA2B/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,aACnC,SAAS,mBAAmB,EAAE,gBAsCzC,CAAC;AAYF,eAAO,MAAM,mBAAmB,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,eAAe,MAAM,GAAG,IAAI,iBAAiB,OAAO;;;;;;CAmDrH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viswa-test/test-citation",
3
- "version": "0.0.325",
3
+ "version": "0.0.326",
4
4
  "author": "Viswa Koduru",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -13,9 +13,9 @@
13
13
  },
14
14
  "exports": {
15
15
  ".": {
16
- "types": "./dist/types/src/index.d.ts",
17
16
  "import": "./dist/index.js",
18
- "require": "./dist/cjs/index.js"
17
+ "require": "./dist/cjs/index.js",
18
+ "types": "./dist/types/index.d.ts"
19
19
  },
20
20
  "./FaqCitation": {
21
21
  "import": "./dist/features/CognitiveDecisioning/FaqCitation/FaqCitation.js",
@@ -72,11 +72,6 @@
72
72
  "require": "./dist/cjs/features/PdfViewer/PdfViewer.js",
73
73
  "types": "./dist/types/src/features/PdfViewer/PdfViewer.d.ts"
74
74
  },
75
- "./SegmentReview": {
76
- "import": "./dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js",
77
- "require": "./dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js",
78
- "types": "./dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts"
79
- },
80
75
  "./CognitiveInternalgptReasoning": {
81
76
  "import": "./dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js",
82
77
  "require": "./dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js",
@@ -209,7 +204,7 @@
209
204
  "dist"
210
205
  ],
211
206
  "scripts": {
212
- "start": "PORT=3005 craco start",
207
+ "start": "craco start",
213
208
  "build": "rollup -c",
214
209
  "tsupBuild": "tsup src/index.ts",
215
210
  "test": "craco test",