@capillarytech/creatives-library 6.9.9 → 6.10.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 (75) hide show
  1. package/components/CapTagList/index.js +1 -1
  2. package/components/Edmeditor/index.js +1 -1
  3. package/components/FormBuilder/index.js +1 -0
  4. package/containers/TagList/index.js +3 -3
  5. package/index.html +0 -3
  6. package/package.json +1 -2
  7. package/services/api.js +1 -16
  8. package/v2Components/CapTagList/index.js +26 -55
  9. package/v2Components/CmsTemplatesComponent/index.js +4 -4
  10. package/v2Components/Edmeditor/index.js +1 -1
  11. package/v2Components/EmailPreview/_emailPreview.scss +2 -2
  12. package/v2Components/FormBuilder/index.js +43 -78
  13. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +151 -151
  14. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +33 -33
  15. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/tests/index.test.js +10 -10
  16. package/v2Components/TemplatePreview/assets/images/androidPushMessage.svg +44 -44
  17. package/v2Components/TemplatePreview/assets/images/home-screen-android.svg +21 -21
  18. package/v2Components/TemplatePreview/assets/images/home-screen-ios.svg +16 -16
  19. package/v2Components/TemplatePreview/assets/images/iPhonePushMessage.svg +134 -134
  20. package/v2Components/TemplatePreview/assets/images/mobile.svg +23 -23
  21. package/v2Components/TemplatePreview/assets/images/sms_mobile_android.svg +22 -22
  22. package/v2Components/TemplatePreview/assets/images/user-icon.svg +18 -18
  23. package/v2Components/TemplatePreview/assets/images/wechat-home-screen-android.svg +21 -21
  24. package/v2Components/TemplatePreview/assets/images/wechat-mobile.svg +77 -77
  25. package/v2Components/TemplatePreview/assets/images/wechat_mobile_android.svg +20 -20
  26. package/v2Components/TemplatePreview/tests/index.test.js +10 -10
  27. package/v2Containers/App/constants.js +0 -1
  28. package/v2Containers/CreativesContainer/SlideBoxFooter.js +51 -51
  29. package/v2Containers/CreativesContainer/actions.js +27 -27
  30. package/v2Containers/CreativesContainer/constants.js +17 -17
  31. package/v2Containers/CreativesContainer/index.js +2 -7
  32. package/v2Containers/CreativesContainer/index.scss +44 -44
  33. package/v2Containers/CreativesContainer/messages.js +305 -305
  34. package/v2Containers/CreativesContainer/reducer.js +29 -29
  35. package/v2Containers/CreativesContainer/sagas.js +11 -11
  36. package/v2Containers/CreativesContainer/selectors.js +30 -30
  37. package/v2Containers/CreativesContainer/tests/actions.test.js +18 -18
  38. package/v2Containers/CreativesContainer/tests/index.test.js +10 -10
  39. package/v2Containers/CreativesContainer/tests/reducer.test.js +9 -9
  40. package/v2Containers/CreativesContainer/tests/sagas.test.js +15 -15
  41. package/v2Containers/CreativesContainer/tests/selectors.test.js +10 -10
  42. package/v2Containers/Email/constants.js +0 -1
  43. package/v2Containers/Email/index.js +116 -170
  44. package/v2Containers/Email/initialSchema.js +3 -18
  45. package/v2Containers/Email/sagas.js +2 -2
  46. package/v2Containers/Email/selectors.js +0 -5
  47. package/v2Containers/EmailWrapper/index.js +3 -19
  48. package/v2Containers/Line/Container/Image/index.js +1 -1
  49. package/v2Containers/TagList/index.js +6 -13
  50. package/v2Containers/Templates/actions.js +117 -122
  51. package/v2Containers/Templates/constants.js +47 -49
  52. package/v2Containers/Templates/index.js +20 -36
  53. package/v2Containers/Templates/messages.js +0 -8
  54. package/v2Containers/Templates/reducer.js +145 -153
  55. package/v2Containers/Templates/sagas.js +179 -179
  56. package/v2Containers/Templates/selectors.js +1 -19
  57. package/v2Containers/Templates/tests/actions.test.js +18 -18
  58. package/v2Containers/Templates/tests/index.test.js +10 -10
  59. package/v2Containers/Templates/tests/reducer.test.js +9 -9
  60. package/v2Containers/Templates/tests/sagas.test.js +15 -15
  61. package/v2Containers/Templates/tests/selectors.test.js +10 -10
  62. package/v2Containers/TemplatesV2/TemplatesV2.style.js +29 -29
  63. package/v2Containers/TemplatesV2/actions.js +16 -16
  64. package/v2Containers/TemplatesV2/constants.js +10 -10
  65. package/v2Containers/TemplatesV2/messages.js +61 -61
  66. package/v2Containers/TemplatesV2/selectors.js +25 -25
  67. package/v2Containers/TemplatesV2/tests/actions.test.js +18 -18
  68. package/v2Containers/TemplatesV2/tests/index.test.js +10 -10
  69. package/v2Containers/TemplatesV2/tests/reducer.test.js +9 -9
  70. package/v2Containers/TemplatesV2/tests/sagas.test.js +15 -15
  71. package/v2Containers/TemplatesV2/tests/selectors.test.js +10 -10
  72. package/v2Components/BeeEditor/index.js +0 -280
  73. package/v2Components/BeeEditor/index.scss +0 -11
  74. package/v2Components/BeeEditor/messages.js +0 -71
  75. package/v2Components/BeeEditor/tests/index.test.js +0 -10
