@glomex/integration-web-component 1.1386.1 → 1.1387.1
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/dist/index.d.ts +67 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -277,6 +277,67 @@ export declare class ExternalMediaItemElement extends HTMLElement implements Med
|
|
|
277
277
|
get data(): MediaItem;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
+
/**
|
|
281
|
+
* Additional application, device and user information that can be passed via {@link IntegrationElement#extraContext extraContext} to the integration.
|
|
282
|
+
* Intended to improve monetization.
|
|
283
|
+
*/
|
|
284
|
+
export declare interface ExtraContext {
|
|
285
|
+
/**
|
|
286
|
+
* The presentational context of the integration. Do not define it when it is not part of those contexts.
|
|
287
|
+
*/
|
|
288
|
+
presentationalContext?: 'curated-list' | 'discovery-page';
|
|
289
|
+
/**
|
|
290
|
+
* The version of the app. When it is a website, fill in the deployed version of the website.
|
|
291
|
+
*/
|
|
292
|
+
appVersion?: string;
|
|
293
|
+
userIds?: ExtraContextUserId[];
|
|
294
|
+
/**
|
|
295
|
+
* The bundle id of the app. Only required for iOS apps.
|
|
296
|
+
*/
|
|
297
|
+
appBundleId?: string;
|
|
298
|
+
/**
|
|
299
|
+
* The store id of the app. Only required for apps. Depending on the app store, the id is formatted differently.
|
|
300
|
+
* {@link https://iabtechlab.com/wp-content/uploads/2020/08/IAB-Tech-Lab-OTT-store-assigned-App-Identification-Guidelines-2020.pdf IAB Tech Lab App Identification Guidelines}
|
|
301
|
+
*/
|
|
302
|
+
appStoreId?: string;
|
|
303
|
+
/**
|
|
304
|
+
* The store URL of the app. Only required for apps.
|
|
305
|
+
* {@link https://iabtechlab.com/wp-content/uploads/2020/08/IAB-Tech-Lab-OTT-store-assigned-App-Identification-Guidelines-2020.pdf IAB Tech Lab App Identification Guidelines}
|
|
306
|
+
*/
|
|
307
|
+
appStoreUrl?: string;
|
|
308
|
+
b2bContext?: string;
|
|
309
|
+
deviceId?: ExtraContextDeviceId;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Device id of the user. Only required for app environments. When no listed deviceId is available, you can pass a ppid {@link ExtraContextUserId}.
|
|
314
|
+
*/
|
|
315
|
+
export declare interface ExtraContextDeviceId {
|
|
316
|
+
id: string;
|
|
317
|
+
name: 'aaid' | 'afai' | 'asia' | 'asid' | 'tifa' | 'vaid' | 'idfa' | 'idfv' | 'lgudid' | 'msai' | 'oaid' | 'psnai' | 'rida' | 'vida' | 'waid';
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* User id of the user that can be passed additionally to the integration. It improves the monetization.
|
|
322
|
+
*
|
|
323
|
+
* @example When you want to forward envelopes for liveramp, you can pass them within ext
|
|
324
|
+
* ```ts
|
|
325
|
+
* const envelopes = [['envelopeId1', 'envelopeId2']];
|
|
326
|
+
* const userId = {
|
|
327
|
+
* id: envelopes.[0]?.[1],
|
|
328
|
+
* name: 'liverampId',
|
|
329
|
+
* ext: {
|
|
330
|
+
* envelopes
|
|
331
|
+
* }
|
|
332
|
+
* }
|
|
333
|
+
* ```
|
|
334
|
+
*/
|
|
335
|
+
export declare interface ExtraContextUserId {
|
|
336
|
+
id: string;
|
|
337
|
+
name: 'netId' | 'sevenPassId' | 'ppid' | 'utiqId' | 'liverampId';
|
|
338
|
+
ext?: Record<string, unknown>;
|
|
339
|
+
}
|
|
340
|
+
|
|
280
341
|
export declare function getIntegrationCssUrl(integrationId: string): string;
|
|
281
342
|
|
|
282
343
|
/**
|
|
@@ -404,6 +465,7 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
404
465
|
* @attribute crossorigin
|
|
405
466
|
*/
|
|
406
467
|
crossorigin?: IntegrationProperties['crossorigin'];
|
|
468
|
+
extraContext?: ExtraContext;
|
|
407
469
|
/**
|
|
408
470
|
* Optional callback function invoked when the integration fails to load an advertisement.
|
|
409
471
|
* The callback receives an object with a `reason` property that explains why no ad was loaded.
|
|
@@ -964,10 +1026,6 @@ export declare interface IntegrationProperties {
|
|
|
964
1026
|
* This can be a simple string or a stringified JSON object. If it is a stringified JSON object, its contents are forwarded as `placementDetail`. If the object contains a property key `name`, its value will be tracked for the placement attribute.
|
|
965
1027
|
*/
|
|
966
1028
|
placement?: string;
|
|
967
|
-
/**
|
|
968
|
-
* Allows the publisher to provide an optional ppid (publisher provided user id) attribute, which supplies additional contextual information for enhanced analytics tracking.
|
|
969
|
-
*/
|
|
970
|
-
ppid?: string;
|
|
971
1029
|
env?: 'stage' | 'local';
|
|
972
1030
|
variant?: string;
|
|
973
1031
|
/**
|
|
@@ -977,6 +1035,10 @@ export declare interface IntegrationProperties {
|
|
|
977
1035
|
* for the loaded media files, though text-tracks from foreign origins then cannot be loaded.
|
|
978
1036
|
*/
|
|
979
1037
|
crossorigin?: '' | 'anonymous' | 'use-credentials' | 'none';
|
|
1038
|
+
/**
|
|
1039
|
+
* An optional context object that can be used to pass additional application, device and user information to the integration.
|
|
1040
|
+
*/
|
|
1041
|
+
extraContext?: ExtraContext;
|
|
980
1042
|
}
|
|
981
1043
|
|
|
982
1044
|
export declare enum KnownMarkerName {
|
|
@@ -1120,7 +1182,7 @@ export declare interface MediaItem {
|
|
|
1120
1182
|
*/
|
|
1121
1183
|
hasProductPlacement?: boolean;
|
|
1122
1184
|
/**
|
|
1123
|
-
* Channel of the media item.
|
|
1185
|
+
* Channel (or often referred to as brand) of the media item.
|
|
1124
1186
|
*/
|
|
1125
1187
|
channel?: Channel;
|
|
1126
1188
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1387.1",
|
|
4
4
|
"description": "Web component and types to integrate the glomex player",
|
|
5
5
|
"documentation": "https://docs.glomex.com",
|
|
6
6
|
"homepage": "https://glomex.com",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "^1.9.4",
|
|
33
|
-
"@glomex/integration": "^1.
|
|
33
|
+
"@glomex/integration": "^1.1387.1",
|
|
34
34
|
"@microsoft/api-extractor": "^7.52.10",
|
|
35
35
|
"@rslib/core": "^0.11.2",
|
|
36
36
|
"typescript": "^5.8.3"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "9877d981a54eee4542fe67c5ae70cec9ac8d64d3"
|
|
43
43
|
}
|