@glomex/integration-web-component 1.1356.0 → 1.1358.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.
Files changed (2) hide show
  1. package/build/index.d.ts +22 -1
  2. package/package.json +3 -3
package/build/index.d.ts CHANGED
@@ -357,12 +357,22 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
357
357
  * @attribute top-level-iframe
358
358
  */
359
359
  topLevelIframe: boolean;
360
+ /**
361
+ * {@inheritDoc IntegrationProperties.useAdsSdk}
362
+ * @attribute use-ads-sdk
363
+ */
364
+ useAdsSdk: boolean;
360
365
  /**
361
366
  * {@inheritDoc IntegrationProperties.placement}
362
367
  * @attribute placement
363
368
  */
364
369
  placement?: string;
365
370
  variant?: string;
371
+ /**
372
+ * {@inheritDoc IntegrationProperties.crossorigin}
373
+ * @attribute crossorigin
374
+ */
375
+ crossorigin?: IntegrationProperties['crossorigin'];
366
376
  /**
367
377
  * Optional callback function invoked when the integration fails to load an advertisement.
368
378
  * The callback receives an object with a `reason` property that explains why no ad was loaded.
@@ -380,7 +390,7 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
380
390
  */
381
391
  pause(): void;
382
392
  /**
383
- * Snapshots current video frame.
393
+ * Snapshots current video frame. Requires {@link crossorigin} to be set to `anonymous`.
384
394
  */
385
395
  getCurrentVideoFrame(): Promise<ImageBitmap>;
386
396
  /**
@@ -909,6 +919,10 @@ export declare interface IntegrationProperties {
909
919
  * An optional flag that can mark the integration as if it is running in a top-level window context. Useful when the embedded iframe represents an article, which contains this integration.
910
920
  */
911
921
  topLevelIframe?: boolean;
922
+ /**
923
+ * An optional flag that marks that the ads-sdk should be used.
924
+ */
925
+ useAdsSdk?: boolean;
912
926
  /**
913
927
  * Allows the publisher to provide an optional placement attribute, which supplies additional contextual information for enhanced analytics tracking.
914
928
  */
@@ -919,6 +933,13 @@ export declare interface IntegrationProperties {
919
933
  ppid?: string;
920
934
  env?: 'stage' | 'local';
921
935
  variant?: string;
936
+ /**
937
+ * The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/crossorigin crossorigin attribute}
938
+ * is used to define the CORS (Cross-Origin Resource Sharing) policy for the video element.
939
+ * Defaults to `anonymous`. If set to `none` (non-standard value) it won't require CORS headers
940
+ * for the loaded media files, though text-tracks from foreign origins then cannot be loaded.
941
+ */
942
+ crossorigin?: '' | 'anonymous' | 'use-credentials' | 'none';
922
943
  }
923
944
 
924
945
  export declare enum KnownMarkerName {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1356.0",
3
+ "version": "1.1358.0",
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.1356.0",
33
+ "@glomex/integration": "^1.1358.0",
34
34
  "@microsoft/api-extractor": "^7.52.8",
35
35
  "@rslib/core": "^0.8.0",
36
36
  "typescript": "^5.8.3"
@@ -39,5 +39,5 @@
39
39
  "access": "public"
40
40
  },
41
41
  "license": "MIT",
42
- "gitHead": "e6a6ecb71d38ae6cb5802b986f808b6737eced93"
42
+ "gitHead": "4033fb32b0be7563b190afc1f58c04033221be09"
43
43
  }