@capillarytech/creatives-library 7.17.85 → 7.17.87

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.85",
4
+ "version": "7.17.87",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -79,10 +79,11 @@ export const CapWhatsappQuickReply = (props) => {
79
79
  };
80
80
 
81
81
  const addQuickReply = () => {
82
- INITIAL_QUICK_REPLY_DATA[0].index = quickReplyDataLength || 0;
82
+ const cloneInitialQuickReplyData = cloneDeep(INITIAL_QUICK_REPLY_DATA);
83
+ cloneInitialQuickReplyData[0].index = quickReplyDataLength || 0;
83
84
  const clonedQuickReplyData = [
84
85
  ...quickReplyData,
85
- ...INITIAL_QUICK_REPLY_DATA,
86
+ ...cloneInitialQuickReplyData,
86
87
  ];
87
88
  setQuickReplyData(clonedQuickReplyData);
88
89
  };
@@ -113,6 +114,7 @@ export const CapWhatsappQuickReply = (props) => {
113
114
  placement="right"
114
115
  className="whatsapp-button-text-tooltip"
115
116
  autoAdjustOverflow
117
+ title={formatMessage(messages.buttonTextTooltip)}
116
118
  />
117
119
  </CapHeading>
118
120
  }
@@ -21,4 +21,8 @@ export default defineMessages({
21
21
  id: `${prefix}.templateButtonTextSameValue`,
22
22
  defaultMessage: 'Text field value cannot be same with other text fields',
23
23
  },
24
- });
24
+ buttonTextTooltip: {
25
+ id: `${prefix}.buttonTextTooltip`,
26
+ defaultMessage: 'Use this to name the button. We would recommend not to use special characters for the button text.'
27
+ },
28
+ });
@@ -499,7 +499,7 @@ export const Whatsapp = (props) => {
499
499
  };
500
500
 
501
501
  // as per change in message body we filter out url using regex
502
- // we will open once preview url support
502
+ // preview URL is not supported by the Gateway (Karix/Gupshup), show hiding it for now. once the Gateway support is available, previewUrl option would be shown.
503
503
  // useEffect(() => {
504
504
  // if (updatedSmsEditor?.length > 0) {
505
505
  // const previewUrlArr = updatedSmsEditor.join("").match(previewUrlMatchingRegex) || [];
@@ -1912,7 +1912,7 @@ export const Whatsapp = (props) => {
1912
1912
  ) : (
1913
1913
  ""
1914
1914
  )}
1915
- {/* we will open once preview url support
1915
+ {/* preview URL is not supported by the Gateway (Karix/Gupshup), show hiding it for now. once the Gateway support is available, previewUrl option would be shown.
1916
1916
  <CapRow>
1917
1917
  <CapCheckbox
1918
1918
  className={`whatsapp-unsubscribe-checkbox ${'whatsapp-create-unsubscribe-checkbox'}`}