@raydiant/playlist-window-manager 0.14.14 → 0.14.19
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/PresentationWindow.js +5 -1
- package/build/types.d.ts +4 -0
- package/package.json +2 -2
- package/src/PresentationWindow.ts +7 -1
- package/src/types.ts +4 -0
|
@@ -63,7 +63,7 @@ var PlaylistWindowManager_1 = __importDefault(require("./PlaylistWindowManager")
|
|
|
63
63
|
var WindowTimeoutError_1 = __importDefault(require("./WindowTimeoutError"));
|
|
64
64
|
var WindowLoadError_1 = __importDefault(require("./WindowLoadError"));
|
|
65
65
|
// TODO: Automatically inject latest version when building in CI.
|
|
66
|
-
var defaultAppRendererUrl = 'https://apps.raydiant.com/1.4.
|
|
66
|
+
var defaultAppRendererUrl = 'https://apps.raydiant.com/1.4.5/index.html';
|
|
67
67
|
var isValidNumber = function (value) {
|
|
68
68
|
return typeof value === 'number' && !isNaN(value);
|
|
69
69
|
};
|
|
@@ -553,6 +553,10 @@ var PresentationWindow = /** @class */ (function () {
|
|
|
553
553
|
nextTheme.bodyFont =
|
|
554
554
|
nextTheme.bodyFontNew.fileUpload.url || nextTheme.bodyFont;
|
|
555
555
|
}
|
|
556
|
+
if (nextTheme.backgroundImageFileUpload) {
|
|
557
|
+
nextTheme.backgroundImage =
|
|
558
|
+
nextTheme.backgroundImageFileUpload.url || nextTheme.backgroundImage;
|
|
559
|
+
}
|
|
556
560
|
return nextTheme;
|
|
557
561
|
};
|
|
558
562
|
PresentationWindow.prototype.sendRenderMessage = function () {
|
package/build/types.d.ts
CHANGED
|
@@ -52,6 +52,10 @@ export interface Theme {
|
|
|
52
52
|
headingFontNew: Font | null;
|
|
53
53
|
heading2FontNew: Font | null;
|
|
54
54
|
bodyFontNew: Font | null;
|
|
55
|
+
backgroundImageFileUpload: {
|
|
56
|
+
url: string;
|
|
57
|
+
} | null;
|
|
58
|
+
backgroundScale: 'fit' | 'fill' | null;
|
|
55
59
|
}
|
|
56
60
|
export interface Device {
|
|
57
61
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raydiant/playlist-window-manager",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.19",
|
|
4
4
|
"description": "Window manager for playlist playback.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"fast-deep-equal": "^3.1.3",
|
|
15
|
-
"@raydiant/playlist-rule-engine": "3.1.
|
|
15
|
+
"@raydiant/playlist-rule-engine": "3.1.14",
|
|
16
16
|
"raydiant-kit": "^4.6.1",
|
|
17
17
|
"uuid": "^8.3.0",
|
|
18
18
|
"eventemitter3": "^4.0.7"
|
|
@@ -49,7 +49,7 @@ export interface PresentationWindowOptions {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// TODO: Automatically inject latest version when building in CI.
|
|
52
|
-
const defaultAppRendererUrl = 'https://apps.raydiant.com/1.4.
|
|
52
|
+
const defaultAppRendererUrl = 'https://apps.raydiant.com/1.4.5/index.html';
|
|
53
53
|
|
|
54
54
|
const isValidNumber = (value: any) =>
|
|
55
55
|
typeof value === 'number' && !isNaN(value);
|
|
@@ -499,6 +499,12 @@ export default class PresentationWindow {
|
|
|
499
499
|
nextTheme.bodyFont =
|
|
500
500
|
nextTheme.bodyFontNew.fileUpload.url || nextTheme.bodyFont;
|
|
501
501
|
}
|
|
502
|
+
|
|
503
|
+
if (nextTheme.backgroundImageFileUpload) {
|
|
504
|
+
nextTheme.backgroundImage =
|
|
505
|
+
nextTheme.backgroundImageFileUpload.url || nextTheme.backgroundImage;
|
|
506
|
+
}
|
|
507
|
+
|
|
502
508
|
return nextTheme;
|
|
503
509
|
}
|
|
504
510
|
|
package/src/types.ts
CHANGED
|
@@ -51,6 +51,10 @@ export interface Theme {
|
|
|
51
51
|
headingFontNew: Font | null;
|
|
52
52
|
heading2FontNew: Font | null;
|
|
53
53
|
bodyFontNew: Font | null;
|
|
54
|
+
backgroundImageFileUpload: {
|
|
55
|
+
url: string;
|
|
56
|
+
} | null;
|
|
57
|
+
backgroundScale: 'fit' | 'fill' | null;
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
export interface Device {
|