@schibsted/advertory 2.63.21 → 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 (99) 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/es/index.js +1 -1
  4. package/core/aftenposten/index.d.ts +27 -1
  5. package/core/aftenposten/index.js +1 -1
  6. package/core/aftenpostenv2/es/index.css +1 -1
  7. package/core/aftenpostenv2/es/index.d.ts +27 -1
  8. package/core/aftenpostenv2/es/index.js +1 -1
  9. package/core/aftonbladet/es/index.css +1 -1
  10. package/core/aftonbladet/es/index.d.ts +27 -1
  11. package/core/aftonbladet/index.d.ts +27 -1
  12. package/core/aftonbladetv2/es/index.css +1 -1
  13. package/core/aftonbladetv2/es/index.d.ts +27 -1
  14. package/core/bt/es/index.css +1 -1
  15. package/core/bt/es/index.d.ts +27 -1
  16. package/core/bt/es/index.js +1 -1
  17. package/core/bt/index.d.ts +27 -1
  18. package/core/bt/index.js +1 -1
  19. package/core/e24/es/index.css +1 -1
  20. package/core/e24/es/index.d.ts +27 -1
  21. package/core/e24/es/index.js +1 -1
  22. package/core/e24/index.d.ts +27 -1
  23. package/core/e24/index.js +1 -1
  24. package/core/fotbollskanalen/es/index.css +1 -1
  25. package/core/fotbollskanalen/es/index.d.ts +27 -1
  26. package/core/fotbollskanalen/index.d.ts +27 -1
  27. package/core/godare/index.d.ts +27 -1
  28. package/core/godare/index.js +1 -1
  29. package/core/godt/index.d.ts +27 -1
  30. package/core/godt/index.js +1 -1
  31. package/core/klart/index.d.ts +27 -1
  32. package/core/koket/es/index.css +1 -1
  33. package/core/koket/es/index.d.ts +27 -1
  34. package/core/koket/index.d.ts +27 -1
  35. package/core/kompakt/index.d.ts +27 -1
  36. package/core/minmote/index.d.ts +27 -1
  37. package/core/minmote/index.js +1 -1
  38. package/core/pent/index.d.ts +27 -1
  39. package/core/pent/index.js +1 -1
  40. package/core/sa/es/index.css +1 -1
  41. package/core/sa/es/index.d.ts +27 -1
  42. package/core/sa/es/index.js +1 -1
  43. package/core/sa/index.d.ts +27 -1
  44. package/core/sa/index.js +1 -1
  45. package/core/svd/es/index.css +1 -1
  46. package/core/svd/es/index.d.ts +27 -1
  47. package/core/svd/index.d.ts +27 -1
  48. package/core/svd/index.js +1 -1
  49. package/core/svdv2/es/index.css +1 -1
  50. package/core/svdv2/es/index.d.ts +27 -1
  51. package/core/tek/index.d.ts +27 -1
  52. package/core/tek/index.js +1 -1
  53. package/core/tv4/es/index.css +1 -1
  54. package/core/tv4/es/index.d.ts +27 -1
  55. package/core/tv4/index.d.ts +27 -1
  56. package/core/tvnu/index.d.ts +27 -1
  57. package/core/vg/es/index.css +1 -1
  58. package/core/vg/es/index.d.ts +27 -1
  59. package/core/vg/es/index.js +1 -1
  60. package/core/vg/index.d.ts +27 -1
  61. package/core/vg/index.js +1 -1
  62. package/core/vgv2/es/index.css +1 -1
  63. package/core/vgv2/es/index.d.ts +27 -1
  64. package/core/vgv2/es/index.js +1 -1
  65. package/features/ad-native/index.d.ts +27 -1
  66. package/features/ad-native/index.js +1 -1
  67. package/features/dr-edition/es/index.d.ts +27 -1
  68. package/features/dr-edition/index.d.ts +27 -1
  69. package/features/kilkaya/es/index.d.ts +27 -1
  70. package/features/kilkaya/index.d.ts +27 -1
  71. package/features/tracker/index.d.ts +27 -1
  72. package/package.json +1 -1
  73. package/sites/aftenposten/es/index.css +1 -1
  74. package/sites/aftenposten/index.js +1 -1
  75. package/sites/aftenpostenv2/es/index.css +1 -1
  76. package/sites/bt/es/index.css +1 -1
  77. package/sites/bt/index.js +1 -1
  78. package/sites/e24/es/index.css +1 -1
  79. package/sites/koket/es/index.css +1 -1
  80. package/sites/sa/es/index.css +1 -1
  81. package/sites/sa/index.js +1 -1
  82. package/sites/svd/es/index.css +1 -1
  83. package/sites/svd/index.js +1 -1
  84. package/sites/svdv2/es/index.css +1 -1
  85. package/sites/tvnu/index.js +1 -1
  86. package/sites/vg/es/index.css +1 -1
  87. package/sites/vg/index.js +1 -1
  88. package/sites/vgv2/es/index.css +1 -1
  89. package/types/core/interface/ast.d.ts +2 -1
  90. package/types/core/interface/config.d.ts +25 -0
  91. package/types/core/prepare-page-options/generic-prepare-page-options-no.d.ts +3 -0
  92. package/types/core/prepare-page-options/generic-prepare-page-options-se.d.ts +3 -0
  93. package/types/core/prepare-page-options/generic-prepare-page-options.d.ts +3 -0
  94. package/types/core/prepare-page-options/generic-prepare-page-options.test.d.ts +1 -0
  95. package/types/core/prepare-page-options/keyword-providers.d.ts +4 -0
  96. package/types/core/prepare-page-options/keywords-builder.d.ts +9 -0
  97. package/types/core/prepare-page-options/keywords-builder.test.d.ts +1 -0
  98. package/types/features/ad-native/sites/shared/templates/no/native-seamless/index.d.ts +4 -0
  99. package/types/features/ad-native/sites/shared/templates/no/seamless-image/index.d.ts +0 -4
