@hiver/connector-admin 3.0.4 → 3.0.5-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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/app/connectors/pages/connector-view/dashboard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AAmC5D,eAAO,MAAM,SAAS,EAAE,EAgFvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/app/connectors/pages/connector-view/dashboard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AAmC5D,eAAO,MAAM,SAAS,EAAE,EAuFvB,CAAC"}
package/index.es.js CHANGED
@@ -16964,8 +16964,8 @@ const qO = B(fe)`
16964
16964
  }, [t, e]), _e(() => {
16965
16965
  e(ol()), e(ll());
16966
16966
  }, [e]);
16967
- const y = (f) => {
16968
- r(f), o(!1), d(ft.REQUEST_NEW_CLICKED);
16967
+ const y = (f, h = !1) => {
16968
+ r(f), o(!1), h && d(ft.REQUEST_NEW_CLICKED);
16969
16969
  }, b = (f) => {
16970
16970
  o(f), r(!1);
16971
16971
  };
@@ -16973,7 +16973,16 @@ const qO = B(fe)`
16973
16973
  /* @__PURE__ */ w.jsx(Lf, {}),
16974
16974
  /* @__PURE__ */ w.jsxs(p3, { children: [
16975
16975
  /* @__PURE__ */ w.jsx(g3, { variant: "h2", children: u3 }),
16976
- u && !v ? /* @__PURE__ */ w.jsx(Cn, { "data-testid": "connector-available-request-new", onClick: () => y(!0), children: T0 }) : null
16976
+ u && !v ? /* @__PURE__ */ w.jsx(
16977
+ Cn,
16978
+ {
16979
+ "data-testid": "connector-available-request-new",
16980
+ onClick: () => {
16981
+ console.log("SSSSSSSSSSS"), y(!0);
16982
+ },
16983
+ children: T0
16984
+ }
16985
+ ) : null
16977
16986
  ] }),
16978
16987
  /* @__PURE__ */ w.jsx(m3, { variant: "body1", color: "rgba(108, 123, 148, 1)", children: c3 }),
16979
16988
  v ? /* @__PURE__ */ w.jsx(x3, {}) : /* @__PURE__ */ w.jsx(w.Fragment, { children: u ? /* @__PURE__ */ w.jsx(i3, {}) : /* @__PURE__ */ w.jsx(e_, { setModalState: y }) }),
package/index.umd.js CHANGED
@@ -682,7 +682,7 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
682
682
  `,q3=w.styled(w.icons.CalendarTodayOutlinedIcon)`
683
683
  height: 16px;
684
684
  width: 16px;
