From c41b161687c939684dda89a39b66d3d7b43592fa Mon Sep 17 00:00:00 2001 From: diogopxrnextday <159882035+diogopxrnextday@users.noreply.github.com> Date: Fri, 29 May 2026 06:18:48 +0100 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75054=20Add=20?= =?UTF-8?q?new=20advertising=20configuration=20methods=20and=20update=20ve?= =?UTF-8?q?rsion=20to=201.14.=E2=80=A6=20by=20@diogopxrnextday?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/pxr-oneline/index.d.ts | 17 +++++++++++++++++ types/pxr-oneline/oneline-tests.ts | 25 +++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/types/pxr-oneline/index.d.ts b/types/pxr-oneline/index.d.ts index b7f611dc24e276..ae3f13a5f7532a 100644 --- a/types/pxr-oneline/index.d.ts +++ b/types/pxr-oneline/index.d.ts @@ -31,6 +31,8 @@ declare namespace OneLine { */ requestSpecificAdUnits(adUnitIds: string[]): void; setBettingCookie(betting: boolean): void; + getBaseAdvertisingConfig(): jwplayer.AdvertisingConfig | undefined; + hasVisibleVideoAdUi(container: HTMLElement): boolean; } interface VideoCustomParameters { [key: string]: number | string | undefined; @@ -102,5 +104,20 @@ declare namespace OneLine { type NoParamFunction = () => void; type ParamFunction = (arg: any) => void; } +declare namespace jwplayer { + interface AdvertisingConfig { + client: "vast" | "googima"; + endstate?: string; + outstream?: boolean; + rules?: { + deferAds?: Record; + frequency?: number; + startOn?: number; + startOnSeek?: string; + timeBetweenAds?: number; + }; + vpaidcontrols?: boolean; + } +} declare const OneLine: OneLine.OneLine; export = OneLine; diff --git a/types/pxr-oneline/oneline-tests.ts b/types/pxr-oneline/oneline-tests.ts index 54ac502c331a15..1bc2813ae7380a 100644 --- a/types/pxr-oneline/oneline-tests.ts +++ b/types/pxr-oneline/oneline-tests.ts @@ -13,6 +13,19 @@ interface BidderConfig { type NoParamFunction = () => void; type ParamFunction = (arg: any) => void; +interface AdvertisingConfig { + client: "vast" | "googima"; + endstate?: string; + outstream?: boolean; + rules?: { + deferAds?: Record; + frequency?: number; + startOn?: number; + startOnSeek?: string; + timeBetweenAds?: number; + }; + vpaidcontrols?: boolean; +} interface SocialConsents { vendors: { @@ -130,6 +143,13 @@ const ndOne: OneLine.OneLine = { // Mock implementation for setBettingCookie this.setBettingCookie(betting); }, + getBaseAdvertisingConfig: () => { + const config: AdvertisingConfig = { client: "vast" }; + return config; + }, + hasVisibleVideoAdUi: (container: HTMLElement) => { + return container.childElementCount > 0; + }, }; // Test cases @@ -141,3 +161,8 @@ ndOne.requestVideoPlayerAds(() => { console.log("Video player ads bidding complete"); }); ndOne.setBettingCookie(true); +const advertisingConfig = ndOne.getBaseAdvertisingConfig(); +if (advertisingConfig) { + advertisingConfig.client; +} +ndOne.hasVisibleVideoAdUi(document.createElement("div")); From 725132ecaf94db8cbbc3a82d8101ff7048fe8012 Mon Sep 17 00:00:00 2001 From: diogopxrnextday <159882035+diogopxrnextday@users.noreply.github.com> Date: Fri, 29 May 2026 08:04:35 +0100 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75058=20OneLin?= =?UTF-8?q?e=20API=20with=20new=20advertising=20methods=20and=20update=20v?= =?UTF-8?q?ersion=20to=201.15.9999=20by=20@diogopxrnextday?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/pxr-oneline/index.d.ts | 3 +++ types/pxr-oneline/oneline-tests.ts | 11 ++++++++++- types/pxr-oneline/package.json | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/types/pxr-oneline/index.d.ts b/types/pxr-oneline/index.d.ts index ae3f13a5f7532a..97166768998f43 100644 --- a/types/pxr-oneline/index.d.ts +++ b/types/pxr-oneline/index.d.ts @@ -33,6 +33,9 @@ declare namespace OneLine { setBettingCookie(betting: boolean): void; getBaseAdvertisingConfig(): jwplayer.AdvertisingConfig | undefined; hasVisibleVideoAdUi(container: HTMLElement): boolean; + isJwPlayerAdBreakActive(container: HTMLElement): boolean; + suspendJwPlayerContent(container: HTMLElement): void; + resumeJwPlayerContent(container: HTMLElement): void; } interface VideoCustomParameters { [key: string]: number | string | undefined; diff --git a/types/pxr-oneline/oneline-tests.ts b/types/pxr-oneline/oneline-tests.ts index 1bc2813ae7380a..2e75316e71ac2a 100644 --- a/types/pxr-oneline/oneline-tests.ts +++ b/types/pxr-oneline/oneline-tests.ts @@ -150,6 +150,11 @@ const ndOne: OneLine.OneLine = { hasVisibleVideoAdUi: (container: HTMLElement) => { return container.childElementCount > 0; }, + isJwPlayerAdBreakActive: (container: HTMLElement) => { + return container.classList.contains("jw-flag-ads"); + }, + suspendJwPlayerContent: (_container: HTMLElement) => {}, + resumeJwPlayerContent: (_container: HTMLElement) => {}, }; // Test cases @@ -165,4 +170,8 @@ const advertisingConfig = ndOne.getBaseAdvertisingConfig(); if (advertisingConfig) { advertisingConfig.client; } -ndOne.hasVisibleVideoAdUi(document.createElement("div")); +const playerContainer = document.createElement("div"); +ndOne.hasVisibleVideoAdUi(playerContainer); +ndOne.isJwPlayerAdBreakActive(playerContainer); +ndOne.suspendJwPlayerContent(playerContainer); +ndOne.resumeJwPlayerContent(playerContainer); diff --git a/types/pxr-oneline/package.json b/types/pxr-oneline/package.json index dcd3efa87cd57e..221cd21761abb1 100644 --- a/types/pxr-oneline/package.json +++ b/types/pxr-oneline/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/pxr-oneline", - "version": "1.14.9999", + "version": "1.15.9999", "nonNpm": true, "nonNpmDescription": "The OneLine handles all the logic needed for a publisher to serve ads.", "projects": [ From d367b0514b079743f749259bd0f1fb627d079895 Mon Sep 17 00:00:00 2001 From: wgsadmin Date: Fri, 29 May 2026 11:29:18 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75030=20chore:?= =?UTF-8?q?=20update=20woosmap.map=20by=20@wgsadmin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: manz --- types/woosmap.map/index.d.ts | 7 +++++++ types/woosmap.map/woosmap.map-tests.ts | 1 + 2 files changed, 8 insertions(+) diff --git a/types/woosmap.map/index.d.ts b/types/woosmap.map/index.d.ts index b8c08742461893..5c39acefac35b3 100644 --- a/types/woosmap.map/index.d.ts +++ b/types/woosmap.map/index.d.ts @@ -1593,6 +1593,13 @@ declare namespace woosmap.map { * The initial tilt to start from. */ tilt?: number; + /** + * Opt into the upcoming visual refresh styles. When true, the resolved style + * is upgraded to its refreshed counterpart (e.g. `streets` -> `streets_next`). + * If unset, falls back to `woosmap.map.config.getVisualRefresh()` (default false). + * Experimental — will be removed once the refreshed styles become the default. + */ + visualRefresh?: boolean; /** * The initial map zoom level to start from. */ diff --git a/types/woosmap.map/woosmap.map-tests.ts b/types/woosmap.map/woosmap.map-tests.ts index b08d4b36fdc0dd..71bc68c13babbc 100644 --- a/types/woosmap.map/woosmap.map-tests.ts +++ b/types/woosmap.map/woosmap.map-tests.ts @@ -22,6 +22,7 @@ const mapOptions = expectType({ ], enableMarkerAccessibleNavigation: true, mapTypeId: woosmap.map.MapTypeId.ROADMAP, + visualRefresh: true, }) as woosmap.map.MapOptions; const map = new woosmap.map.Map(document.getElementById("mapContainer") as HTMLElement, mapOptions);