@schibsted/advertory 2.67.1 → 2.67.2

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 (64) hide show
  1. package/core/aftenposten/es/index.css +1 -1
  2. package/core/aftenposten/es/index.js +1 -1
  3. package/core/aftenposten/index.js +1 -1
  4. package/core/aftenpostenv2/es/index.css +1 -1
  5. package/core/aftenpostenv2/es/index.js +1 -1
  6. package/core/aftonbladet/es/index.css +1 -1
  7. package/core/aftonbladet/es/index.js +1 -1
  8. package/core/aftonbladet/index.js +1 -1
  9. package/core/aftonbladetv2/es/index.css +1 -1
  10. package/core/aftonbladetv2/es/index.js +1 -1
  11. package/core/bt/es/index.css +1 -1
  12. package/core/bt/es/index.js +1 -1
  13. package/core/bt/index.js +1 -1
  14. package/core/e24/es/index.css +1 -1
  15. package/core/e24/es/index.js +1 -1
  16. package/core/e24/index.js +1 -1
  17. package/core/fotbollskanalen/es/index.css +1 -1
  18. package/core/fotbollskanalen/es/index.js +1 -1
  19. package/core/fotbollskanalen/index.js +1 -1
  20. package/core/godare/index.js +1 -1
  21. package/core/godt/index.js +1 -1
  22. package/core/klart/index.js +1 -1
  23. package/core/koket/es/index.js +1 -1
  24. package/core/koket/index.js +1 -1
  25. package/core/kompakt/index.js +1 -1
  26. package/core/minmote/index.js +1 -1
  27. package/core/pent/index.js +1 -1
  28. package/core/sa/es/index.css +1 -1
  29. package/core/sa/es/index.js +1 -1
  30. package/core/sa/index.js +1 -1
  31. package/core/sav2/es/index.css +1 -1
  32. package/core/sav2/es/index.js +1 -1
  33. package/core/svd/es/index.css +1 -1
  34. package/core/svd/es/index.js +1 -1
  35. package/core/svd/index.js +1 -1
  36. package/core/svdv2/es/index.css +1 -1
  37. package/core/svdv2/es/index.js +1 -1
  38. package/core/tek/index.js +1 -1
  39. package/core/tv4/es/index.css +1 -1
  40. package/core/tv4/es/index.js +1 -1
  41. package/core/tv4/index.js +1 -1
  42. package/core/tvnu/index.js +1 -1
  43. package/core/vg/es/index.css +1 -1
  44. package/core/vg/es/index.js +1 -1
  45. package/core/vg/index.js +1 -1
  46. package/core/vgv2/es/index.css +1 -1
  47. package/core/vgv2/es/index.js +1 -1
  48. package/features/dr-edition/es/index.d.ts +2 -77
  49. package/features/dr-edition/index.d.ts +2 -77
  50. package/package.json +1 -1
  51. package/sites/aftenposten/es/index.css +1 -1
  52. package/sites/aftenpostenv2/es/index.css +1 -1
  53. package/sites/aftonbladet/es/index.css +1 -1
  54. package/sites/aftonbladetv2/es/index.css +1 -1
  55. package/sites/bt/es/index.css +1 -1
  56. package/sites/e24/es/index.css +1 -1
  57. package/sites/koket/es/index.css +1 -1
  58. package/sites/sa/es/index.css +1 -1
  59. package/sites/sav2/es/index.css +1 -1
  60. package/sites/svd/es/index.css +1 -1
  61. package/sites/svdv2/es/index.css +1 -1
  62. package/sites/vg/es/index.css +1 -1
  63. package/sites/vgv2/es/index.css +1 -1
  64. package/types/features/dr-edition/handlers.d.ts +3 -3
@@ -2,77 +2,8 @@ import { ReactNode } from 'react';
2
2
  import { Identity, HasSessionSuccessResponse } from '@schibsted/account-sdk-browser';
