@xibosignage/xibo-communication-framework 0.0.6 → 0.0.7
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/dist/src/modules/xmr/index.d.ts +2 -1
- package/dist/src/modules/xmr/xmr.d.ts +2 -3
- package/dist/xibo-communication-framework.cjs +4 -7
- package/dist/xibo-communication-framework.cjs.map +1 -1
- package/dist/xibo-communication-framework.d.ts +2 -3
- package/dist/xibo-communication-framework.esm.js +4 -7
- package/dist/xibo-communication-framework.esm.js.map +1 -1
- package/dist/xibo-communication-framework.js +4 -7
- package/dist/xibo-communication-framework.min.js +1 -1
- package/dist/xibo-communication-framework.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,14 +10,13 @@ interface XmrEvents {
|
|
|
10
10
|
collectNow: () => void;
|
|
11
11
|
screenShot: () => void;
|
|
12
12
|
licenceCheck: () => void;
|
|
13
|
-
showStatusWindow: (timeout: number) => void;
|
|
14
|
-
forceUpdateChromeOS: () => void;
|
|
15
13
|
criteriaUpdate: (criteriaUpdates: {
|
|
16
14
|
metric: string;
|
|
17
15
|
value: string;
|
|
18
16
|
ttl: number;
|
|
19
17
|
}[]) => void;
|
|
20
|
-
|
|
18
|
+
commandCodeReceived: (commandCode: string) => void;
|
|
19
|
+
dataUpdate: (widgetId: number) => void;
|
|
21
20
|
}
|
|
22
21
|
declare class Xmr {
|
|
23
22
|
emitter: Emitter<XmrEvents>;
|
|
@@ -8502,15 +8502,12 @@ var Xmr = /*#__PURE__*/function () {
|
|
|
8502
8502
|
_this2.emitter.emit('screenShot');
|
|
8503
8503
|
} else if (message.action === 'licenceCheck') {
|
|
8504
8504
|
_this2.emitter.emit('licenceCheck');
|
|
8505
|
-
} else if (message.action == 'commandAction' && message.commandCode.startsWith('showStatusWindow')) {
|
|
8506
|
-
var split = message.commandCode.split('|');
|
|
8507
|
-
_this2.emitter.emit('showStatusWindow', parseInt(split[1]) || 60);
|
|
8508
|
-
} else if (message.action == 'commandAction' && message.commandCode.startsWith('forceUpdateChromeOS')) {
|
|
8509
|
-
_this2.emitter.emit('forceUpdateChromeOS');
|
|
8510
|
-
} else if (message.action == 'commandAction' && message.commandCode.startsWith('currentGeoLocation')) {
|
|
8511
|
-
_this2.emitter.emit('currentGeoLocation');
|
|
8512
8505
|
} else if (message.action == 'criteriaUpdate') {
|
|
8513
8506
|
_this2.emitter.emit('criteriaUpdate', message.criteriaUpdates);
|
|
8507
|
+
} else if (message.action == 'commandAction') {
|
|
8508
|
+
_this2.emitter.emit('commandCodeReceived', message.commandCode);
|
|
8509
|
+
} else if (message.action == 'dataUpdate') {
|
|
8510
|
+
_this2.emitter.emit('dataUpdate', message.widgetId);
|
|
8514
8511
|
} else {
|
|
8515
8512
|
console.error('Xmr::message: unknown action: ' + message.action);
|
|
8516
8513
|
}
|