@capillarytech/creatives-library 7.17.86 → 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
|
@@ -79,10 +79,11 @@ export const CapWhatsappQuickReply = (props) => {
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
const addQuickReply = () => {
|
|
82
|
-
|
|
82
|
+
const cloneInitialQuickReplyData = cloneDeep(INITIAL_QUICK_REPLY_DATA);
|
|
83
|
+
cloneInitialQuickReplyData[0].index = quickReplyDataLength || 0;
|
|
83
84
|
const clonedQuickReplyData = [
|
|
84
85
|
...quickReplyData,
|
|
85
|
-
...
|
|
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
|
+
});
|