evmux-app-framework 0.0.21 → 0.0.22

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": "evmux-app-framework",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,7 +20,7 @@ export const availableRequests = {
20
20
  EvEvent: "EvEvent",
21
21
  raiseAppMessagingEvent: "raiseAppMessagingEvent",
22
22
  raiseExternalAppMessagingEvent: "raiseExternalAppMessagingEvent",
23
- registerFastActionButtons : "registerFastActionButtons"
23
+ setFastActionButtons : "setFastActionButtons"
24
24
  }
25
25
 
26
26
 
@@ -10,7 +10,7 @@ import { availableEvents } from '../EvmuxAppsApi/EvmuxAppsApi'
10
10
 
11
11
  canHandleRequest(requestObj)
12
12
  {
13
- const supportedRequests = [availableRequests.raiseExternalAppMessagingEvent, availableRequests.registerFastActionButtons];
13
+ const supportedRequests = [availableRequests.raiseExternalAppMessagingEvent, availableRequests.setFastActionButtons];
14
14
  return supportedRequests.includes(requestObj.request);
15
15
  }
16
16
 
@@ -19,7 +19,7 @@ import { availableEvents } from '../EvmuxAppsApi/EvmuxAppsApi'
19
19
  return null;
20
20
  }
21
21
 
22
- async registerFastActionButtons() {
22
+ async setFastActionButtons() {
23
23
  return true;
24
24
  }
25
25
 
@@ -12,7 +12,8 @@ export const availableEvents = {
12
12
  keystroke: "keystroke",
13
13
  comments: "comments",
14
14
  appMessaging: "appMessaging",
15
- externalAppMessaging: "externalAppMessaging"
15
+ externalAppMessaging: "externalAppMessaging",
16
+ fastActionButton: "fastActionButton"
16
17
  }
17
18
 
18
19
  export const layerTypes = {
@@ -20,14 +20,13 @@ export default class EvmuxAppsApiApps {
20
20
  }
21
21
 
22
22
 
23
- async registerFastActionButtons(buttonsArray = []) {
23
+ async setFastActionButtons(buttonsArray = []) {
24
24
  let requestObj = {
25
- request: availableRequests.registerFastActionButtons,
25
+ request: availableRequests.setFastActionButtons,
26
26
  userAppInstanceId: this.evmuxAppsApi._userAppInstanceId,
27
27
  componentId: this.evmuxAppsApi._componentId,
28
28
  data: buttonsArray
29
29
  }
30
-
31
30
  return this.evmuxAppsApi._postMessageManager.sendRequestAsync(requestObj);
32
31
  }
33
32
  }