3
3
 
4
4
  type AstAdType = 'banner' | 'video' | 'native' | 'outstream';
5
- interface AstBanner {
6
- content: string;
7
- height: number;
8
- width: number;
9
- }
10
- interface AstNativeImage {
11
- height: number;
12
- width: number;
13
- url: string;
14
- prevent_crop: boolean;
15
- }
16
- interface AstNativeVideo {
17
- content: string;
18
- }
19
- interface AstNative {
20
- title: string;
21
- sponsoredBy: string;
22
- desc2?: string;
23
- clickUrl: string;
24
- clickTrackers: Array<string>;
25
- clickFallbackUrl?: string;
26
- displayUrl?: string;
27
- downloads?: Array<string>;
28
- cta?: string;
29
- address?: string;
30
- body: string;
31
- main_media?: {
32
- url: string;
33
- };
34
- image: AstNativeImage;
35
- icon: AstNativeIcon;
36
- impressionTrackers?: Array<string>;
37
- javascriptTrackers?: Array<string>;
38
- likes?: number;
39
- phone?: string;
40
- price?: string;
41
- privacyLink?: string;
42
- rating?: number;
43
- saleprice?: number;
44
- fullText?: string;
45
- type?: string;
46
- custom?: {
47
- type: string;
48
- };
49
- video?: AstNativeVideo;
50
- customTitle1?: string;
51
- customTitle2?: string;
52
- customTitle3?: string;
53
- customTitle4?: string;
54
- description?: string;
55
- customIcon2: AstNativeIcon;
56
- }
57
- interface AstAdObj {
58
- adType: AstAdType;
59
- height: number;
60
- source: string;
5
+ interface AstTagObj {
61
6
  targetId: string;
62
- width: number;
63
- native?: AstNative;
64
- desc2?: string;
65
- image?: object;
66
- tagId?: number;
67
- cpm?: object;
68
- buyerMemberId?: number;
69
- impressionTrackersFired?: boolean;
70
- auctionId?: string;
71
- creativeId?: number;
72
- banner?: AstBanner;
73
- subtype?: string;
74
- renderer_url?: string;
75
- bidderId?: number | undefined;
76
7
  }
77
8
  type AstKeywordValue = Array<string> | string | number | Array<number> | undefined;
78
9
  type Keywords = Record<string, AstKeywordValue>;
@@ -124,12 +55,6 @@ interface AstPageOptions {
124
55
  renderingManagement?: AstRenderingManagement;
125
56
  userSync?: AstUserSync;
126
57
  }
127
- interface AstNativeIcon {
128
- url: string;
129
- height?: number;
130
- width?: number;
131
- prevent_crop?: boolean;
132
- }
133
58
 
134
59
  declare const DeviceTypes: {
135
60
  readonly MOBILE: "mobile";
@@ -626,7 +551,7 @@ declare const getDrEditionManager: (drEditionPageProperties: DrEditionObserverPr
626
551
 
627
552
  declare const DrEdition: ({ editionName, fallbackTargetId, children, pulseData, htmlAttributes }: DrEditionComponentProps) => ReactNode;
628
553
 
629
- declare const handleDrEditionBackfill: (config: SiteConfig, adObj: AstAdObj) => Promise<void>;
554
+ declare const handleDrEditionBackfill: (config: SiteConfig, adObj: AstTagObj) => Promise<void>;
630
555
  declare const handleDrEdition: (siteConfig: SiteConfig) => Promise<void>;
631
556
  declare const handleDrEditionBackfillOnAdblock: (siteConfig: SiteConfig, placements: Array<Placement>) => void;
632
557
 
@@ -2,77 +2,8 @@ import { ReactNode } from 'react';
2
2
  import { Identity, HasSessionSuccessResponse } from '@schibsted/account-sdk-browser';
3
3
 
4
4
  type AstAdType = 'banner' | 'video' | 'native' | 'outstream';
5
- interface AstBanner {
6
- content: string;
7
- height: number;
8
- width: number;
9
- }
10
- interface AstNativeImage {
11
- height: number;
12
- width: number;
13
- url: string;
14
- prevent_crop: boolean;
15
- }
16
- interface AstNativeVideo {
17
- content: string;
18
- }
19
- interface AstNative {
20
- title: string;
21
- sponsoredBy: string;
22
- desc2?: string;
23
- clickUrl: string;
24
- clickTrackers: Array<string>;
25
- clickFallbackUrl?: string;
26
- displayUrl?: string;
27
- downloads?: Array<string>;
28
- cta?: string;
29
- address?: string;
30
- body: string;
31
- main_media?: {
32
- url: string;
33
- };
34
- image: AstNativeImage;
35
- icon: AstNativeIcon;
36
- impressionTrackers?: Array<string>;
37
- javascriptTrackers?: Array<string>;
38
- likes?: number;
39
- phone?: string;
40
- price?: string;
41
- privacyLink?: string;
42
- rating?: number;
43
- saleprice?: number;
44
- fullText?: string;
45
- type?: string;
46
- custom?: {
47
- type: string;
48
- };
49
- video?: AstNativeVideo;
50
- customTitle1?: string;
51
- customTitle2?: string;
52
- customTitle3?: string;
53
- customTitle4?: string;
54
- description?: string;
55
- customIcon2: AstNativeIcon;
56
- }
57
- interface AstAdObj {
58
- adType: AstAdType;
59
- height: number;
60
- source: string;
5
+ interface AstTagObj {
61
6
  targetId: string;
62
- width: number;
63
- native?: AstNative;
64
- desc2?: string;
65
- image?: object;
66
- tagId?: number;
67
- cpm?: object;
68
- buyerMemberId?: number;
69
- impressionTrackersFired?: boolean;
70
- auctionId?: string;
71
- creativeId?: number;
72
- banner?: AstBanner;
73
- subtype?: string;
74
- renderer_url?: string;
75
- bidderId?: number | undefined;
76
7
  }
77
8
  type AstKeywordValue = Array<string> | string | number | Array<number> | undefined;
78
9
  type Keywords = Record<string, AstKeywordValue>;
@@ -124,12 +55,6 @@ interface AstPageOptions {
124
55
  renderingManagement?: AstRenderingManagement;
125
56
  userSync?: AstUserSync;
126
57
  }
127
- interface AstNativeIcon {
128
- url: string;
129
- height?: number;
130
- width?: number;
131
- prevent_crop?: boolean;
132
- }
133
58
 
134
59
  declare const DeviceTypes: {
135
60
  readonly MOBILE: "mobile";
@@ -626,7 +551,7 @@ declare const getDrEditionManager: (drEditionPageProperties: DrEditionObserverPr
626
551
 
627
552
  declare const DrEdition: ({ editionName, fallbackTargetId, children, pulseData, htmlAttributes }: DrEditionComponentProps) => ReactNode;
628
553
 
629
- declare const handleDrEditionBackfill: (config: SiteConfig, adObj: AstAdObj) => Promise<void>;
554
+ declare const handleDrEditionBackfill: (config: SiteConfig, adObj: AstTagObj) => Promise<void>;
630
555
  declare const handleDrEdition: (siteConfig: SiteConfig) => Promise<void>;
631
556
  declare const handleDrEditionBackfillOnAdblock: (siteConfig: SiteConfig, placements: Array<Placement>) => void;
632
557
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schibsted/advertory",
3
- "version": "2.67.1",
3
+ "version": "2.67.2",
4
4
  "scripts": {
5
5
  "build": "node node_modules/rollup/dist/bin/rollup -c rollup-config/default.mjs && npm run post:build",
6
6
  "build:dev": "MODE=dev NODE_OPTIONS=--max-old-space-size=131072 npm run build",