685
- `,ud=({isApiViewPage:e=!1,isSettingsPage:t=!1})=>{const{availableFeatures:n,sendTrackingEvent:r}=S.useContext(qt),{DETAILS_PAGE:o,AUTH_PAGE:i,CONNECTORS_PAGE_ADMIN_SIDE:a}=ET,l=t?i:e?o:a,s=Wp({"settings-page":t,"api-view-page":e}),[u,c]=S.useState(()=>{const y=localStorage.getItem(ld)==="true";return(t||!y)&&br(n,NE)});S.useEffect(()=>{localStorage.getItem(ld)==="true"&&!t&&c(!1)},[t]);const f=()=>{window.open(H3,"_blank"),r(tt.SCHEDULE_CALL_CLICKED,{source:l})},b=()=>{localStorage.setItem(ld,"true"),c(!1),r(tt.SCHEDULE_CALL_CROSS_CLICKED,{source:l})};return u?I.jsxs(X3,{direction:"row",className:s,children:[I.jsxs(Z3,{className:s,children:[I.jsxs("div",{children:[I.jsx(w.Typography,{color:w.theme.palette.gray.black,variant:"body2_medium",children:k3+(t?L3:"")}),I.jsx(w.Typography,{variant:"body2",children:F3})]}),I.jsxs(Y3,{onClick:f,variant:"outlined",size:"small",children:[I.jsx(q3,{}),M3]})]}),t?null:I.jsx("div",{className:"schedule-close",children:I.jsx(w.Tooltip,{title:"Close",placement:"bottom",children:I.jsx(w.IconButton,{onClick:b,children:I.jsx(U3,{})})})})]}):null},n0=()=>{const e=uo(),{connectorFunctions:t}=S.useContext(qt),[n,r]=S.useState(!1),[o,i]=S.useState(!1),a=qe(fm),l=qe(zh),s=qe(pm),u=!!a.length,c=!!l.length,{sendTrackingEvent:f}=S.useContext(qt),b=s===Ie.LOADING;S.useEffect(()=>{t&&(e(Xs(t.getInboxDetails)),e(Ys(t.getRoles)))},[t,e]),S.useEffect(()=>{e(Us()),e(Qs())},[e]);const y=d=>{r(d),i(!1),f(tt.REQUEST_NEW_CLICKED)},v=d=>{i(d),r(!1)};return I.jsxs(S3,{"data-testid":"connector-dashboard",children:[I.jsx(ud,{}),I.jsxs(T3,{children:[I.jsx(A3,{variant:"h2",children:x3}),u&&!b?I.jsx(w.Button,{"data-testid":"connector-available-request-new",onClick:()=>y(!0),children:nm}):null]}),I.jsx(_3,{variant:"body1",color:"rgba(108, 123, 148, 1)",children:C3}),b?I.jsx(P3,{}):I.jsx(I.Fragment,{children:u?I.jsx(m3,{}):I.jsx(fA,{setModalState:y})}),I.jsxs(w.Box,{marginTop:"32px",children:[c?I.jsxs(I.Fragment,{children:[I.jsx(O3,{variant:"h2",children:w3}),I.jsx(R3,{variant:"body1",color:w.theme.palette.gray.gray3,children:I3})]}):null,I.jsx(rA,{})]}),I.jsx(sd,{shown:o||n,setShown:o?v:y,isApi:o})]})},J3=w.styled(w.Box)`
685
+ `,ud=({isApiViewPage:e=!1,isSettingsPage:t=!1})=>{const{availableFeatures:n,sendTrackingEvent:r}=S.useContext(qt),{DETAILS_PAGE:o,AUTH_PAGE:i,CONNECTORS_PAGE_ADMIN_SIDE:a}=ET,l=t?i:e?o:a,s=Wp({"settings-page":t,"api-view-page":e}),[u,c]=S.useState(()=>{const y=localStorage.getItem(ld)==="true";return(t||!y)&&br(n,NE)});S.useEffect(()=>{localStorage.getItem(ld)==="true"&&!t&&c(!1)},[t]);const f=()=>{window.open(H3,"_blank"),r(tt.SCHEDULE_CALL_CLICKED,{source:l})},b=()=>{localStorage.setItem(ld,"true"),c(!1),r(tt.SCHEDULE_CALL_CROSS_CLICKED,{source:l})};return u?I.jsxs(X3,{direction:"row",className:s,children:[I.jsxs(Z3,{className:s,children:[I.jsxs("div",{children:[I.jsx(w.Typography,{color:w.theme.palette.gray.black,variant:"body2_medium",children:k3+(t?L3:"")}),I.jsx(w.Typography,{variant:"body2",children:F3})]}),I.jsxs(Y3,{onClick:f,variant:"outlined",size:"small",children:[I.jsx(q3,{}),M3]})]}),t?null:I.jsx("div",{className:"schedule-close",children:I.jsx(w.Tooltip,{title:"Close",placement:"bottom",children:I.jsx(w.IconButton,{onClick:b,children:I.jsx(U3,{})})})})]}):null},n0=()=>{const e=uo(),{connectorFunctions:t}=S.useContext(qt),[n,r]=S.useState(!1),[o,i]=S.useState(!1),a=qe(fm),l=qe(zh),s=qe(pm),u=!!a.length,c=!!l.length,{sendTrackingEvent:f}=S.useContext(qt),b=s===Ie.LOADING;S.useEffect(()=>{t&&(e(Xs(t.getInboxDetails)),e(Ys(t.getRoles)))},[t,e]),S.useEffect(()=>{e(Us()),e(Qs())},[e]);const y=(d,p=!1)=>{r(d),i(!1),p&&f(tt.REQUEST_NEW_CLICKED)},v=d=>{i(d),r(!1)};return I.jsxs(S3,{"data-testid":"connector-dashboard",children:[I.jsx(ud,{}),I.jsxs(T3,{children:[I.jsx(A3,{variant:"h2",children:x3}),u&&!b?I.jsx(w.Button,{"data-testid":"connector-available-request-new",onClick:()=>{console.log("SSSSSSSSSSS"),y(!0)},children:nm}):null]}),I.jsx(_3,{variant:"body1",color:"rgba(108, 123, 148, 1)",children:C3}),b?I.jsx(P3,{}):I.jsx(I.Fragment,{children:u?I.jsx(m3,{}):I.jsx(fA,{setModalState:y})}),I.jsxs(w.Box,{marginTop:"32px",children:[c?I.jsxs(I.Fragment,{children:[I.jsx(O3,{variant:"h2",children:w3}),I.jsx(R3,{variant:"body1",color:w.theme.palette.gray.gray3,children:I3})]}):null,I.jsx(rA,{})]}),I.jsx(sd,{shown:o||n,setShown:o?v:y,isApi:o})]})},J3=w.styled(w.Box)`
686
686
  box-sizing: border-box;
687
687
  background-color: #ffffff;
688
688
  width: 178px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-admin",
3
- "version": "3.0.4",
3
+ "version": "3.0.5-beta.0",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",