wingbot 3.46.1 → 3.46.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.46.1",
3
+ "version": "3.46.2",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -284,9 +284,14 @@ function processButtons (
284
284
  case TYPE_SHARE:
285
285
  elem.shareButton(btnTitleText);
286
286
  break;
287
- case TYPE_ATTACHMENT:
288
- elem.attachmentButton(btnTitleText, payload);
287
+ case TYPE_ATTACHMENT: {
288
+ const translatedPayloadContent = getText(payload.content, state);
289
+ elem.attachmentButton(btnTitleText, {
290
+ ...payload,
291
+ content: translatedPayloadContent
292
+ });
289
293
  break;
294
+ }
290
295
  default:
291
296
  }
292
297
  });
@@ -138,7 +138,8 @@ class ButtonTemplate extends BaseTemplate {
138
138
  * res.button('text')
139
139
  * .attachmentButton('button title', {
140
140
  * content: '# Heading 1',
141
- * contentType: 'text/markdown'
141
+ * contentType: 'text/markdown',
142
+ * className: 'my-class-for-markdown'
142
143
  * })
143
144
  * .send();
144
145
  *