@capillarytech/creatives-library 7.17.64 → 7.17.65

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": "7.17.64",
4
+ "version": "7.17.65",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -89,10 +89,10 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
89
89
 
90
90
  // we only show channels which other than commonChannels
91
91
  // if it is coming in enableNewChannels array
92
- filteredPanes.filter((item) => {
92
+ filteredPanes = filteredPanes.filter((item) => {
93
93
  const channel = item.key;
94
94
  if (!commonChannels.includes(channel)) {
95
- return !enableNewChannels.includes(channel.toUpperCase());
95
+ return enableNewChannels.includes(channel.toUpperCase());
96
96
  }
97
97
  return true;
98
98
  });
@@ -77,7 +77,9 @@ describe("Test TemplatesV2", () => {
77
77
  expect(getByText('Email')).toBeInTheDocument();
78
78
  expect(getByText('Line')).toBeInTheDocument();
79
79
  expect(getByText('Gallery')).toBeInTheDocument();
80
- expect(queryByText('RCS')).toBeNull();
80
+ expect(queryByText('RCS')).not.toBeInTheDocument();
81
+ expect(queryByText('WhatsApp')).not.toBeInTheDocument();
82
+ expect(queryByText('Zalo')).not.toBeInTheDocument();
81
83
  });
82
84
 
83
85
  it("Should show all other channels", () => {