@schibsted/advertory 2.64.0 → 2.65.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 (75) hide show
  1. package/core/aftenposten/es/index.css +1 -1
  2. package/core/aftenposten/es/index.d.ts +27 -1
  3. package/core/aftenposten/index.d.ts +27 -1
  4. package/core/aftenpostenv2/es/index.css +1 -1
  5. package/core/aftenpostenv2/es/index.d.ts +27 -1
  6. package/core/aftonbladet/es/index.css +1 -1
  7. package/core/aftonbladet/es/index.d.ts +27 -1
  8. package/core/aftonbladet/index.d.ts +27 -1
  9. package/core/aftonbladetv2/es/index.css +1 -1
  10. package/core/aftonbladetv2/es/index.d.ts +27 -1
  11. package/core/bt/es/index.css +1 -1
  12. package/core/bt/es/index.d.ts +27 -1
  13. package/core/bt/index.d.ts +27 -1
  14. package/core/e24/es/index.css +1 -1
  15. package/core/e24/es/index.d.ts +27 -1
  16. package/core/e24/index.d.ts +27 -1
  17. package/core/fotbollskanalen/es/index.css +1 -1
  18. package/core/fotbollskanalen/es/index.d.ts +27 -1
  19. package/core/fotbollskanalen/index.d.ts +27 -1
  20. package/core/godare/index.d.ts +27 -1
  21. package/core/godt/index.d.ts +27 -1
  22. package/core/klart/index.d.ts +27 -1
  23. package/core/koket/es/index.d.ts +27 -1
  24. package/core/koket/index.d.ts +27 -1
  25. package/core/kompakt/index.d.ts +27 -1
  26. package/core/minmote/index.d.ts +27 -1
  27. package/core/pent/index.d.ts +27 -1
  28. package/core/sa/es/index.css +1 -1
  29. package/core/sa/es/index.d.ts +27 -1
  30. package/core/sa/index.d.ts +27 -1
  31. package/core/svd/es/index.css +1 -1
  32. package/core/svd/es/index.d.ts +27 -1
  33. package/core/svd/index.d.ts +27 -1
  34. package/core/svdv2/es/index.css +1 -1
  35. package/core/svdv2/es/index.d.ts +27 -1
  36. package/core/tek/index.d.ts +27 -1
  37. package/core/tv4/es/index.css +1 -1
  38. package/core/tv4/es/index.d.ts +27 -1
  39. package/core/tv4/index.d.ts +27 -1
  40. package/core/tvnu/index.d.ts +27 -1
  41. package/core/vg/es/index.css +1 -1
  42. package/core/vg/es/index.d.ts +27 -1
  43. package/core/vg/index.d.ts +27 -1
  44. package/core/vgv2/es/index.css +1 -1
  45. package/core/vgv2/es/index.d.ts +27 -1
  46. package/features/ad-native/index.d.ts +27 -1
  47. package/features/dr-edition/es/index.d.ts +27 -1
  48. package/features/dr-edition/index.d.ts +27 -1
  49. package/features/kilkaya/es/index.d.ts +27 -1
  50. package/features/kilkaya/index.d.ts +27 -1
  51. package/features/tracker/index.d.ts +27 -1
  52. package/package.json +1 -1
  53. package/sites/aftenposten/es/index.css +1 -1
  54. package/sites/aftenpostenv2/es/index.css +1 -1
  55. package/sites/aftonbladet/es/index.css +1 -1
  56. package/sites/aftonbladetv2/es/index.css +1 -1
  57. package/sites/bt/es/index.css +1 -1
  58. package/sites/e24/es/index.css +1 -1
  59. package/sites/fotbollskanalen/es/index.css +1 -1
  60. package/sites/koket/es/index.css +1 -1
  61. package/sites/sa/es/index.css +1 -1
  62. package/sites/svd/es/index.css +1 -1
  63. package/sites/svdv2/es/index.css +1 -1
  64. package/sites/tv4/es/index.css +1 -1
  65. package/sites/vg/es/index.css +1 -1
  66. package/sites/vgv2/es/index.css +1 -1
  67. package/types/core/interface/ast.d.ts +2 -1
  68. package/types/core/interface/config.d.ts +25 -0
  69. package/types/core/prepare-page-options/generic-prepare-page-options-no.d.ts +3 -0
  70. package/types/core/prepare-page-options/generic-prepare-page-options-se.d.ts +3 -0
  71. package/types/core/prepare-page-options/generic-prepare-page-options.d.ts +3 -0
  72. package/types/core/prepare-page-options/generic-prepare-page-options.test.d.ts +1 -0
  73. package/types/core/prepare-page-options/keyword-providers.d.ts +4 -0
  74. package/types/core/prepare-page-options/keywords-builder.d.ts +9 -0
  75. package/types/core/prepare-page-options/keywords-builder.test.d.ts +1 -0
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
2
2
 