@@ -126,6 +126,7 @@ export interface AstNativeItem {
126
126
  required: boolean;
127
127
  }
128
128
  export type AstKeywordValue = Array<string> | string | number | Array<number> | undefined;
129
+ export type Keywords = Record<string, AstKeywordValue>;
129
130
  export type AstKeywords = Record<string, AstKeywordValue> & {
130
131
  'se-generic-adformat'?: Array<string>;
131
132
  'se-generic-targetid'?: Array<string>;
@@ -223,7 +224,7 @@ export interface AstRenderingManagement {
223
224
  sandboxAttributes: Array<string>;
224
225
  }
225
226
  export interface AstPageOptions {
226
- keywords: Record<string, AstKeywordValue>;
227
+ keywords: Keywords;
227
228
  enableSafeFrame?: boolean;
228
229
  disablePsa?: boolean;
229
230
  user?: AstUser;
@@ -50,6 +50,7 @@ export interface SiteConfig {
50
50
  useAppTabletInvCode?: boolean;
51
51
  adScaleConfig?: AdScaleConfig;
52
52
  widescreenSwitching?: WidescreenSwitchingConfig;
53
+ pageSetup?: PageSetup;
53
54
  }
54
55
  export interface NativeTrackingConfig {
55
56
  nativeTrackingEnabled?: boolean;
@@ -306,4 +307,28 @@ export interface WidescreenSwitchingConfig {
306
307
  rotationInterval?: number;
307
308
  widescreenIdPrefix?: string;
308
309
  }
310
+ export interface PageSetup {
311
+ pageOptions?: {
312
+ keywords?: {
313
+ appType?: boolean;
314
+ device?: boolean;
315
+ externalIdSrc?: boolean;
316
+ hasContext?: boolean;
317
+ screen?: boolean;
318
+ analyticsConsent?: boolean;
319
+ sectionPageType?: boolean;
320
+ sponsors?: boolean;
321
+ obituaries?: boolean;
322
+ sdkVersion?: boolean;
323
+ hasPlusMembership?: boolean;
324
+ };
325
+ options?: {
326
+ addPublisherToGeo?: boolean;
327
+ includeExternalUid?: boolean;
328
+ };
329
+ };
330
+ tag?: {
331
+ reloadKeywords?: boolean;
332
+ };
333
+ }
309
334
  export {};
@@ -0,0 +1,3 @@
1
+ import { AstPageOptions } from 'core/interface/ast';
2
+ declare const _default: (pageOptions: AstPageOptions) => Promise<AstPageOptions>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { AstPageOptions } from 'core/interface/ast';
2
+ declare const _default: (pageOptions: AstPageOptions) => Promise<AstPageOptions>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { AstPageOptions } from 'core/interface/ast';
2
+ declare const genericPreparePageOptions: (pageOptions: AstPageOptions) => Promise<AstPageOptions>;
3
+ export { genericPreparePageOptions };
@@ -0,0 +1,4 @@
1
+ import { PlusExistKeyword, SDKVersionKeywords } from 'core/interface/keywords';
2
+ declare const getHasPlusMembership: () => PlusExistKeyword;
3
+ declare const getSDKVersion: () => Promise<SDKVersionKeywords>;
4
+ export { getHasPlusMembership, getSDKVersion };
@@ -0,0 +1,9 @@
1
+ import { Keywords } from 'core/interface/ast';
2
+ export declare class KeywordsBuilder {
3
+ private readonly keywords;
4
+ add(source: object): this;
5
+ addAsync(source: Promise<object>): Promise<this>;
6
+ addIf(condition: boolean | undefined, source: object): this;
7
+ addIfAsync(condition: boolean | undefined, source: () => Promise<object>): Promise<this>;
8
+ build(): Keywords;
9
+ }
@@ -0,0 +1,4 @@
1
+ import { AdNativeData } from 'features/interface/ad-native';
2
+ import './styles.scss';
3
+ declare const nativeSeamless: ({ containerId, url, adText, img, cta, description, logo, sponsoredBy, title, customTitle2 }: AdNativeData) => string;
4
+ export { nativeSeamless };
@@ -1,4 +0,0 @@
1
- import './styles.scss';
2
- import { AdNativeData } from 'features/interface/ad-native';
3
- declare const seamlessImage: ({ containerId, url, adText, img, cta, description, logo, sponsoredBy, title }: AdNativeData) => string;
4
- export { seamlessImage };