@bikdotai/bik-component-library 0.0.700-beta.4 → 0.0.700-beta.5

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.
@@ -8,4 +8,4 @@
8
8
  height: ${e=>e.isWhatsappCarousel?"100%":"auto"};
9
9
  `,c=d.default(a.TitleRegular)`
10
10
  color: ${o.COLORS.content.primary};
11
- `;exports.WhatsappLikePreviewV2=s=>{const{hideDeviceContainerInPreview:i}=r.useTemplateModalContext();return 3===x.getPreviewPropLen(s)?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:s.zeroStateComponent}):i?e.jsxRuntimeExports.jsx(u.ChatUIV2,Object.assign({showHeader:s.showHeader},s)):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsxs(m,Object.assign({style:s.containerStyle,showHeader:s.showHeader,isWhatsappCarousel:s.isWhatsappCarousel},{children:[s.showHeader&&e.jsxRuntimeExports.jsx(p.default,{}),e.jsxRuntimeExports.jsxs("div",Object.assign({style:{padding:"small"===s.size?"12px 32px 12px 12px":`16px ${s.isWhatsappCarousel?"0px":"56px"} ${s.isWhatsappCarousel?"2px":"16px"} 16px`,height:"100%",overflowY:"auto"}},{children:[!s.hidePreviewText&&e.jsxRuntimeExports.jsx("div",Object.assign({style:{marginBottom:16}},{children:e.jsxRuntimeExports.jsx(c,{children:"Preview"})})),e.jsxRuntimeExports.jsx(u.ChatUIV2,Object.assign({showHeader:s.showHeader},s)),s.showCallPermissionCard&&e.jsxRuntimeExports.jsx("div",Object.assign({style:{marginTop:16}},{children:e.jsxRuntimeExports.jsx(u.ChatUIV2,Object.assign({hideFooter:!0,headerMediaType:n.HEADER_TYPES.NONE,textType:"html",isPreview:!0,zeroStateComponent:e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{}),buttons:[{text:"Choose preference",type:"CALL_PERMISSION",flowId:"",flowName:""}]},{children:e.jsxRuntimeExports.jsxs("div",Object.assign({style:{margin:"4px",marginTop:"-4px",backgroundColor:o.BASE_COLORS.grayscale[50],borderRadius:"6px"}},{children:[e.jsxRuntimeExports.jsxs(u.HtmlContainer,Object.assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[e.jsxRuntimeExports.jsx(t.default,{width:30,height:30}),e.jsxRuntimeExports.jsx(a.TitleSmall,{children:s.callPermissionText?`Can Make ${s.callPermissionText} you?`:'Can Make "Merchant Name" call you?'})]})),e.jsxRuntimeExports.jsxs(l.FooterWrapper,{children:[e.jsxRuntimeExports.jsx(l.FooterText,{style:{flex:1}}),e.jsxRuntimeExports.jsx(l.TimeStamp,{children:"16:48"})]})]}))}))}))]}))]}))})};
11
+ `;exports.WhatsappLikePreviewV2=s=>{const{hideDeviceContainerInPreview:i}=r.useTemplateModalContext();return 3===x.getPreviewPropLen(s)?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:s.zeroStateComponent}):i?e.jsxRuntimeExports.jsx(u.ChatUIV2,Object.assign({showHeader:s.showHeader},s)):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsxs(m,Object.assign({style:s.containerStyle,showHeader:s.showHeader,isWhatsappCarousel:s.isWhatsappCarousel},{children:[s.showHeader&&e.jsxRuntimeExports.jsx(p.default,{}),e.jsxRuntimeExports.jsxs("div",Object.assign({style:{padding:"small"===s.size?"12px 32px 12px 12px":`16px ${s.isWhatsappCarousel?"0px":"56px"} ${s.isWhatsappCarousel?"2px":"16px"} 16px`,height:"100%",overflowY:"auto"}},{children:[!s.hidePreviewText&&e.jsxRuntimeExports.jsx("div",Object.assign({style:{marginBottom:16}},{children:e.jsxRuntimeExports.jsx(c,{children:"Preview"})})),e.jsxRuntimeExports.jsx(u.ChatUIV2,Object.assign({showHeader:s.showHeader},s)),s.showCallPermissionCard&&e.jsxRuntimeExports.jsx("div",Object.assign({style:{marginTop:16}},{children:e.jsxRuntimeExports.jsx(u.ChatUIV2,Object.assign({hideFooter:!0,headerMediaType:n.HEADER_TYPES.NONE,textType:"html",isPreview:s.isPreview,zeroStateComponent:e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{}),buttons:[{text:"Choose preference",type:"CALL_PERMISSION",flowId:"",flowName:""}]},{children:e.jsxRuntimeExports.jsxs("div",Object.assign({style:{margin:"4px",marginTop:"-4px",backgroundColor:o.BASE_COLORS.grayscale[50],borderRadius:"6px"}},{children:[e.jsxRuntimeExports.jsxs(u.HtmlContainer,Object.assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[e.jsxRuntimeExports.jsx(t.default,{width:30,height:30}),e.jsxRuntimeExports.jsx(a.TitleSmall,{children:s.callPermissionText?`${s.callPermissionText}`:'Can Make "Merchant Name" call you?'})]})),e.jsxRuntimeExports.jsxs(l.FooterWrapper,{children:[e.jsxRuntimeExports.jsx(l.FooterText,{style:{flex:1}}),e.jsxRuntimeExports.jsx(l.TimeStamp,{children:"16:48"})]})]}))}))}))]}))]}))})};
@@ -8,4 +8,4 @@ import{j as e}from"../../../node_modules/react/jsx-runtime.js";import s from"../
8
8
  height: ${e=>e.isWhatsappCarousel?"100%":"auto"};
