@schibsted/advertory 2.59.0 → 2.60.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 (119) hide show
  1. package/core/aftenposten/es/index.css +1 -1
  2. package/core/aftenposten/es/index.d.ts +0 -6
  3. package/core/aftenposten/es/index.js +1 -1
  4. package/core/aftenposten/index.d.ts +0 -6
  5. package/core/aftenposten/index.js +1 -1
  6. package/core/aftonbladet/es/index.d.ts +0 -6
  7. package/core/aftonbladet/es/index.js +1 -1
  8. package/core/aftonbladet/index.d.ts +0 -6
  9. package/core/aftonbladet/index.js +1 -1
  10. package/core/aftonbladetv2/es/index.css +1 -1
  11. package/core/aftonbladetv2/es/index.d.ts +0 -6
  12. package/core/aftonbladetv2/es/index.js +1 -1
  13. package/core/bt/es/index.css +1 -1
  14. package/core/bt/es/index.d.ts +0 -6
  15. package/core/bt/es/index.js +1 -1
  16. package/core/bt/index.d.ts +0 -6
  17. package/core/bt/index.js +1 -1
  18. package/core/e24/es/index.css +1 -1
  19. package/core/e24/es/index.d.ts +0 -6
  20. package/core/e24/es/index.js +1 -1
  21. package/core/e24/index.d.ts +0 -6
  22. package/core/e24/index.js +1 -1
  23. package/core/e24v2/es/index.css +1 -1
  24. package/core/e24v2/es/index.d.ts +0 -6
  25. package/core/e24v2/es/index.js +1 -1
  26. package/core/fotbollskanalen/es/index.css +1 -1
  27. package/core/fotbollskanalen/es/index.d.ts +0 -6
  28. package/core/fotbollskanalen/es/index.js +1 -1
  29. package/core/fotbollskanalen/index.d.ts +0 -6
  30. package/core/fotbollskanalen/index.js +1 -1
  31. package/core/godare/index.d.ts +0 -6
  32. package/core/godare/index.js +1 -1
  33. package/core/godt/index.d.ts +0 -6
  34. package/core/godt/index.js +1 -1
  35. package/core/klart/index.d.ts +0 -6
  36. package/core/klart/index.js +1 -1
  37. package/core/koket/es/index.css +1 -1
  38. package/core/koket/es/index.d.ts +0 -6
  39. package/core/koket/es/index.js +1 -1
  40. package/core/koket/index.d.ts +0 -6
  41. package/core/koket/index.js +1 -1
  42. package/core/kompakt/index.d.ts +0 -6
  43. package/core/kompakt/index.js +1 -1
  44. package/core/minmote/index.d.ts +0 -6
  45. package/core/minmote/index.js +1 -1
  46. package/core/pent/index.d.ts +0 -6
  47. package/core/pent/index.js +1 -1
  48. package/core/sa/es/index.css +1 -1
  49. package/core/sa/es/index.d.ts +0 -6
  50. package/core/sa/es/index.js +1 -1
  51. package/core/sa/index.d.ts +0 -6
  52. package/core/sa/index.js +1 -1
  53. package/core/svd/es/index.css +1 -1
  54. package/core/svd/es/index.d.ts +0 -6
  55. package/core/svd/es/index.js +1 -1
  56. package/core/svd/index.d.ts +0 -6
  57. package/core/svd/index.js +1 -1
  58. package/core/svdv2/es/index.css +1 -1
  59. package/core/svdv2/es/index.d.ts +0 -6
  60. package/core/svdv2/es/index.js +1 -1
  61. package/core/tek/index.d.ts +0 -6
  62. package/core/tek/index.js +1 -1
  63. package/core/tv4/es/index.d.ts +0 -6
  64. package/core/tv4/es/index.js +1 -1
  65. package/core/tv4/index.d.ts +0 -6
  66. package/core/tv4/index.js +1 -1
  67. package/core/tvnu/index.d.ts +0 -6
  68. package/core/tvnu/index.js +1 -1
  69. package/core/vg/es/index.css +1 -1
  70. package/core/vg/es/index.d.ts +0 -6
  71. package/core/vg/es/index.js +1 -1
  72. package/core/vg/index.d.ts +0 -6
  73. package/core/vg/index.js +1 -1
  74. package/core/vgv2/es/index.css +1 -1
  75. package/core/vgv2/es/index.d.ts +0 -6
  76. package/core/vgv2/es/index.js +1 -1
  77. package/features/ad-native/index.d.ts +0 -6
  78. package/features/brandmetrics/index.js +1 -1
  79. package/features/dr-edition/es/index.d.ts +1 -6
  80. package/features/dr-edition/es/index.js +1 -1
  81. package/features/dr-edition/index.d.ts +1 -6
  82. package/features/dr-edition/index.js +1 -1
  83. package/features/glimr/index.js +1 -1
  84. package/features/tracker/index.d.ts +0 -6
  85. package/features/tracker/index.js +1 -1
  86. package/package.json +1 -1
  87. package/sites/aftenposten/es/index.css +1 -1
  88. package/sites/aftonbladet/es/index.css +1 -1
  89. package/sites/aftonbladetv2/es/index.css +1 -1
  90. package/sites/bt/es/index.css +1 -1
  91. package/sites/e24/es/index.css +1 -1
  92. package/sites/e24v2/es/index.css +1 -1
  93. package/sites/fotbollskanalen/es/index.css +1 -1
  94. package/sites/sa/es/index.css +1 -1
  95. package/sites/svd/es/index.css +1 -1
  96. package/sites/svdv2/es/index.css +1 -1
  97. package/sites/tv4/es/index.css +1 -1
  98. package/sites/vg/es/index.css +1 -1
  99. package/sites/vgv2/es/index.css +1 -1
  100. package/types/core/handlers/tcf/consent.d.ts +2 -1
  101. package/types/core/handlers/tcf/index.d.ts +2 -1
  102. package/types/core/interface/config.d.ts +0 -6
  103. package/types/features/dr-edition/composition.d.ts +1 -1
  104. package/types/features/dr-edition/dr-edition-service.d.ts +1 -1
  105. package/types/features/dr-edition/observer.d.ts +1 -1
  106. package/types/features/dr-edition/types.d.ts +1 -0
  107. package/types/tests/types.d.ts +1 -2
  108. package/types/features/interface/privacy-broker.d.ts +0 -16
  109. package/types/features/privacy-broker/constants.d.ts +0 -2
  110. package/types/features/privacy-broker/fetch-permissions.d.ts +0 -3
  111. package/types/features/privacy-broker/fetch-permissions.test.d.ts +0 -1
  112. package/types/features/privacy-broker/index.d.ts +0 -2
  113. package/types/features/privacy-broker/permissions.d.ts +0 -3
  114. package/types/features/privacy-broker/permissions.test.d.ts +0 -1
  115. package/types/features/privacy-broker/session-storage.d.ts +0 -7
  116. package/types/features/privacy-broker/session-storage.test.d.ts +0 -1
  117. /package/types/features/{privacy-broker → identity}/get-identity-object.d.ts +0 -0
  118. /package/types/features/{privacy-broker → identity}/identity-facade.d.ts +0 -0
  119. /package/types/features/{privacy-broker → identity}/identity-facade.test.d.ts +0 -0
