@capillarytech/creatives-library 8.0.334-alpha.0 → 8.0.334-alpha.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/package.json +1 -1
- package/services/api.js +0 -20
- package/services/tests/api.test.js +0 -59
- package/v2Components/CapCustomSkeleton/index.js +1 -1
- package/v2Components/CapCustomSkeleton/tests/__snapshots__/index.test.js.snap +12 -12
- package/v2Components/FormBuilder/index.js +2 -0
- package/v2Containers/BeeEditor/index.js +13 -1
- package/v2Containers/Email/index.js +75 -38
- package/v2Containers/Email/reducer.js +2 -2
- package/v2Containers/Email/sagas.js +4 -1
- package/v2Containers/EmailWrapper/hooks/useEmailWrapper.js +2 -1
- package/v2Containers/Templates/ChannelTypeIllustration.js +6 -23
- package/v2Containers/Templates/_templates.scss +24 -99
- package/v2Containers/Templates/actions.js +0 -36
- package/v2Containers/Templates/constants.js +0 -23
- package/v2Containers/Templates/index.js +30 -287
- package/v2Containers/Templates/messages.js +0 -68
- package/v2Containers/Templates/reducer.js +0 -68
- package/v2Containers/Templates/sagas.js +1 -89
- package/v2Containers/Templates/selectors.js +0 -12
- package/v2Containers/Templates/tests/ChannelTypeIllustration.test.js +0 -12
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +1114 -1375
- package/v2Containers/Templates/tests/index.test.js +0 -6
- package/v2Containers/Templates/tests/reducer.test.js +0 -178
- package/v2Containers/Templates/tests/sagas.test.js +8 -306
- package/v2Containers/Templates/tests/selector.test.js +0 -32
- package/v2Containers/Assets/images/archive_Empty_Illustration.svg +0 -9
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
@import '~@capillarytech/cap-ui-library/styles/_variables.scss';
|
|
2
2
|
|
|
3
3
|
.ant-tabs-content{
|
|
4
|
-
margin-top:
|
|
4
|
+
margin-top: 16px;
|
|
5
5
|
.ant-tabs-tabpane-active{
|
|
6
6
|
padding: unset;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
.creatives-templates-list
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
@media screen and (max-width: 1172px) {
|
|
11
|
+
.creatives-templates-list.full-mode{
|
|
12
|
+
.v2-pagination-container {
|
|
13
|
+
.cap-custom-card-list-row {
|
|
14
|
+
.cap-custom-card-list-col{
|
|
15
|
+
&:nth-child(3n+3) { //every 4th child
|
|
16
|
+
margin-right: unset;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media screen and (min-width: 1172px) {
|
|
25
|
+
.creatives-templates-list.full-mode{
|
|
26
|
+
.v2-pagination-container {
|
|
27
|
+
.cap-custom-card-list-row {
|
|
28
|
+
.cap-custom-card-list-col{
|
|
29
|
+
&:nth-child(4n+4) { //every 4th child
|
|
30
|
+
margin-right: unset;
|
|
31
|
+
}
|
|
20
32
|
}
|
|
21
33
|
}
|
|
22
34
|
}
|
|
@@ -662,32 +674,6 @@
|
|
|
662
674
|
font-size: 14px;
|
|
663
675
|
}
|
|
664
676
|
|
|
665
|
-
// Archive/Unarchive confirm modal overrides — scoped to avoid affecting other modals
|
|
666
|
-
.archive-confirm-modal {
|
|
667
|
-
// Remove the left margin added when an icon is present
|
|
668
|
-
.ant-modal-confirm-body {
|
|
669
|
-
> .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content {
|
|
670
|
-
margin-left: 0;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
// Left-align buttons, remove float
|
|
675
|
-
.ant-modal-confirm-btns {
|
|
676
|
-
float: none;
|
|
677
|
-
display: flex;
|
|
678
|
-
align-items: center;
|
|
679
|
-
gap: $CAP_SPACE_08;
|
|
680
|
-
margin-top: $CAP_SPACE_16;
|
|
681
|
-
|
|
682
|
-
// Cancel button styling
|
|
683
|
-
.ant-btn:not(.ant-btn-primary) {
|
|
684
|
-
background-color: $CAP_G08;
|
|
685
|
-
border-color: $CAP_G08;
|
|
686
|
-
color: $CAP_G01;
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
|
|
691
677
|
.popover-action-container {
|
|
692
678
|
line-height: 24px;
|
|
693
679
|
}
|
|
@@ -1115,65 +1101,4 @@
|
|
|
1115
1101
|
.inapp-illustration-parent {
|
|
1116
1102
|
height: "calc(100vh - 325px)";
|
|
1117
1103
|
overflow: 'auto';
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
// Archive feature layout classes
|
|
1121
|
-
.illustration-scroll-wrapper {
|
|
1122
|
-
height: calc(100vh - 20.3125rem);
|
|
1123
|
-
overflow: auto;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
.filter-row {
|
|
1127
|
-
display: flex;
|
|
1128
|
-
align-items: center;
|
|
1129
|
-
justify-content: space-between;
|
|
1130
|
-
width: 100%;
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
.filter-row-content {
|
|
1134
|
-
flex: 1;
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
.bulk-selection-bar {
|
|
1138
|
-
display: flex;
|
|
1139
|
-
align-items: center;
|
|
1140
|
-
gap: $CAP_SPACE_12;
|
|
1141
|
-
flex-shrink: 0;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
.archived-mode-header {
|
|
1145
|
-
display: flex;
|
|
1146
|
-
align-items: center;
|
|
1147
|
-
gap: $CAP_SPACE_12;
|
|
1148
|
-
margin-bottom: $CAP_SPACE_16;
|
|
1149
|
-
|
|
1150
|
-
.archived-mode-back-icon {
|
|
1151
|
-
cursor: pointer;
|
|
1152
|
-
font-size: 1.428rem;
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
.archived-tag {
|
|
1157
|
-
margin-left: $CAP_SPACE_08;
|
|
1158
|
-
font-size: 0.786rem;
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
.popover-archive-action {
|
|
1162
|
-
cursor: pointer;
|
|
1163
|
-
padding: $CAP_SPACE_08 0;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
.archive-menu-item {
|
|
1167
|
-
display: inline-flex;
|
|
1168
|
-
align-items: center;
|
|
1169
|
-
gap: $CAP_SPACE_08;
|
|
1170
|
-
margin-top: 1rem;
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
.archive-btn-label {
|
|
1174
|
-
margin-right: 0.714rem;
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
.bulk-selection-bar .cap-button-v2-prefix {
|
|
1178
|
-
margin-top: 1rem;
|
|
1179
|
-
}
|
|
1104
|
+
}
|
|
@@ -167,39 +167,3 @@ export function getCdnTransformationConfig() {
|
|
|
167
167
|
type: types.GET_CDN_TRANSFORMATION_CONFIG_REQUEST,
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
|
|
171
|
-
export function archiveTemplate(channel, id, templateName) {
|
|
172
|
-
return { type: types.ARCHIVE_TEMPLATE_REQUEST, channel, id, templateName };
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export function unarchiveTemplate(channel, id, templateName) {
|
|
176
|
-
return { type: types.UNARCHIVE_TEMPLATE_REQUEST, channel, id, templateName };
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export function bulkArchiveTemplates(channel, ids) {
|
|
180
|
-
return { type: types.BULK_ARCHIVE_REQUEST, channel, ids };
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export function bulkUnarchiveTemplates(channel, ids) {
|
|
184
|
-
return { type: types.BULK_UNARCHIVE_REQUEST, channel, ids };
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export function setArchiveFilter(filter) {
|
|
188
|
-
return { type: types.SET_ARCHIVE_FILTER, filter };
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export function toggleTemplateSelection(id) {
|
|
192
|
-
return { type: types.TOGGLE_TEMPLATE_SELECTION, id };
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export function selectAllTemplates(ids) {
|
|
196
|
-
return { type: types.SELECT_ALL_TEMPLATES, ids };
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export function clearTemplateSelection() {
|
|
200
|
-
return { type: types.CLEAR_TEMPLATE_SELECTION };
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export function setArchivedMode(isArchived) {
|
|
204
|
-
return { type: types.SET_ARCHIVED_MODE, isArchived };
|
|
205
|
-
}
|
|
@@ -91,26 +91,3 @@ export const noApprovedWhatsappTemplatesDesc ='noApprovedWhatsappTemplatesDesc'
|
|
|
91
91
|
export const zaloDescIllustration='zaloDescIllustration'
|
|
92
92
|
export const noApprovedRcsTemplatesTitle='noApprovedRcsTemplatesTitle'
|
|
93
93
|
export const noApprovedRcsTemplatesDesc='noApprovedRcsTemplatesDesc'
|
|
94
|
-
|
|
95
|
-
// Archive feature
|
|
96
|
-
export const ARCHIVE_TEMPLATE_REQUEST = 'app/v2Containers/Templates/ARCHIVE_TEMPLATE_REQUEST';
|
|
97
|
-
export const ARCHIVE_TEMPLATE_SUCCESS = 'app/v2Containers/Templates/ARCHIVE_TEMPLATE_SUCCESS';
|
|
98
|
-
export const ARCHIVE_TEMPLATE_FAILURE = 'app/v2Containers/Templates/ARCHIVE_TEMPLATE_FAILURE';
|
|
99
|
-
|
|
100
|
-
export const UNARCHIVE_TEMPLATE_REQUEST = 'app/v2Containers/Templates/UNARCHIVE_TEMPLATE_REQUEST';
|
|
101
|
-
export const UNARCHIVE_TEMPLATE_SUCCESS = 'app/v2Containers/Templates/UNARCHIVE_TEMPLATE_SUCCESS';
|
|
102
|
-
export const UNARCHIVE_TEMPLATE_FAILURE = 'app/v2Containers/Templates/UNARCHIVE_TEMPLATE_FAILURE';
|
|
103
|
-
|
|
104
|
-
export const BULK_ARCHIVE_REQUEST = 'app/v2Containers/Templates/BULK_ARCHIVE_REQUEST';
|
|
105
|
-
export const BULK_ARCHIVE_SUCCESS = 'app/v2Containers/Templates/BULK_ARCHIVE_SUCCESS';
|
|
106
|
-
export const BULK_ARCHIVE_FAILURE = 'app/v2Containers/Templates/BULK_ARCHIVE_FAILURE';
|
|
107
|
-
|
|
108
|
-
export const BULK_UNARCHIVE_REQUEST = 'app/v2Containers/Templates/BULK_UNARCHIVE_REQUEST';
|
|
109
|
-
export const BULK_UNARCHIVE_SUCCESS = 'app/v2Containers/Templates/BULK_UNARCHIVE_SUCCESS';
|
|
110
|
-
export const BULK_UNARCHIVE_FAILURE = 'app/v2Containers/Templates/BULK_UNARCHIVE_FAILURE';
|
|
111
|
-
|
|
112
|
-
export const SET_ARCHIVE_FILTER = 'app/v2Containers/Templates/SET_ARCHIVE_FILTER';
|
|
113
|
-
export const TOGGLE_TEMPLATE_SELECTION = 'app/v2Containers/Templates/TOGGLE_TEMPLATE_SELECTION';
|
|
114
|
-
export const SELECT_ALL_TEMPLATES = 'app/v2Containers/Templates/SELECT_ALL_TEMPLATES';
|
|
115
|
-
export const CLEAR_TEMPLATE_SELECTION = 'app/v2Containers/Templates/CLEAR_TEMPLATE_SELECTION';
|
|
116
|
-
export const SET_ARCHIVED_MODE = 'app/v2Containers/Templates/SET_ARCHIVED_MODE';
|