@guardian/commercial-core 6.3.0 → 7.1.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
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@guardian/commercial-core)
|
|
4
4
|
[](https://tc39.es/ecma262/2020/)
|
|
5
5
|
[](https://www.typescriptlang.org/)
|
|
6
|
-
[](https://coveralls.io/github/guardian/commercial-core?branch=main)
|
|
7
6
|
|
|
8
7
|
> Guardian advertising business logic
|
|
9
8
|
|
package/dist/cjs/ad-sizes.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare class AdSize extends Array<number> {
|
|
|
28
28
|
get height(): number;
|
|
29
29
|
}
|
|
30
30
|
type SizeKeys = '160x600' | '300x1050' | '300x250' | '300x600' | '728x90' | '970x250' | 'billboard' | 'cascade' | 'empty' | 'fabric' | 'fluid' | 'googleCard' | 'halfPage' | 'inlineMerchandising' | 'leaderboard' | 'merchandising' | 'merchandisingHigh' | 'merchandisingHighAdFeature' | 'mobilesticky' | 'mpu' | 'outOfPage' | 'outstreamDesktop' | 'outstreamGoogleDesktop' | 'outstreamMobile' | 'portrait' | 'portraitInterstitial' | 'skyscraper';
|
|
31
|
-
type SlotName = 'carrot' | 'comments' | 'comments-expanded' | 'crossword-banner' | 'epic' | 'exclusion' | 'im' | 'inline' | 'merchandising-high-lucky' | 'merchandising-high' | 'merchandising' | 'mobile-sticky' | 'mostpop' | 'right' | 'survey' | 'top-above-nav';
|
|
31
|
+
type SlotName = 'carrot' | 'comments' | 'comments-expanded' | 'crossword-banner' | 'epic' | 'exclusion' | 'fronts-banner' | 'im' | 'inline' | 'merchandising-high-lucky' | 'merchandising-high' | 'merchandising' | 'mobile-sticky' | 'mostpop' | 'right' | 'survey' | 'top-above-nav';
|
|
32
32
|
type SizeMapping = Partial<Record<Breakpoint, AdSize[]>>;
|
|
33
33
|
type SlotSizeMappings = Record<SlotName, SizeMapping>;
|
|
34
34
|
declare const createAdSize: (width: number, height: number) => AdSize;
|
package/dist/cjs/ad-sizes.js
CHANGED
|
@@ -209,6 +209,15 @@ const slotSizeMappings = {
|
|
|
209
209
|
adSizes.fluid,
|
|
210
210
|
],
|
|
211
211
|
},
|
|
212
|
+
'fronts-banner': {
|
|
213
|
+
desktop: [
|
|
214
|
+
adSizes.outOfPage,
|
|
215
|
+
adSizes.empty,
|
|
216
|
+
adSizes.billboard,
|
|
217
|
+
adSizes.fabric,
|
|
218
|
+
adSizes.fluid,
|
|
219
|
+
],
|
|
220
|
+
},
|
|
212
221
|
mostpop: {
|
|
213
222
|
mobile: [
|
|
214
223
|
adSizes.outOfPage,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SizeMapping } from './ad-sizes';
|
|
2
|
-
type SlotName = 'carrot' | 'comments-expanded' | 'comments' | 'epic' | 'exclusion' | 'high-merch-lucky' | 'high-merch-paid' | 'high-merch' | 'im' | 'inline' | 'mobile-sticky' | 'mostpop' | 'top-above-nav';
|
|
2
|
+
type SlotName = 'carrot' | 'comments-expanded' | 'comments' | 'epic' | 'exclusion' | 'fronts-banner' | 'high-merch-lucky' | 'high-merch-paid' | 'high-merch' | 'im' | 'inline' | 'mobile-sticky' | 'mostpop' | 'top-above-nav';
|
|
3
3
|
type CreateSlotOptions = {
|
|
4
4
|
classes?: string;
|
|
5
5
|
name?: string;
|
package/dist/esm/ad-sizes.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare class AdSize extends Array<number> {
|
|
|
28
28
|
get height(): number;
|
|
29
29
|
}
|
|
30
30
|
type SizeKeys = '160x600' | '300x1050' | '300x250' | '300x600' | '728x90' | '970x250' | 'billboard' | 'cascade' | 'empty' | 'fabric' | 'fluid' | 'googleCard' | 'halfPage' | 'inlineMerchandising' | 'leaderboard' | 'merchandising' | 'merchandisingHigh' | 'merchandisingHighAdFeature' | 'mobilesticky' | 'mpu' | 'outOfPage' | 'outstreamDesktop' | 'outstreamGoogleDesktop' | 'outstreamMobile' | 'portrait' | 'portraitInterstitial' | 'skyscraper';
|
|
31
|
-
type SlotName = 'carrot' | 'comments' | 'comments-expanded' | 'crossword-banner' | 'epic' | 'exclusion' | 'im' | 'inline' | 'merchandising-high-lucky' | 'merchandising-high' | 'merchandising' | 'mobile-sticky' | 'mostpop' | 'right' | 'survey' | 'top-above-nav';
|
|
31
|
+
type SlotName = 'carrot' | 'comments' | 'comments-expanded' | 'crossword-banner' | 'epic' | 'exclusion' | 'fronts-banner' | 'im' | 'inline' | 'merchandising-high-lucky' | 'merchandising-high' | 'merchandising' | 'mobile-sticky' | 'mostpop' | 'right' | 'survey' | 'top-above-nav';
|
|
32
32
|
type SizeMapping = Partial<Record<Breakpoint, AdSize[]>>;
|
|
33
33
|
type SlotSizeMappings = Record<SlotName, SizeMapping>;
|
|
34
34
|
declare const createAdSize: (width: number, height: number) => AdSize;
|
package/dist/esm/ad-sizes.js
CHANGED
|
@@ -202,6 +202,15 @@ const slotSizeMappings = {
|
|
|
202
202
|
adSizes.fluid,
|
|
203
203
|
],
|
|
204
204
|
},
|
|
205
|
+
'fronts-banner': {
|
|
206
|
+
desktop: [
|
|
207
|
+
adSizes.outOfPage,
|
|
208
|
+
adSizes.empty,
|
|
209
|
+
adSizes.billboard,
|
|
210
|
+
adSizes.fabric,
|
|
211
|
+
adSizes.fluid,
|
|
212
|
+
],
|
|
213
|
+
},
|
|
205
214
|
mostpop: {
|
|
206
215
|
mobile: [
|
|
207
216
|
adSizes.outOfPage,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SizeMapping } from './ad-sizes';
|
|
2
|
-
type SlotName = 'carrot' | 'comments-expanded' | 'comments' | 'epic' | 'exclusion' | 'high-merch-lucky' | 'high-merch-paid' | 'high-merch' | 'im' | 'inline' | 'mobile-sticky' | 'mostpop' | 'top-above-nav';
|
|
2
|
+
type SlotName = 'carrot' | 'comments-expanded' | 'comments' | 'epic' | 'exclusion' | 'fronts-banner' | 'high-merch-lucky' | 'high-merch-paid' | 'high-merch' | 'im' | 'inline' | 'mobile-sticky' | 'mostpop' | 'top-above-nav';
|
|
3
3
|
type CreateSlotOptions = {
|
|
4
4
|
classes?: string;
|
|
5
5
|
name?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/commercial-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "Guardian advertising business logic",
|
|
5
5
|
"homepage": "https://github.com/guardian/commercial-core#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@commitlint/cli": "^17.0.3",
|
|
39
39
|
"@commitlint/config-conventional": "^17.0.0",
|
|
40
40
|
"@guardian/ab-core": "4.0.0",
|
|
41
|
-
"@guardian/consent-management-platform": "^
|
|
41
|
+
"@guardian/consent-management-platform": "^13.0.2",
|
|
42
42
|
"@guardian/eslint-config-typescript": "^5.0.0",
|
|
43
43
|
"@guardian/libs": "14.0.0",
|
|
44
44
|
"@guardian/prettier": "^3.0.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@guardian/ab-core": "^4.0.0",
|
|
78
|
-
"@guardian/consent-management-platform": "^
|
|
78
|
+
"@guardian/consent-management-platform": "^13.0.2",
|
|
79
79
|
"@guardian/libs": "^14.0.0"
|
|
80
80
|
},
|
|
81
81
|
"resolutions": {
|