@reveldigital/player-client 1.0.15 → 2.0.2
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/README.md +236 -236
- package/esm2022/lib/app-init.service.mjs +113 -0
- package/esm2022/lib/interfaces/client.interface.mjs +2 -0
- package/esm2022/lib/interfaces/command.interface.mjs +2 -0
- package/esm2022/lib/interfaces/config.interface.mjs +50 -0
- package/esm2022/lib/interfaces/device.interface.mjs +2 -0
- package/esm2022/lib/interfaces/event-properties.interface.mjs +2 -0
- package/esm2022/lib/interfaces/location.interface.mjs +2 -0
- package/esm2022/lib/player-client.module.mjs +71 -0
- package/esm2022/lib/player-client.service.mjs +928 -0
- package/esm2022/lib/safe-style.pipe.mjs +41 -0
- package/{esm2020 → esm2022}/lib/version.mjs +3 -3
- package/{esm2020 → esm2022}/public-api.mjs +6 -6
- package/{esm2020 → esm2022}/reveldigital-player-client.mjs +4 -4
- package/{fesm2020 → fesm2022}/reveldigital-player-client.mjs +1132 -1134
- package/fesm2022/reveldigital-player-client.mjs.map +1 -0
- package/{reveldigital-player-client.d.ts → index.d.ts} +5 -5
- package/lib/app-init.service.d.ts +18 -18
- package/lib/app-init.service.d.ts.map +1 -1
- package/lib/interfaces/client.interface.d.ts +406 -406
- package/lib/interfaces/command.interface.d.ts +78 -78
- package/lib/interfaces/config.interface.d.ts +151 -151
- package/lib/interfaces/device.interface.d.ts +139 -139
- package/lib/interfaces/event-properties.interface.d.ts +134 -134
- package/lib/interfaces/location.interface.d.ts +187 -187
- package/lib/player-client.module.d.ts +9 -9
- package/lib/player-client.service.d.ts +640 -640
- package/lib/safe-style.pipe.d.ts +23 -23
- package/lib/safe-style.pipe.d.ts.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.d.ts.map +1 -1
- package/package.json +12 -18
- package/public-api.d.ts +3 -3
- package/schematics/collection.json +15 -15
- package/schematics/ng-add/assets/gadget.yaml +54 -54
- package/schematics/ng-add/index.d.ts +18 -4
- package/schematics/ng-add/index.js +391 -287
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/schema.d.ts +4 -4
- package/schematics/ng-add/schema.js +2 -2
- package/schematics/ng-add/schema.json +23 -23
- package/schematics/ng-add/templates/index.html +30 -30
- package/schematics/ng-add/templates/polyfills.ts +72 -72
- package/schematics/ng-add/utils/changeBasePath.js +19 -19
- package/schematics/ng-add/utils/yml2xml.js +132 -132
- package/esm2020/lib/app-init.service.mjs +0 -110
- package/esm2020/lib/interfaces/client.interface.mjs +0 -2
- package/esm2020/lib/interfaces/command.interface.mjs +0 -2
- package/esm2020/lib/interfaces/config.interface.mjs +0 -50
- package/esm2020/lib/interfaces/device.interface.mjs +0 -2
- package/esm2020/lib/interfaces/event-properties.interface.mjs +0 -2
- package/esm2020/lib/interfaces/location.interface.mjs +0 -2
- package/esm2020/lib/player-client.module.mjs +0 -73
- package/esm2020/lib/player-client.service.mjs +0 -928
- package/esm2020/lib/safe-style.pipe.mjs +0 -40
- package/fesm2015/reveldigital-player-client.mjs +0 -1219
- package/fesm2015/reveldigital-player-client.mjs.map +0 -1
- package/fesm2020/reveldigital-player-client.mjs.map +0 -1
package/lib/safe-style.pipe.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* The safe style pipe is used when custom styles are defined for a gadget and must be applied to an Angular
|
|
6
|
-
* component. This pipe will ensure the style can be appied safely by utilizing the DomSanitizer.
|
|
7
|
-
*
|
|
8
|
-
* ```html
|
|
9
|
-
* <h2 [style]="style | safeStyle">Sample Pref: {{ prefs.getString('myStringPref') }}</h2>
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
export declare class SafeStylePipe implements PipeTransform {
|
|
13
|
-
private sanitized;
|
|
14
|
-
constructor(sanitized: DomSanitizer);
|
|
15
|
-
transform(value: any): unknown;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SafeStylePipe, never>;
|
|
17
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SafeStylePipe, "safeStyle">;
|
|
18
|
-
}
|
|
19
|
-
export declare class NgSafeStylePipeModule {
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSafeStylePipeModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgSafeStylePipeModule, [typeof SafeStylePipe],
|
|
22
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgSafeStylePipeModule>;
|
|
23
|
-
}
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* The safe style pipe is used when custom styles are defined for a gadget and must be applied to an Angular
|
|
6
|
+
* component. This pipe will ensure the style can be appied safely by utilizing the DomSanitizer.
|
|
7
|
+
*
|
|
8
|
+
* ```html
|
|
9
|
+
* <h2 [style]="style | safeStyle">Sample Pref: {{ prefs.getString('myStringPref') }}</h2>
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare class SafeStylePipe implements PipeTransform {
|
|
13
|
+
private sanitized;
|
|
14
|
+
constructor(sanitized: DomSanitizer);
|
|
15
|
+
transform(value: any): unknown;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeStylePipe, never>;
|
|
17
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeStylePipe, "safeStyle", true>;
|
|
18
|
+
}
|
|
19
|
+
export declare class NgSafeStylePipeModule {
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgSafeStylePipeModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgSafeStylePipeModule, never, [typeof SafeStylePipe], [typeof SafeStylePipe]>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgSafeStylePipeModule>;
|
|
23
|
+
}
|
|
24
24
|
//# sourceMappingURL=safe-style.pipe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safe-style.pipe.d.ts","sourceRoot":"","sources":["../../../../projects/reveldigital/player-client/src/lib/safe-style.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAY,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;;AAEzD;;;;;;;GAOG;AACH,
|
|
1
|
+
{"version":3,"file":"safe-style.pipe.d.ts","sourceRoot":"","sources":["../../../../projects/reveldigital/player-client/src/lib/safe-style.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAY,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;;AAEzD;;;;;;;GAOG;AACH,qBAIa,aAAc,YAAW,aAAa;IACnC,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,YAAY;IAE3C,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;yCAHrB,aAAa;uCAAb,aAAa;CAMzB;AAED,qBAIa,qBAAqB;yCAArB,qBAAqB;0CAArB,qBAAqB,iBAZrB,aAAa,WAAb,aAAa;0CAYb,qBAAqB;CAAI"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "
|
|
1
|
+
export declare const version = "2.0.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/lib/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../projects/reveldigital/player-client/src/lib/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../projects/reveldigital/player-client/src/lib/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,UAAU,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reveldigital/player-client",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Helper library for interfacing Angular apps with the Revel Digital
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"description": "Helper library for interfacing Angular apps with the Revel Digital gadget framework.",
|
|
5
5
|
"schematics": "./schematics/collection.json",
|
|
6
6
|
"ng-add": {
|
|
7
7
|
"save": "dependencies"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"author": {
|
|
19
19
|
"name": "Mike Tinnes"
|
|
20
20
|
},
|
|
21
|
-
"license": "",
|
|
21
|
+
"license": "MIT",
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@angular/common": ">=
|
|
24
|
-
"@angular/core": ">=
|
|
23
|
+
"@angular/common": ">= 16.0.0",
|
|
24
|
+
"@angular/core": ">= 16.0.0",
|
|
25
25
|
"@reveldigital/gadget-types": "1.0.0",
|
|
26
26
|
"webfontloader": "1.6.28",
|
|
27
27
|
"js-yaml": "^4.1.0"
|
|
@@ -29,24 +29,18 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"tslib": "^2.4.1"
|
|
31
31
|
},
|
|
32
|
-
"module": "
|
|
33
|
-
"
|
|
34
|
-
"esm2020": "esm2020/reveldigital-player-client.mjs",
|
|
35
|
-
"fesm2020": "fesm2020/reveldigital-player-client.mjs",
|
|
36
|
-
"fesm2015": "fesm2015/reveldigital-player-client.mjs",
|
|
37
|
-
"typings": "reveldigital-player-client.d.ts",
|
|
32
|
+
"module": "fesm2022/reveldigital-player-client.mjs",
|
|
33
|
+
"typings": "index.d.ts",
|
|
38
34
|
"exports": {
|
|
39
35
|
"./package.json": {
|
|
40
36
|
"default": "./package.json"
|
|
41
37
|
},
|
|
42
38
|
".": {
|
|
43
|
-
"types": "./
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"node": "./fesm2015/reveldigital-player-client.mjs",
|
|
48
|
-
"default": "./fesm2020/reveldigital-player-client.mjs"
|
|
39
|
+
"types": "./index.d.ts",
|
|
40
|
+
"esm2022": "./esm2022/reveldigital-player-client.mjs",
|
|
41
|
+
"esm": "./esm2022/reveldigital-player-client.mjs",
|
|
42
|
+
"default": "./fesm2022/reveldigital-player-client.mjs"
|
|
49
43
|
}
|
|
50
44
|
},
|
|
51
45
|
"sideEffects": false
|
|
52
|
-
}
|
|
46
|
+
}
|
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './lib/player-client.service';
|
|
2
|
-
export * from './lib/player-client.module';
|
|
3
|
-
export * from './lib/safe-style.pipe';
|
|
1
|
+
export * from './lib/player-client.service';
|
|
2
|
+
export * from './lib/player-client.module';
|
|
3
|
+
export * from './lib/safe-style.pipe';
|
|
4
4
|
//# sourceMappingURL=public-api.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "../../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
-
"schematics": {
|
|
4
|
-
"ng-add": {
|
|
5
|
-
"description": "Add the Revel Digital client library to your project.",
|
|
6
|
-
"factory": "./ng-add/index#dependencies",
|
|
7
|
-
"schema": "./ng-add/schema.json"
|
|
8
|
-
},
|
|
9
|
-
"after-dependencies": {
|
|
10
|
-
"description": "Add the Revel Digital client library to your project.",
|
|
11
|
-
"factory": "./ng-add/index#ngAdd",
|
|
12
|
-
"schema": "./ng-add/schema.json",
|
|
13
|
-
"private": true
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Add the Revel Digital client library to your project.",
|
|
6
|
+
"factory": "./ng-add/index#dependencies",
|
|
7
|
+
"schema": "./ng-add/schema.json"
|
|
8
|
+
},
|
|
9
|
+
"after-dependencies": {
|
|
10
|
+
"description": "Add the Revel Digital client library to your project.",
|
|
11
|
+
"factory": "./ng-add/index#ngAdd",
|
|
12
|
+
"schema": "./ng-add/schema.json",
|
|
13
|
+
"private": true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
16
|
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
title: My Gadget
|
|
2
|
-
title_url: https://mysupporturl.org
|
|
3
|
-
description: Describe the purpose of your gadget here
|
|
4
|
-
author: My Organization
|
|
5
|
-
background: transparent
|
|
6
|
-
|
|
7
|
-
requirements:
|
|
8
|
-
- reveldigital
|
|
9
|
-
- offline
|
|
10
|
-
- webfont
|
|
11
|
-
|
|
12
|
-
locales:
|
|
13
|
-
- messages: https://reveldigital.github.io/reveldigital-gadgets/ALL_ALL.xml
|
|
14
|
-
|
|
15
|
-
- lang: ru
|
|
16
|
-
messages: https://reveldigital.github.io/reveldigital-gadgets/ALL_ALL.xml
|
|
17
|
-
|
|
18
|
-
prefs:
|
|
19
|
-
- name: myStringPref
|
|
20
|
-
display_name: Sample string preference
|
|
21
|
-
datatype: string
|
|
22
|
-
default_value: test string
|
|
23
|
-
required: true
|
|
24
|
-
|
|
25
|
-
- name: myBoolPref
|
|
26
|
-
display_name: Sample boolean preference
|
|
27
|
-
datatype: bool
|
|
28
|
-
default_value: true
|
|
29
|
-
required: true
|
|
30
|
-
depends:
|
|
31
|
-
- name: myEnumPref
|
|
32
|
-
any_of:
|
|
33
|
-
- values:
|
|
34
|
-
- fast
|
|
35
|
-
|
|
36
|
-
- name: myStylePref
|
|
37
|
-
display_name: Sample style preference
|
|
38
|
-
datatype: style
|
|
39
|
-
default_value: font-family:Verdana;color:rgb(255, 255, 255);font-size:18px;
|
|
40
|
-
required: true
|
|
41
|
-
|
|
42
|
-
- name: myEnumPref
|
|
43
|
-
display_name: Sample enum preference
|
|
44
|
-
datatype: enum
|
|
45
|
-
default_value: fast
|
|
46
|
-
required: true
|
|
47
|
-
multiple: false
|
|
48
|
-
options:
|
|
49
|
-
- value: fastest
|
|
50
|
-
display_value: Fastest
|
|
51
|
-
- value: fast
|
|
52
|
-
display_value: Fast
|
|
53
|
-
- value: medium
|
|
54
|
-
display_value: Medium
|
|
1
|
+
title: My Gadget
|
|
2
|
+
title_url: https://mysupporturl.org
|
|
3
|
+
description: Describe the purpose of your gadget here
|
|
4
|
+
author: My Organization
|
|
5
|
+
background: transparent
|
|
6
|
+
|
|
7
|
+
requirements:
|
|
8
|
+
- reveldigital
|
|
9
|
+
- offline
|
|
10
|
+
- webfont
|
|
11
|
+
|
|
12
|
+
locales:
|
|
13
|
+
- messages: https://reveldigital.github.io/reveldigital-gadgets/ALL_ALL.xml
|
|
14
|
+
|
|
15
|
+
- lang: ru
|
|
16
|
+
messages: https://reveldigital.github.io/reveldigital-gadgets/ALL_ALL.xml
|
|
17
|
+
|
|
18
|
+
prefs:
|
|
19
|
+
- name: myStringPref
|
|
20
|
+
display_name: Sample string preference
|
|
21
|
+
datatype: string
|
|
22
|
+
default_value: test string
|
|
23
|
+
required: true
|
|
24
|
+
|
|
25
|
+
- name: myBoolPref
|
|
26
|
+
display_name: Sample boolean preference
|
|
27
|
+
datatype: bool
|
|
28
|
+
default_value: true
|
|
29
|
+
required: true
|
|
30
|
+
depends:
|
|
31
|
+
- name: myEnumPref
|
|
32
|
+
any_of:
|
|
33
|
+
- values:
|
|
34
|
+
- fast
|
|
35
|
+
|
|
36
|
+
- name: myStylePref
|
|
37
|
+
display_name: Sample style preference
|
|
38
|
+
datatype: style
|
|
39
|
+
default_value: font-family:Verdana;color:rgb(255, 255, 255);font-size:18px;
|
|
40
|
+
required: true
|
|
41
|
+
|
|
42
|
+
- name: myEnumPref
|
|
43
|
+
display_name: Sample enum preference
|
|
44
|
+
datatype: enum
|
|
45
|
+
default_value: fast
|
|
46
|
+
required: true
|
|
47
|
+
multiple: false
|
|
48
|
+
options:
|
|
49
|
+
- value: fastest
|
|
50
|
+
display_value: Fastest
|
|
51
|
+
- value: fast
|
|
52
|
+
display_value: Fast
|
|
53
|
+
- value: medium
|
|
54
|
+
display_value: Medium
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { Schema as MyServiceSchema } from './schema';
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { Schema as MyServiceSchema } from './schema';
|
|
3
|
+
/**
|
|
4
|
+
* Main schematic rule for adding Revel Digital Player Client to an Angular project.
|
|
5
|
+
*
|
|
6
|
+
* This schematic performs the following operations:
|
|
7
|
+
* - Validates the target project is an Angular application
|
|
8
|
+
* - Adds required dependencies to package.json
|
|
9
|
+
* - Updates the app module to import PlayerClientModule
|
|
10
|
+
* - Adds utility files and assets
|
|
11
|
+
* - Configures build scripts for gadget development
|
|
12
|
+
* - Optionally sets up GitHub Pages deployment
|
|
13
|
+
*/
|
|
14
|
+
export declare function ngAdd(options: MyServiceSchema): Rule;
|
|
15
|
+
/**
|
|
16
|
+
* Adds dependencies required for the schematic.
|
|
17
|
+
*/
|
|
18
|
+
export declare function dependencies(options: any): Rule;
|