@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.299-alpha.7",
4
+ "version": "8.0.299",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -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.toLowerCase().includes("merged customer found")) {
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" text-align="left" gutter={8}>
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, CapLabel } from "@capillarytech/cap-ui-library";
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: undefined,
137
+ setSearchValue: () => {}, // no-op when not provided; required by TreeSelect when showSearch is true
138
138
  deliverySettings: {},
139
139
  senderDetailsOptions: [],
140
140
  wecrmAccounts: [],