@capillarytech/creatives-library 7.9.0 → 7.9.1

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.
Files changed (29) hide show
  1. package/package.json +1 -1
  2. package/v2Containers/CreativesContainer/index.js +3 -3
  3. package/v2Containers/Templates/index.js +1 -0
  4. package/v2Components/TemplatePreview/assets/images/mobile.svg +0 -24
  5. package/v2Containers/Line/Create/_lineCreate.scss +0 -64
  6. package/v2Containers/Line/Create/actions.js +0 -94
  7. package/v2Containers/Line/Create/constants.js +0 -43
  8. package/v2Containers/Line/Create/index.js +0 -1132
  9. package/v2Containers/Line/Create/initialSchema.js +0 -378
  10. package/v2Containers/Line/Create/messages.js +0 -229
  11. package/v2Containers/Line/Create/reducer.js +0 -99
  12. package/v2Containers/Line/Create/sagas.js +0 -113
  13. package/v2Containers/Line/Create/selectors.js +0 -30
  14. package/v2Containers/Line/CreateWrapper/constants.js +0 -2
  15. package/v2Containers/Line/CreateWrapper/index.js +0 -117
  16. package/v2Containers/Line/CreateWrapper/messages.js +0 -55
  17. package/v2Containers/Line/Edit/_lineEdit.scss +0 -23
  18. package/v2Containers/Line/Edit/actions.js +0 -79
  19. package/v2Containers/Line/Edit/constants.js +0 -27
  20. package/v2Containers/Line/Edit/index.js +0 -1051
  21. package/v2Containers/Line/Edit/messages.js +0 -173
  22. package/v2Containers/Line/Edit/reducer.js +0 -83
  23. package/v2Containers/Line/Edit/sagas.js +0 -81
  24. package/v2Containers/Line/Edit/selectors.js +0 -29
  25. package/v2Containers/Line/Edit/tests/actions.test.js +0 -18
  26. package/v2Containers/Line/Edit/tests/index.test.js +0 -10
  27. package/v2Containers/Line/Edit/tests/reducer.test.js +0 -9
  28. package/v2Containers/Line/Edit/tests/sagas.test.js +0 -15
  29. package/v2Containers/Line/Edit/tests/selectors.test.js +0 -10
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.9.0",
4
+ "version": "7.9.1",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -27,7 +27,7 @@ import {isLoading as isLoadingSelector} from './selectors';
27
27
  import messages from './messages';
28
28
  import { MAP_TEMPLATE } from '../WeChat/Wrapper/constants';
29
29
  import { makeSelectFetchingCmsData } from '../Email/selectors';
30
- import { IMAGE, IMAGE_MAP, IMAGE_CAROUSEL, VIDEO, TEMPLATE, STICKER } from '../Line/Container/constants';
30
+ import { IMAGE as LINE_IMAGE, IMAGE_MAP, IMAGE_CAROUSEL, VIDEO as LINE_VIDEO, TEMPLATE, STICKER } from '../Line/Container/constants';
31
31
  import {IMAGE, VIDEO } from '../Facebook/Advertisement/constant';
32
32
  import { CREATIVE } from '../Facebook/constants';
33
33
 
@@ -573,8 +573,8 @@ class Creatives extends React.Component {
573
573
  } = JSON.parse(messageBody);
574
574
  const typeOfMessages = lineMessages.map((message) => message.type);
575
575
  return {
576
- imageAdded: typeOfMessages.some((type) => [IMAGE, IMAGE_MAP, IMAGE_CAROUSEL, TEMPLATE].includes(type)),
577
- videoAdded: typeOfMessages.includes(VIDEO),
576
+ imageAdded: typeOfMessages.some((type) => [LINE_IMAGE, IMAGE_MAP, IMAGE_CAROUSEL, TEMPLATE].includes(type)),
577
+ videoAdded: typeOfMessages.includes(LINE_VIDEO),
578
578
  stickerAdded: typeOfMessages.includes(STICKER),
579
579
  };
580
580
  }
@@ -2028,6 +2028,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
2028
2028
  onChange={(e) => this.searchTemplate(e.target.value)}
2029
2029
  disabled={this.checkSearchDisabled()}
2030
2030
  onClear={() => this.searchTemplate('')}
2031
+ onScroll={(e) => e.stopPropagation()}
2031
2032
  />}
2032
2033
  {
2033
2034
  channel.toUpperCase() === WECHAT && <CapRadio.CapRadioGroup className="wechat-filters" defaultValue={wechatFilter} onChange={this.setWechatFilter}>