@raydiant/playlist-window-manager 0.22.1-rc.1 → 0.23.0
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/build/BrowserViewRenderer.js +1 -0
- package/build/BrowserWindowRenderer.js +3 -0
- package/build/PresentationWindow.js +1 -7
- package/package.json +2 -2
- package/src/BrowserViewRenderer.ts +1 -0
- package/src/BrowserWindowRenderer.ts +12 -3
- package/src/PresentationWindow.ts +1 -7
- package/tasks/npm-publish.sh +1 -1
|
@@ -87,6 +87,7 @@ var BrowserViewRenderer = /** @class */ (function () {
|
|
|
87
87
|
view: new electron_1.BrowserView({
|
|
88
88
|
webPreferences: {
|
|
89
89
|
preload: path.join(__dirname, 'preload.js'),
|
|
90
|
+
contextIsolation: false,
|
|
90
91
|
},
|
|
91
92
|
}),
|
|
92
93
|
bounds: bounds || __assign(__assign({}, this.mainWindow.getBounds()), { x: 0, y: 0 }),
|
|
@@ -90,6 +90,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
90
90
|
hasShadow: this.opts.hasShadow,
|
|
91
91
|
webPreferences: {
|
|
92
92
|
preload: path.join(__dirname, 'preload.js'),
|
|
93
|
+
contextIsolation: false,
|
|
93
94
|
},
|
|
94
95
|
});
|
|
95
96
|
this.proxySettings = null;
|
|
@@ -118,6 +119,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
118
119
|
? this.createOrGetPooledBrowserView(windowId, {
|
|
119
120
|
webPreferences: {
|
|
120
121
|
preload: path.join(__dirname, 'preload.js'),
|
|
122
|
+
contextIsolation: false,
|
|
121
123
|
},
|
|
122
124
|
})
|
|
123
125
|
: this.createOrGetPooledBrowserWindow(windowId, {
|
|
@@ -132,6 +134,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
132
134
|
hasShadow: this.opts.hasShadow,
|
|
133
135
|
webPreferences: {
|
|
134
136
|
preload: path.join(__dirname, 'preload.js'),
|
|
137
|
+
contextIsolation: false,
|
|
135
138
|
},
|
|
136
139
|
}),
|
|
137
140
|
// If we are creating a child window and renderChildWindowsAsBrowserViews is false that means
|
|
@@ -98,13 +98,7 @@ var isValidChargeRequest = function (value) {
|
|
|
98
98
|
return value &&
|
|
99
99
|
typeof value === 'object' &&
|
|
100
100
|
typeof value.requestId === 'string' &&
|
|
101
|
-
typeof value.amount === 'number'
|
|
102
|
-
(value.tags === undefined ||
|
|
103
|
-
value.tags === null ||
|
|
104
|
-
typeof value.tags === 'object') &&
|
|
105
|
-
(value.idempotencyId === undefined ||
|
|
106
|
-
value.idempotencyId === null ||
|
|
107
|
-
typeof value.idempotencyId === 'string');
|
|
101
|
+
typeof value.amount === 'number';
|
|
108
102
|
};
|
|
109
103
|
var PresentationWindow = /** @class */ (function () {
|
|
110
104
|
function PresentationWindow(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raydiant/playlist-window-manager",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Window manager for playlist playback.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@types/jschannel": "^1.0.1",
|
|
23
23
|
"@types/jest": "^24.0.15",
|
|
24
24
|
"@types/uuid": "8.3.0",
|
|
25
|
-
"electron": "
|
|
25
|
+
"electron": "28.1.2",
|
|
26
26
|
"jest": "^24.8.0",
|
|
27
27
|
"ts-jest": "^24.0.2",
|
|
28
28
|
"typescript": "^4.1.2"
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
ipcMain,
|
|
6
6
|
IpcMainEvent,
|
|
7
7
|
Event,
|
|
8
|
-
Details,
|
|
9
8
|
BrowserWindowConstructorOptions,
|
|
10
9
|
BrowserViewConstructorOptions,
|
|
10
|
+
RenderProcessGoneDetails,
|
|
11
11
|
} from 'electron';
|
|
12
12
|
import {
|
|
13
13
|
PresentationWindowRenderer,
|
|
@@ -32,7 +32,10 @@ interface BrowserWindowRendererWindow {
|
|
|
32
32
|
payload?: any
|
|
33
33
|
) => void;
|
|
34
34
|
unresponsiveCallback: () => void;
|
|
35
|
-
renderProcessGoneCallback: (
|
|
35
|
+
renderProcessGoneCallback: (
|
|
36
|
+
event: Event,
|
|
37
|
+
details: RenderProcessGoneDetails
|
|
38
|
+
) => void;
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
interface BrowserWindowRendererOptions {
|
|
@@ -64,6 +67,7 @@ export default class BrowserWindowRenderer
|
|
|
64
67
|
hasShadow: this.opts.hasShadow,
|
|
65
68
|
webPreferences: {
|
|
66
69
|
preload: path.join(__dirname, 'preload.js'),
|
|
70
|
+
contextIsolation: false,
|
|
67
71
|
},
|
|
68
72
|
});
|
|
69
73
|
|
|
@@ -101,6 +105,7 @@ export default class BrowserWindowRenderer
|
|
|
101
105
|
? this.createOrGetPooledBrowserView(windowId, {
|
|
102
106
|
webPreferences: {
|
|
103
107
|
preload: path.join(__dirname, 'preload.js'),
|
|
108
|
+
contextIsolation: false,
|
|
104
109
|
},
|
|
105
110
|
})
|
|
106
111
|
: this.createOrGetPooledBrowserWindow(windowId, {
|
|
@@ -115,6 +120,7 @@ export default class BrowserWindowRenderer
|
|
|
115
120
|
hasShadow: this.opts.hasShadow,
|
|
116
121
|
webPreferences: {
|
|
117
122
|
preload: path.join(__dirname, 'preload.js'),
|
|
123
|
+
contextIsolation: false,
|
|
118
124
|
},
|
|
119
125
|
}),
|
|
120
126
|
// If we are creating a child window and renderChildWindowsAsBrowserViews is false that means
|
|
@@ -148,7 +154,10 @@ export default class BrowserWindowRenderer
|
|
|
148
154
|
);
|
|
149
155
|
},
|
|
150
156
|
|
|
151
|
-
renderProcessGoneCallback: (
|
|
157
|
+
renderProcessGoneCallback: (
|
|
158
|
+
_: Event,
|
|
159
|
+
details: RenderProcessGoneDetails
|
|
160
|
+
) => {
|
|
152
161
|
this.logger.error(
|
|
153
162
|
`Window received 'render-process-gone' event. Reason: ${details.reason}`,
|
|
154
163
|
{ windowId }
|
|
@@ -78,13 +78,7 @@ const isValidChargeRequest = (value: any): value is ChargeRequest =>
|
|
|
78
78
|
value &&
|
|
79
79
|
typeof value === 'object' &&
|
|
80
80
|
typeof value.requestId === 'string' &&
|
|
81
|
-
typeof value.amount === 'number'
|
|
82
|
-
(value.tags === undefined ||
|
|
83
|
-
value.tags === null ||
|
|
84
|
-
typeof value.tags === 'object') &&
|
|
85
|
-
(value.idempotencyId === undefined ||
|
|
86
|
-
value.idempotencyId === null ||
|
|
87
|
-
typeof value.idempotencyId === 'string');
|
|
81
|
+
typeof value.amount === 'number';
|
|
88
82
|
|
|
89
83
|
export default class PresentationWindow {
|
|
90
84
|
private didReceiveReady: boolean = false;
|
package/tasks/npm-publish.sh
CHANGED