@@ -1,61 +1,61 @@
1
- /*
2
- * TemplatesV2 Messages
3
- *
4
- * This contains all the text for the TemplatesV2 component.
5
- */
6
- import { defineMessages } from 'react-intl';
7
-
8
- export default defineMessages({
9
- header: {
10
- id: 'creatives.containersV2.TemplatesV2.header',
11
- defaultMessage: 'This is TemplatesV2 container !',
12
- },
13
- select: {
14
- id: 'creatives.containersV2.TemplatesV2.select',
15
- defaultMessage: 'Select',
16
- },
17
- edit: {
18
- id: 'creatives.containersV2.TemplatesV2.edit',
19
- defaultMessage: 'Edit',
20
- },
21
- creatives: {
22
- id: 'creatives.containersV2.TemplatesV2.creatives',
23
- defaultMessage: 'Creatives',
24
- },
25
- creativesDesc: {
26
- id: 'creatives.containersV2.TemplatesV2.creativesDesc',
27
- defaultMessage: 'These are pre-built templates which you could use to customize your message content.',
28
- },
29
- sms: {
30
- id: 'creatives.containersV2.TemplatesV2.sms',
31
- defaultMessage: 'SMS',
32
- },
33
- email: {
34
- id: 'creatives.containersV2.TemplatesV2.email',
35
- defaultMessage: 'Email',
36
- },
37
- pushNotification: {
38
- id: 'creatives.containersV2.TemplatesV2.pushNotification',
39
- defaultMessage: 'Push notification',
40
- },
41
- callTask: {
42
- id: 'creatives.containersV2.TemplatesV2.callTask',
43
- defaultMessage: 'Call Task',
44
- },
45
- facebook: {
46
- id: 'creatives.containersV2.TemplatesV2.facebook',
47
- defaultMessage: 'Facebook',
48
- },
49
- gallery: {
50
- id: 'creatives.containersV2.TemplatesV2.gallery',
51
- defaultMessage: 'Gallery',
52
- },
53
- wechat: {
54
- id: 'creatives.containersV2.TemplatesV2.wechat',
55
- defaultMessage: 'Wechat',
56
- },
57
- line: {
58
- id: 'creatives.containersV2.TemplatesV2.line',
59
- defaultMessage: 'Line',
60
- },
61
- });
1
+ /*
2
+ * TemplatesV2 Messages
3
+ *
4
+ * This contains all the text for the TemplatesV2 component.
5
+ */
6
+ import { defineMessages } from 'react-intl';
7
+
8
+ export default defineMessages({
9
+ header: {
10
+ id: 'creatives.containersV2.TemplatesV2.header',
11
+ defaultMessage: 'This is TemplatesV2 container !',
12
+ },
13
+ select: {
14
+ id: 'creatives.containersV2.TemplatesV2.select',
15
+ defaultMessage: 'Select',
16
+ },
17
+ edit: {
18
+ id: 'creatives.containersV2.TemplatesV2.edit',
19
+ defaultMessage: 'Edit',
20
+ },
21
+ creatives: {
22
+ id: 'creatives.containersV2.TemplatesV2.creatives',
23
+ defaultMessage: 'Creatives',
24
+ },
25
+ creativesDesc: {
26
+ id: 'creatives.containersV2.TemplatesV2.creativesDesc',
27
+ defaultMessage: 'These are pre-built templates which you could use to customize your message content.',
28
+ },
29
+ sms: {
30
+ id: 'creatives.containersV2.TemplatesV2.sms',
31
+ defaultMessage: 'SMS',
32
+ },
33
+ email: {
34
+ id: 'creatives.containersV2.TemplatesV2.email',
35
+ defaultMessage: 'Email',
36
+ },
37
+ pushNotification: {
38
+ id: 'creatives.containersV2.TemplatesV2.pushNotification',
39
+ defaultMessage: 'Push notification',
40
+ },
41
+ callTask: {
42
+ id: 'creatives.containersV2.TemplatesV2.callTask',
43
+ defaultMessage: 'Call Task',
44
+ },
45
+ facebook: {
46
+ id: 'creatives.containersV2.TemplatesV2.facebook',
47
+ defaultMessage: 'Facebook',
48
+ },
49
+ gallery: {
50
+ id: 'creatives.containersV2.TemplatesV2.gallery',
51
+ defaultMessage: 'Gallery',
52
+ },
53
+ wechat: {
54
+ id: 'creatives.containersV2.TemplatesV2.wechat',
55
+ defaultMessage: 'Wechat',
56
+ },
57
+ line: {
58
+ id: 'creatives.containersV2.TemplatesV2.line',
59
+ defaultMessage: 'Line',
60
+ },
61
+ });
@@ -1,25 +1,25 @@
1
- import { createSelector } from 'reselect';
2
-
3
- /**
4
- * Direct selector to the templatesV2 state domain
5
- */
6
- const selectTemplatesV2Domain = () => (state) => state.get('templatesV2');
7
-
8
- /**
9
- * Other specific selectors
10
- */
11
-
12
-
13
- /**
14
- * Default selector used by TemplatesV2
15
- */
16
-
17
- const makeSelectTemplatesV2 = () => createSelector(
18
- selectTemplatesV2Domain(),
19
- (substate) => substate.toJS()
20
- );
21
-
22
- export default makeSelectTemplatesV2;
23
- export {
24
- selectTemplatesV2Domain,
25
- };
1
+ import { createSelector } from 'reselect';
2
+
3
+ /**
4
+ * Direct selector to the templatesV2 state domain
5
+ */
6
+ const selectTemplatesV2Domain = () => (state) => state.get('templatesV2');
7
+
8
+ /**
9
+ * Other specific selectors
10
+ */
11
+
12
+
13
+ /**
14
+ * Default selector used by TemplatesV2
15
+ */
16
+
17
+ const makeSelectTemplatesV2 = () => createSelector(
18
+ selectTemplatesV2Domain(),
19
+ (substate) => substate.toJS()
20
+ );
21
+
22
+ export default makeSelectTemplatesV2;
23
+ export {
24
+ selectTemplatesV2Domain,
25
+ };
@@ -1,18 +1,18 @@
1
-
2
- import {
3
- defaultAction,
4
- } from '../actions';
5
- import {
6
- DEFAULT_ACTION,
7
- } from '../constants';
8
-
9
- describe('TemplatesV2 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('TemplatesV2 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 { TemplatesV2 } from '../index';
5
-
6
- describe('<TemplatesV2 />', () => {
7
- it('Expect to have unit tests specified', () => {
8
- expect(true).toEqual(false);
9
- });
10
- });
1
+ // import React from 'react';
2
+ // import { shallow } from 'enzyme';
3
+
4
+ // import { TemplatesV2 } from '../index';
5
+
6
+ describe('<TemplatesV2 />', () => {
7
+ it('Expect to have unit tests specified', () => {
8
+ expect(true).toEqual(false);
9
+ });
10
+ });
@@ -1,9 +1,9 @@
1
-
2
- import { fromJS } from 'immutable';
3
- import templatesV2Reducer from '../reducer';
4
-
5
- describe('templatesV2Reducer', () => {
6
- it('returns the initial state', () => {
7
- expect(templatesV2Reducer(undefined, {})).toEqual(fromJS({}));
8
- });
9
- });
1
+
2
+ import { fromJS } from 'immutable';
3
+ import templatesV2Reducer from '../reducer';
4
+
5
+ describe('templatesV2Reducer', () => {
6
+ it('returns the initial state', () => {
7
+ expect(templatesV2Reducer(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(false);
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(false);
14
+ });
15
+ });
@@ -1,10 +1,10 @@
1
- // import { fromJS } from 'immutable';
2
- // import { makeSelectTemplatesV2Domain } from '../selectors';
3
-
4
- // const selector = makeSelectTemplatesV2Domain();
5
-
6
- describe('makeSelectTemplatesV2Domain', () => {
7
- it('Expect to have unit tests specified', () => {
8
- expect(true).toEqual(false);
9
- });
10
- });
1
+ // import { fromJS } from 'immutable';
2
+ // import { makeSelectTemplatesV2Domain } from '../selectors';
3
+
4
+ // const selector = makeSelectTemplatesV2Domain();
5
+
6
+ describe('makeSelectTemplatesV2Domain', () => {
7
+ it('Expect to have unit tests specified', () => {
8
+ expect(true).toEqual(false);
9
+ });
10
+ });
@@ -1,280 +0,0 @@
1
- /**
2
- *
3
- * Beeeditor
4
- *
5
- */
6
- import React, { useEffect, useState, useRef, useCallback } from 'react';
7
- import PropTypes from 'prop-types';
8
- import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
9
- import TagList from '../../v2Containers/TagList';
10
- import
11
- {
12
- CapModal,
13
- CapButton,
14
- CapInput,
15
- CapSelect,
16
- }
17
- from '@capillarytech/cap-ui-library';
18
- import messages from './messages';
19
- import './index.scss';
20
-
21
- function BeeEditor(props) {
22
- const {
23
- uid,
24
- beeJson,
25
- tokenData,
26
- id,
27
- location = {},
28
- moduleFilterEnabled,
29
- label,
30
- className,
31
- userLocale,
32
- selectedOfferDetails,
33
- tags,
34
- injectedTags,
35
- saveBeeInstance,
36
- saveBeeData,
37
- intl,
38
- onContextChange,
39
- } = props;
40
- const {formatMessage} = intl;
41
- const UNSUBSCRIBE = 'unsubscribe';
42
- let beePluginInstance = null;
43
- const categoryOptions = [{key: 'cta', value: 'cta', label: formatMessage(messages.cta)},
44
- {key: 'footer', value: 'footer', label: formatMessage(messages.footer)},
45
- {key: 'header', value: 'header', label: formatMessage(messages.header)},
46
- {key: 'sp', value: 'sp', label: formatMessage(messages.socialPlatform)},
47
- {key: 'others', value: 'others', label: formatMessage(messages.others)},
48
- ];
49
- const [visibleTaglist, setVisibleTaglist] = useState(false);
50
- const [showRowMetaModal, setRowMetaModal] = useState(false);
51
- const [selectedTag, setSelectedTag] = useState({});
52
- const [rowMetaInfo, setRowMetaInfo] = useState({});
53
- const [rowName, setRowName] = useState('');
54
- const [rowTags, setRowTags] = useState('');
55
- const [rowCategory, setRowCategory] = useState('');
56
-
57
- const savedCallback = useRef();
58
- const filteredTags = (tags || []).filter((obj) => obj.definition.value !== UNSUBSCRIBE);
59
- let intervalTimer;
60
-
61
- useEffect(() => {
62
- savedCallback.current = Object.keys(selectedTag).length > 0 ? selectedTag : rowMetaInfo;
63
- }, [selectedTag, rowMetaInfo]);
64
-
65
- useEffect(() => {
66
- const beeConfig = {
67
- uid,
68
- container: 'bee-plugin-container',
69
- rowsConfiguration: {
70
- emptyRows: true,
71
- defaultRows: true,
72
- },
73
- contentDialog: {
74
- specialLinks: {
75
- label: UNSUBSCRIBE,
76
- handler(resolve) {
77
- resolve({
78
- type: 'custom',
79
- label: UNSUBSCRIBE,
80
- link: `{{${UNSUBSCRIBE}}}`,
81
- });
82
- },
83
- },
84
- mergeTags: {
85
- label: formatMessage(messages.addLabel),
86
- handler: async (resolve, reject) => {
87
- // this will open tag modal
88
- await setVisibleTaglist(true);
89
- // until tag modal will not open promise will not execute
90
- // once tag modal is opened it will start 2 sec interval to wait use has selected any tag or cancel the tag selection
91
- const promise = new Promise((resolveP) => {
92
- intervalTimer = setInterval(() => {
93
- // this will execute, if user cancel the tag selection
94
- if ((savedCallback.current || {}).close === true) {
95
- reject();
96
- clearInterval(intervalTimer);
97
- return;
98
- }
99
- // this block is checking use has selected any tag or not
100
- if (Object.keys(savedCallback.current || {}).length > 0) {
101
- resolveP(savedCallback.current);
102
- setSelectedTag({});
103
- clearInterval(intervalTimer);
104
- }
105
- }, 2000);
106
- });
107
- // once prmise will resolve , pass the resolve data to handler to show tags in bee edior
108
- const result = await promise;
109
- resolve(result);
110
- },
111
- },
112
- saveRow: {
113
- handler: async (resolve, reject, args) => {
114
- await setRowMetaModal(true);
115
- const promise = new Promise((resolveP) => {
116
- intervalTimer = setInterval(() => {
117
- if ((savedCallback.current || {}).close === true) {
118
- reject();
119
- clearInterval(intervalTimer);
120
- setRowMetaInfo({});
121
- setRowName('');
122
- setRowTags('');
123
- setRowCategory('');
124
- return;
125
- }
126
- if (Object.keys(savedCallback.current || {}).length > 0) {
127
- const data = {...args, ...savedCallback.current};
128
- resolveP(data);
129
- }
130
- }, 2000);
131
- });
132
- const result = await promise;
133
- resolve(result); // "done!"
134
- setRowMetaInfo({});
135
- setRowName('');
136
- setRowTags('');
137
- setRowCategory('');
138
- clearInterval(intervalTimer);
139
- },
140
- },
141
- },
142
- onSave: (jsonFile, htmlFile) => {
143
- saveBeeData(jsonFile, htmlFile);
144
- },
145
- // will use this function on save row feature
146
- onSaveRow: (rowJSON, rowHTML, pageJSON) => {
147
- console.log('bee-plugin-container onSaveRows', rowJSON, rowHTML, pageJSON);
148
- },
149
- };
150
- window.BeePlugin.create(tokenData, beeConfig, (instance) => {
151
- beePluginInstance = instance;
152
- const parseJson = JSON.parse(beeJson);
153
- beePluginInstance.start(parseJson);
154
- saveBeeInstance(beePluginInstance);
155
- });
156
- return () => clearInterval(intervalTimer);
157
- }, []);
158
-
159
- const onTagSelect = (result) => {
160
- const msg = {
161
- name: result,
162
- value: `{{${result}}}`,
163
- };
164
- setSelectedTag(msg);
165
- setVisibleTaglist(false);
166
- };
167
-
168
- const onCancelTagList = () => {
169
- setVisibleTaglist(false);
170
- setSelectedTag({close: true});
171
- };
172
-
173
- const handleCancel = () => {
174
- setRowMetaModal(false);
175
- setRowMetaInfo({close: true});
176
- };
177
-
178
- const handleOk = () => {
179
- const rowInfo = {};
180
- if (rowTags !== '') {
181
- rowInfo.tags = rowTags;
182
- }
183
- if (rowCategory !== '') {
184
- rowInfo.category = rowCategory;
185
- }
186
- setRowMetaInfo({
187
- name: rowName,
188
- ...rowInfo,
189
- });
190
- setRowMetaModal(false);
191
- };
192
- const isDisableSave = () => rowName === '';
193
-
194
- const onRowChange = useCallback((e) => {
195
- setRowName(e.target.value);
196
- });
197
- const onChangeCategoy = (e) => {
198
- setRowCategory(e);
199
- };
200
- const onTagChange = (e) => {
201
- setRowTags(e.target.value);
202
- };
203
- const contentSection = <>
204
- <CapInput
205
- label={<FormattedMessage {...messages.rowName} />}
206
- placeholder={formatMessage(messages.rowPlaceHolder)}
207
- onChange={onRowChange}
208
- value={rowName}
209
- maxLength={50}
210
- style={{ width: '324px', paddingBottom: '16px' }}
211
- />
212
- <CapSelect
213
- label="Category"
214
- style={{ width: 250, paddingBottom: '16px'}}
215
- options={categoryOptions}
216
- selectPlaceholder={formatMessage(messages.select)}
217
- placeholder={
218
- <FormattedMessage {...messages.selectCategoyPlaceholder} />
219
- }
220
- onChange={onChangeCategoy}
221
- />
222
- <CapInput
223
- label={<FormattedMessage {...messages.tags} />}
224
- placeholder={formatMessage(messages.tagPlaceHolder)}
225
- onChange={onTagChange}
226
- value={rowTags}
227
- maxLength={50}
228
- style={{ width: '324px', paddingBottom: '16px'}}
229
- />
230
- </>;
231
- return (
232
- <>
233
- <div id="bee-plugin-container" style={{ height: '500px'}}>
234
- </div>
235
- <TagList
236
- moduleFilterEnabled={moduleFilterEnabled}
237
- label={label}
238
- onTagSelect={onTagSelect}
239
- location={location}
240
- tags={filteredTags}
241
- injectedTags={injectedTags}
242
- className={className}
243
- id={id}
244
- userLocale={userLocale}
245
- selectedOfferDetails={selectedOfferDetails}
246
- visibleTaglist={visibleTaglist}
247
- hidePopover
248
- modalProps={{
249
- onCancel: onCancelTagList,
250
- style: { left: 135, top: 250 },
251
- className: "bee-editor-tag-list",
252
- }}
253
- onContextChange={onContextChange}
254
- />
255
- <CapModal
256
- visible={showRowMetaModal}
257
- onCancel={handleCancel}
258
- title={formatMessage(messages.customRows)}
259
- footer={[
260
- <CapButton key="back" onClick={handleCancel}>{formatMessage(messages.cancel)}</CapButton>,
261
- <CapButton key="submit" type="primary" id="delete-version" onClick={handleOk} disabled={isDisableSave()}>
262
- {formatMessage(messages.save)}
263
- </CapButton>,
264
- ]}
265
- >
266
- {contentSection}
267
- </CapModal>
268
- </>
269
- );
270
- }
271
-
272
- BeeEditor.propTypes = {
273
- beeJson: PropTypes.object.isRequired,
274
- tokenData: PropTypes.object.isRequired,
275
- uid: PropTypes.string.isRequired,
276
- showTagsPopover: PropTypes.func.isRequired,
277
- intl: intlShape.isRequired,
278
- };
279
-
280
- export default injectIntl(BeeEditor);
@@ -1,11 +0,0 @@
1
- .cap-modal-v2.bee-editor-tag-list {
2
- .ant-modal-content {
3
- .ant-modal-body {
4
- padding-top: 20px;
5
- padding-bottom: 10px;
6
- }
7
- .ant-modal-footer {
8
- display: none;
9
- }
10
- }
11
- }
@@ -1,71 +0,0 @@
1
- /*
2
- * BeeEditor Messages
3
- *
4
- * This contains all the text for the BeeEditor component.
5
- */
6
- import { defineMessages } from 'react-intl';
7
-
8
- const prefix = 'creatives.componentsV2.BeeEditor';
9
-
10
- export default defineMessages({
11
- cancel: {
12
- id: `${prefix}.cancel`,
13
- defaultMessage: 'Cancel',
14
- },
15
- save: {
16
- id: `${prefix}.save`,
17
- defaultMessage: 'Save',
18
- },
19
- rowPlaceHolder: {
20
- id: `${prefix}.rowPlaceHolder`,
21
- defaultMessage: 'Enter Row name',
22
- },
23
- rowName: {
24
- id: `${prefix}.rowName`,
25
- defaultMessage: 'Row name',
26
- },
27
- select: {
28
- id: `${prefix}.select`,
29
- defaultMessage: 'Select',
30
- },
31
- customRows: {
32
- id: `${prefix}.customRows`,
33
- defaultMessage: 'Custom rows',
34
- },
35
- selectCategoyPlaceholder: {
36
- id: `${prefix}.selectCategoyPlaceholder`,
37
- defaultMessage: 'Select category',
38
- },
39
- tags: {
40
- id: `${prefix}.tags`,
41
- defaultMessage: 'Tags (optional)',
42
- },
43
- tagPlaceHolder: {
44
- id: `${prefix}.tagPlaceHolder`,
45
- defaultMessage: 'Enter tags',
46
- },
47
- addLabel: {
48
- id: `${prefix}.addLabel`,
49
- defaultMessage: 'Add label',
50
- },
51
- cta: {
52
- id: `${prefix}.cta`,
53
- defaultMessage: 'CTA',
54
- },
55
- header: {
56
- id: `${prefix}.header`,
57
- defaultMessage: 'Header',
58
- },
59
- footer: {
60
- id: `${prefix}.footer`,
61
- defaultMessage: 'Footer',
62
- },
63
- others: {
64
- id: `${prefix}.others`,
65
- defaultMessage: 'Others',
66
- },
67
- socialPlatform: {
68
- id: `${prefix}.socialPlatform`,
69
- defaultMessage: 'Social platform',
70
- },
71
- });
@@ -1,10 +0,0 @@
1
- // import React from 'react';
2
- // import { shallow } from 'enzyme';
3
-
4
- // import Beeeditor from '../index';
5
-
6
- describe('<Beeeditor />', () => {
7
- it('Expect to have unit tests specified', () => {
8
- expect(true).toEqual(false);
9
- });
10
- });