@hiver/connector-admin 1.5.3-beta.1 → 1.5.4

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 CHANGED
@@ -52765,7 +52765,7 @@ const YnA = (A) => {
52765
52765
  ] }, B)) });
52766
52766
  }, ZnA = S(ie)`
52767
52767
  width: 100%;
52768
- aspect-ratio: 16 / 9;
52768
+ aspect-ratio: ${({ aspectRatio: A }) => A};
52769
52769
  border-radius: 8px;
52770
52770
  overflow: hidden;
52771
52771
  cursor: pointer;
@@ -52787,10 +52787,10 @@ const YnA = (A) => {
52787
52787
  width: 40px;
52788
52788
  height: 40px;
52789
52789
  }
52790
- `, qnA = (A) => /* @__PURE__ */ y.createElement("svg", { width: 35, height: 35, viewBox: "0 0 35 35", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...A }, /* @__PURE__ */ y.createElement("rect", { x: 9, y: 9, width: 15, height: 17, fill: "white" }), /* @__PURE__ */ y.createElement("g", { clipPath: "url(#clip0_7787_114457)" }, /* @__PURE__ */ y.createElement("path", { d: "M17.1981 2.86633C9.28704 2.86633 2.86646 9.28691 2.86646 17.198C2.86646 25.1091 9.28704 31.5296 17.1981 31.5296C25.1092 31.5296 31.5298 25.1091 31.5298 17.198C31.5298 9.28691 25.1092 2.86633 17.1981 2.86633ZM14.3318 23.6472V10.7487L22.9308 17.198L14.3318 23.6472Z", fill: "#4D596C" })), /* @__PURE__ */ y.createElement("defs", null, /* @__PURE__ */ y.createElement("clipPath", { id: "clip0_7787_114457" }, /* @__PURE__ */ y.createElement("rect", { width: 34.396, height: 34.396, fill: "white" })))), KnA = (A) => {
52791
- const [e, t] = jA(!1);
52792
- return e ? null : /* @__PURE__ */ p.jsxs(ZnA, { children: [
52793
- /* @__PURE__ */ p.jsx("img", { className: "preview-img", onError: () => t(!0), ...A }),
52790
+ `, qnA = (A) => /* @__PURE__ */ y.createElement("svg", { width: 35, height: 35, viewBox: "0 0 35 35", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...A }, /* @__PURE__ */ y.createElement("rect", { x: 9, y: 9, width: 15, height: 17, fill: "white" }), /* @__PURE__ */ y.createElement("g", { clipPath: "url(#clip0_7787_114457)" }, /* @__PURE__ */ y.createElement("path", { d: "M17.1981 2.86633C9.28704 2.86633 2.86646 9.28691 2.86646 17.198C2.86646 25.1091 9.28704 31.5296 17.1981 31.5296C25.1092 31.5296 31.5298 25.1091 31.5298 17.198C31.5298 9.28691 25.1092 2.86633 17.1981 2.86633ZM14.3318 23.6472V10.7487L22.9308 17.198L14.3318 23.6472Z", fill: "#4D596C" })), /* @__PURE__ */ y.createElement("defs", null, /* @__PURE__ */ y.createElement("clipPath", { id: "clip0_7787_114457" }, /* @__PURE__ */ y.createElement("rect", { width: 34.396, height: 34.396, fill: "white" })))), KnA = ({ aspectRatio: A = "16 / 9", ...e }) => {
52791
+ const [t, n] = jA(!1);
52792
+ return t ? null : /* @__PURE__ */ p.jsxs(ZnA, { aspectRatio: A, children: [
52793
+ /* @__PURE__ */ p.jsx("img", { className: "preview-img", onError: () => n(!0), ...e }),
52794
52794
  /* @__PURE__ */ p.jsx(qnA, { className: "play-icon" })
52795
52795
  ] });
52796
52796
  }, JnA = S(Kf)`
@@ -54815,8 +54815,8 @@ const VrA = S(mA)`
54815
54815
  PATCH: "PATCH",
54816
54816
  PUT: "PUT"
54817
54817
  }, xoA = async (A) => {
54818
- const e = new URLSearchParams(), { inboxIds: t, channelType: n } = A || {};
54819
- return t && t.forEach((r) => e.append("inbox_ids", r)), n && e.append("channel_type", n), an({
54818
+ const e = new URLSearchParams(), { inboxIds: t, channelType: n, conversationId: r } = A || {};
54819
+ return t && t.forEach((o) => e.append("inbox_ids", o)), n && e.append("channel_type", n), r && e.append("conversation_id", r), an({
54820
54820
  url: `${QoA}?${e.toString()}`,
54821
54821
  method: doA.GET
54822
54822
  });
package/index.umd.js CHANGED
@@ -2992,7 +2992,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2992
2992
  }
2993
2993
  `,u7=({formConfig:A,icons:e,selectChangeHandler:t,inputChangeHandler:n,dateChangeHandler:r,predicates:o,values:s,validations:a,onValidationError:g,sectionSpacing:C=3,fieldsSpacing:l=3,labelSpacing:c=1,fetchConfig:E})=>{const d=B=>(u,I)=>{t==null||t(u,I,B)};return p.jsx(LnA,{spacing:C,children:A.map(({id:B,title:u,formFields:I})=>p.jsxs(y.Fragment,{children:[u?p.jsx(jA,{variant:"h3",className:"authform__section-title",children:u}):null,p.jsx(mA,{useFlexGap:!0,spacing:l,children:I.map(Q=>{var m,h;return o&&typeof o=="object"&&Q.name in o&&o[Q.name]===!1?null:p.jsx(FnA,{value:s==null?void 0:s[Q.name],...Q,selectChangeHandler:d(Q),inputChangeHandler:n,dateChangeHandler:r,validation:a==null?void 0:a[Q.name],onValidationError:g,iconData:e==null?void 0:e[Q.name],labelSpacing:c,loadOptions:(m=E==null?void 0:E[Q.name])==null?void 0:m.loadOptions},((h=E==null?void 0:E[Q.name])==null?void 0:h.key)||Q.name)})})]},B))})},knA=S(re)`
2994
2994
  width: 100%;
2995
- aspect-ratio: 16 / 9;
2995
+ aspect-ratio: ${({aspectRatio:A})=>A};
2996
2996
  border-radius: 8px;
2997
2997
  overflow: hidden;
2998
2998
  cursor: pointer;
@@ -3014,7 +3014,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3014
3014
  width: 40px;
3015
3015
  height: 40px;
3016
3016
  }
3017
- `,SnA=A=>w.createElement("svg",{width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},w.createElement("rect",{x:9,y:9,width:15,height:17,fill:"white"}),w.createElement("g",{clipPath:"url(#clip0_7787_114457)"},w.createElement("path",{d:"M17.1981 2.86633C9.28704 2.86633 2.86646 9.28691 2.86646 17.198C2.86646 25.1091 9.28704 31.5296 17.1981 31.5296C25.1092 31.5296 31.5298 25.1091 31.5298 17.198C31.5298 9.28691 25.1092 2.86633 17.1981 2.86633ZM14.3318 23.6472V10.7487L22.9308 17.198L14.3318 23.6472Z",fill:"#4D596C"})),w.createElement("defs",null,w.createElement("clipPath",{id:"clip0_7787_114457"},w.createElement("rect",{width:34.396,height:34.396,fill:"white"})))),NnA=A=>{const[e,t]=y.useState(!1);return e?null:p.jsxs(knA,{children:[p.jsx("img",{className:"preview-img",onError:()=>t(!0),...A}),p.jsx(SnA,{className:"play-icon"})]})},UnA=S($u)`
3017
+ `,SnA=A=>w.createElement("svg",{width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},w.createElement("rect",{x:9,y:9,width:15,height:17,fill:"white"}),w.createElement("g",{clipPath:"url(#clip0_7787_114457)"},w.createElement("path",{d:"M17.1981 2.86633C9.28704 2.86633 2.86646 9.28691 2.86646 17.198C2.86646 25.1091 9.28704 31.5296 17.1981 31.5296C25.1092 31.5296 31.5298 25.1091 31.5298 17.198C31.5298 9.28691 25.1092 2.86633 17.1981 2.86633ZM14.3318 23.6472V10.7487L22.9308 17.198L14.3318 23.6472Z",fill:"#4D596C"})),w.createElement("defs",null,w.createElement("clipPath",{id:"clip0_7787_114457"},w.createElement("rect",{width:34.396,height:34.396,fill:"white"})))),NnA=({aspectRatio:A="16 / 9",...e})=>{const[t,n]=y.useState(!1);return t?null:p.jsxs(knA,{aspectRatio:A,children:[p.jsx("img",{className:"preview-img",onError:()=>n(!0),...e}),p.jsx(SnA,{className:"play-icon"})]})},UnA=S($u)`
3018
3018
  box-shadow: none;
3019
3019
  margin: 24px 0 0 0;
3020
3020
  background: none;
@@ -4108,4 +4108,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4108
4108
  align-self: auto !important;
4109
4109
  margin-left: 12px;
4110
4110
  }
4111
- `,noA=({basename:A,baseUrls:e,extraParams:t={},availableFeatures:n={}})=>{const r=Rs();return p.jsx(AoA,{children:p.jsx(GY,{baseUrls:e,availableFeatures:n,extraParams:t,children:lX(n)?p.jsx($rA,{availableFeatures:n}):p.jsxs(p.Fragment,{children:[p.jsx(RrA,{basename:A,metaData:t.metaData,userId:r}),Xt.createPortal(p.jsx(toA,{id:"toast-message",children:p.jsx(z7,{position:"bottom-left",autoClose:5e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!0,rtl:!1,draggable:!0,pauseOnHover:!0})}),document.body)]})})})},roA="/v1/api"+"/templates/metadata",ooA={GET:"GET",POST:"POST",DELETE:"DELETE",PATCH:"PATCH",PUT:"PUT"},ioA=async A=>{const e=new URLSearchParams,{inboxIds:t,channelType:n}=A||{};return t&&t.forEach(r=>e.append("inbox_ids",r)),n&&e.append("channel_type",n),en({url:`${roA}?${e.toString()}`,method:ooA.GET})};Nt.ConnectorsApp=noA,Nt.getMetaData=ioA,Nt.setAppConfig=BX,Nt.setAppUgId=dX,Nt.setAppUserId=QX,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})});
4111
+ `,noA=({basename:A,baseUrls:e,extraParams:t={},availableFeatures:n={}})=>{const r=Rs();return p.jsx(AoA,{children:p.jsx(GY,{baseUrls:e,availableFeatures:n,extraParams:t,children:lX(n)?p.jsx($rA,{availableFeatures:n}):p.jsxs(p.Fragment,{children:[p.jsx(RrA,{basename:A,metaData:t.metaData,userId:r}),Xt.createPortal(p.jsx(toA,{id:"toast-message",children:p.jsx(z7,{position:"bottom-left",autoClose:5e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!0,rtl:!1,draggable:!0,pauseOnHover:!0})}),document.body)]})})})},roA="/v1/api"+"/templates/metadata",ooA={GET:"GET",POST:"POST",DELETE:"DELETE",PATCH:"PATCH",PUT:"PUT"},ioA=async A=>{const e=new URLSearchParams,{inboxIds:t,channelType:n,conversationId:r}=A||{};return t&&t.forEach(o=>e.append("inbox_ids",o)),n&&e.append("channel_type",n),r&&e.append("conversation_id",r),en({url:`${roA}?${e.toString()}`,method:ooA.GET})};Nt.ConnectorsApp=noA,Nt.getMetaData=ioA,Nt.setAppConfig=BX,Nt.setAppUgId=dX,Nt.setAppUserId=QX,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-admin",
3
- "version": "1.5.3-beta.1",
3
+ "version": "1.5.4",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",