@capillarytech/creatives-library 7.10.55 → 7.10.57

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.10.55",
4
+ "version": "7.10.57",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -157,6 +157,9 @@ export default defineMessages({
157
157
  id: `creatives.containersV2.watchMore`,
158
158
  defaultMessage: 'Watch More',
159
159
  },
160
-
160
+ "done": {
161
+ id: `creatives.containersV2.done`,
162
+ defaultMessage: 'Done',
163
+ },
161
164
  });
162
165
 
@@ -555,12 +555,12 @@ class Creatives extends React.Component {
555
555
  templateConfigs: {
556
556
  id: template._id,
557
557
  name: template?.value?.name,
558
- template, templateEditor,
558
+ template: templateEditor,
559
559
  varMapped,
560
560
  category,
561
561
  language: languages[0].language,
562
562
  mediaType,
563
- }
563
+ },
564
564
  };
565
565
  }
566
566
  break;
@@ -938,7 +938,7 @@ export const Whatsapp = (props) => {
938
938
  disabled={isEditDoneDisabled()}
939
939
  className="whatsapp-create-btn"
940
940
  >
941
- <FormattedMessage {...messages.done} />
941
+ <FormattedMessage {...globalMessages.done} />
942
942
  </CapButton>
943
943
  </>
944
944
  )}
@@ -1,11 +1,19 @@
1
1
  import { defineMessages } from 'react-intl';
2
2
  const prefix = `creatives.containersV2.Whatsapp`;
3
3
  export default defineMessages({
4
+ templateNameLabel: {
5
+ id: `${prefix}.templateNameLabel`,
6
+ defaultMessage: 'Template name',
7
+ },
4
8
  templateNameDesc: {
5
9
  id: `${prefix}.templateNameDesc`,
6
10
  defaultMessage:
7
11
  'Must be a unique name and can only contain lowercase alphanumeric characters and underscores.',
8
12
  },
13
+ templateNamePlaceholder: {
14
+ id: `${prefix}.templateNamePlaceholder`,
15
+ defaultMessage: 'Enter template name',
16
+ },
9
17
  templateNameTooltip: {
10
18
  id: `${prefix}.templateNameTooltip`,
11
19
  defaultMessage: `Tip : Use a name that helps WhatsApp's reviewer understand the purpose of your message, for example "order_delivery" rather than "template_1"`,
@@ -131,6 +139,11 @@ export default defineMessages({
131
139
  id: `${prefix}.unsubscribeTextTooltip`,
132
140
  defaultMessage: 'This is non-editable',
133
141
  },
142
+ unsupportedTagsValidationError: {
143
+ id: `${prefix}.unsupportedTagsValidationError`,
144
+ defaultMessage:
145
+ 'Unsupported tags: {unsupportedTags}. Please remove them from this message.',
146
+ },
134
147
  repetativeVars: {
135
148
  id: `${prefix}.repetativeVars`,
136
149
  defaultMessage: 'Variables cannot be repeated',
@@ -224,4 +237,4 @@ export default defineMessages({
224
237
  id: `${prefix}.disabledEditTooltipStatus`,
225
238
  defaultMessage: 'awaiting for approval',
226
239
  },
227
- });
240
+ });