9
9
  `,y=t(a)`
10
10
  color: ${n.content.primary};
11
- `,C=t=>{const{hideDeviceContainerInPreview:o}=r();return 3===m(t)?e.jsx(e.Fragment,{children:t.zeroStateComponent}):o?e.jsx(j,Object.assign({showHeader:t.showHeader},t)):e.jsx(e.Fragment,{children:e.jsxs(u,Object.assign({style:t.containerStyle,showHeader:t.showHeader,isWhatsappCarousel:t.isWhatsappCarousel},{children:[t.showHeader&&e.jsx(d,{}),e.jsxs("div",Object.assign({style:{padding:"small"===t.size?"12px 32px 12px 12px":`16px ${t.isWhatsappCarousel?"0px":"56px"} ${t.isWhatsappCarousel?"2px":"16px"} 16px`,height:"100%",overflowY:"auto"}},{children:[!t.hidePreviewText&&e.jsx("div",Object.assign({style:{marginBottom:16}},{children:e.jsx(y,{children:"Preview"})})),e.jsx(j,Object.assign({showHeader:t.showHeader},t)),t.showCallPermissionCard&&e.jsx("div",Object.assign({style:{marginTop:16}},{children:e.jsx(j,Object.assign({hideFooter:!0,headerMediaType:l.NONE,textType:"html",isPreview:!0,zeroStateComponent:e.jsx(e.Fragment,{}),buttons:[{text:"Choose preference",type:"CALL_PERMISSION",flowId:"",flowName:""}]},{children:e.jsxs("div",Object.assign({style:{margin:"4px",marginTop:"-4px",backgroundColor:p.grayscale[50],borderRadius:"6px"}},{children:[e.jsxs(g,Object.assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[e.jsx(s,{width:30,height:30}),e.jsx(i,{children:t.callPermissionText?`Can Make ${t.callPermissionText} you?`:'Can Make "Merchant Name" call you?'})]})),e.jsxs(c,{children:[e.jsx(h,{style:{flex:1}}),e.jsx(x,{children:"16:48"})]})]}))}))}))]}))]}))})};export{C as WhatsappLikePreviewV2};
11
+ `,C=t=>{const{hideDeviceContainerInPreview:o}=r();return 3===m(t)?e.jsx(e.Fragment,{children:t.zeroStateComponent}):o?e.jsx(j,Object.assign({showHeader:t.showHeader},t)):e.jsx(e.Fragment,{children:e.jsxs(u,Object.assign({style:t.containerStyle,showHeader:t.showHeader,isWhatsappCarousel:t.isWhatsappCarousel},{children:[t.showHeader&&e.jsx(d,{}),e.jsxs("div",Object.assign({style:{padding:"small"===t.size?"12px 32px 12px 12px":`16px ${t.isWhatsappCarousel?"0px":"56px"} ${t.isWhatsappCarousel?"2px":"16px"} 16px`,height:"100%",overflowY:"auto"}},{children:[!t.hidePreviewText&&e.jsx("div",Object.assign({style:{marginBottom:16}},{children:e.jsx(y,{children:"Preview"})})),e.jsx(j,Object.assign({showHeader:t.showHeader},t)),t.showCallPermissionCard&&e.jsx("div",Object.assign({style:{marginTop:16}},{children:e.jsx(j,Object.assign({hideFooter:!0,headerMediaType:l.NONE,textType:"html",isPreview:t.isPreview,zeroStateComponent:e.jsx(e.Fragment,{}),buttons:[{text:"Choose preference",type:"CALL_PERMISSION",flowId:"",flowName:""}]},{children:e.jsxs("div",Object.assign({style:{margin:"4px",marginTop:"-4px",backgroundColor:p.grayscale[50],borderRadius:"6px"}},{children:[e.jsxs(g,Object.assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[e.jsx(s,{width:30,height:30}),e.jsx(i,{children:t.callPermissionText?`${t.callPermissionText}`:'Can Make "Merchant Name" call you?'})]})),e.jsxs(c,{children:[e.jsx(h,{style:{flex:1}}),e.jsx(x,{children:"16:48"})]})]}))}))}))]}))]}))})};export{C as WhatsappLikePreviewV2};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.700-beta.4",
3
+ "version": "0.0.700-beta.5",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",