@capillarytech/creatives-library 8.0.264 → 8.0.265
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/constants/unified.js +0 -1
- package/package.json +1 -1
- package/services/api.js +0 -5
- package/utils/common.js +0 -6
- package/utils/tagValidations.js +1 -2
- package/utils/tests/transformerUtils.test.js +0 -297
- package/utils/transformerUtils.js +0 -40
- package/v2Components/CapImageUpload/constants.js +0 -2
- package/v2Components/CapImageUpload/index.js +16 -65
- package/v2Components/CapImageUpload/index.scss +1 -4
- package/v2Components/CapImageUpload/messages.js +1 -5
- package/v2Components/CommonTestAndPreview/UnifiedPreview/_unifiedPreview.scss +2 -2
- package/v2Components/FormBuilder/index.js +8 -8
- package/v2Containers/App/constants.js +0 -5
- package/v2Containers/CreativesContainer/SlideBoxContent.js +2 -57
- package/v2Containers/CreativesContainer/SlideBoxHeader.js +0 -1
- package/v2Containers/CreativesContainer/constants.js +0 -3
- package/v2Containers/CreativesContainer/index.js +0 -168
- package/v2Containers/CreativesContainer/messages.js +0 -4
- package/v2Containers/CreativesContainer/tests/SlideBoxContent.test.js +0 -210
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +0 -304
- package/v2Containers/Email/index.js +7 -3
- package/v2Containers/FTP/index.js +1 -1
- package/v2Containers/InApp/index.js +0 -1
- package/v2Containers/Line/Container/Text/index.js +0 -1
- package/v2Containers/MobilePushNew/index.js +0 -1
- package/v2Containers/Rcs/index.js +0 -3
- package/v2Containers/SmsTrai/Edit/index.js +0 -1
- package/v2Containers/Templates/ChannelTypeIllustration.js +1 -13
- package/v2Containers/Templates/_templates.scss +0 -205
- package/v2Containers/Templates/actions.js +1 -2
- package/v2Containers/Templates/constants.js +0 -1
- package/v2Containers/Templates/index.js +34 -274
- package/v2Containers/Templates/messages.js +0 -24
- package/v2Containers/Templates/reducer.js +0 -2
- package/v2Containers/Templates/tests/index.test.js +0 -10
- package/v2Containers/TemplatesV2/index.js +7 -15
- package/v2Containers/TemplatesV2/messages.js +0 -4
- package/v2Containers/Viber/index.js +0 -1
- package/v2Containers/Whatsapp/index.js +0 -1
- package/v2Containers/Zalo/index.js +0 -1
- package/v2Containers/Zalo/tests/index.test.js +5 -1
- package/utils/imageUrlUpload.js +0 -141
- package/v2Components/CapImageUrlUpload/constants.js +0 -26
- package/v2Components/CapImageUrlUpload/index.js +0 -365
- package/v2Components/CapImageUrlUpload/index.scss +0 -35
- package/v2Components/CapImageUrlUpload/messages.js +0 -47
- package/v2Containers/WebPush/Create/components/BrandIconSection.js +0 -108
- package/v2Containers/WebPush/Create/components/ButtonForm.js +0 -172
- package/v2Containers/WebPush/Create/components/ButtonItem.js +0 -101
- package/v2Containers/WebPush/Create/components/ButtonList.js +0 -145
- package/v2Containers/WebPush/Create/components/ButtonsLinksSection.js +0 -164
- package/v2Containers/WebPush/Create/components/ButtonsLinksSection.test.js +0 -463
- package/v2Containers/WebPush/Create/components/FormActions.js +0 -54
- package/v2Containers/WebPush/Create/components/FormActions.test.js +0 -163
- package/v2Containers/WebPush/Create/components/MediaSection.js +0 -142
- package/v2Containers/WebPush/Create/components/MediaSection.test.js +0 -341
- package/v2Containers/WebPush/Create/components/MessageSection.js +0 -103
- package/v2Containers/WebPush/Create/components/MessageSection.test.js +0 -268
- package/v2Containers/WebPush/Create/components/NotificationTitleSection.js +0 -87
- package/v2Containers/WebPush/Create/components/NotificationTitleSection.test.js +0 -210
- package/v2Containers/WebPush/Create/components/TemplateNameSection.js +0 -54
- package/v2Containers/WebPush/Create/components/TemplateNameSection.test.js +0 -143
- package/v2Containers/WebPush/Create/components/__snapshots__/ButtonsLinksSection.test.js.snap +0 -86
- package/v2Containers/WebPush/Create/components/__snapshots__/FormActions.test.js.snap +0 -16
- package/v2Containers/WebPush/Create/components/__snapshots__/MediaSection.test.js.snap +0 -41
- package/v2Containers/WebPush/Create/components/__snapshots__/MessageSection.test.js.snap +0 -54
- package/v2Containers/WebPush/Create/components/__snapshots__/NotificationTitleSection.test.js.snap +0 -37
- package/v2Containers/WebPush/Create/components/__snapshots__/TemplateNameSection.test.js.snap +0 -21
- package/v2Containers/WebPush/Create/components/_buttons.scss +0 -246
- package/v2Containers/WebPush/Create/components/tests/ButtonForm.test.js +0 -554
- package/v2Containers/WebPush/Create/components/tests/ButtonItem.test.js +0 -607
- package/v2Containers/WebPush/Create/components/tests/ButtonList.test.js +0 -633
- package/v2Containers/WebPush/Create/components/tests/__snapshots__/ButtonForm.test.js.snap +0 -666
- package/v2Containers/WebPush/Create/components/tests/__snapshots__/ButtonItem.test.js.snap +0 -74
- package/v2Containers/WebPush/Create/components/tests/__snapshots__/ButtonList.test.js.snap +0 -78
- package/v2Containers/WebPush/Create/hooks/useButtonManagement.js +0 -138
- package/v2Containers/WebPush/Create/hooks/useButtonManagement.test.js +0 -406
- package/v2Containers/WebPush/Create/hooks/useCharacterCount.js +0 -30
- package/v2Containers/WebPush/Create/hooks/useCharacterCount.test.js +0 -151
- package/v2Containers/WebPush/Create/hooks/useImageUpload.js +0 -104
- package/v2Containers/WebPush/Create/hooks/useImageUpload.test.js +0 -538
- package/v2Containers/WebPush/Create/hooks/useTagManagement.js +0 -122
- package/v2Containers/WebPush/Create/hooks/useTagManagement.test.js +0 -633
- package/v2Containers/WebPush/Create/index.js +0 -1148
- package/v2Containers/WebPush/Create/index.scss +0 -134
- package/v2Containers/WebPush/Create/messages.js +0 -211
- package/v2Containers/WebPush/Create/preview/DevicePreviewContent.js +0 -228
- package/v2Containers/WebPush/Create/preview/NotificationContainer.js +0 -294
- package/v2Containers/WebPush/Create/preview/PreviewContent.js +0 -90
- package/v2Containers/WebPush/Create/preview/PreviewControls.js +0 -305
- package/v2Containers/WebPush/Create/preview/PreviewDisclaimer.js +0 -25
- package/v2Containers/WebPush/Create/preview/WebPushPreview.js +0 -155
- package/v2Containers/WebPush/Create/preview/assets/Light.svg +0 -53
- package/v2Containers/WebPush/Create/preview/assets/Top.svg +0 -5
- package/v2Containers/WebPush/Create/preview/assets/android-arrow-down.svg +0 -9
- package/v2Containers/WebPush/Create/preview/assets/android-arrow-up.svg +0 -9
- package/v2Containers/WebPush/Create/preview/assets/chrome-icon.png +0 -0
- package/v2Containers/WebPush/Create/preview/assets/edge-icon.png +0 -0
- package/v2Containers/WebPush/Create/preview/assets/firefox-icon.svg +0 -106
- package/v2Containers/WebPush/Create/preview/assets/iOS.svg +0 -26
- package/v2Containers/WebPush/Create/preview/assets/macos-arrow-down-icon.svg +0 -9
- package/v2Containers/WebPush/Create/preview/assets/macos-triple-dot-icon.svg +0 -9
- package/v2Containers/WebPush/Create/preview/assets/opera-icon.svg +0 -18
- package/v2Containers/WebPush/Create/preview/assets/safari-icon.svg +0 -29
- package/v2Containers/WebPush/Create/preview/assets/windows-close-icon.svg +0 -9
- package/v2Containers/WebPush/Create/preview/assets/windows-triple-dot-icon.svg +0 -9
- package/v2Containers/WebPush/Create/preview/components/AndroidMobileChromeHeader.js +0 -51
- package/v2Containers/WebPush/Create/preview/components/AndroidMobileExpanded.js +0 -145
- package/v2Containers/WebPush/Create/preview/components/IOSHeader.js +0 -45
- package/v2Containers/WebPush/Create/preview/components/NotificationExpandedContent.js +0 -68
- package/v2Containers/WebPush/Create/preview/components/NotificationHeader.js +0 -61
- package/v2Containers/WebPush/Create/preview/components/WindowsChromeExpanded.js +0 -99
- package/v2Containers/WebPush/Create/preview/components/tests/AndroidMobileExpanded.test.js +0 -733
- package/v2Containers/WebPush/Create/preview/components/tests/WindowsChromeExpanded.test.js +0 -571
- package/v2Containers/WebPush/Create/preview/components/tests/__snapshots__/AndroidMobileExpanded.test.js.snap +0 -85
- package/v2Containers/WebPush/Create/preview/components/tests/__snapshots__/WindowsChromeExpanded.test.js.snap +0 -81
- package/v2Containers/WebPush/Create/preview/config/notificationMappings.js +0 -50
- package/v2Containers/WebPush/Create/preview/constants.js +0 -637
- package/v2Containers/WebPush/Create/preview/notification-container.scss +0 -79
- package/v2Containers/WebPush/Create/preview/preview.scss +0 -358
- package/v2Containers/WebPush/Create/preview/styles/_android-mobile-chrome.scss +0 -370
- package/v2Containers/WebPush/Create/preview/styles/_android-mobile-edge.scss +0 -12
- package/v2Containers/WebPush/Create/preview/styles/_android-mobile-firefox.scss +0 -12
- package/v2Containers/WebPush/Create/preview/styles/_android-mobile-opera.scss +0 -12
- package/v2Containers/WebPush/Create/preview/styles/_android-tablet-chrome.scss +0 -47
- package/v2Containers/WebPush/Create/preview/styles/_android-tablet-edge.scss +0 -11
- package/v2Containers/WebPush/Create/preview/styles/_android-tablet-firefox.scss +0 -11
- package/v2Containers/WebPush/Create/preview/styles/_android-tablet-opera.scss +0 -11
- package/v2Containers/WebPush/Create/preview/styles/_base.scss +0 -207
- package/v2Containers/WebPush/Create/preview/styles/_ios.scss +0 -153
- package/v2Containers/WebPush/Create/preview/styles/_ipados.scss +0 -107
- package/v2Containers/WebPush/Create/preview/styles/_macos-chrome.scss +0 -101
- package/v2Containers/WebPush/Create/preview/styles/_windows-chrome.scss +0 -229
- package/v2Containers/WebPush/Create/preview/tests/DevicePreviewContent.test.js +0 -909
- package/v2Containers/WebPush/Create/preview/tests/NotificationContainer.test.js +0 -1081
- package/v2Containers/WebPush/Create/preview/tests/PreviewControls.test.js +0 -723
- package/v2Containers/WebPush/Create/preview/tests/WebPushPreview.test.js +0 -1327
- package/v2Containers/WebPush/Create/preview/tests/__snapshots__/DevicePreviewContent.test.js.snap +0 -131
- package/v2Containers/WebPush/Create/preview/tests/__snapshots__/NotificationContainer.test.js.snap +0 -112
- package/v2Containers/WebPush/Create/preview/tests/__snapshots__/PreviewControls.test.js.snap +0 -144
- package/v2Containers/WebPush/Create/preview/tests/__snapshots__/WebPushPreview.test.js.snap +0 -129
- package/v2Containers/WebPush/Create/utils/payloadBuilder.js +0 -96
- package/v2Containers/WebPush/Create/utils/payloadBuilder.test.js +0 -396
- package/v2Containers/WebPush/Create/utils/previewUtils.js +0 -89
- package/v2Containers/WebPush/Create/utils/urlValidation.js +0 -115
- package/v2Containers/WebPush/Create/utils/urlValidation.test.js +0 -449
- package/v2Containers/WebPush/Create/utils/validation.js +0 -76
- package/v2Containers/WebPush/Create/utils/validation.test.js +0 -283
- package/v2Containers/WebPush/actions.js +0 -60
- package/v2Containers/WebPush/constants.js +0 -132
- package/v2Containers/WebPush/index.js +0 -2
- package/v2Containers/WebPush/reducer.js +0 -104
- package/v2Containers/WebPush/sagas.js +0 -119
- package/v2Containers/WebPush/selectors.js +0 -65
- package/v2Containers/WebPush/tests/reducer.test.js +0 -863
- package/v2Containers/WebPush/tests/sagas.test.js +0 -566
- package/v2Containers/WebPush/tests/selectors.test.js +0 -960
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
@import '~@capillarytech/cap-ui-library/styles/_variables';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Windows + Chrome Notification Styles
|
|
5
|
-
* Also applies to Windows + Firefox/Edge/Opera (they extend this)
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
.notification-container.windows-chrome {
|
|
9
|
-
// Inherit shared styles from macOS Chrome
|
|
10
|
-
@extend .notification-container.macos-chrome;
|
|
11
|
-
|
|
12
|
-
// Collapsed state - ensure header aligns center vertically and add brand icon border-radius
|
|
13
|
-
&.collapsed .notification-header {
|
|
14
|
-
align-items: center;
|
|
15
|
-
|
|
16
|
-
.notification-brand-icon-container {
|
|
17
|
-
.notification-brand-icon {
|
|
18
|
-
border-radius: 5px;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.expanded {
|
|
24
|
-
width: 100%;
|
|
25
|
-
max-width: 352px;
|
|
26
|
-
background: $CAP_G09;
|
|
27
|
-
border: 1px solid $CAP_G07;
|
|
28
|
-
border-radius: 4px;
|
|
29
|
-
padding: 0;
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
|
|
33
|
-
.windows-chrome-expanded-wrapper {
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
gap: 10px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.windows-chrome-banner {
|
|
42
|
-
width: 100%;
|
|
43
|
-
line-height: 0;
|
|
44
|
-
|
|
45
|
-
.windows-chrome-banner-image {
|
|
46
|
-
width: 100%;
|
|
47
|
-
height: 151px;
|
|
48
|
-
object-fit: cover;
|
|
49
|
-
display: block;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.windows-chrome-body {
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
gap: 12px;
|
|
57
|
-
padding: 0 12px 12px 12px;
|
|
58
|
-
width: 100%;
|
|
59
|
-
box-sizing: border-box;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.windows-chrome-header-row {
|
|
63
|
-
display: flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
gap: 8px;
|
|
66
|
-
width: 100%;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.windows-chrome-browser-icon {
|
|
70
|
-
width: 32px;
|
|
71
|
-
height: 32px;
|
|
72
|
-
background: $CAP_G09;
|
|
73
|
-
border-radius: 6px;
|
|
74
|
-
padding: 6px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.windows-chrome-browser-title {
|
|
78
|
-
flex: 1;
|
|
79
|
-
font-weight: 600;
|
|
80
|
-
font-size: $FONT_SIZE_S;
|
|
81
|
-
color: $FONT_COLOR_01;
|
|
82
|
-
margin: 0;
|
|
83
|
-
font-family: 'Roboto', 'Segoe UI', sans-serif;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.windows-chrome-header-actions {
|
|
87
|
-
display: flex;
|
|
88
|
-
align-items: center;
|
|
89
|
-
gap: 8px;
|
|
90
|
-
|
|
91
|
-
.windows-chrome-menu-text {
|
|
92
|
-
font-weight: 500;
|
|
93
|
-
font-size: $FONT_SIZE_M;
|
|
94
|
-
color: $FONT_COLOR_01;
|
|
95
|
-
line-height: 1;
|
|
96
|
-
user-select: none;
|
|
97
|
-
font-family: 'Roboto', 'Segoe UI', sans-serif;
|
|
98
|
-
display: flex;
|
|
99
|
-
align-items: center;
|
|
100
|
-
justify-content: center;
|
|
101
|
-
|
|
102
|
-
.windows-chrome-menu-icon {
|
|
103
|
-
height: $FONT_SIZE_M;
|
|
104
|
-
width: auto;
|
|
105
|
-
display: block;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.windows-chrome-close-text {
|
|
110
|
-
font-weight: 500;
|
|
111
|
-
font-size: $FONT_SIZE_M;
|
|
112
|
-
color: $FONT_COLOR_01;
|
|
113
|
-
line-height: 1;
|
|
114
|
-
user-select: none;
|
|
115
|
-
font-family: 'Roboto', 'Segoe UI', sans-serif;
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
justify-content: center;
|
|
119
|
-
|
|
120
|
-
.windows-chrome-close-icon {
|
|
121
|
-
height: $FONT_SIZE_M;
|
|
122
|
-
width: auto;
|
|
123
|
-
display: block;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.windows-chrome-content-row {
|
|
129
|
-
display: flex;
|
|
130
|
-
align-items: flex-start;
|
|
131
|
-
gap: 12px;
|
|
132
|
-
width: 100%;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.windows-chrome-brand-icon {
|
|
136
|
-
width: 42px;
|
|
137
|
-
height: 42px;
|
|
138
|
-
padding: 0;
|
|
139
|
-
border-radius: 4px;
|
|
140
|
-
border: 1px solid $CAP_G07;
|
|
141
|
-
background: $CAP_WHITE;
|
|
142
|
-
flex-shrink: 0;
|
|
143
|
-
|
|
144
|
-
.notification-brand-icon {
|
|
145
|
-
width: 100%;
|
|
146
|
-
height: 100%;
|
|
147
|
-
object-fit: cover;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.windows-chrome-text-block {
|
|
152
|
-
display: flex;
|
|
153
|
-
flex-direction: column;
|
|
154
|
-
gap: 4px;
|
|
155
|
-
min-width: 0;
|
|
156
|
-
width: 100%;
|
|
157
|
-
font-family: 'Roboto', 'Segoe UI', sans-serif;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.windows-chrome-title {
|
|
161
|
-
font-weight: 600;
|
|
162
|
-
font-size: $FONT_SIZE_S;
|
|
163
|
-
color: $FONT_COLOR_01;
|
|
164
|
-
margin: 0;
|
|
165
|
-
line-height: 14px;
|
|
166
|
-
word-break: break-word;
|
|
167
|
-
font-family: 'Roboto', 'Segoe UI', sans-serif;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.windows-chrome-url {
|
|
171
|
-
font-weight: 500;
|
|
172
|
-
font-size: $FONT_SIZE_VS;
|
|
173
|
-
color: $FONT_COLOR_01;
|
|
174
|
-
margin: 0;
|
|
175
|
-
line-height: 12px;
|
|
176
|
-
word-break: break-word;
|
|
177
|
-
font-family: 'Roboto', 'Segoe UI', sans-serif;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.windows-chrome-body-text {
|
|
181
|
-
font-weight: 400;
|
|
182
|
-
font-size: $FONT_SIZE_VS;
|
|
183
|
-
color: $FONT_COLOR_01;
|
|
184
|
-
margin: 0;
|
|
185
|
-
line-height: 12px;
|
|
186
|
-
word-break: break-word;
|
|
187
|
-
font-family: 'Roboto', 'Segoe UI', sans-serif;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.windows-chrome-cta-container {
|
|
191
|
-
display: flex;
|
|
192
|
-
gap: 8px;
|
|
193
|
-
width: 100%;
|
|
194
|
-
margin-top: 4px;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.windows-chrome-cta-button {
|
|
198
|
-
height: 32px;
|
|
199
|
-
padding: 6px 24px;
|
|
200
|
-
border-radius: 4px;
|
|
201
|
-
border: 1px solid $CAP_G07;
|
|
202
|
-
background: $CAP_WHITE;
|
|
203
|
-
cursor: pointer;
|
|
204
|
-
box-sizing: border-box;
|
|
205
|
-
width: 148px;
|
|
206
|
-
flex-shrink: 0;
|
|
207
|
-
display: flex;
|
|
208
|
-
align-items: center;
|
|
209
|
-
justify-content: center;
|
|
210
|
-
font-family: 'Roboto', 'Segoe UI', sans-serif;
|
|
211
|
-
|
|
212
|
-
&.windows-chrome-cta-button-single {
|
|
213
|
-
width: 100%;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.windows-chrome-cta-button-text {
|
|
217
|
-
font-weight: $FONT_WEIGHT_MEDIUM;
|
|
218
|
-
font-size: $FONT_SIZE_S;
|
|
219
|
-
color: $FONT_COLOR_01;
|
|
220
|
-
white-space: nowrap;
|
|
221
|
-
overflow: hidden;
|
|
222
|
-
text-overflow: ellipsis;
|
|
223
|
-
max-width: 100%;
|
|
224
|
-
line-height: 1;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|