@capillarytech/creatives-library 6.8.2 → 6.8.3

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 (60) hide show
  1. package/package.json +1 -1
  2. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +151 -151
  3. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +33 -33
  4. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/tests/index.test.js +10 -10
  5. package/v2Components/TemplatePreview/_templatePreview.scss +380 -380
  6. package/v2Components/TemplatePreview/assets/images/androidPushMessage.svg +44 -44
  7. package/v2Components/TemplatePreview/assets/images/home-screen-android.svg +21 -21
  8. package/v2Components/TemplatePreview/assets/images/home-screen-ios.svg +16 -16
  9. package/v2Components/TemplatePreview/assets/images/iPhonePushMessage.svg +134 -134
  10. package/v2Components/TemplatePreview/assets/images/mobile.svg +23 -23
  11. package/v2Components/TemplatePreview/assets/images/sms_mobile_android.svg +22 -22
  12. package/v2Components/TemplatePreview/assets/images/user-icon.svg +18 -18
  13. package/v2Components/TemplatePreview/assets/images/wechat-home-screen-android.svg +21 -21
  14. package/v2Components/TemplatePreview/assets/images/wechat-mobile.svg +77 -77
  15. package/v2Components/TemplatePreview/assets/images/wechat_mobile_android.svg +20 -20
  16. package/v2Components/TemplatePreview/index.js +1 -1
  17. package/v2Components/TemplatePreview/tests/index.test.js +10 -10
  18. package/v2Containers/Assets/Gallery/index.js +3 -0
  19. package/v2Containers/Assets/Gallery/selectors.js +9 -4
  20. package/v2Containers/CreativesContainer/SlideBoxFooter.js +51 -51
  21. package/v2Containers/CreativesContainer/actions.js +27 -27
  22. package/v2Containers/CreativesContainer/constants.js +17 -17
  23. package/v2Containers/CreativesContainer/index.scss +44 -44
  24. package/v2Containers/CreativesContainer/messages.js +305 -305
  25. package/v2Containers/CreativesContainer/reducer.js +29 -29
  26. package/v2Containers/CreativesContainer/sagas.js +11 -11
  27. package/v2Containers/CreativesContainer/selectors.js +30 -30
  28. package/v2Containers/CreativesContainer/tests/actions.test.js +18 -18
  29. package/v2Containers/CreativesContainer/tests/index.test.js +10 -10
  30. package/v2Containers/CreativesContainer/tests/reducer.test.js +9 -9
  31. package/v2Containers/CreativesContainer/tests/sagas.test.js +15 -15
  32. package/v2Containers/CreativesContainer/tests/selectors.test.js +10 -10
  33. package/v2Containers/Line/Container/Drawer/index.js +3 -31
  34. package/v2Containers/Line/Container/Image/index.js +6 -35
  35. package/v2Containers/Line/Container/ImageMap/constants.js +1 -1
  36. package/v2Containers/Line/Container/ImageMap/index.js +8 -9
  37. package/v2Containers/Line/Container/Text/index.js +0 -1
  38. package/v2Containers/Line/Container/Wrapper/index.js +0 -1
  39. package/v2Containers/Line/Container/index.js +1 -33
  40. package/v2Containers/Templates/_templates.scss +405 -405
  41. package/v2Containers/Templates/actions.js +117 -117
  42. package/v2Containers/Templates/constants.js +47 -47
  43. package/v2Containers/Templates/reducer.js +145 -145
  44. package/v2Containers/Templates/sagas.js +179 -179
  45. package/v2Containers/Templates/tests/actions.test.js +18 -18
  46. package/v2Containers/Templates/tests/index.test.js +10 -10
  47. package/v2Containers/Templates/tests/reducer.test.js +9 -9
  48. package/v2Containers/Templates/tests/sagas.test.js +15 -15
  49. package/v2Containers/Templates/tests/selectors.test.js +10 -10
  50. package/v2Containers/TemplatesV2/TemplatesV2.style.js +29 -29
  51. package/v2Containers/TemplatesV2/actions.js +16 -16
  52. package/v2Containers/TemplatesV2/constants.js +10 -10
  53. package/v2Containers/TemplatesV2/messages.js +61 -61
  54. package/v2Containers/TemplatesV2/selectors.js +25 -25
  55. package/v2Containers/TemplatesV2/tests/actions.test.js +18 -18
  56. package/v2Containers/TemplatesV2/tests/index.test.js +10 -10
  57. package/v2Containers/TemplatesV2/tests/reducer.test.js +9 -9
  58. package/v2Containers/TemplatesV2/tests/sagas.test.js +15 -15
  59. package/v2Containers/TemplatesV2/tests/selectors.test.js +10 -10
  60. package/v2Containers/Line/Container/Drawer/messages.js +0 -20