3
3
  type AstAdType = 'banner' | 'video' | 'native' | 'outstream';
4
4
  type AstKeywordValue = Array<string> | string | number | Array<number> | undefined;
5
+ type Keywords = Record<string, AstKeywordValue>;
5
6
  type AstKeywords = Record<string, AstKeywordValue> & {
6
7
  'se-generic-adformat'?: Array<string>;
7
8
  'se-generic-targetid'?: Array<string>;
@@ -40,7 +41,7 @@ interface AstRenderingManagement {
40
41
  sandboxAttributes: Array<string>;
41
42
  }
42
43
  interface AstPageOptions {
43
- keywords: Record<string, AstKeywordValue>;
44
+ keywords: Keywords;
44
45
  enableSafeFrame?: boolean;
45
46
  disablePsa?: boolean;
46
47
  user?: AstUser;
@@ -175,6 +176,7 @@ interface SiteConfig {
175
176
  useAppTabletInvCode?: boolean;
176
177
  adScaleConfig?: AdScaleConfig;
177
178
  widescreenSwitching?: WidescreenSwitchingConfig;
179
+ pageSetup?: PageSetup;
178
180
  }
179
181
  interface NativeTrackingConfig {
180
182
  nativeTrackingEnabled?: boolean;
@@ -409,6 +411,30 @@ interface WidescreenSwitchingConfig {
409
411
  rotationInterval?: number;
410
412
  widescreenIdPrefix?: string;
411
413
  }
414
+ interface PageSetup {
415
+ pageOptions?: {
416
+ keywords?: {
417
+ appType?: boolean;
418
+ device?: boolean;
419
+ externalIdSrc?: boolean;
420
+ hasContext?: boolean;
421
+ screen?: boolean;
422
+ analyticsConsent?: boolean;
423
+ sectionPageType?: boolean;
424
+ sponsors?: boolean;
425
+ obituaries?: boolean;
426
+ sdkVersion?: boolean;
427
+ hasPlusMembership?: boolean;
428
+ };
429
+ options?: {
430
+ addPublisherToGeo?: boolean;
431
+ includeExternalUid?: boolean;
432
+ };
433
+ };
434
+ tag?: {
435
+ reloadKeywords?: boolean;
436
+ };
437
+ }
412
438
 
413
439
  interface KilkayaComponentProps {
414
440
  placementName: string;
@@ -1,5 +1,6 @@
1
1
  type AstAdType = 'banner' | 'video' | 'native' | 'outstream';
2
2
  type AstKeywordValue = Array<string> | string | number | Array<number> | undefined;
3
+ type Keywords = Record<string, AstKeywordValue>;
3
4
  type AstKeywords = Record<string, AstKeywordValue> & {
4
5
  'se-generic-adformat'?: Array<string>;
5
6
  'se-generic-targetid'?: Array<string>;
@@ -38,7 +39,7 @@ interface AstRenderingManagement {
38
39
  sandboxAttributes: Array<string>;
39
40
  }
40
41
  interface AstPageOptions {
41
- keywords: Record<string, AstKeywordValue>;
42
+ keywords: Keywords;
42
43
  enableSafeFrame?: boolean;
43
44
  disablePsa?: boolean;
44
45
  user?: AstUser;
@@ -199,6 +200,7 @@ interface SiteConfig {
199
200
  useAppTabletInvCode?: boolean;
200
201
  adScaleConfig?: AdScaleConfig;
201
202
  widescreenSwitching?: WidescreenSwitchingConfig;
203
+ pageSetup?: PageSetup;
202
204
  }
203
205
  interface NativeTrackingConfig {
204
206
  nativeTrackingEnabled?: boolean;
@@ -433,6 +435,30 @@ interface WidescreenSwitchingConfig {
433
435
  rotationInterval?: number;
434
436
  widescreenIdPrefix?: string;
435
437
  }
438
+ interface PageSetup {
439
+ pageOptions?: {
440
+ keywords?: {
441
+ appType?: boolean;
442
+ device?: boolean;
443
+ externalIdSrc?: boolean;
444
+ hasContext?: boolean;
445
+ screen?: boolean;
446
+ analyticsConsent?: boolean;
447
+ sectionPageType?: boolean;
448
+ sponsors?: boolean;
449
+ obituaries?: boolean;
450
+ sdkVersion?: boolean;
451
+ hasPlusMembership?: boolean;
452
+ };
453
+ options?: {
454
+ addPublisherToGeo?: boolean;
455
+ includeExternalUid?: boolean;
456
+ };
457
+ };
458
+ tag?: {
459
+ reloadKeywords?: boolean;
460
+ };
461
+ }
436
462
 
437
463
  declare const setXandrPPIDs: (siteConfig: SiteConfig) => Promise<void>;
438
464
  declare const getUserIdsObject: (country: Country) => UserIdsObject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schibsted/advertory",
3
- "version": "2.64.0",
3
+ "version": "2.65.0",
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",