@guardian/commercial-core 3.1.0 → 3.2.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.
@@ -30,6 +30,7 @@ interface EventTimerProperties {
30
30
  adSlotsInline?: number;
31
31
  adSlotsTotal?: number;
32
32
  pageHeightVH?: number;
33
+ lazyLoadMarginPercent?: number;
33
34
  }
34
35
  export declare class EventTimer {
35
36
  private _events;
@@ -70,7 +71,7 @@ export declare class EventTimer {
70
71
  * @param {string} name - the property's name
71
72
  * @param {value} number - the property's value
72
73
  */
73
- setProperty(name: 'adSlotsInline' | 'adSlotsTotal' | 'pageHeightVH', value: number): void;
74
+ setProperty(name: 'adSlotsInline' | 'adSlotsTotal' | 'pageHeightVH' | 'lazyLoadMarginPercent', value: number): void;
74
75
  /**
75
76
  * Creates a new performance mark
76
77
  * For slot events also ensures each TYPE of event event is marked only once for 'first'
@@ -30,6 +30,7 @@ interface EventTimerProperties {
30
30
  adSlotsInline?: number;
31
31
  adSlotsTotal?: number;
32
32
  pageHeightVH?: number;
33
+ lazyLoadMarginPercent?: number;
33
34
  }
34
35
  export declare class EventTimer {
35
36
  private _events;
@@ -70,7 +71,7 @@ export declare class EventTimer {
70
71
  * @param {string} name - the property's name
71
72
  * @param {value} number - the property's value
72
73
  */
73
- setProperty(name: 'adSlotsInline' | 'adSlotsTotal' | 'pageHeightVH', value: number): void;
74
+ setProperty(name: 'adSlotsInline' | 'adSlotsTotal' | 'pageHeightVH' | 'lazyLoadMarginPercent', value: number): void;
74
75
  /**
75
76
  * Creates a new performance mark
76
77
  * For slot events also ensures each TYPE of event event is marked only once for 'first'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/commercial-core",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Guardian advertising business logic",
5
5
  "homepage": "https://github.com/guardian/commercial-core#readme",
6
6
  "bugs": {