@@ -1,11 +1,11 @@
1
- // import { take, call, put, select } from 'redux-saga/effects';
2
-
3
- // Individual exports for testing
4
- export function* defaultSaga() {
5
- // See example in v2Containers/HomePage/sagas.js
6
- }
7
-
8
- // All sagas to be loaded
9
- export default [
10
- defaultSaga,
11
- ];
1
+ // import { take, call, put, select } from 'redux-saga/effects';
2
+
3
+ // Individual exports for testing
4
+ export function* defaultSaga() {
5
+ // See example in v2Containers/HomePage/sagas.js
6
+ }
7
+
8
+ // All sagas to be loaded
9
+ export default [
10
+ defaultSaga,
11
+ ];
@@ -1,30 +1,30 @@
1
- import { createSelector } from 'reselect';
2
-
3
- /**
4
- * Direct selector to the creativesContainer state domain
5
- */
6
- const selectCreativesContainerDomain = () => (state) => state.get('creativesContainer');
7
-
8
- /**
9
- * Other specific selectors
10
- */
11
-
12
-
13
- /**
14
- * Default selector used by CreativesContainer
15
- */
16
-
17
- const makeSelectCreativesContainer = () => createSelector(
18
- selectCreativesContainerDomain(),
19
- (substate) => substate.toJS()
20
- );
21
- const isLoading = () => createSelector(
22
- makeSelectCreativesContainer(),
23
- (substate) => substate.containerLoader
24
- );
25
-
26
- export default makeSelectCreativesContainer;
27
- export {
28
- selectCreativesContainerDomain,
29
- isLoading,
30
- };
1
+ import { createSelector } from 'reselect';
2
+
3
+ /**
4
+ * Direct selector to the creativesContainer state domain
5
+ */
6
+ const selectCreativesContainerDomain = () => (state) => state.get('creativesContainer');
7
+
8
+ /**
9
+ * Other specific selectors
10
+ */
11
+
12
+
13
+ /**
14
+ * Default selector used by CreativesContainer
15
+ */
16
+
17
+ const makeSelectCreativesContainer = () => createSelector(
18
+ selectCreativesContainerDomain(),
19
+ (substate) => substate.toJS()
20
+ );
21
+ const isLoading = () => createSelector(
22
+ makeSelectCreativesContainer(),
23
+ (substate) => substate.containerLoader
24
+ );
25
+
26
+ export default makeSelectCreativesContainer;
27
+ export {
28
+ selectCreativesContainerDomain,
29
+ isLoading,
30
+ };
@@ -1,18 +1,18 @@
1
-
2
- import {
3
- defaultAction,
4
- } from '../actions';
5
- import {
6
- DEFAULT_ACTION,
7
- } from '../constants';
8
-
9
- describe('CreativesContainer actions', () => {
10
- describe('Default Action', () => {
11
- it('has a type of DEFAULT_ACTION', () => {
12
- const expected = {
13
- type: DEFAULT_ACTION,
14
- };
15
- expect(defaultAction()).toEqual(expected);
16
- });
17
- });
18
- });
1
+
2
+ import {
3
+ defaultAction,
4
+ } from '../actions';
5
+ import {
6
+ DEFAULT_ACTION,
7
+ } from '../constants';
8
+
9
+ describe('CreativesContainer actions', () => {
10
+ describe('Default Action', () => {
11
+ it('has a type of DEFAULT_ACTION', () => {
12
+ const expected = {
13
+ type: DEFAULT_ACTION,
14
+ };
15
+ expect(defaultAction()).toEqual(expected);
16
+ });
17
+ });
18
+ });
@@ -1,10 +1,10 @@
1
- // import React from 'react';
2
- // import { shallow } from 'enzyme';
3
-
4
- // import { CreativesContainer } from '../index';
5
-
6
- describe('<CreativesContainer />', () => {
7
- it('Expect to have unit tests specified', () => {
8
- expect(true).toEqual(true);
9
- });
10
- });
1
+ // import React from 'react';
2
+ // import { shallow } from 'enzyme';
3
+
4
+ // import { CreativesContainer } from '../index';
5
+
6
+ describe('<CreativesContainer />', () => {
7
+ it('Expect to have unit tests specified', () => {
8
+ expect(true).toEqual(true);
9
+ });
10
+ });
@@ -1,9 +1,9 @@
1
-
2
- import { fromJS } from 'immutable';
3
- import creativesContainerReducer from '../reducer';
4
-
5
- describe('creativesContainerReducer', () => {
6
- it('returns the initial state', () => {
7
- expect(creativesContainerReducer(undefined, {})).toEqual(fromJS({}));
8
- });
9
- });
1
+
2
+ import { fromJS } from 'immutable';
3
+ import creativesContainerReducer from '../reducer';
4
+
5
+ describe('creativesContainerReducer', () => {
6
+ it('returns the initial state', () => {
7
+ expect(creativesContainerReducer(undefined, {})).toEqual(fromJS({}));
8
+ });
9
+ });
@@ -1,15 +1,15 @@
1
- /**
2
- * Test sagas
3
- */
4
-
5
- /* eslint-disable redux-saga/yield-effects */
6
- // import { take, call, put, select } from 'redux-saga/effects';
7
- // import { defaultSaga } from '../sagas';
8
-
9
- // const generator = defaultSaga();
10
-
11
- describe('defaultSaga Saga', () => {
12
- it('Expect to have unit tests specified', () => {
13
- expect(true).toEqual(true);
14
- });
15
- });
1
+ /**
2
+ * Test sagas
3
+ */
4
+
5
+ /* eslint-disable redux-saga/yield-effects */
6
+ // import { take, call, put, select } from 'redux-saga/effects';
7
+ // import { defaultSaga } from '../sagas';
8
+
9
+ // const generator = defaultSaga();
10
+
11
+ describe('defaultSaga Saga', () => {
12
+ it('Expect to have unit tests specified', () => {
13
+ expect(true).toEqual(true);
14
+ });
15
+ });
@@ -1,10 +1,10 @@
1
- // import { fromJS } from 'immutable';
2
- // import { makeSelectCreativesContainerDomain } from '../selectors';
3
-
4
- // const selector = makeSelectCreativesContainerDomain();
5
-
6
- describe('makeSelectCreativesContainerDomain', () => {
7
- it('Expect to have unit tests specified', () => {
8
- expect(true).toEqual(true);
9
- });
10
- });
1
+ // import { fromJS } from 'immutable';
2
+ // import { makeSelectCreativesContainerDomain } from '../selectors';
3
+
4
+ // const selector = makeSelectCreativesContainerDomain();
5
+
6
+ describe('makeSelectCreativesContainerDomain', () => {
7
+ it('Expect to have unit tests specified', () => {
8
+ expect(true).toEqual(true);
9
+ });
10
+ });
@@ -1,11 +1,7 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import CapInput from '@capillarytech/cap-ui-library/CapInput';
3
- import CapHeading from '@capillarytech/cap-ui-library/CapHeading';
4
- import CapSpin from '@capillarytech/cap-ui-library/CapSpin';
5
3
  import CapCustomCard from '@capillarytech/cap-ui-library/CapCustomCard';
