@hiver/connector-admin 4.1.2 → 4.1.3-adminPerformace-beta.0
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/index.es.js +1 -1
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/testing/setup-test.d.ts.map +1 -1
- package/v2/testing/setup-test.d.ts.map +1 -1
package/index.es.js
CHANGED
|
@@ -31000,7 +31000,7 @@ const _a = {
|
|
|
31000
31000
|
onClick: () => g(e),
|
|
31001
31001
|
children: [
|
|
31002
31002
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
31003
|
-
t ? /* @__PURE__ */ u.jsx("div", { className: "w-8.75 h-8.75 shadow-icon rounded-md overflow-hidden", children: /* @__PURE__ */ u.jsx("img", { src: t, alt: `${n} logo`, className: "w-full h-full" }) }) : null,
|
|
31003
|
+
t ? /* @__PURE__ */ u.jsx("div", { className: "w-8.75 h-8.75 shadow-icon rounded-md overflow-hidden", children: /* @__PURE__ */ u.jsx("img", { src: t, alt: `${n} logo`, className: "w-full h-full", loading: "lazy" }) }) : null,
|
|
31004
31004
|
/* @__PURE__ */ u.jsx("div", { className: "text-body1", children: n })
|
|
31005
31005
|
] }),
|
|
31006
31006
|
E(),
|
package/index.umd.js
CHANGED
|
@@ -2475,7 +2475,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2475
2475
|
height: 20px;
|
|
2476
2476
|
background: linear-gradient(to right, #ffe250, #ffc350);
|
|
2477
2477
|
color: ${g.palette.gray.gray1};
|
|
2478
|
-
`,A0=e=>_.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{clipPath:"url(#clip0_9869_28517)"},_.createElement("path",{d:"M10 16.6666C6.32502 16.6666 3.33335 13.675 3.33335 9.99996C3.33335 6.32496 6.32502 3.33329 10 3.33329C13.675 3.33329 16.6667 6.32496 16.6667 9.99996C16.6667 13.675 13.675 16.6666 10 16.6666ZM10 18.3333C14.6 18.3333 18.3334 14.6 18.3334 9.99996C18.3334 5.39996 14.6 1.66663 10 1.66663C5.40002 1.66663 1.66669 5.39996 1.66669 9.99996C1.66669 14.6 5.40002 18.3333 10 18.3333ZM9.16669 9.99996V13.3333H10.8334V9.99996H13.3334L10 6.66663L6.66669 9.99996H9.16669Z",fill:"#506DFF"})),_.createElement("defs",null,_.createElement("clipPath",{id:"clip0_9869_28517"},_.createElement("rect",{width:20,height:20,fill:"white"})))),o0=e=>_.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{clipPath:"url(#clip0_9681_423226)"},_.createElement("path",{d:"M9.99996 1.66663C5.39996 1.66663 1.66663 5.39996 1.66663 9.99996C1.66663 14.6 5.39996 18.3333 9.99996 18.3333C14.6 18.3333 18.3333 14.6 18.3333 9.99996C18.3333 5.39996 14.6 1.66663 9.99996 1.66663ZM9.99996 16.6666C6.31663 16.6666 3.33329 13.6833 3.33329 9.99996C3.33329 8.45829 3.85829 7.04163 4.74163 5.91663L14.0833 15.2583C12.9583 16.1416 11.5416 16.6666 9.99996 16.6666ZM15.2583 14.0833L5.91663 4.74163C7.04163 3.85829 8.45829 3.33329 9.99996 3.33329C13.6833 3.33329 16.6666 6.31663 16.6666 9.99996C16.6666 11.5416 16.1416 12.9583 15.2583 14.0833Z",fill:"#6F7C90"})),_.createElement("defs",null,_.createElement("clipPath",{id:"clip0_9681_423226"},_.createElement("rect",{width:20,height:20,fill:"white"})))),AC=({id:e,logo:t,name:n,replacementName:r,isEnabled:A,isAuthenticated:o,showUpgradeButton:s,isDeprecated:i,showIcons:a,showTooltip:l,showNewChip:c,onClick:d})=>{const I=()=>{if(!a)return null;switch(!0){case!o:return u.jsx(g.icons.ErrorOutline,{sx:{fontSize:"20px"},color:"error"});case!A:return u.jsx(g.icons.InfoOutlined,{sx:{fontSize:"20px"}});case s:return u.jsx(A0,{});case i:return u.jsx(o0,{});default:return u.jsx(g.icons.CheckCircle,{sx:{fontSize:"20px"},color:"success"})}},Q=()=>{if(!l)return null;switch(!0){case!o:return $M;case!A:return n8;case s:return e8;case i:return Is(t8,{connectorName:r||""});default:return""}};return u.jsx(g.Tooltip,{title:Q(),placement:"bottom",arrow:!0,classes:{tooltip:"max-w-[252px]!"},children:u.jsxs("li",{className:`w-65 h-15 flex border-gray-6 border rounded-lg items-center p-3 justify-between cursor-pointer hover:border-gray-2 ${o&&!A?"opacity-70 bg-gray-6a":""}`,onClick:()=>d(e),children:[u.jsxs("div",{className:"flex items-center gap-3",children:[t?u.jsx("div",{className:"w-8.75 h-8.75 shadow-icon rounded-md overflow-hidden",children:u.jsx("img",{src:t,alt:`${n} logo`,className:"w-full h-full"})}):null,u.jsx("div",{className:"text-body1",children:n})]}),I(),u.jsx(Ja,{hidden:!c,label:rC})]},e)})},lj=()=>{const{sendTrackingEvent:e,availableFeatures:t}=y.useContext(Vt),n=on(),r=Ve(Gm),A=Ve(Ic),o=Ve(f8),s=i=>{var c;const a=jm({isTemplate:!0}),l=(c=A==null?void 0:A[i])==null?void 0:c.name;e(et.LIBRARY_CARD_CLICKED,{connector_name:l}),e(et.INTEGRATION_APP_CARD_CLICK,{app_name:l,app_state:a}),n(`${Ye.BASEPATH}${Ye.API_VIEW}/${i}`)};return u.jsx("ul",{className:"flex gap-5 flex-wrap","data-testid":"connector-library",children:o===Be.LOADING?u.jsx(_c,{}):u.jsx(u.Fragment,{children:r.map(i=>{const a=A==null?void 0:A[i];if(!a)return null;const{isTemplateNew:l}=a,c=Ga(t)&&l;return u.jsx(AC,{id:a.id,name:a.name,logo:a.logo,isDeprecated:a.isDeprecated,onClick:s,showNewChip:c,isEnabled:!0},i)})})})},s0=e=>e.connectorLirary.connectorList,Dc=e=>e.connectorLirary.connectors,oC=e=>e.connectorLirary.connectorsApiStatus,a0=e=>e.connectorLirary.currentUpdatingConnectors,Oc=e=>e.connectorLirary.connectorDetailApiStatus,sC=e=>e.connectorLirary.rolesAndPermissions,cj=e=>e.connectorLirary.updateEnableConnectorsApiStatus,uj=e=>e.connectorLirary.cardCustomFields,gj=e=>e.connectorLirary.cardCustomFieldsApiStatus,dj=e=>e.connectorLirary.notAuthenticatedConnectors,Cj=e=>e.connectorLirary.requireUpgradeConnectors,Ej=e=>e.connectorLirary.enableCustomCardApiStatus,Ij=e=>e.connectorLirary.updateConnectorByIdApiStatus,Lc=({id:e,status:t,connectorName:n,hideCta:r=!1})=>{const A=on(),o=()=>{A(`${Ye.BASEPATH}${Ye.CONNECTOR_SETTINGS}/${e}?isEdit=true`)},s=()=>r?null:u.jsx(g.Button,{size:"small",variant:"outlined",className:"ml-2.5! hover:bg-[#e3e9ff]! hover:text-[#506dff]! hover:border-[#506dff]!",onClick:o,children:"Re-Authenticate"});switch(t){case"upgrade":return u.jsxs(g.Alert,{severity:"info",icon:u.jsx(A0,{}),className:"bg-[#F0F3FF]! w-fit h-auto!",children:[Xs(r8,{connectorName:n}),s()]});case"notAuthenticated":return u.jsxs(g.Alert,{severity:"error",icon:u.jsx(g.icons.ErrorOutline,{sx:{fontSize:"20px"},color:"error"}),className:"bg-[#FFE6E6]! w-fit h-auto!",children:[Xs(A8,{connectorName:n}),s()]});case"deprecated":return u.jsx(g.Alert,{severity:"error",icon:u.jsx(o0,{className:"**:[path]:fill-red-hover"}),className:"bg-[#FFE0E3]! w-fit h-auto!",children:u.jsx("span",{className:"text-red-hover",children:Xs(o8,{connectorName:n})})});default:return null}},fj=()=>{const{sendTrackingEvent:e}=y.useContext(Vt),t=Ve(s0),n=Ve(Dc),r=Ve(dj),A=Ve(Cj),o=on(),s=i=>{const{id:a,name:l,isAuthenticated:c,showUpgradeButton:d,isEnabled:I}=i,Q=jm({connector:i}),f=!c||I&&d?0:1;e(et.INTEGRATION_APP_CARD_CLICK,{app_name:l,app_state:Q}),o(`${Ye.BASEPATH}${Ye.CONNECTOR_SETTINGS}/${a}?isEdit=true&tabIndex=${f}`)};return u.jsxs(u.Fragment,{children:[r.length||A.length?u.jsxs("div",{className:"flex gap-4 flex-col mb-4",children:[r.map(i=>{const a=n==null?void 0:n[i];return a?u.jsx(Lc,{id:a.id,status:"notAuthenticated",connectorName:a.name},a.id):null}),A.map(i=>{const a=n==null?void 0:n[i];return a?u.jsx(Lc,{id:a.id,status:"upgrade",connectorName:a.name},a.id):null})]}):null,u.jsx("ul",{className:"flex gap-5 flex-wrap","data-testid":"connector-custom-card",children:t.map(i=>{var a;return(a=n==null?void 0:n[i])!=null&&a.id?u.jsx(AC,{id:n[i].id,name:n[i].name,logo:n[i].logo,isEnabled:n[i].isEnabled,isAuthenticated:n[i].isAuthenticated,showUpgradeButton:n[i].showUpgradeButton,isDeprecated:n[i].isDeprecated,showIcons:!0,showTooltip:!0,onClick:()=>s(n[i])},i):null})})]})},Bj="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_825_73646)'%3e%3cpath%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_825_73646'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",aC=({shown:e,setShown:t,children:n,showCloseButton:r=!1,customPaperProps:A={},onClose:o})=>{const s=()=>{t(!1),o==null||o()};return u.jsx(g.Dialog,{"data-testid":"modal",open:e,className:"connectorAdmin-portal",onClose:s,PaperProps:{style:{borderRadius:12,padding:0,height:"fit-content",width:"fit-content",maxWidth:"none",...A}},children:u.jsxs(g.Stack,{direction:"row",children:[r&&u.jsx(g.Box,{position:"absolute",right:10,top:10,children:u.jsx(g.Tooltip,{title:"Close",placement:"bottom",children:u.jsx(g.IconButton,{onClick:s,"data-testid":"close-modal",children:u.jsx("img",{src:Bj})})})}),n]})})},i0=e=>e.requestConnectorApi.connectorRequestsApiStatus,pj=e=>e.requestConnectorApi.requestableConnectors,hj=e=>e.requestConnectorApi.requestableApis,Qj=({connectors:e,canSubmit:t,setSelectedConnectors:n,selectedConnectors:r,setOptionalDetails:A,handleSubmit:o,isApiText:s})=>{const{sendTrackingEvent:i}=y.useContext(Vt),l=Ve(i0)===Be.LOADING,c=r.length===0?s?h7:Q7:"";return y.useEffect(()=>{i(s?et.REQUEST_NEW_FEATURE_SHOWN:et.REQUEST_NEW_CONNECTOR_SHOWN)},[i,s]),u.jsx(g.Stack,{"data-testid":"request-panel",children:u.jsxs(g.Stack,{padding:"30px",height:"100%",children:[u.jsx(g.Stack,{width:"440px",height:"100%",children:u.jsxs(g.Stack,{gap:"14px",children:[u.jsxs(g.Stack,{gap:"4px",marginBottom:"36px",children:[u.jsx(g.Typography,{variant:"h2",children:s?B7:qm}),u.jsx(g.Typography,{variant:"body2",children:s?p7:Zm})]}),u.jsx(g.Autocomplete,{"data-testid":"request-dropdown",disablePortal:!0,multiple:!0,disableCloseOnSelect:!0,limitTags:2,options:e,disabled:l,isOptionEqualToValue:(d,I)=>d.id===I.id,renderOption:(d,I,{selected:Q})=>{const{key:f,...C}=d;return u.jsxs(g.Box,{component:"li",...C,minHeight:"36px",children:[u.jsx(g.Checkbox,{style:{marginRight:8},checked:Q}),I.label]},f)},renderInput:d=>u.jsx(nC,{...d,variant:"outlined",placeholder:c}),ListboxProps:{style:{maxHeight:250}},onChange:(d,I)=>{n(I)}}),u.jsx(Km,{multiline:!0,fullWidth:!0,minRows:8,variant:"outlined",disabled:l,placeholder:m7,onChange:d=>{A(d.target.value)}})]})}),u.jsx(g.Stack,{alignItems:"flex-end",children:u.jsx(g.Button,{"data-testid":"submit-request-button",onClick:o,color:"tertiary",size:"medium",sx:{height:"32px"},disabled:!t||l,children:l?u.jsx(g.CircularProgress,{sx:{color:"#97A3B7"},size:20}):u.jsx("div",{children:y7})})})]})})},l0="data:image/svg+xml,%3csvg%20width='92'%20height='92'%20viewBox='0%200%2092%2092'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='46'%20cy='46'%20r='23'%20fill='%2336A40F'/%3e%3ccircle%20opacity='0.1'%20cx='45.5'%20cy='45.5'%20r='34.5'%20fill='%235AAA3D'/%3e%3ccircle%20opacity='0.1'%20cx='46'%20cy='46'%20r='46'%20fill='%232CAA00'/%3e%3cpath%20d='M37%2046L44%2053L58%2039'%20stroke='white'%20stroke-width='3'/%3e%3c/svg%3e",mj=g.styled(g.Box)`
|
|
2478
|
+
`,A0=e=>_.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{clipPath:"url(#clip0_9869_28517)"},_.createElement("path",{d:"M10 16.6666C6.32502 16.6666 3.33335 13.675 3.33335 9.99996C3.33335 6.32496 6.32502 3.33329 10 3.33329C13.675 3.33329 16.6667 6.32496 16.6667 9.99996C16.6667 13.675 13.675 16.6666 10 16.6666ZM10 18.3333C14.6 18.3333 18.3334 14.6 18.3334 9.99996C18.3334 5.39996 14.6 1.66663 10 1.66663C5.40002 1.66663 1.66669 5.39996 1.66669 9.99996C1.66669 14.6 5.40002 18.3333 10 18.3333ZM9.16669 9.99996V13.3333H10.8334V9.99996H13.3334L10 6.66663L6.66669 9.99996H9.16669Z",fill:"#506DFF"})),_.createElement("defs",null,_.createElement("clipPath",{id:"clip0_9869_28517"},_.createElement("rect",{width:20,height:20,fill:"white"})))),o0=e=>_.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{clipPath:"url(#clip0_9681_423226)"},_.createElement("path",{d:"M9.99996 1.66663C5.39996 1.66663 1.66663 5.39996 1.66663 9.99996C1.66663 14.6 5.39996 18.3333 9.99996 18.3333C14.6 18.3333 18.3333 14.6 18.3333 9.99996C18.3333 5.39996 14.6 1.66663 9.99996 1.66663ZM9.99996 16.6666C6.31663 16.6666 3.33329 13.6833 3.33329 9.99996C3.33329 8.45829 3.85829 7.04163 4.74163 5.91663L14.0833 15.2583C12.9583 16.1416 11.5416 16.6666 9.99996 16.6666ZM15.2583 14.0833L5.91663 4.74163C7.04163 3.85829 8.45829 3.33329 9.99996 3.33329C13.6833 3.33329 16.6666 6.31663 16.6666 9.99996C16.6666 11.5416 16.1416 12.9583 15.2583 14.0833Z",fill:"#6F7C90"})),_.createElement("defs",null,_.createElement("clipPath",{id:"clip0_9681_423226"},_.createElement("rect",{width:20,height:20,fill:"white"})))),AC=({id:e,logo:t,name:n,replacementName:r,isEnabled:A,isAuthenticated:o,showUpgradeButton:s,isDeprecated:i,showIcons:a,showTooltip:l,showNewChip:c,onClick:d})=>{const I=()=>{if(!a)return null;switch(!0){case!o:return u.jsx(g.icons.ErrorOutline,{sx:{fontSize:"20px"},color:"error"});case!A:return u.jsx(g.icons.InfoOutlined,{sx:{fontSize:"20px"}});case s:return u.jsx(A0,{});case i:return u.jsx(o0,{});default:return u.jsx(g.icons.CheckCircle,{sx:{fontSize:"20px"},color:"success"})}},Q=()=>{if(!l)return null;switch(!0){case!o:return $M;case!A:return n8;case s:return e8;case i:return Is(t8,{connectorName:r||""});default:return""}};return u.jsx(g.Tooltip,{title:Q(),placement:"bottom",arrow:!0,classes:{tooltip:"max-w-[252px]!"},children:u.jsxs("li",{className:`w-65 h-15 flex border-gray-6 border rounded-lg items-center p-3 justify-between cursor-pointer hover:border-gray-2 ${o&&!A?"opacity-70 bg-gray-6a":""}`,onClick:()=>d(e),children:[u.jsxs("div",{className:"flex items-center gap-3",children:[t?u.jsx("div",{className:"w-8.75 h-8.75 shadow-icon rounded-md overflow-hidden",children:u.jsx("img",{src:t,alt:`${n} logo`,className:"w-full h-full",loading:"lazy"})}):null,u.jsx("div",{className:"text-body1",children:n})]}),I(),u.jsx(Ja,{hidden:!c,label:rC})]},e)})},lj=()=>{const{sendTrackingEvent:e,availableFeatures:t}=y.useContext(Vt),n=on(),r=Ve(Gm),A=Ve(Ic),o=Ve(f8),s=i=>{var c;const a=jm({isTemplate:!0}),l=(c=A==null?void 0:A[i])==null?void 0:c.name;e(et.LIBRARY_CARD_CLICKED,{connector_name:l}),e(et.INTEGRATION_APP_CARD_CLICK,{app_name:l,app_state:a}),n(`${Ye.BASEPATH}${Ye.API_VIEW}/${i}`)};return u.jsx("ul",{className:"flex gap-5 flex-wrap","data-testid":"connector-library",children:o===Be.LOADING?u.jsx(_c,{}):u.jsx(u.Fragment,{children:r.map(i=>{const a=A==null?void 0:A[i];if(!a)return null;const{isTemplateNew:l}=a,c=Ga(t)&&l;return u.jsx(AC,{id:a.id,name:a.name,logo:a.logo,isDeprecated:a.isDeprecated,onClick:s,showNewChip:c,isEnabled:!0},i)})})})},s0=e=>e.connectorLirary.connectorList,Dc=e=>e.connectorLirary.connectors,oC=e=>e.connectorLirary.connectorsApiStatus,a0=e=>e.connectorLirary.currentUpdatingConnectors,Oc=e=>e.connectorLirary.connectorDetailApiStatus,sC=e=>e.connectorLirary.rolesAndPermissions,cj=e=>e.connectorLirary.updateEnableConnectorsApiStatus,uj=e=>e.connectorLirary.cardCustomFields,gj=e=>e.connectorLirary.cardCustomFieldsApiStatus,dj=e=>e.connectorLirary.notAuthenticatedConnectors,Cj=e=>e.connectorLirary.requireUpgradeConnectors,Ej=e=>e.connectorLirary.enableCustomCardApiStatus,Ij=e=>e.connectorLirary.updateConnectorByIdApiStatus,Lc=({id:e,status:t,connectorName:n,hideCta:r=!1})=>{const A=on(),o=()=>{A(`${Ye.BASEPATH}${Ye.CONNECTOR_SETTINGS}/${e}?isEdit=true`)},s=()=>r?null:u.jsx(g.Button,{size:"small",variant:"outlined",className:"ml-2.5! hover:bg-[#e3e9ff]! hover:text-[#506dff]! hover:border-[#506dff]!",onClick:o,children:"Re-Authenticate"});switch(t){case"upgrade":return u.jsxs(g.Alert,{severity:"info",icon:u.jsx(A0,{}),className:"bg-[#F0F3FF]! w-fit h-auto!",children:[Xs(r8,{connectorName:n}),s()]});case"notAuthenticated":return u.jsxs(g.Alert,{severity:"error",icon:u.jsx(g.icons.ErrorOutline,{sx:{fontSize:"20px"},color:"error"}),className:"bg-[#FFE6E6]! w-fit h-auto!",children:[Xs(A8,{connectorName:n}),s()]});case"deprecated":return u.jsx(g.Alert,{severity:"error",icon:u.jsx(o0,{className:"**:[path]:fill-red-hover"}),className:"bg-[#FFE0E3]! w-fit h-auto!",children:u.jsx("span",{className:"text-red-hover",children:Xs(o8,{connectorName:n})})});default:return null}},fj=()=>{const{sendTrackingEvent:e}=y.useContext(Vt),t=Ve(s0),n=Ve(Dc),r=Ve(dj),A=Ve(Cj),o=on(),s=i=>{const{id:a,name:l,isAuthenticated:c,showUpgradeButton:d,isEnabled:I}=i,Q=jm({connector:i}),f=!c||I&&d?0:1;e(et.INTEGRATION_APP_CARD_CLICK,{app_name:l,app_state:Q}),o(`${Ye.BASEPATH}${Ye.CONNECTOR_SETTINGS}/${a}?isEdit=true&tabIndex=${f}`)};return u.jsxs(u.Fragment,{children:[r.length||A.length?u.jsxs("div",{className:"flex gap-4 flex-col mb-4",children:[r.map(i=>{const a=n==null?void 0:n[i];return a?u.jsx(Lc,{id:a.id,status:"notAuthenticated",connectorName:a.name},a.id):null}),A.map(i=>{const a=n==null?void 0:n[i];return a?u.jsx(Lc,{id:a.id,status:"upgrade",connectorName:a.name},a.id):null})]}):null,u.jsx("ul",{className:"flex gap-5 flex-wrap","data-testid":"connector-custom-card",children:t.map(i=>{var a;return(a=n==null?void 0:n[i])!=null&&a.id?u.jsx(AC,{id:n[i].id,name:n[i].name,logo:n[i].logo,isEnabled:n[i].isEnabled,isAuthenticated:n[i].isAuthenticated,showUpgradeButton:n[i].showUpgradeButton,isDeprecated:n[i].isDeprecated,showIcons:!0,showTooltip:!0,onClick:()=>s(n[i])},i):null})})]})},Bj="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_825_73646)'%3e%3cpath%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_825_73646'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",aC=({shown:e,setShown:t,children:n,showCloseButton:r=!1,customPaperProps:A={},onClose:o})=>{const s=()=>{t(!1),o==null||o()};return u.jsx(g.Dialog,{"data-testid":"modal",open:e,className:"connectorAdmin-portal",onClose:s,PaperProps:{style:{borderRadius:12,padding:0,height:"fit-content",width:"fit-content",maxWidth:"none",...A}},children:u.jsxs(g.Stack,{direction:"row",children:[r&&u.jsx(g.Box,{position:"absolute",right:10,top:10,children:u.jsx(g.Tooltip,{title:"Close",placement:"bottom",children:u.jsx(g.IconButton,{onClick:s,"data-testid":"close-modal",children:u.jsx("img",{src:Bj})})})}),n]})})},i0=e=>e.requestConnectorApi.connectorRequestsApiStatus,pj=e=>e.requestConnectorApi.requestableConnectors,hj=e=>e.requestConnectorApi.requestableApis,Qj=({connectors:e,canSubmit:t,setSelectedConnectors:n,selectedConnectors:r,setOptionalDetails:A,handleSubmit:o,isApiText:s})=>{const{sendTrackingEvent:i}=y.useContext(Vt),l=Ve(i0)===Be.LOADING,c=r.length===0?s?h7:Q7:"";return y.useEffect(()=>{i(s?et.REQUEST_NEW_FEATURE_SHOWN:et.REQUEST_NEW_CONNECTOR_SHOWN)},[i,s]),u.jsx(g.Stack,{"data-testid":"request-panel",children:u.jsxs(g.Stack,{padding:"30px",height:"100%",children:[u.jsx(g.Stack,{width:"440px",height:"100%",children:u.jsxs(g.Stack,{gap:"14px",children:[u.jsxs(g.Stack,{gap:"4px",marginBottom:"36px",children:[u.jsx(g.Typography,{variant:"h2",children:s?B7:qm}),u.jsx(g.Typography,{variant:"body2",children:s?p7:Zm})]}),u.jsx(g.Autocomplete,{"data-testid":"request-dropdown",disablePortal:!0,multiple:!0,disableCloseOnSelect:!0,limitTags:2,options:e,disabled:l,isOptionEqualToValue:(d,I)=>d.id===I.id,renderOption:(d,I,{selected:Q})=>{const{key:f,...C}=d;return u.jsxs(g.Box,{component:"li",...C,minHeight:"36px",children:[u.jsx(g.Checkbox,{style:{marginRight:8},checked:Q}),I.label]},f)},renderInput:d=>u.jsx(nC,{...d,variant:"outlined",placeholder:c}),ListboxProps:{style:{maxHeight:250}},onChange:(d,I)=>{n(I)}}),u.jsx(Km,{multiline:!0,fullWidth:!0,minRows:8,variant:"outlined",disabled:l,placeholder:m7,onChange:d=>{A(d.target.value)}})]})}),u.jsx(g.Stack,{alignItems:"flex-end",children:u.jsx(g.Button,{"data-testid":"submit-request-button",onClick:o,color:"tertiary",size:"medium",sx:{height:"32px"},disabled:!t||l,children:l?u.jsx(g.CircularProgress,{sx:{color:"#97A3B7"},size:20}):u.jsx("div",{children:y7})})})]})})},l0="data:image/svg+xml,%3csvg%20width='92'%20height='92'%20viewBox='0%200%2092%2092'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='46'%20cy='46'%20r='23'%20fill='%2336A40F'/%3e%3ccircle%20opacity='0.1'%20cx='45.5'%20cy='45.5'%20r='34.5'%20fill='%235AAA3D'/%3e%3ccircle%20opacity='0.1'%20cx='46'%20cy='46'%20r='46'%20fill='%232CAA00'/%3e%3cpath%20d='M37%2046L44%2053L58%2039'%20stroke='white'%20stroke-width='3'/%3e%3c/svg%3e",mj=g.styled(g.Box)`
|
|
2479
2479
|
.request-new-connector-img {
|
|
2480
2480
|
height: 500px;
|
|
2481
2481
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-test.d.ts","sourceRoot":"","sources":["../../src/testing/setup-test.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"setup-test.d.ts","sourceRoot":"","sources":["../../src/testing/setup-test.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-test.d.ts","sourceRoot":"","sources":["../../../src/v2/testing/setup-test.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"setup-test.d.ts","sourceRoot":"","sources":["../../../src/v2/testing/setup-test.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,2BAA2B,CAAC"}
|