@raydiant/playlist-window-manager 0.21.0 → 0.22.0-rc-electron-upgrade
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.
|
@@ -159,7 +159,10 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
159
159
|
},
|
|
160
160
|
};
|
|
161
161
|
// Attached crash handlers to skip presentation on error.
|
|
162
|
-
window.view.webContents.on(
|
|
162
|
+
// window.view.webContents.on(
|
|
163
|
+
// 'render-process-gone',
|
|
164
|
+
// window.renderProcessGoneCallback
|
|
165
|
+
// );
|
|
163
166
|
window.view.webContents.on('unresponsive', window.unresponsiveCallback);
|
|
164
167
|
if (window.view instanceof electron_1.BrowserView) {
|
|
165
168
|
this.moveWindowOffscreen(window);
|
|
@@ -265,7 +268,10 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
265
268
|
throw new Error("Failed to remove window, missing window id '".concat(windowId, "'"));
|
|
266
269
|
}
|
|
267
270
|
// Remove crash handlers
|
|
268
|
-
window.view.webContents.removeListener(
|
|
271
|
+
// window.view.webContents.removeListener(
|
|
272
|
+
// 'render-process-gone',
|
|
273
|
+
// window.renderProcessGoneCallback
|
|
274
|
+
// );
|
|
269
275
|
window.view.webContents.removeListener('unresponsive', window.unresponsiveCallback);
|
|
270
276
|
// Remove message handler
|
|
271
277
|
electron_1.ipcMain.removeListener(windowId, window.receiveMessageCallback);
|
package/build/testUtils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as RE from '@raydiant/playlist-rule-engine';
|
|
3
3
|
import PresentationWindow, { PresentationWindowOptions } from './PresentationWindow';
|
|
4
4
|
import PlaylistWindowManagerState, { PlaylistWindowManagerStateOptions } from './PlaylistWindowManagerState';
|
|
5
5
|
import { Presentation, ApplicationVersion, Logger, CreateWindowOptions } from './types';
|
|
@@ -9,10 +9,10 @@ export declare function createPresentationRelationships(overrides?: Partial<Pres
|
|
|
9
9
|
export declare function createApplicationVersion(overrides?: Partial<ApplicationVersion>): ApplicationVersion;
|
|
10
10
|
export declare function createPlaylistWindowManagerState(overrides?: Partial<PlaylistWindowManagerStateOptions>): PlaylistWindowManagerState;
|
|
11
11
|
export declare function createRuleEngineState(playlists?: {
|
|
12
|
-
[index: string]:
|
|
12
|
+
[index: string]: RE.Playlist;
|
|
13
13
|
}, presentations?: {
|
|
14
|
-
[index: string]:
|
|
15
|
-
}, rulesDataStore?:
|
|
14
|
+
[index: string]: RE.Presentation;
|
|
15
|
+
}, rulesDataStore?: RE.RulesDataStore, isMultitimezoneEnabled?: boolean): RE.State;
|
|
16
16
|
export declare function createLogger(overrides?: Partial<Logger>): {
|
|
17
17
|
debug: (message: any, context?: {
|
|
18
18
|
[key: string]: any;
|
package/build/testUtils.js
CHANGED
|
@@ -63,7 +63,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
63
63
|
};
|
|
64
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
65
|
exports.createRenderer = exports.createLogger = exports.createRuleEngineState = exports.createPlaylistWindowManagerState = exports.createApplicationVersion = exports.createPresentationRelationships = exports.createPresentation = exports.createPresentationWindow = void 0;
|
|
66
|
-
var
|
|
66
|
+
var RE = __importStar(require("@raydiant/playlist-rule-engine"));
|
|
67
67
|
var PresentationWindow_1 = __importDefault(require("./PresentationWindow"));
|
|
68
68
|
var PlaylistWindowManagerState_1 = __importDefault(require("./PlaylistWindowManagerState"));
|
|
69
69
|
function createPresentationWindow(overrides) {
|
|
@@ -157,7 +157,7 @@ function createRuleEngineState(playlists, presentations, rulesDataStore, isMulti
|
|
|
157
157
|
if (presentations === void 0) { presentations = {}; }
|
|
158
158
|
if (rulesDataStore === void 0) { rulesDataStore = {}; }
|
|
159
159
|
if (isMultitimezoneEnabled === void 0) { isMultitimezoneEnabled = false; }
|
|
160
|
-
return new
|
|
160
|
+
return new RE.State(playlists, presentations, rulesDataStore, isMultitimezoneEnabled);
|
|
161
161
|
}
|
|
162
162
|
exports.createRuleEngineState = createRuleEngineState;
|
|
163
163
|
function createLogger(overrides) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raydiant/playlist-window-manager",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0-rc-electron-upgrade",
|
|
4
4
|
"description": "Window manager for playlist playback.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
"deploy": "sh tasks/npm-publish.sh"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
+
"@raydiant/playlist-rule-engine": "^3.2.2",
|
|
15
|
+
"eventemitter3": "^4.0.7",
|
|
14
16
|
"fast-deep-equal": "^3.1.3",
|
|
15
|
-
"@raydiant/playlist-rule-engine": "3.2.2",
|
|
16
17
|
"raydiant-kit": "4.7.3",
|
|
17
|
-
"uuid": "^8.3.0"
|
|
18
|
-
"eventemitter3": "^4.0.7"
|
|
18
|
+
"uuid": "^8.3.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@babel/core": "^7.5.5",
|
|
22
|
-
"@types/jschannel": "^1.0.1",
|
|
23
22
|
"@types/jest": "^24.0.15",
|
|
23
|
+
"@types/jschannel": "^1.0.1",
|
|
24
24
|
"@types/uuid": "8.3.0",
|
|
25
|
-
"electron": "
|
|
25
|
+
"electron": "25.5.0",
|
|
26
26
|
"jest": "^24.8.0",
|
|
27
27
|
"ts-jest": "^24.0.2",
|
|
28
28
|
"typescript": "^4.1.2"
|
|
@@ -168,10 +168,10 @@ export default class BrowserWindowRenderer
|
|
|
168
168
|
};
|
|
169
169
|
|
|
170
170
|
// Attached crash handlers to skip presentation on error.
|
|
171
|
-
window.view.webContents.on(
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
);
|
|
171
|
+
// window.view.webContents.on(
|
|
172
|
+
// 'render-process-gone',
|
|
173
|
+
// window.renderProcessGoneCallback
|
|
174
|
+
// );
|
|
175
175
|
|
|
176
176
|
window.view.webContents.on('unresponsive', window.unresponsiveCallback);
|
|
177
177
|
|
|
@@ -278,10 +278,10 @@ export default class BrowserWindowRenderer
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
// Remove crash handlers
|
|
281
|
-
window.view.webContents.removeListener(
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
);
|
|
281
|
+
// window.view.webContents.removeListener(
|
|
282
|
+
// 'render-process-gone',
|
|
283
|
+
// window.renderProcessGoneCallback
|
|
284
|
+
// );
|
|
285
285
|
|
|
286
286
|
window.view.webContents.removeListener(
|
|
287
287
|
'unresponsive',
|
package/src/testUtils.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as RE from '@raydiant/playlist-rule-engine';
|
|
2
2
|
import PresentationWindow, {
|
|
3
3
|
PresentationWindowOptions,
|
|
4
4
|
} from './PresentationWindow';
|
|
@@ -95,15 +95,15 @@ export function createPlaylistWindowManagerState(
|
|
|
95
95
|
|
|
96
96
|
export function createRuleEngineState(
|
|
97
97
|
playlists: {
|
|
98
|
-
[index: string]:
|
|
98
|
+
[index: string]: RE.Playlist;
|
|
99
99
|
} = {},
|
|
100
100
|
presentations: {
|
|
101
|
-
[index: string]:
|
|
101
|
+
[index: string]: RE.Presentation;
|
|
102
102
|
} = {},
|
|
103
|
-
rulesDataStore:
|
|
103
|
+
rulesDataStore: RE.RulesDataStore = {},
|
|
104
104
|
isMultitimezoneEnabled: boolean = false
|
|
105
|
-
):
|
|
106
|
-
return new
|
|
105
|
+
): RE.State {
|
|
106
|
+
return new RE.State(
|
|
107
107
|
playlists,
|
|
108
108
|
presentations,
|
|
109
109
|
rulesDataStore,
|