6
- import { injectIntl, FormattedMessage } from 'react-intl';
7
4
  import Pagination from '../../../../v2Components/Pagination';
8
- import messages from './messages';
9
5
 
10
6
  const {CapCustomCardList} = CapCustomCard;
11
7
 
@@ -14,22 +10,10 @@ export const LineDrawer = ({
14
10
  cardDataList,
15
11
  isDrawer,
16
12
  searchPlaceholder,
17
- intl: {
18
- formatMessage,
19
- },
20
- Templates
21
13
  }) => {
22
14
 
23
15
  const [currentPage, updateCurrentPage] = useState(0);
24
16
  const [searchText, updateSearchText] = useState('');
25
- const [isSearching, updateSearchStatus] = useState(false);
26
-
27
- useEffect(() => {
28
- const { getAllTemplatesInProgress } = Templates || {};
29
- if (getAllTemplatesInProgress !== undefined) {
30
- updateSearchStatus(getAllTemplatesInProgress);
31
- }
32
- }, [Templates]);
33
17
 
34
18
  useEffect(() => {
35
19
  if (!isDrawer) {
@@ -38,9 +22,6 @@ export const LineDrawer = ({
38
22
  }
39
23
  }, [isDrawer]);
40
24
 
41
- useEffect(() => {
42
- }, [cardDataList]);
43
-
44
25
  let delayTimer = 0;
45
26
 
46
27
  const getAllLineTemplate = ({params = {} , getNextPage, resetPage}, isReRender = false) => {
@@ -86,7 +67,7 @@ export const LineDrawer = ({
86
67
  }
87
68
 
88
69
  return (
89
- <CapSpin spinning={isSearching} tip={formatMessage(messages.gettingAllTemplates)} style={{width: '100%'}}>
70
+ <>
90
71
  <CapInput.Search
91
72
  className="search-text"
92
73
  style={{width: 324}}
@@ -96,15 +77,6 @@ export const LineDrawer = ({
96
77
  onClear={() => searchTemplate('')}
97
78
  />
98
79
  <Pagination onPageChange={() => { getAllLineTemplate({getNextPage: true}); }} paginationSelector="pagination-container">
99
- {
100
- !cardDataList.length
101
- ? (
102
- <CapHeading type="h6" style={{ textAlign: 'center', padding: 20 }}>
103
- <FormattedMessage {...messages.noTemplatesFound} />
104
- </CapHeading>
105
- )
106
- : null
107
- }
108
80
  <div className="pagination-container">
109
81
  <CapCustomCardList
110
82
  key={'LINE-card-list'}
@@ -114,8 +86,8 @@ export const LineDrawer = ({
114
86
  />
115
87
  </div>
116
88
  </Pagination>
117
- </CapSpin>
89
+ </>
118
90
  )
119
91
  }
120
92
 
121
- export default injectIntl(LineDrawer);
93
+ export default LineDrawer;
@@ -39,9 +39,6 @@ export const LineImage = ({
39
39
  activeKey,
40
40
  Templates,
41
41
  getAllTemplates,
42
- uploadedAssetList,
43
- updateUploadedAssetList,
44
- deleteUploadedImgList,
45
42
  }) => {
46
43
  if (activeKey !== 'image') {
47
44
  return null;
@@ -84,40 +81,17 @@ export const LineImage = ({
84
81
  }, [errorMessageTitle, imageSrc, messageTitle, isImageError]);
85
82
 
86
83
  useEffect(() => {
87
- if (Line.uploadedAssetData && Object.keys(Line.uploadedAssetData).length) {
88
- const imgSrc = get(Line, 'uploadedAssetData.metaInfo.secure_file_path', '');
89
- const imgPreview = get(Line, 'uploadedAssetData.metaInfo.secure_file_path_preview', '');
90
- updateUploadedAssetList({
91
- ...uploadedAssetList,
92
- [index]: {
93
- imgPreview,
94
- imgSrc,
95
- },
96
- });
97
- actions.clearAsset();
98
- }
99
- }, [Line.uploadedAssetData]);
100
-
101
- useEffect(() => {
102
- const imgSrc = get(uploadedAssetList[index], 'imgSrc', '');
103
- const imgPreview = get(uploadedAssetList[index], 'imgPreview', '');
84
+ const imgSrc = get(Line, 'uploadedAssetData.metaInfo.secure_file_path', '');
85
+ const imgPreview = get(Line, 'uploadedAssetData.metaInfo.secure_file_path_preview', '');
104
86
 
105
87
  if (imgSrc) {
106
88
  updateImageSrc(imgSrc);
107
89
  updateImageStatus(true);
90
+ }
91
+ if (imgPreview) {
108
92
  updateImagePreview(imgPreview);
109
-
110
- updateMessageState({
111
- isError: !imgSrc || !(isFullMode ? messageTitle : true) || errorMessageTitle,
112
- originalContentUrl: imgSrc,
113
- previewImageUrl: imgPreview,
114
- messageTitle,
115
- index,
116
- type: 'image',
117
- messageType: 'originalContentUrl',
118
- });
119
93
  }
120
- }, [uploadedAssetList]);
94
+ }, [Line]);
121
95
 
122
96
  const submitAction = (data, incorrectFile) => {
123
97
  const {
@@ -131,9 +105,8 @@ export const LineImage = ({
131
105
  type,
132
106
  } = data;
133
107
  if (incorrectFile || size > LINE_IMG_SIZE || height > LINE_IMG_HEIGHT || width > LINE_IMG_WIDTH) {
134
- updateImageErrorMessage(formatMessage(messages.lineImageIncorrectSize));
108
+ updateImageErrorMessage(formatMessage(messages.lineImageIncorrectSize))
135
109
  } else {
136
- updateImageErrorMessage('');
137
110
  data.fileParams.isGeneratePreview = true;
138
111
  actions.uploadAsset(
139
112
  data.file,
@@ -234,7 +207,6 @@ export const LineImage = ({
234
207
  if (!isFullMode) {
235
208
  updateCreateNew(false);
236
209
  }
237
- deleteUploadedImgList(index);
238
210
  updateImageSrc('');
239
211
  updateImagePreview('');
240
212
  updateMessageState({
@@ -391,7 +363,6 @@ export const LineImage = ({
391
363
  getAllTemplates={getAllTemplates}
392
364
  cardDataList={cardDataList}
393
365
  isDrawer={isTemplateDrawerRequired}
394
- Templates={Templates}
395
366
  searchPlaceholder={formatMessage(messages.searchImages)}
396
367
  />
397
368
  </>
@@ -1,7 +1,7 @@
1
1
  export const LINE_ASSET_WIDTH = 1040;
2
2
  export const LINE_ASSET_HEIGHT = 1040;
3
3
  export const LINE_CUSTOM_ASSET_HEIGHT_MIN = 520;
4
- export const LINE_CUSTOM_ASSET_HEIGHT_MAX= 2080;
4
+ export const LINE_CUSTOM_ASSET_HEIGHT_MAX= 1040;
5
5
  export const DEFAULT_ASSET_TYPE = 'default';
6
6
  export const CUSTOM_ASSET_TYPE = 'custom';
7
7
  export const DEFAULT_TEMPLATES = [
@@ -164,12 +164,11 @@ export const LineImageMap = ({
164
164
  type,
165
165
  } = data;
166
166
  const validWidth = width === LINE_ASSET_WIDTH;
167
- const isCustom = assetType === CUSTOM_ASSET_TYPE;
168
- const validHeight = isCustom ? ( LINE_CUSTOM_ASSET_HEIGHT_MIN <= height && height <= LINE_CUSTOM_ASSET_HEIGHT_MAX) : height === LINE_ASSET_HEIGHT;
169
- if (incorrectFile || !validWidth || !validHeight) {
170
- updateImageErrorMessage(formatMessage(messages.lineImageMapIncorrectSize));
167
+ const validHeight = assetType === CUSTOM_ASSET_TYPE ? ( LINE_CUSTOM_ASSET_HEIGHT_MIN <= height && height <= LINE_CUSTOM_ASSET_HEIGHT_MAX) : height === LINE_ASSET_HEIGHT;
168
+ if (incorrectFile || size > LINE_IMG_SIZE || !validWidth || !validHeight) {
169
+ updateImageErrorMessage(formatMessage(messages.lineImageMapIncorrectSize))
171
170
  } else {
172
- updateImageErrorMessage('');
171
+ updateImageErrorMessage('')
173
172
  data.fileParams.isGeneratePreview = true;
174
173
  updateBaseSize({
175
174
  height,
@@ -177,7 +176,7 @@ export const LineImageMap = ({
177
176
  });
178
177
  actions.uploadAsset(
179
178
  data.file,
180
- isCustom ? `${data.type}?assetType=${CUSTOM_ASSET_TYPE}` : data.type,
179
+ data.type,
181
180
  data.fileParams,
182
181
  );
183
182
  }
@@ -324,12 +323,12 @@ export const LineImageMap = ({
324
323
  <CapHeading className="dragger-or" type="label6">
325
324
  <FormattedMessage {...messages.or} />
326
325
  </CapHeading>
327
- <CapButton className="dragger-button" type="secondary" style={{marginRight: CAP_SPACE_08}} disabled={!imageMapTemplate}>
326
+ <CapButton className="dragger-button" type="secondary" style={{marginRight: CAP_SPACE_08}}>
328
327
  <FormattedMessage {...messages.uploadComputer} />
329
328
  </CapButton>
330
329
  </CapUploader.CapDragger>
331
330
  <CapLabel type="label9" style={{marginTop: CAP_SPACE_12 }}>
332
- {formatMessage(messages.imageDimenstionDescription, {dimensions: assetType === DEFAULT_ASSET_TYPE ? '1040 X 1040 px' : '1040 X 520 - 2080 px'})}
331
+ {formatMessage(messages.imageDimenstionDescription, {dimensions: assetType === DEFAULT_ASSET_TYPE ? '1040 X 1040 px' : '1040 X 520 - 2040 px'})}
333
332
  </CapLabel>
334
333
  <CapDivider />
335
334
  </>);
@@ -338,7 +337,7 @@ export const LineImageMap = ({
338
337
  <>
339
338
  <CapImage className="base-image-preview" src={`${imageSrc}/1040`} />
340
339
  <CapLabel type="label9" style={{marginTop: CAP_SPACE_12 }}>
341
- {formatMessage(messages.imageDimenstionDescription, {dimensions: assetType === DEFAULT_ASSET_TYPE ? '1040 X 1040 px' : '1040 X 520 - 2080 px'})}
340
+ {formatMessage(messages.imageDimenstionDescription, {dimensions: assetType === DEFAULT_ASSET_TYPE ? '1040 X 1040 px' : '1040 X 520 - 2040 px'})}
342
341
  </CapLabel>
343
342
  <CapDivider />
344
343
  </>
@@ -296,7 +296,6 @@ export const LineText = ({
296
296
  isDrawer={isDrawerRequired}
297
297
  className="drawer-head"
298
298
  searchPlaceholder={formatMessage(messages.searchText)}
299
- Templates={Templates}
300
299
  />
301
300
  </>
302
301
  );
@@ -71,7 +71,6 @@ export const LineWrapper = ({
71
71
  });
72
72
  } else {
73
73
  togglePopup(true);
74
- rest.deleteUploadedImgList(index);
75
74
  updateSelectedKey(type);
76
75
  updateActiveKey(activeKey);
77
76
  }
@@ -62,7 +62,6 @@ export const LineContainer = ({
62
62
  const [isEditFlow, checkEditFlow] = useState(false);
63
63
  const [isEditLoading, updateEditLoading] = useState(false);
64
64
  const [accountSelectFlow, updateAccountSelectFlow] = useState(false);
65
- const [uploadedAssetList, updateUploadedAssetList] = useState({});
66
65
  const [selectedAccount, updateSelectedAccount] = useState('');
67
66
 
68
67
  useEffect(() => {
@@ -72,7 +71,6 @@ export const LineContainer = ({
72
71
  const queryParams = {"sortBy":"Most Recent","page":1,"perPage":25};
73
72
  templateActions.getAllTemplates('Line', queryParams);
74
73
  }
75
- return () => actions.clearAsset();
76
74
  }, []);
77
75
 
78
76
  const onAccountSelect = (account) => {
@@ -176,12 +174,6 @@ export const LineContainer = ({
176
174
  }
177
175
  }, [templateData]);
178
176
 
179
- const deleteUploadedImgList = (selectedIndex) => {
180
- const newUploadedAssetList = { ...uploadedAssetList };
181
- delete newUploadedAssetList[selectedIndex];
182
- updateUploadedAssetList(newUploadedAssetList);
183
- }
184
-
185
177
  const addLineWrappers = () => {
186
178
  updateLineWrapperContent([...lineWrapperContents, ...initialWrapperContent])
187
179
  }
@@ -189,11 +181,6 @@ export const LineContainer = ({
189
181
  const deleteWrapper = index => {
190
182
  const selectedIndex = lineWrapperContents.findIndex((el, i) => i === index);
191
183
  if (selectedIndex > -1) {
192
- // change uploaded img sequence
193
- const newUploadedAssetList = { ...uploadedAssetList };
194
- delete newUploadedAssetList[index];
195
- updateUploadedAssetList(newUploadedAssetList);
196
-
197
184
  const newLineWrapperContents = [...lineWrapperContents];
198
185
  newLineWrapperContents.splice(selectedIndex, 1);
199
186
  updateLineWrapperContent(newLineWrapperContents);
@@ -204,14 +191,6 @@ export const LineContainer = ({
204
191
  const selectedIndex = lineWrapperContents.findIndex((el, i) => i === index);
205
192
  const selectedElement = lineWrapperContents.find((el, i) => i === index);
206
193
  if (selectedIndex > -1) {
207
- // change uploaded img sequence
208
- const newUploadedAssetList = { ...uploadedAssetList };
209
- const selectedUploadedAsset = uploadedAssetList[index];
210
- const newPositionUploadedAsset = uploadedAssetList[index - 1];
211
- newUploadedAssetList[index - 1] = selectedUploadedAsset;
212
- newUploadedAssetList[index] = newPositionUploadedAsset;
213
- updateUploadedAssetList(newUploadedAssetList);
214
-
215
194
  const newLineWrapperContents = [...lineWrapperContents];
216
195
  newLineWrapperContents.splice(selectedIndex, 1);
217
196
  newLineWrapperContents.splice(selectedIndex - 1, 0, selectedElement);
@@ -223,14 +202,6 @@ export const LineContainer = ({
223
202
  const selectedIndex = lineWrapperContents.findIndex((el, i) => i === index);
224
203
  const selectedElement = lineWrapperContents.find((el, i) => i === index);
225
204
  if (selectedIndex > -1) {
226
- // change uploaded img sequence
227
- const newUploadedAssetList = { ...uploadedAssetList };
228
- const selectedUploadedAsset = uploadedAssetList[index];
229
- const newPositionUploadedAsset = uploadedAssetList[index + 1];
230
- newUploadedAssetList[index + 1] = selectedUploadedAsset;
231
- newUploadedAssetList[index] = newPositionUploadedAsset;
232
- updateUploadedAssetList(newUploadedAssetList);
233
-
234
205
  const newLineWrapperContents = [...lineWrapperContents];
235
206
  newLineWrapperContents.splice(selectedIndex, 1);
236
207
  newLineWrapperContents.splice(selectedIndex + 1, 0, selectedElement);
@@ -287,9 +258,6 @@ export const LineContainer = ({
287
258
  lineWrappers={lineWrapperContents.length}
288
259
  Templates={Templates}
289
260
  getAllTemplates={templateActions.getAllTemplates}
290
- uploadedAssetList={uploadedAssetList}
291
- deleteUploadedImgList={deleteUploadedImgList}
292
- updateUploadedAssetList={updateUploadedAssetList}
293
261
  />
294
262
  );
295
263
  });
@@ -537,7 +505,7 @@ export const LineContainer = ({
537
505
  <div className={className}>
538
506
  <CapSpin spinning={isLoading}>
539
507
  <CapRow>
540
- <CapColumn span={14} style={{ zIndex: 1 }}>
508
+ <CapColumn span={14}>
541
509
  {getAccountSection()}
542
510
  <CapHeader
543
511
  title={formatMessage(messages.lineCreativeTitle)}