@@ -1,3 +1,4 @@
1
1
  import { TCFConfig } from 'core/interface/config';
2
- declare const hasSchibstedAdChoicesConsent: (tcf?: TCFConfig, isMobileApp?: boolean, feature?: string) => Promise<boolean>;
2
+ import { Country } from 'core/interface/countries';
3
+ declare const hasSchibstedAdChoicesConsent: (tcf?: TCFConfig, isMobileApp?: boolean, country?: Country, feature?: string) => Promise<boolean>;
3
4
  export { hasSchibstedAdChoicesConsent };
@@ -1,4 +1,5 @@
1
1
  import { TCFConsentUtilities } from 'core/interface/tcf';
2
2
  import { TCFConfig } from 'core/interface/config';
3
- declare const useTCFConsent: (tcfConfig?: TCFConfig, isMobileApp?: boolean) => TCFConsentUtilities;
3
+ import { Country } from 'core/interface/countries';
4
+ declare const useTCFConsent: (tcfConfig?: TCFConfig, isMobileApp?: boolean, country?: Country) => TCFConsentUtilities;
4
5
  export { useTCFConsent };
@@ -37,7 +37,6 @@ export interface SiteConfig {
37
37
  norstat?: NorstatConfig;
38
38
  siteSpecificConfig?: SiteSpecificConfig;
39
39
  sponsorstripe?: SponsorstripeConfig;
40
- privacyBroker?: PrivacyBrokerConfig;
41
40
  drEdition?: DrEditionConfig;
42
41
  kilkaya?: KilkayaConfig;
43
42
  forwardExternalImpId?: boolean;
@@ -274,11 +273,6 @@ export interface RightColumnSplitConfig {
274
273
  adSelector: string;
275
274
  trackSelector?: string;
276
275
  }
277
- export interface PrivacyBrokerConfig {
278
- enabled: boolean;
279
- clientId: string;
280
- storageKeyPrefix: string;
281
- }
282
276
  export interface KilkayaConfig {
283
277
  enabled: boolean;
284
278
  url: string;
@@ -1,5 +1,5 @@
1
1
  import { DrEditionManager } from './dr-edition-manager';
2
- import { IdentityFacade } from '../privacy-broker/identity-facade';
2
+ import { IdentityFacade } from '../identity/identity-facade';
3
3
  import { PulseInstance } from '../interface/tracker';
4
4
  import { DrEditionObserverProperties } from './types';
5
5
  declare const getDrEditionManager: (drEditionPageProperties: DrEditionObserverProperties, identityFacade: IdentityFacade, pulse?: PulseInstance) => DrEditionManager;
@@ -1,5 +1,5 @@
1
1
  import { DrEdition, DrEditionParams } from './types';
2
- import { IdentityFacade } from '../privacy-broker/identity-facade';
2
+ import { IdentityFacade } from '../identity/identity-facade';
3
3
  import { TrackerInstance } from '../interface/tracker';
4
4
  export declare class DrEditionService {
5
5
  private readonly identityFacade;
@@ -1,5 +1,5 @@
1
1
  import { DrEditionObserverConfig } from './types';
2
- import { IdentityFacade } from '../privacy-broker/identity-facade';
2
+ import { IdentityFacade } from '../identity/identity-facade';
3
3
  import { PulseInstance } from '../interface/tracker';
4
4
  declare const observeDrEditionAds: (observerConfig: DrEditionObserverConfig, identityFacade: IdentityFacade, pulse?: PulseInstance) => void;
5
5
  export { observeDrEditionAds };
@@ -11,6 +11,7 @@ export interface DrEditionParams {
11
11
  device: DeviceType;
12
12
  tcf?: TCFConfig;
13
13
  isMobileApp?: boolean;
14
+ country?: Country;
14
15
  renderAsBackfill?: boolean;
15
16
  }
16
17
  export interface DrEditionObserverConfig {
@@ -3,7 +3,7 @@ import { Newsroom } from 'core/interface/newsrooms';
3
3
  import { PageType } from 'core/interface/page-types';
4
4
  import { DeviceType } from 'core/interface/device';
5
5
  import { Tracker } from 'features/interface/tracker';
6
- import { PrebidConfig, PrivacyBrokerConfig, RefreshConfig, TakeoverConfig, WallpaperConfig } from 'core/interface/config';
6
+ import { PrebidConfig, RefreshConfig, TakeoverConfig, WallpaperConfig } from 'core/interface/config';
7
7
  import { AstAdObj } from 'core/interface/ast';
8
8
  export interface MockConfigOptions {
9
9
  country: Country;
@@ -24,7 +24,6 @@ export interface MockConfigOptions {
24
24
  takeover?: TakeoverConfig | undefined;
25
25
  prebid?: PrebidConfig | undefined;
26
26
  wallpaper?: WallpaperConfig | undefined;
27
- privacyBroker?: PrivacyBrokerConfig | undefined;
28
27
  refreshConfig?: RefreshConfig | undefined;
29
28
  pageOptions?: {
30
29
  keywords?: Array<string>;
@@ -1,16 +0,0 @@
1
- import { IdentityFacade } from '../privacy-broker/identity-facade';
2
- export interface Permission {
3
- purpose: string;
4
- data: Array<string>;
5
- }
6
- export interface FetchPermissionsParams {
7
- endpoint: string;
8
- environment: string;
9
- identityFacade: IdentityFacade;
10
- }
11
- export interface FetchPermissionsWithTimeoutParams extends FetchPermissionsParams {
12
- timeout: number;
13
- }
14
- export interface PermissionsResponse {
15
- permissions: Array<Permission>;
16
- }
@@ -1,2 +0,0 @@
1
- declare const PermissionsApi: Record<string, string>;
2
- export { PermissionsApi };
@@ -1,3 +0,0 @@
1
- import { PermissionsResponse } from 'features/interface/privacy-broker';
2
- declare const initFetchPermissions: () => Promise<PermissionsResponse | null>;
3
- export { initFetchPermissions };
@@ -1,2 +0,0 @@
1
- export { initFetchPermissions } from './fetch-permissions';
2
- export { isGeolocationPermissionGiven } from './permissions';
@@ -1,3 +0,0 @@
1
- import { Permission } from 'features/interface/privacy-broker';
2
- declare const isGeolocationPermissionGiven: (permissions: null | Array<Permission>) => boolean;
3
- export { isGeolocationPermissionGiven };
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import { Permission, PermissionsResponse } from 'features/interface/privacy-broker';
2
- declare const getStorageKey: (key: string) => string;
3
- declare const setPermissions: (permissionsResponse: PermissionsResponse | null, userKey: string) => void;
4
- declare const clearPermissions: () => void;
5
- declare const arePermissionsCached: (key: string) => boolean;
6
- declare const readPermissions: () => Promise<Array<Permission> | null>;
7
- export { setPermissions, clearPermissions, arePermissionsCached, getStorageKey, readPermissions };