@capillarytech/creatives-library 8.0.325 → 8.0.327
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
|
@@ -150,8 +150,7 @@
|
|
|
150
150
|
margin-right: 0.5rem;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
|
|
154
|
-
.cap-slide-box-v2.common-test-and-preview-slidebox {
|
|
153
|
+
.cap-slide-box-v2.common-test-and-preview-slidebox .cap-slide-box-v2-container {
|
|
155
154
|
z-index: 10030;
|
|
156
155
|
}
|
|
157
156
|
|
|
@@ -743,7 +743,6 @@ export class Creatives extends React.Component {
|
|
|
743
743
|
smsFallBackContent = {},
|
|
744
744
|
creativeName = "",
|
|
745
745
|
channel = constants.RCS,
|
|
746
|
-
accountId = "",
|
|
747
746
|
rcsCardVarMapped,
|
|
748
747
|
} = templateData || {};
|
|
749
748
|
const { isFullMode: isFullModeForRcsPayload } = this.props;
|
|
@@ -785,7 +784,6 @@ export class Creatives extends React.Component {
|
|
|
785
784
|
RCS: {
|
|
786
785
|
rcsContent: {
|
|
787
786
|
...rcsContent,
|
|
788
|
-
...(accountId && !isFullMode && { accountId }),
|
|
789
787
|
cardContent: [
|
|
790
788
|
{
|
|
791
789
|
...cardContent,
|
|
@@ -1237,7 +1235,7 @@ export class Creatives extends React.Component {
|
|
|
1237
1235
|
};
|
|
1238
1236
|
}
|
|
1239
1237
|
break;
|
|
1240
|
-
case constants.FACEBOOK:
|
|
1238
|
+
case constants.FACEBOOK: {
|
|
1241
1239
|
if (template.value) {
|
|
1242
1240
|
const FacebookAd = template?.value?.versions?.base?.content?.FacebookAd;
|
|
1243
1241
|
const { type } = FacebookAd[0];
|
|
@@ -1281,8 +1279,9 @@ export class Creatives extends React.Component {
|
|
|
1281
1279
|
selectedMarketingObjective: template.value.selectedMarketingObjective,
|
|
1282
1280
|
};
|
|
1283
1281
|
}
|
|
1282
|
+
}
|
|
1284
1283
|
break;
|
|
1285
|
-
case constants.RCS:
|
|
1284
|
+
case constants.RCS: {
|
|
1286
1285
|
if (template.value) {
|
|
1287
1286
|
const { isFullMode: isFullModeForRcsConsumerPayload } = this.props;
|
|
1288
1287
|
const { name = "", versions = {} } = template.value || {};
|
|
@@ -1330,7 +1329,6 @@ export class Creatives extends React.Component {
|
|
|
1330
1329
|
contentType = "",
|
|
1331
1330
|
cardType = "",
|
|
1332
1331
|
cardSettings = {},
|
|
1333
|
-
accountId = "",
|
|
1334
1332
|
} = get(versions, 'base.content.RCS.rcsContent', {});
|
|
1335
1333
|
const rootRcsCardVarMappedFromSubmit = get(template, 'value.rcsCardVarMapped');
|
|
1336
1334
|
const firstCardFromSubmit = Array.isArray(cardContentFromSubmit)
|
|
@@ -1360,7 +1358,6 @@ export class Creatives extends React.Component {
|
|
|
1360
1358
|
channel,
|
|
1361
1359
|
creativeName: name,
|
|
1362
1360
|
rcsContent,
|
|
1363
|
-
accountId: accountId,
|
|
1364
1361
|
...(includeRootRcsCardVarMappedOnConsumerPayload
|
|
1365
1362
|
? { rcsCardVarMapped: cardVarMappedFromFirstRcsCard }
|
|
1366
1363
|
: {}),
|
|
@@ -1382,8 +1379,9 @@ export class Creatives extends React.Component {
|
|
|
1382
1379
|
};
|
|
1383
1380
|
}
|
|
1384
1381
|
}
|
|
1382
|
+
}
|
|
1385
1383
|
break;
|
|
1386
|
-
case constants.ZALO:
|
|
1384
|
+
case constants.ZALO: {
|
|
1387
1385
|
if (template.value) {
|
|
1388
1386
|
templateData = {
|
|
1389
1387
|
...template.value,
|
|
@@ -1392,6 +1390,7 @@ export class Creatives extends React.Component {
|
|
|
1392
1390
|
delete templateData.type;
|
|
1393
1391
|
}
|
|
1394
1392
|
}
|
|
1393
|
+
}
|
|
1395
1394
|
break;
|
|
1396
1395
|
case constants.WEBPUSH: {
|
|
1397
1396
|
if (template.value) {
|
|
@@ -262,7 +262,6 @@ export const Rcs = (props) => {
|
|
|
262
262
|
const [accessToken, setAccessToken] = useState('');
|
|
263
263
|
const [hostName, setHostName] = useState('');
|
|
264
264
|
const [accountName, setAccountName] = useState('');
|
|
265
|
-
const [rcsAccount, setRcsAccount] = useState('');
|
|
266
265
|
useEffect(() => {
|
|
267
266
|
const accountObj = accountData.selectedRcsAccount || {};
|
|
268
267
|
if (!isEmpty(accountObj)) {
|
|
@@ -278,14 +277,12 @@ export const Rcs = (props) => {
|
|
|
278
277
|
setAccessToken(configs.accessToken || '');
|
|
279
278
|
setHostName(accountObj.hostName || '');
|
|
280
279
|
setAccountName(accountObj.name || '');
|
|
281
|
-
setRcsAccount(accountObj.id || '');
|
|
282
280
|
} else {
|
|
283
281
|
setAccountId('');
|
|
284
282
|
setWecrmAccountId('');
|
|
285
283
|
setAccessToken('');
|
|
286
284
|
setHostName('');
|
|
287
285
|
setAccountName('');
|
|
288
|
-
setRcsAccount('');
|
|
289
286
|
}
|
|
290
287
|
}, [accountData.selectedRcsAccount]);
|
|
291
288
|
|
|
@@ -753,10 +750,7 @@ export const Rcs = (props) => {
|
|
|
753
750
|
get(details, 'versions.base.content.RCS.rcsContent.cardSettings', '')
|
|
754
751
|
|| get(details, 'rcsContent.cardSettings', '');
|
|
755
752
|
setMediaData(mediaData, mediaType, cardSettings);
|
|
756
|
-
|
|
757
|
-
const rcsAccountId = get(details, 'versions.base.content.RCS.rcsContent.accountId', '');
|
|
758
|
-
setRcsAccount(rcsAccountId);
|
|
759
|
-
}
|
|
753
|
+
|
|
760
754
|
const smsFallbackContent = mergeRcsSmsFallBackContentFromDetails(details);
|
|
761
755
|
const base = get(smsFallbackContent, 'versions.base', {});
|
|
762
756
|
const updatedEditor = base['updated-sms-editor'] ?? base['sms-editor'];
|
|
@@ -1972,7 +1966,6 @@ const onTitleAddVar = () => {
|
|
|
1972
1966
|
content: {
|
|
1973
1967
|
RCS: {
|
|
1974
1968
|
rcsContent: {
|
|
1975
|
-
...(rcsAccount && !isFullMode && { accountId: rcsAccount }),
|
|
1976
1969
|
cardType: STANDALONE,
|
|
1977
1970
|
cardSettings: {
|
|
1978
1971
|
cardOrientation: isMediaTypeImage ? RCS_IMAGE_DIMENSIONS[selectedDimension]?.orientation || VERTICAL : RCS_VIDEO_THUMBNAIL_DIMENSIONS[selectedDimension]?.orientation || VERTICAL,
|