@capillarytech/creatives-library 7.17.223-alpha.0 → 7.17.223
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/containers/MobilePush/Create/index.js +1 -1
- package/containers/MobilePush/Edit/index.js +1 -1
- package/package.json +1 -1
- package/v2Containers/MobilePush/Create/index.js +1 -1
- package/v2Containers/MobilePush/Edit/index.js +1 -1
- package/v2Containers/TagList/index.js +1 -1
- package/v2Containers/TagList/tests/TagList.test.js +4 -5
- package/v2Containers/TagList/tests/mockdata.js +2 -23
|
@@ -568,7 +568,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
568
568
|
message: ios['message-editor2'],
|
|
569
569
|
expandableDetails: {
|
|
570
570
|
style: "BIG_TEXT",
|
|
571
|
-
message: ios['message-
|
|
571
|
+
message: ios['message-editor2'],
|
|
572
572
|
ctas: [
|
|
573
573
|
],
|
|
574
574
|
categoryId: ios['secondary-cta-1-table'] ? ios['secondary-cta-1-table'].id : undefined,
|
|
@@ -631,7 +631,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
631
631
|
message: ios['message-editor2'],
|
|
632
632
|
expandableDetails: {
|
|
633
633
|
style: "BIG_TEXT",
|
|
634
|
-
message: ios['message-
|
|
634
|
+
message: ios['message-editor2'],
|
|
635
635
|
ctas: [
|
|
636
636
|
|
|
637
637
|
],
|
package/package.json
CHANGED
|
@@ -462,7 +462,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
462
462
|
message: ios['message-editor2'],
|
|
463
463
|
expandableDetails: {
|
|
464
464
|
style: "BIG_TEXT",
|
|
465
|
-
message: ios['message-
|
|
465
|
+
message: ios['message-editor2'],
|
|
466
466
|
ctas: [
|
|
467
467
|
],
|
|
468
468
|
},
|
|
@@ -482,7 +482,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
482
482
|
message: ios['message-editor2'],
|
|
483
483
|
expandableDetails: {
|
|
484
484
|
style: "BIG_TEXT",
|
|
485
|
-
message: ios['message-
|
|
485
|
+
message: ios['message-editor2'],
|
|
486
486
|
ctas: [
|
|
487
487
|
|
|
488
488
|
],
|
|
@@ -117,7 +117,7 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
|
|
|
117
117
|
|
|
118
118
|
eventContextTags.forEach((tag) => {
|
|
119
119
|
const { tagName, label, profileId, profileName } = tag || {};
|
|
120
|
-
|
|
120
|
+
if (!profileId || !tagName || !label || !profileName) return;
|
|
121
121
|
// Initializing the tags profile if it doesn't exist
|
|
122
122
|
if (!eventContextTagsObj?.eventContextTags?.subtags?.[profileId]) {
|
|
123
123
|
eventContextTagsObj.eventContextTags.subtags[profileId] = {
|
|
@@ -7,7 +7,7 @@ import { TagList } from '../index';
|
|
|
7
7
|
import { TagListData, eventContextTags } from './mockdata';
|
|
8
8
|
import { Provider } from 'react-redux';
|
|
9
9
|
import { screen, render } from '../../../utils/test-utils';
|
|
10
|
-
const { getByText } = screen;
|
|
10
|
+
const { getByText, queryByText } = screen;
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
const initializeTagList = (props) => {
|
|
@@ -52,9 +52,8 @@ describe("TagList test : UNIT", () => {
|
|
|
52
52
|
fireEvent.click(CUSTOMER_PROFILE);
|
|
53
53
|
expect(getByText(/lifetimePurchases/i)).toBeInTheDocument();
|
|
54
54
|
|
|
55
|
-
// Behavioural event profile tags
|
|
56
|
-
const BEHAVIOURAL_EVENT_PROFILE =
|
|
57
|
-
|
|
58
|
-
expect(getByText(/raindrops/i)).toBeInTheDocument();
|
|
55
|
+
// Behavioural event profile tags should not be visible as label and profile name is not present
|
|
56
|
+
const BEHAVIOURAL_EVENT_PROFILE = queryByText(/Behavioural event/i);
|
|
57
|
+
expect(BEHAVIOURAL_EVENT_PROFILE).not.toBeInTheDocument();
|
|
59
58
|
});
|
|
60
59
|
});
|
|
@@ -110,29 +110,8 @@ export const TagListData = {
|
|
|
110
110
|
export const eventContextTags = [
|
|
111
111
|
{
|
|
112
112
|
"profileId": "BEHAVIOURAL_EVENT_PROFILE",
|
|
113
|
-
"profileName": "Behavioural event",
|
|
114
|
-
"label":
|
|
115
|
-
"method": "getEventData",
|
|
116
|
-
"field": "butterfly",
|
|
117
|
-
"params": null,
|
|
118
|
-
"returnType": {
|
|
119
|
-
"isList": false,
|
|
120
|
-
"typeInfo": {
|
|
121
|
-
"type": "DOUBLE",
|
|
122
|
-
"typeId": null
|
|
123
|
-
},
|
|
124
|
-
"list": false
|
|
125
|
-
},
|
|
126
|
-
"factId": "getEventData_butterfly",
|
|
127
|
-
"tagName": "(butterfly)",
|
|
128
|
-
"isTaggable": true,
|
|
129
|
-
"uniqueId": "yW_DH7vjKk__BEHAVIOURAL__monsoon",
|
|
130
|
-
"isDynamicFact": true
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"profileId": "BEHAVIOURAL_EVENT_PROFILE",
|
|
134
|
-
"profileName": "Behavioural event",
|
|
135
|
-
"label": 'raindrops',
|
|
113
|
+
// "profileName": "Behavioural event",
|
|
114
|
+
// "label": 'raindrops',
|
|
136
115
|
"method": "getEventData",
|
|
137
116
|
"field": "raindrops",
|
|
138
117
|
"params": null,
|