@glomex/integration-web-component 1.1298.3 → 1.1299.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/README.md +2 -2
- package/build/index.d.ts +11 -1
- package/package.json +16 -3
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Our ecosystem is designed to create value for all participants:
|
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
### Loading & integrating the player
|
|
19
|
+
### Loading & integrating the player (TypeScript)
|
|
20
20
|
|
|
21
21
|
For plain JavaScript projects, you can follow [this guide](https://docs.glomex.com/publisher/player/embed-code/advanced/javascript).
|
|
22
22
|
You though can use the `@glomex/integration-web-component` helper to load the integration component and styles also in JavaScript projects.
|
|
@@ -54,7 +54,7 @@ await window.customElements.whenDefined(ComponentName.INTEGRATION);
|
|
|
54
54
|
integration.play();
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
### Implementing a public API script
|
|
57
|
+
### Implementing a public API script (TypeScript)
|
|
58
58
|
|
|
59
59
|
```ts
|
|
60
60
|
import {
|
package/build/index.d.ts
CHANGED
|
@@ -295,6 +295,15 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
295
295
|
* @attribute placement
|
|
296
296
|
*/
|
|
297
297
|
placement?: string;
|
|
298
|
+
variant?: string;
|
|
299
|
+
/**
|
|
300
|
+
* Optional callback function invoked when the integration fails to load an advertisement.
|
|
301
|
+
* The callback receives an object with a `reason` property that explains why no ad was loaded.
|
|
302
|
+
* It must be defined before the element gets attached to the DOM.
|
|
303
|
+
*/
|
|
304
|
+
passback?: (payload: {
|
|
305
|
+
reason: string;
|
|
306
|
+
}) => void;
|
|
298
307
|
/**
|
|
299
308
|
* Initiates playback of the media content.
|
|
300
309
|
*/
|
|
@@ -593,6 +602,7 @@ export declare interface IntegrationProperties {
|
|
|
593
602
|
* Allows the publisher to provide an optional placement attribute, which supplies additional contextual information for enhanced analytics tracking.
|
|
594
603
|
*/
|
|
595
604
|
placement?: string;
|
|
605
|
+
variant?: string;
|
|
596
606
|
}
|
|
597
607
|
|
|
598
608
|
export declare enum KnownMarkerName {
|
|
@@ -606,7 +616,7 @@ export declare enum KnownMarkerName {
|
|
|
606
616
|
STILL_INTERESTING = "stillInteresting"
|
|
607
617
|
}
|
|
608
618
|
|
|
609
|
-
export declare function loadIntegrationComponent(): Promise<
|
|
619
|
+
export declare function loadIntegrationComponent(): Promise<HTMLScriptElement>;
|
|
610
620
|
|
|
611
621
|
export declare function loadIntegrationStyles(integrationId: string): void;
|
|
612
622
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1299.0",
|
|
4
4
|
"description": "Web component and types to integrate the glomex player",
|
|
5
|
+
"documentation": "https://docs.glomex.com",
|
|
6
|
+
"homepage": "https://glomex.com",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"glomex",
|
|
9
|
+
"video",
|
|
10
|
+
"player",
|
|
11
|
+
"streaming",
|
|
12
|
+
"media-player",
|
|
13
|
+
"web-player",
|
|
14
|
+
"web-component",
|
|
15
|
+
"custom-element"
|
|
16
|
+
],
|
|
5
17
|
"type": "module",
|
|
6
18
|
"main": "./build/index.js",
|
|
7
19
|
"types": "./build/index.d.ts",
|
|
@@ -17,12 +29,13 @@
|
|
|
17
29
|
},
|
|
18
30
|
"devDependencies": {
|
|
19
31
|
"@biomejs/biome": "^1.9.4",
|
|
20
|
-
"@glomex/integration": "^1.
|
|
32
|
+
"@glomex/integration": "^1.1299.0",
|
|
33
|
+
"@microsoft/api-extractor": "^7.52.1",
|
|
21
34
|
"@rslib/core": "^0.5.4",
|
|
22
35
|
"typescript": "^5.8.2"
|
|
23
36
|
},
|
|
24
37
|
"publishConfig": {
|
|
25
38
|
"access": "public"
|
|
26
39
|
},
|
|
27
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0639a6ddf352930238f560cc0887345f7b401d60"
|
|
28
41
|
}
|