@capillarytech/creatives-library 8.0.299-alpha.7 → 8.0.299
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/v2Components/CommonTestAndPreview/CustomerCreationModal.js +2 -2
- package/v2Components/CommonTestAndPreview/ExistingCustomerModal.js +1 -1
- package/v2Components/CommonTestAndPreview/SendTestMessage.js +1 -1
- package/v2Components/CommonTestAndPreview/_commonTestAndPreview.scss +813 -761
- package/v2Components/CommonTestAndPreview/index.js +6 -2
- package/v2Components/CommonTestAndPreview/tests/CommonTestAndPreview.addTestCustomer.test.js +6 -2
- package/v2Components/CommonTestAndPreview/tests/CustomValuesEditor.test.js +172 -0
- package/v2Components/CommonTestAndPreview/tests/CustomerCreationModal.test.js +150 -0
- package/v2Components/CommonTestAndPreview/tests/index.test.js +29 -0
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ const CustomerCreationModal = ({
|
|
|
74
74
|
const details = res.customerDetails || [];
|
|
75
75
|
if (!success) {
|
|
76
76
|
const errorMessage = response?.message || response?.status?.message
|
|
77
|
-
if (errorMessage
|
|
77
|
+
if (errorMessage?.toLowerCase().includes("merged customer found")) {
|
|
78
78
|
return { success: true, exists: true, details: [] };
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -195,7 +195,7 @@ const CustomerCreationModal = ({
|
|
|
195
195
|
width={500}
|
|
196
196
|
maskStyle={{ backgroundColor: 'rgba(244, 245, 247, 0.9)' }}
|
|
197
197
|
footer={
|
|
198
|
-
<CapRow justify="start"
|
|
198
|
+
<CapRow justify="start" gutter={8}>
|
|
199
199
|
<CapButton
|
|
200
200
|
type="primary"
|
|
201
201
|
onClick={() => onSave(validationErrors, setIsLoading)}
|
|
@@ -2,7 +2,7 @@ import CapModal from "@capillarytech/cap-ui-library/CapModal";
|
|
|
2
2
|
import { FormattedMessage, injectIntl } from "react-intl";
|
|
3
3
|
import messages from "./messages";
|
|
4
4
|
import React, { useState } from "react";
|
|
5
|
-
import { CapCard, CapRow, CapColumn
|
|
5
|
+
import { CapCard, CapRow, CapColumn } from "@capillarytech/cap-ui-library";
|
|
6
6
|
import { CHANNELS } from "./constants";
|
|
7
7
|
import CapButton from "@capillarytech/cap-ui-library/CapButton";
|
|
8
8
|
import CapIcon from "@capillarytech/cap-ui-library/CapIcon";
|
|
@@ -134,7 +134,7 @@ SendTestMessage.defaultProps = {
|
|
|
134
134
|
channel: undefined,
|
|
135
135
|
renderAddTestCustomerButton: undefined,
|
|
136
136
|
searchValue: '',
|
|
137
|
-
setSearchValue:
|
|
137
|
+
setSearchValue: () => {}, // no-op when not provided; required by TreeSelect when showSearch is true
|
|
138
138
|
deliverySettings: {},
|
|
139
139
|
senderDetailsOptions: [],
|
|
140
140
|
wecrmAccounts: [],
|