@capillarytech/creatives-library 8.0.232 → 8.0.233
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/package.json
CHANGED
|
@@ -169,6 +169,10 @@ const InlineDiv = styled.div`
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
`;
|
|
172
|
+
const AccountScrollDiv = styled.div`
|
|
173
|
+
overflow: scroll;
|
|
174
|
+
height: calc(100vh - 300px);
|
|
175
|
+
`;
|
|
172
176
|
const ACCOUNT_SELECTION_MODE = "accountSelectionMode";
|
|
173
177
|
const ACCOUNT_CHANGE_MODE = 'accountChangeMode';
|
|
174
178
|
const TEMPLATES_MODE = "templatesMode";
|
|
@@ -3068,6 +3072,7 @@ return (<div>
|
|
|
3068
3072
|
if (channel === WECHAT && !commonUtil.hasWechatFeatureEnabled()) {
|
|
3069
3073
|
showNoAccountHeader = true;
|
|
3070
3074
|
}
|
|
3075
|
+
console.log('accountOptions: ', accountOptions)
|
|
3071
3076
|
return (<CapSkeleton loading={fetchingWeCrmAccounts || isDomainPropertiesLoading} active paragraph={{ rows: 10 }}>
|
|
3072
3077
|
{showNoAccountHeader ? <FormattedMessage {...noAccountHeader} /> :
|
|
3073
3078
|
<div style={{ overflowX: "auto", paddingBottom: CAP_SPACE_16 }}>
|
|
@@ -3077,16 +3082,18 @@ return (<div>
|
|
|
3077
3082
|
size="regular"
|
|
3078
3083
|
className="select-account-header"
|
|
3079
3084
|
/>
|
|
3080
|
-
<
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3085
|
+
<AccountScrollDiv>
|
|
3086
|
+
<CapRadioCard
|
|
3087
|
+
className="select-account"
|
|
3088
|
+
onChange={this.onAccountSelect}
|
|
3089
|
+
panes={accountOptions}
|
|
3090
|
+
cardHeight="48px"
|
|
3091
|
+
cardWidth="276px"
|
|
3092
|
+
size="small"
|
|
3093
|
+
defaultValue={selectedAccount}
|
|
3094
|
+
selected={selectedAccount}
|
|
3095
|
+
/>
|
|
3096
|
+
</AccountScrollDiv>
|
|
3090
3097
|
</div>
|
|
3091
3098
|
}
|
|
3092
3099
|
</CapSkeleton>);
|
|
@@ -45,31 +45,33 @@ exports[`Test Templates container Should render correct component for whatsapp c
|
|
|
45
45
|
title="Whatsapp account"
|
|
46
46
|
titleClass=""
|
|
47
47
|
/>
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
48
|
+
<Templates__AccountScrollDiv>
|
|
49
|
+
<CapRadioCard
|
|
50
|
+
cardHeight="48px"
|
|
51
|
+
cardWidth="276px"
|
|
52
|
+
className="select-account"
|
|
53
|
+
defaultValue=""
|
|
54
|
+
onChange={[Function]}
|
|
55
|
+
panes={
|
|
56
|
+
Array [
|
|
57
|
+
Object {
|
|
58
|
+
"icon": <CapIconAvatar
|
|
59
|
+
backgroundProps={Object {}}
|
|
60
|
+
height="2rem"
|
|
61
|
+
labelProps={Object {}}
|
|
62
|
+
text="W"
|
|
63
|
+
width="auto"
|
|
64
|
+
/>,
|
|
65
|
+
"key": "abc12",
|
|
66
|
+
"title": "WhatsappAccount",
|
|
67
|
+
"value": "WhatsappAccount",
|
|
68
|
+
},
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
selected=""
|
|
72
|
+
size="small"
|
|
73
|
+
/>
|
|
74
|
+
</Templates__AccountScrollDiv>
|
|
73
75
|
</div>
|
|
74
76
|
</CapSkeleton>
|
|
75
77
|
`;
|
|
@@ -101,31 +103,33 @@ exports[`Test Templates container Should render correct component for zalo chann
|
|
|
101
103
|
title="Zalo account"
|
|
102
104
|
titleClass=""
|
|
103
105
|
/>
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
106
|
+
<Templates__AccountScrollDiv>
|
|
107
|
+
<CapRadioCard
|
|
108
|
+
cardHeight="48px"
|
|
109
|
+
cardWidth="276px"
|
|
110
|
+
className="select-account"
|
|
111
|
+
defaultValue=""
|
|
112
|
+
onChange={[Function]}
|
|
113
|
+
panes={
|
|
114
|
+
Array [
|
|
115
|
+
Object {
|
|
116
|
+
"icon": <CapIconAvatar
|
|
117
|
+
backgroundProps={Object {}}
|
|
118
|
+
height="2rem"
|
|
119
|
+
labelProps={Object {}}
|
|
120
|
+
text="c"
|
|
121
|
+
width="auto"
|
|
122
|
+
/>,
|
|
123
|
+
"key": "fa66f53ca2bb4b93b02dfc5bd265e2fd",
|
|
124
|
+
"title": "capillary_zns",
|
|
125
|
+
"value": "capillary_zns",
|
|
126
|
+
},
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
selected=""
|
|
130
|
+
size="small"
|
|
131
|
+
/>
|
|
132
|
+
</Templates__AccountScrollDiv>
|
|
129
133
|
</div>
|
|
130
134
|
</CapSkeleton>
|
|
131
135
|
`;
|
|
@@ -332,31 +336,33 @@ exports[`Test Templates container Should render temlates when Zalo templates are
|
|
|
332
336
|
title="Zalo account"
|
|
333
337
|
titleClass=""
|
|
334
338
|
/>
|
|
335
|
-
<
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
339
|
+
<Templates__AccountScrollDiv>
|
|
340
|
+
<CapRadioCard
|
|
341
|
+
cardHeight="48px"
|
|
342
|
+
cardWidth="276px"
|
|
343
|
+
className="select-account"
|
|
344
|
+
defaultValue=""
|
|
345
|
+
onChange={[Function]}
|
|
346
|
+
panes={
|
|
347
|
+
Array [
|
|
348
|
+
Object {
|
|
349
|
+
"icon": <CapIconAvatar
|
|
350
|
+
backgroundProps={Object {}}
|
|
351
|
+
height="2rem"
|
|
352
|
+
labelProps={Object {}}
|
|
353
|
+
text="c"
|
|
354
|
+
width="auto"
|
|
355
|
+
/>,
|
|
356
|
+
"key": "fa66f53ca2bb4b93b02dfc5bd265e2fd",
|
|
357
|
+
"title": "capillary_zns",
|
|
358
|
+
"value": "capillary_zns",
|
|
359
|
+
},
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
selected=""
|
|
363
|
+
size="small"
|
|
364
|
+
/>
|
|
365
|
+
</Templates__AccountScrollDiv>
|
|
360
366
|
</div>
|
|
361
367
|
</CapSkeleton>
|
|
362
368
|
`;
|
|
@@ -976,31 +982,33 @@ exports[`Test Templates container Should render temlates when zalo templates are
|
|
|
976
982
|
title="Zalo account"
|
|
977
983
|
titleClass=""
|
|
978
984
|
/>
|
|
979
|
-
<
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
985
|
+
<Templates__AccountScrollDiv>
|
|
986
|
+
<CapRadioCard
|
|
987
|
+
cardHeight="48px"
|
|
988
|
+
cardWidth="276px"
|
|
989
|
+
className="select-account"
|
|
990
|
+
defaultValue=""
|
|
991
|
+
onChange={[Function]}
|
|
992
|
+
panes={
|
|
993
|
+
Array [
|
|
994
|
+
Object {
|
|
995
|
+
"icon": <CapIconAvatar
|
|
996
|
+
backgroundProps={Object {}}
|
|
997
|
+
height="2rem"
|
|
998
|
+
labelProps={Object {}}
|
|
999
|
+
text="c"
|
|
1000
|
+
width="auto"
|
|
1001
|
+
/>,
|
|
1002
|
+
"key": "fa66f53ca2bb4b93b02dfc5bd265e2fd",
|
|
1003
|
+
"title": "capillary_zns",
|
|
1004
|
+
"value": "capillary_zns",
|
|
1005
|
+
},
|
|
1006
|
+
]
|
|
1007
|
+
}
|
|
1008
|
+
selected=""
|
|
1009
|
+
size="small"
|
|
1010
|
+
/>
|
|
1011
|
+
</Templates__AccountScrollDiv>
|
|
1004
1012
|
</div>
|
|
1005
1013
|
</CapSkeleton>
|
|
1006
1014
|
`;
|