@capillarytech/creatives-library 8.0.345-alpha.15 → 8.0.345-alpha.17

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.
@@ -1,74 +0,0 @@
1
- diff a/app/v2Containers/Rcs/index.scss b/app/v2Containers/Rcs/index.scss (rejected hunks)
2
- @@ -5,109 +5,54 @@
3
- position: fixed;
4
- bottom: 0;
5
- width: 100%;
6
- + margin-left: -32px;
7
- padding: $CAP_SPACE_32 $CAP_SPACE_24;
8
- + margin-top: 40px;
9
- z-index: 1;
10
- .ant-btn {
11
- margin-right: $CAP_SPACE_16;
12
- }
13
- -
14
- .rcs-test-preview-btn {
15
- margin-left: $CAP_SPACE_08;
16
- }
17
- }
18
-
19
- .cap-rcs-creatives {
20
- -
21
- -
22
- -
23
- -
24
- + .template-status-container {
25
- + width: 100%;
26
- + display: flex;
27
- + flex-direction: column;
28
- + align-items: flex-start;
29
- + margin-bottom: 1.25rem; // match spacing used across label sections (eg title/message labels)
30
-
31
- + .ant-alert {
32
- + width: 100%;
33
- + margin-top: $CAP_SPACE_08; // match label -> field spacing like other sections
34
- }
35
- }
36
-
37
- + .rcs-scroll-div {
38
- + margin-bottom: 150px;
39
- }
40
- + // Match WhatsApp visual spacing between editor column and preview column
41
- .rcs-preview-container {
42
- + padding-left: $CAP_SPACE_24;
43
- + display: flex;
44
- + justify-content: center;
45
- }
46
- .rcs-optional-label {
47
- + margin-left: 8px;
48
- color: $FONT_COLOR_03;
49
- font-weight: normal;
50
- }
51
- .rcs_text_area_wrapper {
52
- position: relative;
53
- }
54
- .rcs-button{
55
- display: inline-grid;
56
- }
57
- -
58
- -
59
- -
60
- -
61
- + .rcs-button-label{
62
- + margin-bottom: 17px;
63
- }
64
- .disabled-button{
65
- opacity: 0.5;
66
- @@ -202,12 +288,6 @@
67
- width: 430px;
68
- }
69
-
70
- -
71
- -
72
- .rcs-fallback-preview {
73
- &__header {
74
- color: $CAP_G01;
@@ -1,128 +0,0 @@
1
- diff a/app/v2Containers/Rcs/tests/__snapshots__/utils.test.js.snap b/app/v2Containers/Rcs/tests/__snapshots__/utils.test.js.snap (rejected hunks)
2
- @@ -2,41 +2,50 @@
3
-
4
- exports[`RCS utils getRCSContent renders RCS content with empty template 1`] = `
5
- <div
6
- + className="whatsapp-container"
7
- >
8
- + <span
9
- + className="whatsapp-message-without-media"
10
- + >
11
- + <div
12
- + className="CapLabel-n7zsf5-0 kXNxry"
13
- + type="label9"
14
- + >
15
- + <div
16
- + className="CapLabel-n7zsf5-0 kXNxry rcs-listing-title"
17
- + type="label9"
18
- + />
19
- + </div>
20
- + </span>
21
- </div>
22
- `;
23
-
24
- exports[`RCS utils getRCSContent renders RCS content with image and CTA suggestion 1`] = `
25
- <div
26
- + className="whatsapp-container"
27
- >
28
- <img
29
- + className="cap-image-v2 whatsapp-image"
30
- src="https://cdn.example.com/img.png"
31
- />
32
- + <span
33
- + className="whatsapp-message-with-media"
34
- >
35
- + <div
36
- + className="CapLabel-n7zsf5-0 kXNxry"
37
- + type="label9"
38
- + >
39
- + <div
40
- + className="CapLabel-n7zsf5-0 kXNxry rcs-listing-title"
41
- + type="label9"
42
- + >
43
- + Big Sale
44
- + </div>
45
- + <div>
46
- + Up to 50% off
47
- + </div>
48
- + </div>
49
- + </span>
50
- <div
51
- className="cap-divider-v2 whatsapp-divider ant-divider ant-divider-horizontal"
52
- role="separator"
53
- @@ -138,41 +147,50 @@ exports[`RCS utils getRCSContent renders RCS content with image and CTA suggesti
54
-
55
- exports[`RCS utils getRCSContent renders RCS content with missing cardContent 1`] = `
56
- <div
57
- + className="whatsapp-container"
58
- >
59
- + <span
60
- + className="whatsapp-message-without-media"
61
- + >
62
- + <div
63
- + className="CapLabel-n7zsf5-0 kXNxry"
64
- + type="label9"
65
- + >
66
- + <div
67
- + className="CapLabel-n7zsf5-0 kXNxry rcs-listing-title"
68
- + type="label9"
69
- + />
70
- + </div>
71
- + </span>
72
- </div>
73
- `;
74
-
75
- exports[`RCS utils getRCSContent renders RCS content with multiple suggestion types 1`] = `
76
- <div
77
- + className="whatsapp-container"
78
- >
79
- <img
80
- + className="cap-image-v2 whatsapp-image"
81
- src="https://cdn.example.com/img.png"
82
- />
83
- + <span
84
- + className="whatsapp-message-with-media"
85
- >
86
- + <div
87
- + className="CapLabel-n7zsf5-0 kXNxry"
88
- + type="label9"
89
- + >
90
- + <div
91
- + className="CapLabel-n7zsf5-0 kXNxry rcs-listing-title"
92
- + type="label9"
93
- + >
94
- + Big Sale
95
- + </div>
96
- + <div>
97
- + Up to 50% off
98
- + </div>
99
- + </div>
100
- + </span>
101
- <div
102
- className="cap-divider-v2 whatsapp-divider ant-divider ant-divider-horizontal"
103
- role="separator"
104
- @@ -299,14 +317,24 @@ exports[`RCS utils getRCSContent renders RCS content with multiple suggestion ty
105
-
106
- exports[`RCS utils getRCSContent renders RCS content with no media 1`] = `
107
- <div
108
- + className="whatsapp-container"
109
- >
110
- + <span
111
- + className="whatsapp-message-without-media"
112
- >
113
- + <div
114
- + className="CapLabel-n7zsf5-0 kXNxry"
115
- + type="label9"
116
- + >
117
- + <div
118
- + className="CapLabel-n7zsf5-0 kXNxry rcs-listing-title"
119
- + type="label9"
120
- + />
121
- + <div>
122
- + This is a text message body.
123
- + </div>
124
- + </div>
125
- + </span>
126
- <div
127
- className="cap-divider-v2 whatsapp-divider ant-divider ant-divider-horizontal"
128
- role="separator"