@bikdotai/bik-component-library 0.0.702 → 0.0.703-beta.1
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/dist/cjs/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/EVENTS/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/IG/components/IGTrigger.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts +2 -2
- package/dist/cjs/components/bik-layout/BikHeader.d.ts +1 -0
- package/dist/cjs/components/bik-layout/BikHeader.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.d.ts +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.d.ts +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js +1 -1
- package/dist/cjs/components/template-context-mapper/styles/TemplateAnalyticsStyles.d.ts +3 -1
- package/dist/cjs/components/template-context-mapper/styles/TemplateAnalyticsStyles.js +6 -5
- package/dist/cjs/components/template-context-mapper/utils/TemplateConstants.d.ts +13 -3
- package/dist/cjs/components/template-context-mapper/utils/TemplateConstants.js +1 -1
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.d.ts +3 -1
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.js +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/EVENTS/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/IG/components/IGTrigger.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts +2 -2
- package/dist/esm/components/bik-layout/BikHeader.d.ts +1 -0
- package/dist/esm/components/bik-layout/BikHeader.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.d.ts +1 -0
- package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.d.ts +1 -0
- package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js +1 -1
- package/dist/esm/components/template-context-mapper/styles/TemplateAnalyticsStyles.d.ts +3 -1
- package/dist/esm/components/template-context-mapper/styles/TemplateAnalyticsStyles.js +6 -5
- package/dist/esm/components/template-context-mapper/utils/TemplateConstants.d.ts +13 -3
- package/dist/esm/components/template-context-mapper/utils/TemplateConstants.js +1 -1
- package/dist/esm/components/template-preview/models/WhatsAppTemplate.d.ts +3 -1
- package/dist/esm/components/template-preview/models/WhatsAppTemplate.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const EventsTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default EventsTrigger;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const IGTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default IGTrigger;
|
package/dist/cjs/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownOption } from "../../../dropdown/type";
|
|
3
|
-
import { QueryBuilderProperty } from "../../
|
|
4
|
-
import { QueryBuilderNodeProps } from "../../
|
|
3
|
+
import { QueryBuilderProperty } from "../../Types/QueryBuilder.type";
|
|
4
|
+
import { QueryBuilderNodeProps } from "../../Types/QueryBuilderNodeProps.type";
|
|
5
5
|
declare const BaseTriggerQueryBuilderNode: React.FC<QueryBuilderNodeProps & {
|
|
6
6
|
cacheKey: string;
|
|
7
7
|
propertyAddBtnText: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/react/jsx-runtime.js"),s=require("../../assets/icons/arrow_left.svg.js"),t=require("react"),r=require("../curtain/Curtain.js"),i=require("../TypographyStyle.js"),n=require("./CommonStyles.js");exports.BikHeader=x=>{const{header:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/react/jsx-runtime.js"),s=require("../../assets/icons/arrow_left.svg.js"),t=require("react"),r=require("../curtain/Curtain.js"),i=require("../TypographyStyle.js"),n=require("./CommonStyles.js");exports.BikHeader=x=>{const{header:a,subHeader:o,hideBackButton:u=!0,rightActionButton:j,onClickingBackButton:c,secondaryHeader:d,curtainProps:l,curtainZIndex:m,headerStyles:p,leftLayout:h,dataTest:R}=x,[g,E]=t.useState(!!l);return e.jsxRuntimeExports.jsxs(n.BikHeaderWrapper,Object.assign({style:Object.assign({},p),"data-test":R},{children:[e.jsxRuntimeExports.jsxs(n.BikHeaderContainer,{children:[h?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[!u&&e.jsxRuntimeExports.jsx(s.default,{className:"cursor",height:24,width:24,onClick:c}),h]}):e.jsxRuntimeExports.jsxs("div",Object.assign({className:"row--flex left-container"},{children:[!u&&e.jsxRuntimeExports.jsx(s.default,{className:"cursor",height:24,width:24,onClick:c}),e.jsxRuntimeExports.jsxs("div",{children:[o?e.jsxRuntimeExports.jsx(i.BodyCaption,Object.assign({className:"brand"},{children:a})):e.jsxRuntimeExports.jsx(i.TitleMedium,{children:a}),e.jsxRuntimeExports.jsx(i.TitleRegular,{children:o})]})]})),e.jsxRuntimeExports.jsx("div",Object.assign({className:"row--flex right-container"},{children:j}))]}),g&&l&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",Object.assign({style:{position:"sticky",top:0,width:"auto",zIndex:m||6}},{children:e.jsxRuntimeExports.jsx(r.Curtain,Object.assign({},l,{onCloseHandler:()=>{E(!1)}}))})),e.jsxRuntimeExports.jsx("div",{style:{height:20}})]}),null!=d?d:e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})]}))};
|
package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const TemplateAnalyticsComponent: (props: TemplateAnalyticsCompon
|
|
|
3
3
|
export declare const RightPanelTemplateAnalytics: (props: {
|
|
4
4
|
analyticsData: TemplateAnalyticsDataI;
|
|
5
5
|
skipTitle?: boolean;
|
|
6
|
+
fullWidth?: boolean;
|
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export declare const AnalyticsItem: (props: {
|
|
8
9
|
icon: React.ElementType;
|
package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/react/jsx-runtime.js"),t=require("../../../assets/icons/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/react/jsx-runtime.js"),t=require("../../../assets/icons/click.svg.js"),s=require("react"),n=require("../../modals/styledModal.js"),i=require("../../tag/Tag.js"),l=require("../../template-preview/models/WhatsAppTemplate.js"),a=require("../../TypographyStyle.js"),r=require("../../../constants/Theme.js"),o=require("../styles/TemplateAnalyticsStyles.js"),c=require("../utils/TemplateConstants.js"),u=require("./TemplateAnalyticsSkeleton.js");const x=s=>{const{analyticsData:n,skipTitle:i,fullWidth:l}=s;return e.jsxRuntimeExports.jsxs(o.RightPanelContainer,Object.assign({fullWidth:l},{children:[i?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{}):e.jsxRuntimeExports.jsx(a.TitleSmall,{children:"Here are your template's delivery & engagement stats for the last 30 days"}),e.jsxRuntimeExports.jsx("div",Object.assign({className:"mt-3"},{children:c.ANALYTICS_ENGAGEMENT_MAP.map(((t,s)=>e.jsxRuntimeExports.jsx(d,{icon:t.icon,title:t.title,value:n[t.valName]||0,percentValue:t.percentValName?n[t.percentValName]:null},s)))})),(null==n?void 0:n.clickAnalytics)&&Object.keys(null==n?void 0:n.clickAnalytics)&&Object.keys(null==n?void 0:n.clickAnalytics).length?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(a.TitleSmall,Object.assign({color:r.COLORS.content.secondary},{children:"Clicked"})),e.jsxRuntimeExports.jsx("div",Object.assign({className:"mt-3"},{children:Object.entries(n.clickAnalytics).map(((s,n)=>{let[i,l]=s;return e.jsxRuntimeExports.jsx(d,{icon:t.default,title:i,value:l.totalClicks||0,percentValue:l.clickPercentage},n)}))}))]}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})]}))},d=t=>{const{icon:s,title:n,value:l,percentValue:c}=t;return e.jsxRuntimeExports.jsxs("div",Object.assign({className:"each--analytics--container"},{children:[e.jsxRuntimeExports.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[e.jsxRuntimeExports.jsx("div",Object.assign({className:"each--icon--container"},{children:e.jsxRuntimeExports.jsx(s,{width:"16px",height:"16px",color:r.COLORS.background.brand})})),e.jsxRuntimeExports.jsx(a.Caption,{children:n})]})),e.jsxRuntimeExports.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[c?e.jsxRuntimeExports.jsx(i.Tag,{tagText:`${c}%`||0,theme:"light",type:"neutral"}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{}),e.jsxRuntimeExports.jsx(o.CustomTitleMedium,{children:l})]}))]}))};exports.AnalyticsItem=d,exports.RightPanelTemplateAnalytics=x,exports.TemplateAnalyticsComponent=t=>{const{templateAnalytics:i,onClose:d,onProceed:j,onCancel:p,headingTitle:m,headingSubtitle:E,templateId:T}=t,{templateQuality:y=l.TEMPLATE_QUALITY.GREEN,fetchAnalytics:g}=i||{},{Icon:h,title:R,subline:b,sublineTextType:A,sublineColor:O}=c.TEMPLATE_QUALITY_MAP[y||l.TEMPLATE_QUALITY.GREEN],[C,L]=s.useState((null==t?void 0:t.analyticsData)||{}),[N,k]=s.useState(!0);s.useEffect((()=>{(null==t?void 0:t.analyticsData)?k(!1):null==g||g(T||"").then((e=>{e.analytics&&L(e.analytics),k(!1)}))}),[]);const v=s.useMemo((()=>y===l.TEMPLATE_QUALITY.GREEN?{primaryButton:{buttonText:"Proceed with selection",buttonType:"primary",onClick:j,disabled:N},secondaryButton:{buttonText:"Cancel",buttonType:"tertiaryGray",onClick:()=>{null==d||d(),null==p||p()},disabled:N}}:{primaryButton:{buttonText:"Cancel",buttonType:"primary",onClick:()=>{null==d||d(),null==p||p()},disabled:N},secondaryButton:{buttonText:"Proceed with selection",buttonType:"secondary",onClick:j,disabled:N}}),[y,N]),S=A||a.Caption;return e.jsxRuntimeExports.jsx(n.StyledModal,Object.assign({open:!0,headingTitle:m,tintedHeader:!0,modalHeaderStyles:{backgroundColor:r.COLORS.surface.subdued},onBackPress:()=>{null==d||d()},headingSubtitle:E,footerShadow:!0,primaryButton:v.primaryButton,secondaryButton:v.secondaryButton,onClose:()=>{null==d||d()},width:"700px"},{children:e.jsxRuntimeExports.jsxs(o.TemplateContainer,{children:[y!=l.TEMPLATE_QUALITY.UNKNOWN&&e.jsxRuntimeExports.jsx(o.LeftPanelContainer,{children:e.jsxRuntimeExports.jsxs("div",Object.assign({className:"inside--container"},{children:[e.jsxRuntimeExports.jsx("div",Object.assign({className:"icon--container",style:{background:y===l.TEMPLATE_QUALITY.GREEN?r.COLORS.background.positive.light:r.COLORS.background.warning.light}},{children:e.jsxRuntimeExports.jsx(h,{width:40,height:40,color:y===l.TEMPLATE_QUALITY.GREEN?r.COLORS.content.positive:r.COLORS.content.warning})})),R&&e.jsxRuntimeExports.jsx(a.TitleRegular,Object.assign({style:{textAlign:"center"}},{children:R})),e.jsxRuntimeExports.jsx(S,Object.assign({style:{textAlign:"center",color:O||r.COLORS.content.primary}},{children:b}))]}))}),N?e.jsxRuntimeExports.jsx(u.TemplateAnalyticsSkeleton,{fullWidth:y===l.TEMPLATE_QUALITY.UNKNOWN}):e.jsxRuntimeExports.jsx(x,{analyticsData:C,skipTitle:y==l.TEMPLATE_QUALITY.GREEN,fullWidth:y===l.TEMPLATE_QUALITY.UNKNOWN})]})}))};
|
package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../../node_modules/react/jsx-runtime.js"),e=require("../../shimmer/ShimmerComponent/BikShimmer.js"),t=require("../styles/TemplateAnalyticsStyles.js");const i=()=>s.jsxRuntimeExports.jsxs("div",Object.assign({className:"each--analytics--container"},{children:[s.jsxRuntimeExports.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"24px",height:"24px"}]}),s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"69px",height:"11px"}]})]})),s.jsxRuntimeExports.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"43px",height:"18px"}]}),s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"69px",height:"28px"}]})]}))]}));exports.TemplateAnalyticsSkeleton=x=>{const{skipTitleShimmer:r}=x;return s.jsxRuntimeExports.jsxs(t.RightPanelContainer,{children:[s.jsxRuntimeExports.jsx("div",{children:r?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{}):s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"76px",height:"18px"}]})}),s.jsxRuntimeExports.jsx("div",Object.assign({className:"mt-3"},{children:[0,1,2].map((e=>s.jsxRuntimeExports.jsx(i,{},e)))})),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"76px",height:"18px"}]})}),s.jsxRuntimeExports.jsx("div",Object.assign({className:"mt-3"},{children:s.jsxRuntimeExports.jsx(i,{})}))]})]})};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../../node_modules/react/jsx-runtime.js"),e=require("../../shimmer/ShimmerComponent/BikShimmer.js"),t=require("../styles/TemplateAnalyticsStyles.js");const i=()=>s.jsxRuntimeExports.jsxs("div",Object.assign({className:"each--analytics--container"},{children:[s.jsxRuntimeExports.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"24px",height:"24px"}]}),s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"69px",height:"11px"}]})]})),s.jsxRuntimeExports.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"43px",height:"18px"}]}),s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"69px",height:"28px"}]})]}))]}));exports.TemplateAnalyticsSkeleton=x=>{const{skipTitleShimmer:r,fullWidth:n}=x;return s.jsxRuntimeExports.jsxs(t.RightPanelContainer,Object.assign({fullWidth:n},{children:[s.jsxRuntimeExports.jsx("div",{children:r?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{}):s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"76px",height:"18px"}]})}),s.jsxRuntimeExports.jsx("div",Object.assign({className:"mt-3"},{children:[0,1,2].map((e=>s.jsxRuntimeExports.jsx(i,{},e)))})),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsx(e.BikShimmer,{boxes:[{width:"76px",height:"18px"}]})}),s.jsxRuntimeExports.jsx("div",Object.assign({className:"mt-3"},{children:s.jsxRuntimeExports.jsx(i,{})}))]})]}))};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const TemplateContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const RightPanelContainer: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
export declare const RightPanelContainer: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
fullWidth?: boolean | undefined;
|
|
4
|
+
}, never>;
|
|
3
5
|
export declare const LeftPanelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
6
|
export declare const CustomTitleMedium: import("styled-components").StyledComponent<"div", any, {
|
|
5
7
|
numberOfLines?: number | undefined;
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 16px 0px;
|
|
4
4
|
`,o=r.default.div`
|
|
5
|
-
max-width: 450px;
|
|
5
|
+
max-width: ${e=>e.fullWidth?"none":"450px"};
|
|
6
6
|
height: 456px;
|
|
7
7
|
min-width: 358px;
|
|
8
8
|
overflow-y: auto;
|
|
9
|
-
border-left: ${i.COLORS.stroke.primary} 1px solid;
|
|
9
|
+
border-left: ${e=>e.fullWidth?"none":`${i.COLORS.stroke.primary} 1px solid`};
|
|
10
10
|
padding: 0px 23px 32px 23px;
|
|
11
11
|
gap: 16px;
|
|
12
|
+
${e=>e.fullWidth&&"flex: 1;"}
|
|
12
13
|
.each--analytics--container {
|
|
13
14
|
border: 1px solid ${i.COLORS.background.inactive};
|
|
14
15
|
border-radius: 8px;
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
.align--center {
|
|
32
33
|
align-items: center;
|
|
33
34
|
}
|
|
34
|
-
`,
|
|
35
|
+
`,d=r.default.div`
|
|
35
36
|
padding: 0px 23px 32px 23px;
|
|
36
37
|
flex: 1;
|
|
37
38
|
height: 456px;
|
|
@@ -55,9 +56,9 @@
|
|
|
55
56
|
align-items: center;
|
|
56
57
|
justify-content: center;
|
|
57
58
|
}
|
|
58
|
-
`,
|
|
59
|
+
`,l=r.default(t.TitleMedium)`
|
|
59
60
|
white-space: nowrap;
|
|
60
61
|
max-width: 161px;
|
|
61
62
|
overflow: hidden;
|
|
62
63
|
text-overflow: ellipsis;
|
|
63
|
-
`;exports.CustomTitleMedium=
|
|
64
|
+
`;exports.CustomTitleMedium=l,exports.LeftPanelContainer=d,exports.RightPanelContainer=o,exports.TemplateContainer=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const TEMPLATE_QUALITY_MAP: {
|
|
3
3
|
YELLOW: {
|
|
4
|
-
|
|
4
|
+
Icon: import("react").FunctionComponent<import("react").SVGAttributes<SVGElement>>;
|
|
5
5
|
title: string;
|
|
6
6
|
sublineTextType: import("styled-components").StyledComponent<"div", any, {
|
|
7
7
|
numberOfLines?: number | undefined;
|
|
@@ -11,7 +11,7 @@ export declare const TEMPLATE_QUALITY_MAP: {
|
|
|
11
11
|
subline: string;
|
|
12
12
|
};
|
|
13
13
|
RED: {
|
|
14
|
-
|
|
14
|
+
Icon: import("react").FunctionComponent<import("react").SVGAttributes<SVGElement>>;
|
|
15
15
|
title: string;
|
|
16
16
|
sublineTextType: import("styled-components").StyledComponent<"div", any, {
|
|
17
17
|
numberOfLines?: number | undefined;
|
|
@@ -21,7 +21,17 @@ export declare const TEMPLATE_QUALITY_MAP: {
|
|
|
21
21
|
subline: string;
|
|
22
22
|
};
|
|
23
23
|
GREEN: {
|
|
24
|
-
|
|
24
|
+
Icon: import("react").FunctionComponent<import("react").SVGAttributes<SVGElement>>;
|
|
25
|
+
title: string;
|
|
26
|
+
sublineTextType: import("styled-components").StyledComponent<"div", any, {
|
|
27
|
+
numberOfLines?: number | undefined;
|
|
28
|
+
color?: string | undefined;
|
|
29
|
+
}, never>;
|
|
30
|
+
sublineColor: string;
|
|
31
|
+
subline: string;
|
|
32
|
+
};
|
|
33
|
+
UNKNOWN: {
|
|
34
|
+
Icon: import("react").FunctionComponent<import("react").SVGAttributes<SVGElement>>;
|
|
25
35
|
title: string;
|
|
26
36
|
sublineTextType: import("styled-components").StyledComponent<"div", any, {
|
|
27
37
|
numberOfLines?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../assets/icons/alert_triangle.svg.js"),t=require("../../../assets/icons/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../assets/icons/alert_triangle.svg.js"),t=require("../../../assets/icons/check.svg.js"),a=require("../../../assets/icons/send_template.svg.js"),i=require("../../../assets/icons/tick.svg.js"),r=require("../../../assets/icons/tick_double.svg.js");require("../../template-preview/TemplatePreview.js"),require("../../template-preview/WhatsApp/WhatsAppLikePreview.js"),require("../../template-preview/WhatsApp/WhatsAppLikePreviewV2.js");var n=require("../../../constants/Theme.js");require("../../curtain/CurtainHelper.js"),require("../../variable-picker-v3/model.js"),require("../../template-preview/models/TemplateMeta.js");var s=require("../../template-preview/models/WhatsAppTemplate.js");require("../../template-preview/models/Channels.js");var o=require("../../TypographyStyle.js");const l={[s.TEMPLATE_QUALITY.YELLOW]:{Icon:e.default,title:"Medium quality template",sublineTextType:o.Caption,sublineColor:n.COLORS.content.secondary,subline:"Meta has downgraded this template to a medium-quality rating due to negative feedback from multiple customers or low read rates. We recommend improving its content or choosing a different template to enhance delivery and engagement in your next campaign"},[s.TEMPLATE_QUALITY.RED]:{Icon:e.default,title:"Low quality template",sublineTextType:o.Caption,sublineColor:n.COLORS.content.secondary,subline:"Meta has downgraded this template to a low-quality rating due to negative feedback from multiple customers or low read rates. We recommend improving its content or choosing a different template to enhance delivery and engagement in your next campaign"},[s.TEMPLATE_QUALITY.GREEN]:{Icon:t.default,title:"High quality template",sublineTextType:o.Caption,sublineColor:n.COLORS.content.secondary,subline:"Meta has rated this template as high quality due to strong engagement and positive customer interactions. We recommend continuing to use this template or creating similar ones to maintain high delivery rates and maximize campaign performance."},[s.TEMPLATE_QUALITY.UNKNOWN]:{Icon:t.default,title:"No quality data available",sublineTextType:o.Caption,sublineColor:n.COLORS.content.secondary,subline:"There is currently no quality data available for this template. This may be due to insufficient usage or recent creation. We recommend monitoring its performance over time to gather insights and optimize future campaigns."}},u=[{title:"Sent",icon:a.default,valName:"totalSent"},{title:"Delivered",icon:i.default,valName:"totalDelivered",percentValName:"deliveredPercentage"},{title:"Read",icon:r.default,valName:"totalReads",percentValName:"readPercentage"}];exports.ANALYTICS_ENGAGEMENT_MAP=u,exports.TEMPLATE_QUALITY_MAP=l;
|
|
@@ -210,7 +210,8 @@ export type WhatsappPreviewButtonType = {
|
|
|
210
210
|
export declare enum TEMPLATE_QUALITY {
|
|
211
211
|
GREEN = "GREEN",
|
|
212
212
|
YELLOW = "YELLOW",
|
|
213
|
-
RED = "RED"
|
|
213
|
+
RED = "RED",
|
|
214
|
+
UNKNOWN = "UNKNOWN"
|
|
214
215
|
}
|
|
215
216
|
export type WhatsappMeta = {
|
|
216
217
|
containerStyle?: React.CSSProperties | undefined;
|
|
@@ -331,4 +332,5 @@ export interface TemplateAnalyticsComponentI {
|
|
|
331
332
|
onCancel?: () => void;
|
|
332
333
|
headingTitle?: string;
|
|
333
334
|
headingSubtitle?: string;
|
|
335
|
+
analyticsData?: TemplateAnalyticsDataI;
|
|
334
336
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var E,T,
|
|
1
|
+
"use strict";var E,T,N;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TEMPLATE_QUALITY=void 0,(E=exports.TEMPLATE_QUALITY||(exports.TEMPLATE_QUALITY={})).GREEN="GREEN",E.YELLOW="YELLOW",E.RED="RED",E.UNKNOWN="UNKNOWN",exports.BUTTON_TYPE=void 0,(T=exports.BUTTON_TYPE||(exports.BUTTON_TYPE={})).QUICK_REPLY="QUICK_REPLY",T.URL="URL",T.PHONE_NUMBER="PHONE_NUMBER",T.COPY_CODE="COPY_CODE",exports.POD=void 0,(N=exports.POD||(exports.POD={})).CHATBOT="CHATBOT",N.GROWTH="GROWTH",N.CAMPAIGN="CAMPAIGN",N.CRM="CRM",N.INTEGRATIONS="INTEGRATIONS",N.OPENAI="OPENAI",N.DM="DM",N.FRONTEND="FRONTEND";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const EventsTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default EventsTrigger;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const IGTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default IGTrigger;
|
package/dist/esm/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownOption } from "../../../dropdown/type";
|
|
3
|
-
import { QueryBuilderProperty } from "../../
|
|
4
|
-
import { QueryBuilderNodeProps } from "../../
|
|
3
|
+
import { QueryBuilderProperty } from "../../Types/QueryBuilder.type";
|
|
4
|
+
import { QueryBuilderNodeProps } from "../../Types/QueryBuilderNodeProps.type";
|
|
5
5
|
declare const BaseTriggerQueryBuilderNode: React.FC<QueryBuilderNodeProps & {
|
|
6
6
|
cacheKey: string;
|
|
7
7
|
propertyAddBtnText: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"../../node_modules/react/jsx-runtime.js";import e from"../../assets/icons/arrow_left.svg.js";import{useState as t}from"react";import{Curtain as r}from"../curtain/Curtain.js";import{BodyCaption as i,TitleMedium as n,TitleRegular as
|
|
1
|
+
import{j as s}from"../../node_modules/react/jsx-runtime.js";import e from"../../assets/icons/arrow_left.svg.js";import{useState as t}from"react";import{Curtain as r}from"../curtain/Curtain.js";import{BodyCaption as i,TitleMedium as n,TitleRegular as a}from"../TypographyStyle.js";import{BikHeaderWrapper as o,BikHeaderContainer as c}from"./CommonStyles.js";const l=l=>{const{header:d,subHeader:j,hideBackButton:h=!0,rightActionButton:m,onClickingBackButton:x,secondaryHeader:g,curtainProps:u,curtainZIndex:p,headerStyles:f,leftLayout:y,dataTest:b}=l,[O,k]=t(!!u);return s.jsxs(o,Object.assign({style:Object.assign({},f),"data-test":b},{children:[s.jsxs(c,{children:[y?s.jsxs(s.Fragment,{children:[!h&&s.jsx(e,{className:"cursor",height:24,width:24,onClick:x}),y]}):s.jsxs("div",Object.assign({className:"row--flex left-container"},{children:[!h&&s.jsx(e,{className:"cursor",height:24,width:24,onClick:x}),s.jsxs("div",{children:[j?s.jsx(i,Object.assign({className:"brand"},{children:d})):s.jsx(n,{children:d}),s.jsx(a,{children:j})]})]})),s.jsx("div",Object.assign({className:"row--flex right-container"},{children:m}))]}),O&&u&&s.jsxs(s.Fragment,{children:[s.jsx("div",Object.assign({style:{position:"sticky",top:0,width:"auto",zIndex:p||6}},{children:s.jsx(r,Object.assign({},u,{onCloseHandler:()=>{k(!1)}}))})),s.jsx("div",{style:{height:20}})]}),null!=g?g:s.jsx(s.Fragment,{})]}))};export{l as BikHeader};
|
package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const TemplateAnalyticsComponent: (props: TemplateAnalyticsCompon
|
|
|
3
3
|
export declare const RightPanelTemplateAnalytics: (props: {
|
|
4
4
|
analyticsData: TemplateAnalyticsDataI;
|
|
5
5
|
skipTitle?: boolean;
|
|
6
|
+
fullWidth?: boolean;
|
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export declare const AnalyticsItem: (props: {
|
|
8
9
|
icon: React.ElementType;
|
package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"../../../node_modules/react/jsx-runtime.js";import t from"../../../assets/icons/
|
|
1
|
+
import{j as e}from"../../../node_modules/react/jsx-runtime.js";import t from"../../../assets/icons/click.svg.js";import{useState as n,useEffect as l,useMemo as s}from"react";import{StyledModal as i}from"../../modals/styledModal.js";import{Tag as a}from"../../tag/Tag.js";import{TEMPLATE_QUALITY as c}from"../../template-preview/models/WhatsAppTemplate.js";import{TitleRegular as r,TitleSmall as o,Caption as d}from"../../TypographyStyle.js";import{COLORS as m}from"../../../constants/Theme.js";import{TemplateContainer as u,LeftPanelContainer as j,RightPanelContainer as p,CustomTitleMedium as y}from"../styles/TemplateAnalyticsStyles.js";import{TEMPLATE_QUALITY_MAP as h,ANALYTICS_ENGAGEMENT_MAP as g}from"../utils/TemplateConstants.js";import{TemplateAnalyticsSkeleton as x}from"./TemplateAnalyticsSkeleton.js";const b=t=>{const{templateAnalytics:a,onClose:o,onProceed:p,onCancel:y,headingTitle:g,headingSubtitle:b,templateId:k}=t,{templateQuality:v=c.GREEN,fetchAnalytics:T}=a||{},{Icon:f,title:O,subline:C,sublineTextType:E,sublineColor:A}=h[v||c.GREEN],[w,B]=n((null==t?void 0:t.analyticsData)||{}),[W,G]=n(!0);l((()=>{(null==t?void 0:t.analyticsData)?G(!1):null==T||T(k||"").then((e=>{e.analytics&&B(e.analytics),G(!1)}))}),[]);const S=s((()=>v===c.GREEN?{primaryButton:{buttonText:"Proceed with selection",buttonType:"primary",onClick:p,disabled:W},secondaryButton:{buttonText:"Cancel",buttonType:"tertiaryGray",onClick:()=>{null==o||o(),null==y||y()},disabled:W}}:{primaryButton:{buttonText:"Cancel",buttonType:"primary",onClick:()=>{null==o||o(),null==y||y()},disabled:W},secondaryButton:{buttonText:"Proceed with selection",buttonType:"secondary",onClick:p,disabled:W}}),[v,W]),R=E||d;return e.jsx(i,Object.assign({open:!0,headingTitle:g,tintedHeader:!0,modalHeaderStyles:{backgroundColor:m.surface.subdued},onBackPress:()=>{null==o||o()},headingSubtitle:b,footerShadow:!0,primaryButton:S.primaryButton,secondaryButton:S.secondaryButton,onClose:()=>{null==o||o()},width:"700px"},{children:e.jsxs(u,{children:[v!=c.UNKNOWN&&e.jsx(j,{children:e.jsxs("div",Object.assign({className:"inside--container"},{children:[e.jsx("div",Object.assign({className:"icon--container",style:{background:v===c.GREEN?m.background.positive.light:m.background.warning.light}},{children:e.jsx(f,{width:40,height:40,color:v===c.GREEN?m.content.positive:m.content.warning})})),O&&e.jsx(r,Object.assign({style:{textAlign:"center"}},{children:O})),e.jsx(R,Object.assign({style:{textAlign:"center",color:A||m.content.primary}},{children:C}))]}))}),W?e.jsx(x,{fullWidth:v===c.UNKNOWN}):e.jsx(N,{analyticsData:w,skipTitle:v==c.GREEN,fullWidth:v===c.UNKNOWN})]})}))},N=n=>{const{analyticsData:l,skipTitle:s,fullWidth:i}=n;return e.jsxs(p,Object.assign({fullWidth:i},{children:[s?e.jsx(e.Fragment,{}):e.jsx(o,{children:"Here are your template's delivery & engagement stats for the last 30 days"}),e.jsx("div",Object.assign({className:"mt-3"},{children:g.map(((t,n)=>e.jsx(k,{icon:t.icon,title:t.title,value:l[t.valName]||0,percentValue:t.percentValName?l[t.percentValName]:null},n)))})),(null==l?void 0:l.clickAnalytics)&&Object.keys(null==l?void 0:l.clickAnalytics)&&Object.keys(null==l?void 0:l.clickAnalytics).length?e.jsxs(e.Fragment,{children:[e.jsx(o,Object.assign({color:m.content.secondary},{children:"Clicked"})),e.jsx("div",Object.assign({className:"mt-3"},{children:Object.entries(l.clickAnalytics).map(((n,l)=>{let[s,i]=n;return e.jsx(k,{icon:t,title:s,value:i.totalClicks||0,percentValue:i.clickPercentage},l)}))}))]}):e.jsx(e.Fragment,{})]}))},k=t=>{const{icon:n,title:l,value:s,percentValue:i}=t;return e.jsxs("div",Object.assign({className:"each--analytics--container"},{children:[e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[e.jsx("div",Object.assign({className:"each--icon--container"},{children:e.jsx(n,{width:"16px",height:"16px",color:m.background.brand})})),e.jsx(d,{children:l})]})),e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[i?e.jsx(a,{tagText:`${i}%`||0,theme:"light",type:"neutral"}):e.jsx(e.Fragment,{}),e.jsx(y,{children:s})]}))]}))};export{k as AnalyticsItem,N as RightPanelTemplateAnalytics,b as TemplateAnalyticsComponent};
|
package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"../../../node_modules/react/jsx-runtime.js";import{BikShimmer as e}from"../../shimmer/ShimmerComponent/BikShimmer.js";import{RightPanelContainer as i}from"../styles/TemplateAnalyticsStyles.js";const t=t=>{const{skipTitleShimmer:h}=t;return s.jsxs(i,{children:[s.jsx("div",{children:h?s.jsx(s.Fragment,{}):s.jsx(e,{boxes:[{width:"76px",height:"18px"}]})}),s.jsx("div",Object.assign({className:"mt-3"},{children:[0,1,2].map((e=>s.jsx(x,{},e)))})),s.jsxs(s.Fragment,{children:[s.jsx("div",{children:s.jsx(e,{boxes:[{width:"76px",height:"18px"}]})}),s.jsx("div",Object.assign({className:"mt-3"},{children:s.jsx(x,{})}))]})]})},x=()=>s.jsxs("div",Object.assign({className:"each--analytics--container"},{children:[s.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[s.jsx(e,{boxes:[{width:"24px",height:"24px"}]}),s.jsx(e,{boxes:[{width:"69px",height:"11px"}]})]})),s.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[s.jsx(e,{boxes:[{width:"43px",height:"18px"}]}),s.jsx(e,{boxes:[{width:"69px",height:"28px"}]})]}))]}));export{t as TemplateAnalyticsSkeleton};
|
|
1
|
+
import{j as s}from"../../../node_modules/react/jsx-runtime.js";import{BikShimmer as e}from"../../shimmer/ShimmerComponent/BikShimmer.js";import{RightPanelContainer as i}from"../styles/TemplateAnalyticsStyles.js";const t=t=>{const{skipTitleShimmer:h,fullWidth:n}=t;return s.jsxs(i,Object.assign({fullWidth:n},{children:[s.jsx("div",{children:h?s.jsx(s.Fragment,{}):s.jsx(e,{boxes:[{width:"76px",height:"18px"}]})}),s.jsx("div",Object.assign({className:"mt-3"},{children:[0,1,2].map((e=>s.jsx(x,{},e)))})),s.jsxs(s.Fragment,{children:[s.jsx("div",{children:s.jsx(e,{boxes:[{width:"76px",height:"18px"}]})}),s.jsx("div",Object.assign({className:"mt-3"},{children:s.jsx(x,{})}))]})]}))},x=()=>s.jsxs("div",Object.assign({className:"each--analytics--container"},{children:[s.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[s.jsx(e,{boxes:[{width:"24px",height:"24px"}]}),s.jsx(e,{boxes:[{width:"69px",height:"11px"}]})]})),s.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[s.jsx(e,{boxes:[{width:"43px",height:"18px"}]}),s.jsx(e,{boxes:[{width:"69px",height:"28px"}]})]}))]}));export{t as TemplateAnalyticsSkeleton};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const TemplateContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const RightPanelContainer: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
export declare const RightPanelContainer: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
fullWidth?: boolean | undefined;
|
|
4
|
+
}, never>;
|
|
3
5
|
export declare const LeftPanelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
6
|
export declare const CustomTitleMedium: import("styled-components").StyledComponent<"div", any, {
|
|
5
7
|
numberOfLines?: number | undefined;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import e from"styled-components";import{TitleMedium as i}from"../../TypographyStyle.js";import{COLORS as t}from"../../../constants/Theme.js";const n=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 16px 0px;
|
|
4
|
-
`,
|
|
5
|
-
max-width: 450px;
|
|
4
|
+
`,o=e.div`
|
|
5
|
+
max-width: ${e=>e.fullWidth?"none":"450px"};
|
|
6
6
|
height: 456px;
|
|
7
7
|
min-width: 358px;
|
|
8
8
|
overflow-y: auto;
|
|
9
|
-
border-left: ${t.stroke.primary} 1px solid;
|
|
9
|
+
border-left: ${e=>e.fullWidth?"none":`${t.stroke.primary} 1px solid`};
|
|
10
10
|
padding: 0px 23px 32px 23px;
|
|
11
11
|
gap: 16px;
|
|
12
|
+
${e=>e.fullWidth&&"flex: 1;"}
|
|
12
13
|
.each--analytics--container {
|
|
13
14
|
border: 1px solid ${t.background.inactive};
|
|
14
15
|
border-radius: 8px;
|
|
@@ -31,7 +32,7 @@ import e from"styled-components";import{TitleMedium as i}from"../../TypographySt
|
|
|
31
32
|
.align--center {
|
|
32
33
|
align-items: center;
|
|
33
34
|
}
|
|
34
|
-
`,
|
|
35
|
+
`,r=e.div`
|
|
35
36
|
padding: 0px 23px 32px 23px;
|
|
36
37
|
flex: 1;
|
|
37
38
|
height: 456px;
|
|
@@ -60,4 +61,4 @@ import e from"styled-components";import{TitleMedium as i}from"../../TypographySt
|
|
|
60
61
|
max-width: 161px;
|
|
61
62
|
overflow: hidden;
|
|
62
63
|
text-overflow: ellipsis;
|
|
63
|
-
`;export{p as CustomTitleMedium,
|
|
64
|
+
`;export{p as CustomTitleMedium,r as LeftPanelContainer,o as RightPanelContainer,n as TemplateContainer};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const TEMPLATE_QUALITY_MAP: {
|
|
3
3
|
YELLOW: {
|
|
4
|
-
|
|
4
|
+
Icon: import("react").FunctionComponent<import("react").SVGAttributes<SVGElement>>;
|
|
5
5
|
title: string;
|
|
6
6
|
sublineTextType: import("styled-components").StyledComponent<"div", any, {
|
|
7
7
|
numberOfLines?: number | undefined;
|
|
@@ -11,7 +11,7 @@ export declare const TEMPLATE_QUALITY_MAP: {
|
|
|
11
11
|
subline: string;
|
|
12
12
|
};
|
|
13
13
|
RED: {
|
|
14
|
-
|
|
14
|
+
Icon: import("react").FunctionComponent<import("react").SVGAttributes<SVGElement>>;
|
|
15
15
|
title: string;
|
|
16
16
|
sublineTextType: import("styled-components").StyledComponent<"div", any, {
|
|
17
17
|
numberOfLines?: number | undefined;
|
|
@@ -21,7 +21,17 @@ export declare const TEMPLATE_QUALITY_MAP: {
|
|
|
21
21
|
subline: string;
|
|
22
22
|
};
|
|
23
23
|
GREEN: {
|
|
24
|
-
|
|
24
|
+
Icon: import("react").FunctionComponent<import("react").SVGAttributes<SVGElement>>;
|
|
25
|
+
title: string;
|
|
26
|
+
sublineTextType: import("styled-components").StyledComponent<"div", any, {
|
|
27
|
+
numberOfLines?: number | undefined;
|
|
28
|
+
color?: string | undefined;
|
|
29
|
+
}, never>;
|
|
30
|
+
sublineColor: string;
|
|
31
|
+
subline: string;
|
|
32
|
+
};
|
|
33
|
+
UNKNOWN: {
|
|
34
|
+
Icon: import("react").FunctionComponent<import("react").SVGAttributes<SVGElement>>;
|
|
25
35
|
title: string;
|
|
26
36
|
sublineTextType: import("styled-components").StyledComponent<"div", any, {
|
|
27
37
|
numberOfLines?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../assets/icons/alert_triangle.svg.js";import t from"../../../assets/icons/
|
|
1
|
+
import e from"../../../assets/icons/alert_triangle.svg.js";import t from"../../../assets/icons/check.svg.js";import a from"../../../assets/icons/send_template.svg.js";import i from"../../../assets/icons/tick.svg.js";import o from"../../../assets/icons/tick_double.svg.js";import"../../template-preview/TemplatePreview.js";import"../../template-preview/WhatsApp/WhatsAppLikePreview.js";import"../../template-preview/WhatsApp/WhatsAppLikePreviewV2.js";import{COLORS as n}from"../../../constants/Theme.js";import"../../curtain/CurtainHelper.js";import"../../variable-picker-v3/model.js";import"../../template-preview/models/TemplateMeta.js";import{TEMPLATE_QUALITY as r}from"../../template-preview/models/WhatsAppTemplate.js";import"../../template-preview/models/Channels.js";import{Caption as s}from"../../TypographyStyle.js";const m={[r.YELLOW]:{Icon:e,title:"Medium quality template",sublineTextType:s,sublineColor:n.content.secondary,subline:"Meta has downgraded this template to a medium-quality rating due to negative feedback from multiple customers or low read rates. We recommend improving its content or choosing a different template to enhance delivery and engagement in your next campaign"},[r.RED]:{Icon:e,title:"Low quality template",sublineTextType:s,sublineColor:n.content.secondary,subline:"Meta has downgraded this template to a low-quality rating due to negative feedback from multiple customers or low read rates. We recommend improving its content or choosing a different template to enhance delivery and engagement in your next campaign"},[r.GREEN]:{Icon:t,title:"High quality template",sublineTextType:s,sublineColor:n.content.secondary,subline:"Meta has rated this template as high quality due to strong engagement and positive customer interactions. We recommend continuing to use this template or creating similar ones to maintain high delivery rates and maximize campaign performance."},[r.UNKNOWN]:{Icon:t,title:"No quality data available",sublineTextType:s,sublineColor:n.content.secondary,subline:"There is currently no quality data available for this template. This may be due to insufficient usage or recent creation. We recommend monitoring its performance over time to gather insights and optimize future campaigns."}},l=[{title:"Sent",icon:a,valName:"totalSent"},{title:"Delivered",icon:i,valName:"totalDelivered",percentValName:"deliveredPercentage"},{title:"Read",icon:o,valName:"totalReads",percentValName:"readPercentage"}];export{l as ANALYTICS_ENGAGEMENT_MAP,m as TEMPLATE_QUALITY_MAP};
|
|
@@ -210,7 +210,8 @@ export type WhatsappPreviewButtonType = {
|
|
|
210
210
|
export declare enum TEMPLATE_QUALITY {
|
|
211
211
|
GREEN = "GREEN",
|
|
212
212
|
YELLOW = "YELLOW",
|
|
213
|
-
RED = "RED"
|
|
213
|
+
RED = "RED",
|
|
214
|
+
UNKNOWN = "UNKNOWN"
|
|
214
215
|
}
|
|
215
216
|
export type WhatsappMeta = {
|
|
216
217
|
containerStyle?: React.CSSProperties | undefined;
|
|
@@ -331,4 +332,5 @@ export interface TemplateAnalyticsComponentI {
|
|
|
331
332
|
onCancel?: () => void;
|
|
332
333
|
headingTitle?: string;
|
|
333
334
|
headingSubtitle?: string;
|
|
335
|
+
analyticsData?: TemplateAnalyticsDataI;
|
|
334
336
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var E,
|
|
1
|
+
var N,E,O;!function(N){N.GREEN="GREEN",N.YELLOW="YELLOW",N.RED="RED",N.UNKNOWN="UNKNOWN"}(N||(N={})),function(N){N.QUICK_REPLY="QUICK_REPLY",N.URL="URL",N.PHONE_NUMBER="PHONE_NUMBER",N.COPY_CODE="COPY_CODE"}(E||(E={})),function(N){N.CHATBOT="CHATBOT",N.GROWTH="GROWTH",N.CAMPAIGN="CAMPAIGN",N.CRM="CRM",N.INTEGRATIONS="INTEGRATIONS",N.OPENAI="OPENAI",N.DM="DM",N.FRONTEND="FRONTEND"}(O||(O={}));export{E as BUTTON_TYPE,O as POD,N as TEMPLATE_QUALITY};
|