@schibsted/advertory 2.44.0-test-art-4
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/core/aftonbladet/es/index.css +1 -0
- package/core/aftonbladet/es/index.d.ts +701 -0
- package/core/aftonbladet/es/index.js +1 -0
- package/core/aftonbladet/es/package.json +9 -0
- package/core/aftonbladet/index.d.ts +701 -0
- package/core/aftonbladet/index.js +1 -0
- package/core/aftonbladet/package.json +9 -0
- package/core/e24/es/index.css +1 -0
- package/core/e24/es/index.d.ts +699 -0
- package/core/e24/es/index.js +1 -0
- package/core/e24/es/package.json +9 -0
- package/core/e24/index.d.ts +699 -0
- package/core/e24/index.js +1 -0
- package/core/e24/package.json +9 -0
- package/features/ad-native/index.d.ts +492 -0
- package/features/ad-native/index.js +1 -0
- package/features/ad-native/package.json +9 -0
- package/features/brandmetrics/index.js +1 -0
- package/features/brandmetrics/package.json +9 -0
- package/features/common/es/index.js +1 -0
- package/features/common/es/package.json +9 -0
- package/features/common/index.js +1 -0
- package/features/common/package.json +9 -0
- package/features/dr-edition/es/index.d.ts +583 -0
- package/features/dr-edition/es/index.js +1 -0
- package/features/dr-edition/es/package.json +9 -0
- package/features/dr-edition/index.d.ts +583 -0
- package/features/dr-edition/index.js +1 -0
- package/features/dr-edition/package.json +9 -0
- package/features/glimr/glimr-BIcFSFRk.js +1 -0
- package/features/glimr/glimr-sdk-mS8sOhxy.js +1 -0
- package/features/glimr/index.js +1 -0
- package/features/glimr/package.json +9 -0
- package/features/tracker/index.d.ts +74 -0
- package/features/tracker/index.js +1 -0
- package/features/tracker/package.json +9 -0
- package/features/video/index.js +1 -0
- package/features/video/package.json +9 -0
- package/package.json +77 -0
- package/sites/aftonbladet/es/index.css +1 -0
- package/sites/aftonbladet/es/index.d.ts +29 -0
- package/sites/aftonbladet/es/index.js +1 -0
- package/sites/aftonbladet/es/package.json +9 -0
- package/sites/aftonbladet/index.d.ts +29 -0
- package/sites/aftonbladet/index.js +1 -0
- package/sites/aftonbladet/package.json +9 -0
- package/sites/e24/es/index.css +1 -0
- package/sites/e24/es/index.d.ts +29 -0
- package/sites/e24/es/index.js +1 -0
- package/sites/e24/es/package.json +9 -0
- package/sites/e24/index.d.ts +29 -0
- package/sites/e24/index.js +1 -0
- package/sites/e24/package.json +9 -0
- package/styles/aftonbladet/index.js +3 -0
- package/styles/aftonbladet/styles.css +1 -0
- package/styles/e24/index.js +3 -0
- package/styles/e24/styles.css +1 -0
- package/types/config/aftenposten.d.ts +3 -0
- package/types/config/aftonbladet.d.ts +4 -0
- package/types/config/aftonbladetv2.d.ts +4 -0
- package/types/config/bt.d.ts +3 -0
- package/types/config/e24.d.ts +3 -0
- package/types/config/e24v2.d.ts +3 -0
- package/types/config/godare.d.ts +3 -0
- package/types/config/godt.d.ts +4 -0
- package/types/config/klart.d.ts +4 -0
- package/types/config/kompakt.d.ts +3 -0
- package/types/config/minmote.d.ts +4 -0
- package/types/config/pent.d.ts +3 -0
- package/types/config/sa.d.ts +3 -0
- package/types/config/svd.d.ts +4 -0
- package/types/config/tek.d.ts +4 -0
- package/types/config/vg.d.ts +3 -0
- package/types/config/vgv2.d.ts +3 -0
- package/types/core/config.d.ts +15 -0
- package/types/core/config.test.d.ts +1 -0
- package/types/core/creative-observer/refresh.d.ts +6 -0
- package/types/core/creative-observer/refresh.test.d.ts +1 -0
- package/types/core/creative-observer/show-tag.d.ts +4 -0
- package/types/core/creative-observer/utils.d.ts +4 -0
- package/types/core/events/events.d.ts +3 -0
- package/types/core/events/fallback.d.ts +3 -0
- package/types/core/events/post-message.d.ts +2 -0
- package/types/core/events/refresh.d.ts +6 -0
- package/types/core/events/resize-ad.d.ts +2 -0
- package/types/core/events/set-ad-sizes.d.ts +4 -0
- package/types/core/events/visibility.d.ts +3 -0
- package/types/core/handlers/ad-format-keyword/index.d.ts +3 -0
- package/types/core/handlers/ad-format-keyword/index.test.d.ts +1 -0
- package/types/core/handlers/ad-format-type/index.d.ts +33 -0
- package/types/core/handlers/ad-format-type/index.test.d.ts +1 -0
- package/types/core/handlers/ad-invcode/index.d.ts +2 -0
- package/types/core/handlers/ad-invcode/index.test.d.ts +4 -0
- package/types/core/handlers/ad-position-placement/index.d.ts +3 -0
- package/types/core/handlers/ad-position-placement/index.test.d.ts +1 -0
- package/types/core/handlers/ad-rendering-management/index.d.ts +3 -0
- package/types/core/handlers/ad-server/default-data.d.ts +4 -0
- package/types/core/handlers/ad-server/index.d.ts +18 -0
- package/types/core/handlers/ad-server/index.test.d.ts +1 -0
- package/types/core/handlers/ad-server/placement-ordering.d.ts +4 -0
- package/types/core/handlers/ad-server/placement-ordering.test.d.ts +1 -0
- package/types/core/handlers/ad-server/placement.d.ts +10 -0
- package/types/core/handlers/ad-server/placement.test.d.ts +4 -0
- package/types/core/handlers/ad-supply-type/index.d.ts +2 -0
- package/types/core/handlers/ad-supply-type/index.test.d.ts +1 -0
- package/types/core/handlers/ad-targetid/index.d.ts +3 -0
- package/types/core/handlers/ad-targetid/index.test.d.ts +1 -0
- package/types/core/handlers/classname/index.d.ts +4 -0
- package/types/core/handlers/classname/index.test.d.ts +1 -0
- package/types/core/handlers/count-keyword/index.d.ts +3 -0
- package/types/core/handlers/count-keyword/index.test.d.ts +1 -0
- package/types/core/handlers/country-prefix/index.d.ts +4 -0
- package/types/core/handlers/country-prefix/index.test.d.ts +4 -0
- package/types/core/handlers/custom-keywords/index.d.ts +2 -0
- package/types/core/handlers/custom-keywords/index.test.d.ts +1 -0
- package/types/core/handlers/dynamic-outstream/index.d.ts +6 -0
- package/types/core/handlers/dynamic-outstream/index.test.d.ts +4 -0
- package/types/core/handlers/firefox-styles/index.d.ts +3 -0
- package/types/core/handlers/firefox-styles/index.test.d.ts +1 -0
- package/types/core/handlers/hash/index.d.ts +2 -0
- package/types/core/handlers/hash/index.test.d.ts +1 -0
- package/types/core/handlers/margins/index.d.ts +4 -0
- package/types/core/handlers/margins/index.test.d.ts +1 -0
- package/types/core/handlers/mediation/index.d.ts +3 -0
- package/types/core/handlers/mediation/index.test.d.ts +1 -0
- package/types/core/handlers/member/index.d.ts +3 -0
- package/types/core/handlers/member/index.test.d.ts +1 -0
- package/types/core/handlers/obituaries/index.d.ts +7 -0
- package/types/core/handlers/obituaries/index.test.d.ts +1 -0
- package/types/core/handlers/param/index.d.ts +7 -0
- package/types/core/handlers/param/index.test.d.ts +1 -0
- package/types/core/handlers/scale/index.d.ts +6 -0
- package/types/core/handlers/scale/index.test.d.ts +1 -0
- package/types/core/handlers/tcf/index.d.ts +4 -0
- package/types/core/handlers/tcf/index.test.d.ts +1 -0
- package/types/core/handlers/underline-keyword/index.d.ts +2 -0
- package/types/core/handlers/underline-keyword/index.test.d.ts +1 -0
- package/types/core/handlers/update-advertory/index.d.ts +6 -0
- package/types/core/handlers/update-advertory/index.test.d.ts +1 -0
- package/types/core/handlers/user/index.d.ts +4 -0
- package/types/core/handlers/user/index.test.d.ts +1 -0
- package/types/core/interface/ad-component.d.ts +15 -0
- package/types/core/interface/ad-types.d.ts +5 -0
- package/types/core/interface/alertory.d.ts +8 -0
- package/types/core/interface/ast.d.ts +277 -0
- package/types/core/interface/cmp.d.ts +2 -0
- package/types/core/interface/common.d.ts +8 -0
- package/types/core/interface/config.d.ts +292 -0
- package/types/core/interface/countries.d.ts +6 -0
- package/types/core/interface/device.d.ts +13 -0
- package/types/core/interface/dictionary.d.ts +10 -0
- package/types/core/interface/fallback.d.ts +5 -0
- package/types/core/interface/formats.d.ts +59 -0
- package/types/core/interface/http-client.d.ts +4 -0
- package/types/core/interface/keywords.d.ts +87 -0
- package/types/core/interface/library.d.ts +5 -0
- package/types/core/interface/local-storage-client.d.ts +6 -0
- package/types/core/interface/margins.d.ts +11 -0
- package/types/core/interface/module.d.ts +13 -0
- package/types/core/interface/newsrooms.d.ts +17 -0
- package/types/core/interface/observer.d.ts +7 -0
- package/types/core/interface/os.d.ts +1 -0
- package/types/core/interface/page-types.d.ts +8 -0
- package/types/core/interface/placement-groups.d.ts +5 -0
- package/types/core/interface/post-message.d.ts +9 -0
- package/types/core/interface/publishers.d.ts +15 -0
- package/types/core/interface/refresh.d.ts +4 -0
- package/types/core/interface/session-storage-client.d.ts +5 -0
- package/types/core/interface/storage.d.ts +18 -0
- package/types/core/interface/styles.d.ts +1 -0
- package/types/core/interface/tcf.d.ts +11 -0
- package/types/core/interface/update-advertory.d.ts +6 -0
- package/types/core/languages/dictionary.d.ts +3 -0
- package/types/core/logger/index.d.ts +2 -0
- package/types/core/prepare-page-options/prepare-page-options-no.d.ts +9 -0
- package/types/core/prepare-page-options/prepare-page-options-se.d.ts +9 -0
- package/types/core/prepare-page-options/prepare-page-options.d.ts +27 -0
- package/types/core/prepare-page-options/prepare-page-options.test.d.ts +1 -0
- package/types/core/prepare-tag/formatter.d.ts +2 -0
- package/types/core/prepare-tag/formatter.test.d.ts +1 -0
- package/types/core/prepare-tag/prepare-tag.d.ts +3 -0
- package/types/core/prepare-tag/prepare-tag.test.d.ts +1 -0
- package/types/core/prepare-tag/ssa.d.ts +3 -0
- package/types/core/prepare-tag/tag-config.d.ts +5 -0
- package/types/core/prepare-tag/tag-config.test.d.ts +1 -0
- package/types/core/storage.d.ts +10 -0
- package/types/core/utils/init.d.ts +4 -0
- package/types/features/ad-full-width/index.d.ts +4 -0
- package/types/features/ad-fullscreen-scroll/constants.d.ts +7 -0
- package/types/features/ad-fullscreen-scroll/format-types.d.ts +8 -0
- package/types/features/ad-fullscreen-scroll/formats-handler.d.ts +13 -0
- package/types/features/ad-fullscreen-scroll/formats-handler.test.d.ts +4 -0
- package/types/features/ad-fullscreen-scroll/index.d.ts +6 -0
- package/types/features/ad-fullscreen-scroll/observer.d.ts +9 -0
- package/types/features/ad-fullscreen-scroll/observer.test.d.ts +1 -0
- package/types/features/ad-fullscreen-scroll/scale-ad.d.ts +1 -0
- package/types/features/ad-native/ad-native-builder.d.ts +4 -0
- package/types/features/ad-native/ad-native-renderer.d.ts +3 -0
- package/types/features/ad-native/ad-native-styling.d.ts +5 -0
- package/types/features/ad-native/ad-native.d.ts +4 -0
- package/types/features/ad-native/index.d.ts +5 -0
- package/types/features/ad-native/sites/aftenposten/aftenposten-init.d.ts +4 -0
- package/types/features/ad-native/sites/aftenposten/index.d.ts +6 -0
- package/types/features/ad-native/sites/aftenposten/templates/content/index.d.ts +4 -0
- package/types/features/ad-native/sites/aftenposten/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/aftenposten/templates/recirc/index.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladet/aftonbladet-init.d.ts +5 -0
- package/types/features/ad-native/sites/aftonbladet/index.d.ts +6 -0
- package/types/features/ad-native/sites/aftonbladet/templates/chat-integration/index.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladet/templates/classic/alcohol-warning-label.d.ts +2 -0
- package/types/features/ad-native/sites/aftonbladet/templates/classic/index.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladet/templates/classic-video/classic-video.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladet/templates/classic-video/index.d.ts +3 -0
- package/types/features/ad-native/sites/aftonbladet/templates/content-display/content-display-basic.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladet/templates/content-display/content-display-gambling-articles.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladet/templates/content-display/index.d.ts +3 -0
- package/types/features/ad-native/sites/aftonbladet/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/aftonbladetv2/aftonbladet-init.d.ts +5 -0
- package/types/features/ad-native/sites/aftonbladetv2/index.d.ts +6 -0
- package/types/features/ad-native/sites/aftonbladetv2/templates/chat-integration/index.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladetv2/templates/classic/alcohol-warning-label.d.ts +2 -0
- package/types/features/ad-native/sites/aftonbladetv2/templates/classic/index.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladetv2/templates/classic-video/classic-video.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladetv2/templates/classic-video/index.d.ts +3 -0
- package/types/features/ad-native/sites/aftonbladetv2/templates/content-display/content-display-basic.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladetv2/templates/content-display/content-display-gambling-articles.d.ts +4 -0
- package/types/features/ad-native/sites/aftonbladetv2/templates/content-display/index.d.ts +3 -0
- package/types/features/ad-native/sites/aftonbladetv2/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/bt/bt-init.d.ts +5 -0
- package/types/features/ad-native/sites/bt/index.d.ts +6 -0
- package/types/features/ad-native/sites/bt/templates/content/index.d.ts +4 -0
- package/types/features/ad-native/sites/bt/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/default/default-init.d.ts +4 -0
- package/types/features/ad-native/sites/default/index.d.ts +6 -0
- package/types/features/ad-native/sites/default/templates/display/index.d.ts +4 -0
- package/types/features/ad-native/sites/default/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/default/templates/video/index.d.ts +3 -0
- package/types/features/ad-native/sites/default/templates/video/template.d.ts +4 -0
- package/types/features/ad-native/sites/e24/e24-init.d.ts +5 -0
- package/types/features/ad-native/sites/e24/index.d.ts +10 -0
- package/types/features/ad-native/sites/e24/templates/articles/content/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24/templates/articles/content-display-basic/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24/templates/articles/index.d.ts +3 -0
- package/types/features/ad-native/sites/e24/templates/articles/recirc/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24/templates/front/content/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24/templates/front/content-display-basic/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24/templates/front/index.d.ts +3 -0
- package/types/features/ad-native/sites/e24v2/e24-init.d.ts +5 -0
- package/types/features/ad-native/sites/e24v2/index.d.ts +10 -0
- package/types/features/ad-native/sites/e24v2/templates/articles/content/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24v2/templates/articles/content-display-basic/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24v2/templates/articles/index.d.ts +3 -0
- package/types/features/ad-native/sites/e24v2/templates/articles/recirc/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24v2/templates/front/aksjelive/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24v2/templates/front/content/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24v2/templates/front/content-display-basic/index.d.ts +4 -0
- package/types/features/ad-native/sites/e24v2/templates/front/index.d.ts +3 -0
- package/types/features/ad-native/sites/godare/godare-init.d.ts +5 -0
- package/types/features/ad-native/sites/godare/index.d.ts +6 -0
- package/types/features/ad-native/sites/godare/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/godare/templates/single-integration/index.d.ts +4 -0
- package/types/features/ad-native/sites/godare/templates/utils.d.ts +1 -0
- package/types/features/ad-native/sites/godt/godt-init.d.ts +4 -0
- package/types/features/ad-native/sites/godt/index.d.ts +6 -0
- package/types/features/ad-native/sites/godt/templates/content/content-video.d.ts +2 -0
- package/types/features/ad-native/sites/godt/templates/content/content.d.ts +2 -0
- package/types/features/ad-native/sites/godt/templates/content/helpers.d.ts +10 -0
- package/types/features/ad-native/sites/godt/templates/content/index.d.ts +2 -0
- package/types/features/ad-native/sites/godt/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/godt/templates/native/helpers.d.ts +8 -0
- package/types/features/ad-native/sites/godt/templates/native/index.d.ts +1 -0
- package/types/features/ad-native/sites/godt/templates/native/native-video.d.ts +2 -0
- package/types/features/ad-native/sites/godt/templates/weekly-menu/index.d.ts +3 -0
- package/types/features/ad-native/sites/godt/templates/weekly-menu/stripe.d.ts +2 -0
- package/types/features/ad-native/sites/godt/templates/weekly-menu/weekly-menu-video.d.ts +2 -0
- package/types/features/ad-native/sites/godt/templates/weekly-menu/weekly-menu.d.ts +2 -0
- package/types/features/ad-native/sites/klart/index.d.ts +6 -0
- package/types/features/ad-native/sites/klart/klart-init.d.ts +5 -0
- package/types/features/ad-native/sites/klart/templates/classic/alcohol-warning-label.d.ts +2 -0
- package/types/features/ad-native/sites/klart/templates/classic/index.d.ts +4 -0
- package/types/features/ad-native/sites/klart/templates/content-display/index.d.ts +4 -0
- package/types/features/ad-native/sites/klart/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/minmote/index.d.ts +6 -0
- package/types/features/ad-native/sites/minmote/minmote-init.d.ts +4 -0
- package/types/features/ad-native/sites/minmote/templates/content/content.d.ts +2 -0
- package/types/features/ad-native/sites/minmote/templates/content/contentVideo.d.ts +2 -0
- package/types/features/ad-native/sites/minmote/templates/content/helpers.d.ts +9 -0
- package/types/features/ad-native/sites/minmote/templates/content/index.d.ts +2 -0
- package/types/features/ad-native/sites/minmote/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/minmote/templates/native/helpers.d.ts +8 -0
- package/types/features/ad-native/sites/minmote/templates/native/index.d.ts +1 -0
- package/types/features/ad-native/sites/minmote/templates/native/nativeVideo.d.ts +2 -0
- package/types/features/ad-native/sites/pent/index.d.ts +6 -0
- package/types/features/ad-native/sites/pent/pent-init.d.ts +4 -0
- package/types/features/ad-native/sites/polaris/index.d.ts +6 -0
- package/types/features/ad-native/sites/polaris/polaris-init.d.ts +4 -0
- package/types/features/ad-native/sites/polaris/templates/content/index.d.ts +4 -0
- package/types/features/ad-native/sites/polaris/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/polaris/templates/profilertstilling/index.d.ts +4 -0
- package/types/features/ad-native/sites/polaris/templates/stilling/index.d.ts +4 -0
- package/types/features/ad-native/sites/sa/index.d.ts +6 -0
- package/types/features/ad-native/sites/sa/sa-init.d.ts +4 -0
- package/types/features/ad-native/sites/sa/templates/content/index.d.ts +4 -0
- package/types/features/ad-native/sites/sa/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/shared/higher-order-functions/video.d.ts +3 -0
- package/types/features/ad-native/sites/shared/index.d.ts +5 -0
- package/types/features/ad-native/sites/shared/player-events.d.ts +5 -0
- package/types/features/ad-native/sites/shared/templates/abo/content-video/content-video.d.ts +4 -0
- package/types/features/ad-native/sites/shared/templates/abo/content-video/index.d.ts +3 -0
- package/types/features/ad-native/sites/shared/templates/abo/default/index.d.ts +4 -0
- package/types/features/ad-native/sites/shared/templates/abo/index.d.ts +3 -0
- package/types/features/ad-native/sites/shared/templates/abo/podme-section/index.d.ts +4 -0
- package/types/features/ad-native/sites/shared/templates/abo/recirc/index.d.ts +4 -0
- package/types/features/ad-native/sites/shared/templates/abo/video/index.d.ts +3 -0
- package/types/features/ad-native/sites/shared/templates/abo/video/template.d.ts +4 -0
- package/types/features/ad-native/sites/shared/templates/content-display-basic/content-display-basic-article.d.ts +4 -0
- package/types/features/ad-native/sites/shared/templates/content-display-basic/content-display-basic.d.ts +4 -0
- package/types/features/ad-native/sites/shared/templates/content-display-basic/index.d.ts +3 -0
- package/types/features/ad-native/sites/shared/templates/no/index.d.ts +3 -0
- package/types/features/ad-native/sites/shared/templates/no/native-recirc/index.d.ts +4 -0
- package/types/features/ad-native/sites/shared/templates/no/native-template/index.d.ts +4 -0
- package/types/features/ad-native/sites/shared/templates/video/index.d.ts +3 -0
- package/types/features/ad-native/sites/shared/templates/video/video.d.ts +4 -0
- package/types/features/ad-native/sites/svd/index.d.ts +6 -0
- package/types/features/ad-native/sites/svd/svd-init.d.ts +5 -0
- package/types/features/ad-native/sites/svd/templates/brandstudio-classic/index.d.ts +4 -0
- package/types/features/ad-native/sites/svd/templates/brandstudio-classic/panorama/index.d.ts +3 -0
- package/types/features/ad-native/sites/svd/templates/content-display/index.d.ts +4 -0
- package/types/features/ad-native/sites/svd/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/svd/templates/podme/index.d.ts +4 -0
- package/types/features/ad-native/sites/svd/templates/podme-section/index.d.ts +4 -0
- package/types/features/ad-native/sites/tek/index.d.ts +6 -0
- package/types/features/ad-native/sites/tek/tek-init.d.ts +4 -0
- package/types/features/ad-native/sites/tek/templates/content/content-video.d.ts +2 -0
- package/types/features/ad-native/sites/tek/templates/content/content.d.ts +2 -0
- package/types/features/ad-native/sites/tek/templates/content/helpers.d.ts +10 -0
- package/types/features/ad-native/sites/tek/templates/content/index.d.ts +2 -0
- package/types/features/ad-native/sites/tek/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/tek/templates/native/helpers.d.ts +9 -0
- package/types/features/ad-native/sites/tek/templates/native/index.d.ts +1 -0
- package/types/features/ad-native/sites/tek/templates/native/native-video.d.ts +2 -0
- package/types/features/ad-native/sites/vg/index.d.ts +6 -0
- package/types/features/ad-native/sites/vg/templates/content/content-video.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/content/content.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/content/index.d.ts +3 -0
- package/types/features/ad-native/sites/vg/templates/default-template/index.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/fishfinger/index.d.ts +7 -0
- package/types/features/ad-native/sites/vg/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/vg/templates/inhouse/index.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/podme/index.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/podme_section/index.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/recirc/index.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/seamless-image/index.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/shopping_affiliate/index.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/ukesmeny/index.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/ukesmeny-sponsor-stripe/index.d.ts +5 -0
- package/types/features/ad-native/sites/vg/templates/ukesmeny-video/index.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/ukesmeny-video/videoTemplate.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/utils/title-scalling/font-size-optimizer.d.ts +7 -0
- package/types/features/ad-native/sites/vg/templates/utils/title-scalling/font-size-optimizer.test.d.ts +1 -0
- package/types/features/ad-native/sites/vg/templates/utils/title-scalling/font-size-width.d.ts +4 -0
- package/types/features/ad-native/sites/vg/templates/utils/title-scalling/index.d.ts +6 -0
- package/types/features/ad-native/sites/vg/templates/utils/title-scalling/types.d.ts +9 -0
- package/types/features/ad-native/sites/vg/templates/video/index.d.ts +3 -0
- package/types/features/ad-native/sites/vg/templates/video/video.d.ts +4 -0
- package/types/features/ad-native/sites/vg/vg-init.d.ts +5 -0
- package/types/features/ad-native/sites/vgv2/index.d.ts +6 -0
- package/types/features/ad-native/sites/vgv2/templates/content/content-video.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/content/content.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/content/index.d.ts +3 -0
- package/types/features/ad-native/sites/vgv2/templates/default-template/index.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/fishfinger/index.d.ts +7 -0
- package/types/features/ad-native/sites/vgv2/templates/index.d.ts +3 -0
- package/types/features/ad-native/sites/vgv2/templates/inhouse/index.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/podme/index.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/podme_section/index.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/recirc/index.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/seamless-image/index.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/shopping_affiliate/index.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/ukesmeny/index.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/ukesmeny-sponsor-stripe/index.d.ts +5 -0
- package/types/features/ad-native/sites/vgv2/templates/ukesmeny-video/index.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/ukesmeny-video/videoTemplate.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/utils/title-scalling/font-size-optimizer.d.ts +7 -0
- package/types/features/ad-native/sites/vgv2/templates/utils/title-scalling/font-size-optimizer.test.d.ts +1 -0
- package/types/features/ad-native/sites/vgv2/templates/utils/title-scalling/font-size-width.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/templates/utils/title-scalling/index.d.ts +6 -0
- package/types/features/ad-native/sites/vgv2/templates/utils/title-scalling/types.d.ts +9 -0
- package/types/features/ad-native/sites/vgv2/templates/video/index.d.ts +3 -0
- package/types/features/ad-native/sites/vgv2/templates/video/video.d.ts +4 -0
- package/types/features/ad-native/sites/vgv2/vg-init.d.ts +5 -0
- package/types/features/ad-native/trackers/trackers.d.ts +5 -0
- package/types/features/ad-native/trackers/trackers.test.d.ts +1 -0
- package/types/features/ad-skyscrapers-split/components/SkyscrapersTrack.d.ts +3 -0
- package/types/features/ad-skyscrapers-split/components/types.d.ts +3 -0
- package/types/features/ad-skyscrapers-split/index.d.ts +2 -0
- package/types/features/ad-sponsorstripe/placement/index.d.ts +2 -0
- package/types/features/ad-sponsorstripe/scripts/index.d.ts +5 -0
- package/types/features/ad-sponsorstripe/scripts/observer.d.ts +2 -0
- package/types/features/ad-sponsorstripe/scripts/video-player-observer.d.ts +1 -0
- package/types/features/ad-sponsorstripe/scripts/visibility-observer.d.ts +2 -0
- package/types/features/ad-sponsorstripe/scripts/width-resizer.d.ts +2 -0
- package/types/features/ad-sponsorstripe/sites/abo/index.d.ts +4 -0
- package/types/features/ad-sponsorstripe/sites/aftonbladet/index.d.ts +4 -0
- package/types/features/ad-sponsorstripe/sites/godt/index.d.ts +2 -0
- package/types/features/ad-sponsorstripe/sites/minmote/index.d.ts +2 -0
- package/types/features/ad-sponsorstripe/sites/svd/index.d.ts +4 -0
- package/types/features/ad-sponsorstripe/sites/tek/index.d.ts +2 -0
- package/types/features/ad-sponsorstripe/sites/vg/index.d.ts +4 -0
- package/types/features/ad-takeover/config.d.ts +5 -0
- package/types/features/ad-takeover/handlers/cls-handler.d.ts +3 -0
- package/types/features/ad-takeover/handlers/events-handler.d.ts +13 -0
- package/types/features/ad-takeover/handlers/events-handler.test.d.ts +1 -0
- package/types/features/ad-takeover/handlers/formats-handler.d.ts +2 -0
- package/types/features/ad-takeover/handlers/insert-assets-handler.d.ts +4 -0
- package/types/features/ad-takeover/handlers/insert-assets-handler.test.d.ts +1 -0
- package/types/features/ad-takeover/handlers/lock-page.d.ts +3 -0
- package/types/features/ad-takeover/handlers/show-variant-handler.d.ts +3 -0
- package/types/features/ad-takeover/handlers/show-variant-handler.test.d.ts +1 -0
- package/types/features/ad-takeover/handlers/visibility-observer-handler.d.ts +2 -0
- package/types/features/ad-takeover/handlers/visibility-observer-handler.test.d.ts +1 -0
- package/types/features/ad-takeover/index.d.ts +5 -0
- package/types/features/ad-takeover/placement/formats/splash/index.d.ts +3 -0
- package/types/features/ad-takeover/placement/formats/topscroller/index.d.ts +3 -0
- package/types/features/ad-takeover/placement/formats/welcome-page/index.d.ts +3 -0
- package/types/features/ad-takeover/placement/index.d.ts +3 -0
- package/types/features/ad-takeover/utils.d.ts +14 -0
- package/types/features/ad-wallpaper/constants.d.ts +5 -0
- package/types/features/ad-wallpaper/index.d.ts +8 -0
- package/types/features/ad-wallpaper/wallpaper-listener.d.ts +2 -0
- package/types/features/ad-wallpaper/wallpaper-styling-setters.d.ts +5 -0
- package/types/features/adblock/index.d.ts +3 -0
- package/types/features/alertory/index.d.ts +5 -0
- package/types/features/alertory/locator.d.ts +3 -0
- package/types/features/alertory/site-config.d.ts +8 -0
- package/types/features/alertory/test-id.d.ts +5 -0
- package/types/features/alertory/test-id.test.d.ts +1 -0
- package/types/features/brandmetrics/Brandmetrics.d.ts +3 -0
- package/types/features/brandmetrics/index.d.ts +3 -0
- package/types/features/cogwheel/index.d.ts +2 -0
- package/types/features/cogwheel/index.test.d.ts +1 -0
- package/types/features/common/formats/Netboard/index.d.ts +3 -0
- package/types/features/common/formats/Skyscraper/index.d.ts +3 -0
- package/types/features/common/formats/Sponsorstripe/index.d.ts +3 -0
- package/types/features/common/formats/Wallpaper/index.d.ts +3 -0
- package/types/features/common/formats/helpers.d.ts +5 -0
- package/types/features/common/formats/index.d.ts +4 -0
- package/types/features/common/index.d.ts +1 -0
- package/types/features/dr-edition/DrEdition.d.ts +4 -0
- package/types/features/dr-edition/composition.d.ts +6 -0
- package/types/features/dr-edition/constants.d.ts +11 -0
- package/types/features/dr-edition/dr-edition-manager.d.ts +16 -0
- package/types/features/dr-edition/dr-edition-service.d.ts +10 -0
- package/types/features/dr-edition/handlers.d.ts +7 -0
- package/types/features/dr-edition/handlers.test.d.ts +1 -0
- package/types/features/dr-edition/index.d.ts +4 -0
- package/types/features/dr-edition/observer.d.ts +5 -0
- package/types/features/dr-edition/pulse-manager/default-pulse-manager.d.ts +17 -0
- package/types/features/dr-edition/pulse-manager/index.d.ts +4 -0
- package/types/features/dr-edition/pulse-manager/no-pulse-manager.d.ts +15 -0
- package/types/features/dr-edition/pulse-manager/se-pulse-manager.d.ts +13 -0
- package/types/features/dr-edition/renderer.d.ts +8 -0
- package/types/features/dr-edition/strategies/aftonbladet/index.d.ts +8 -0
- package/types/features/dr-edition/strategies/default.d.ts +8 -0
- package/types/features/dr-edition/strategies/e24/index.d.ts +10 -0
- package/types/features/dr-edition/strategies/vg/index.d.ts +11 -0
- package/types/features/dr-edition/types.d.ts +124 -0
- package/types/features/dr-edition/utils/html.d.ts +2 -0
- package/types/features/dr-edition/utils/url.d.ts +2 -0
- package/types/features/dr-edition/video-manager.d.ts +10 -0
- package/types/features/editable-configuration/constants.d.ts +3 -0
- package/types/features/editable-configuration/fetch-s3-config.d.ts +5 -0
- package/types/features/editable-configuration/fetch-s3-config.test.d.ts +1 -0
- package/types/features/editable-configuration/index.d.ts +3 -0
- package/types/features/editable-configuration/index.test.d.ts +1 -0
- package/types/features/editable-configuration/merge-configs.d.ts +4 -0
- package/types/features/editable-configuration/merge-configs.test.d.ts +1 -0
- package/types/features/finn-blink/config.d.ts +3 -0
- package/types/features/finn-blink/events.d.ts +5 -0
- package/types/features/finn-blink/finn-blink.d.ts +4 -0
- package/types/features/finn-blink/index.d.ts +3 -0
- package/types/features/finn-blink/renderer.d.ts +4 -0
- package/types/features/finn-blink/replacement-blink.d.ts +4 -0
- package/types/features/finn-blink/tcf.d.ts +2 -0
- package/types/features/finn-blink/tcf.test.d.ts +1 -0
- package/types/features/glimr/constants.d.ts +9 -0
- package/types/features/glimr/glimr-core-handler.d.ts +3 -0
- package/types/features/glimr/glimr-core-handler.test.d.ts +1 -0
- package/types/features/glimr/glimr-tag-filters.d.ts +4 -0
- package/types/features/glimr/glimr-tag-filters.test.d.ts +4 -0
- package/types/features/glimr/glimr-tags-handler.d.ts +4 -0
- package/types/features/glimr/glimr-tags-handler.test.d.ts +4 -0
- package/types/features/glimr/index.d.ts +2 -0
- package/types/features/interface/ad-native.d.ts +134 -0
- package/types/features/interface/ad-takeover.d.ts +6 -0
- package/types/features/interface/alertory.d.ts +18 -0
- package/types/features/interface/editable-configuration.d.ts +16 -0
- package/types/features/interface/finn-blink.d.ts +42 -0
- package/types/features/interface/fullscreen-scroll.d.ts +4 -0
- package/types/features/interface/glimr.d.ts +6 -0
- package/types/features/interface/player.d.ts +9 -0
- package/types/features/interface/prebid.d.ts +49 -0
- package/types/features/interface/privacy-broker.d.ts +16 -0
- package/types/features/interface/tracker.d.ts +91 -0
- package/types/features/norstat/index.d.ts +4 -0
- package/types/features/norstat/index.test.d.ts +1 -0
- package/types/features/player/events.d.ts +5 -0
- package/types/features/player/index.d.ts +1 -0
- package/types/features/player/player.d.ts +4 -0
- package/types/features/player/plugins/index.d.ts +2 -0
- package/types/features/player/plugins/mute/index.d.ts +2 -0
- package/types/features/player/plugins/ukesmeny-video/index.d.ts +2 -0
- package/types/features/player/types.d.ts +12 -0
- package/types/features/player/wait.d.ts +2 -0
- package/types/features/prebid/index.d.ts +1 -0
- package/types/features/prebid/prebid.d.ts +3 -0
- package/types/features/prebid/prebid.test.d.ts +1 -0
- package/types/features/prebid/relevant-yield-data.d.ts +4 -0
- package/types/features/prebid/relevant-yield-data.test.d.ts +1 -0
- package/types/features/prebid/window-properties-getters.d.ts +6 -0
- package/types/features/privacy-broker/constants.d.ts +2 -0
- package/types/features/privacy-broker/fetch-permissions.d.ts +3 -0
- package/types/features/privacy-broker/fetch-permissions.test.d.ts +1 -0
- package/types/features/privacy-broker/get-identity-object.d.ts +3 -0
- package/types/features/privacy-broker/identity-facade.d.ts +9 -0
- package/types/features/privacy-broker/identity-facade.test.d.ts +1 -0
- package/types/features/privacy-broker/index.d.ts +2 -0
- package/types/features/privacy-broker/permissions.d.ts +3 -0
- package/types/features/privacy-broker/permissions.test.d.ts +1 -0
- package/types/features/privacy-broker/session-storage.d.ts +7 -0
- package/types/features/privacy-broker/session-storage.test.d.ts +1 -0
- package/types/features/tracker/constants.d.ts +34 -0
- package/types/features/tracker/eid-mapping-builder.d.ts +12 -0
- package/types/features/tracker/eid-mapping-builder.test.d.ts +1 -0
- package/types/features/tracker/get-page-view-id.d.ts +3 -0
- package/types/features/tracker/index.d.ts +10 -0
- package/types/features/tracker/keys.d.ts +5 -0
- package/types/features/tracker/ppidsv2-manager.d.ts +9 -0
- package/types/features/tracker/ppidsv3-manager.d.ts +17 -0
- package/types/features/tracker/ppidsv3-manager.test.d.ts +1 -0
- package/types/features/video/index.d.ts +1 -0
- package/types/features/video/tcf.d.ts +4 -0
- package/types/interface/glimr.d.ts +5 -0
- package/types/interface/global.d.ts +41 -0
- package/types/interface/png-module.d.ts +4 -0
- package/types/interface/png-rollup-module.d.ts +4 -0
- package/types/interface/scss-modules.d.ts +1 -0
- package/types/sites/aftenposten/config.d.ts +3 -0
- package/types/sites/aftenposten/events.d.ts +14 -0
- package/types/sites/aftenposten/formats/Netboard/index.d.ts +3 -0
- package/types/sites/aftenposten/formats/Skyscraper/index.d.ts +3 -0
- package/types/sites/aftenposten/formats/Topboard/index.d.ts +3 -0
- package/types/sites/aftenposten/formats/Wallpaper/index.d.ts +2 -0
- package/types/sites/aftenposten/formats/helpers.d.ts +4 -0
- package/types/sites/aftenposten/formats/index.d.ts +4 -0
- package/types/sites/aftenposten/index.d.ts +4 -0
- package/types/sites/aftenposten/prepare-page-options.d.ts +3 -0
- package/types/sites/aftenposten/prepare-page-options.test.d.ts +1 -0
- package/types/sites/aftenposten/prepare-tag.d.ts +3 -0
- package/types/sites/aftenposten/prepare-tag.test.d.ts +1 -0
- package/types/sites/aftonbladet/config.d.ts +3 -0
- package/types/sites/aftonbladet/events.d.ts +14 -0
- package/types/sites/aftonbladet/formats/Insider/index.d.ts +3 -0
- package/types/sites/aftonbladet/formats/Integration/index.d.ts +3 -0
- package/types/sites/aftonbladet/formats/Panorama/index.d.ts +3 -0
- package/types/sites/aftonbladet/formats/Sponsorstripe/helpers.d.ts +4 -0
- package/types/sites/aftonbladet/formats/Sponsorstripe/index.d.ts +3 -0
- package/types/sites/aftonbladet/formats/Widescreen/helpers.d.ts +2 -0
- package/types/sites/aftonbladet/formats/Widescreen/index.d.ts +3 -0
- package/types/sites/aftonbladet/formats/helpers.d.ts +4 -0
- package/types/sites/aftonbladet/formats/index.d.ts +6 -0
- package/types/sites/aftonbladet/index.d.ts +2 -0
- package/types/sites/aftonbladet/prepare-page-options.d.ts +3 -0
- package/types/sites/aftonbladet/prepare-page-options.test.d.ts +1 -0
- package/types/sites/aftonbladet/prepare-tag.d.ts +3 -0
- package/types/sites/aftonbladet/prepare-tag.test.d.ts +1 -0
- package/types/sites/aftonbladetv2/config.d.ts +3 -0
- package/types/sites/aftonbladetv2/events.d.ts +14 -0
- package/types/sites/aftonbladetv2/formats/Insider/index.d.ts +3 -0
- package/types/sites/aftonbladetv2/formats/Integration/index.d.ts +3 -0
- package/types/sites/aftonbladetv2/formats/Panorama/index.d.ts +3 -0
- package/types/sites/aftonbladetv2/formats/Sponsorstripe/helpers.d.ts +3 -0
- package/types/sites/aftonbladetv2/formats/Sponsorstripe/index.d.ts +3 -0
- package/types/sites/aftonbladetv2/formats/Widescreen/helpers.d.ts +2 -0
- package/types/sites/aftonbladetv2/formats/Widescreen/index.d.ts +3 -0
- package/types/sites/aftonbladetv2/formats/helpers.d.ts +4 -0
- package/types/sites/aftonbladetv2/formats/index.d.ts +6 -0
- package/types/sites/aftonbladetv2/index.d.ts +2 -0
- package/types/sites/aftonbladetv2/prepare-page-options.d.ts +3 -0
- package/types/sites/aftonbladetv2/prepare-page-options.test.d.ts +1 -0
- package/types/sites/aftonbladetv2/prepare-tag.d.ts +3 -0
- package/types/sites/aftonbladetv2/prepare-tag.test.d.ts +1 -0
- package/types/sites/bt/config.d.ts +3 -0
- package/types/sites/bt/events.d.ts +14 -0
- package/types/sites/bt/formats/Netboard/index.d.ts +3 -0
- package/types/sites/bt/formats/Skyscraper/index.d.ts +3 -0
- package/types/sites/bt/formats/Topboard/index.d.ts +3 -0
- package/types/sites/bt/formats/Wallpaper/index.d.ts +2 -0
- package/types/sites/bt/formats/index.d.ts +4 -0
- package/types/sites/bt/index.d.ts +4 -0
- package/types/sites/bt/prepare-page-options.d.ts +3 -0
- package/types/sites/bt/prepare-page-options.test.d.ts +1 -0
- package/types/sites/e24/config.d.ts +3 -0
- package/types/sites/e24/events.d.ts +14 -0
- package/types/sites/e24/formats/Brandboard/index.d.ts +3 -0
- package/types/sites/e24/formats/Netboard/index.d.ts +3 -0
- package/types/sites/e24/formats/Skyscraper/index.d.ts +3 -0
- package/types/sites/e24/formats/Topboard/index.d.ts +3 -0
- package/types/sites/e24/formats/Wallpaper/index.d.ts +3 -0
- package/types/sites/e24/formats/helpers.d.ts +4 -0
- package/types/sites/e24/formats/index.d.ts +6 -0
- package/types/sites/e24/index.d.ts +2 -0
- package/types/sites/e24/prepare-page-options.d.ts +3 -0
- package/types/sites/e24/prepare-page-options.test.d.ts +1 -0
- package/types/sites/e24v2/config.d.ts +3 -0
- package/types/sites/e24v2/events.d.ts +14 -0
- package/types/sites/e24v2/formats/Aksjelive/index.d.ts +2 -0
- package/types/sites/e24v2/formats/Brandboard/index.d.ts +3 -0
- package/types/sites/e24v2/formats/Netboard/index.d.ts +3 -0
- package/types/sites/e24v2/formats/Skyscraper/index.d.ts +5 -0
- package/types/sites/e24v2/formats/Topboard/helpers.d.ts +2 -0
- package/types/sites/e24v2/formats/Topboard/index.d.ts +3 -0
- package/types/sites/e24v2/formats/Wallpaper/helpers.d.ts +2 -0
- package/types/sites/e24v2/formats/Wallpaper/index.d.ts +4 -0
- package/types/sites/e24v2/formats/index.d.ts +7 -0
- package/types/sites/e24v2/index.d.ts +2 -0
- package/types/sites/e24v2/prepare-page-options.d.ts +3 -0
- package/types/sites/e24v2/prepare-page-options.test.d.ts +1 -0
- package/types/sites/godare/config.d.ts +3 -0
- package/types/sites/godare/events.d.ts +14 -0
- package/types/sites/godare/formats/Buyrecipe/index.d.ts +3 -0
- package/types/sites/godare/formats/Integration/index.d.ts +3 -0
- package/types/sites/godare/formats/Panorama/index.d.ts +3 -0
- package/types/sites/godare/formats/helpers.d.ts +3 -0
- package/types/sites/godare/formats/index.d.ts +4 -0
- package/types/sites/godare/index.d.ts +2 -0
- package/types/sites/godare/prepare-page-options.d.ts +3 -0
- package/types/sites/godare/prepare-page-options.test.d.ts +1 -0
- package/types/sites/godt/config.d.ts +3 -0
- package/types/sites/godt/events.d.ts +14 -0
- package/types/sites/godt/index.d.ts +1 -0
- package/types/sites/godt/prepare-page-options.d.ts +3 -0
- package/types/sites/godt/prepare-page-options.test.d.ts +1 -0
- package/types/sites/klart/config.d.ts +3 -0
- package/types/sites/klart/events.d.ts +14 -0
- package/types/sites/klart/formats/Integration/index.d.ts +3 -0
- package/types/sites/klart/formats/Panorama/index.d.ts +3 -0
- package/types/sites/klart/formats/Widescreen/index.d.ts +3 -0
- package/types/sites/klart/formats/helpers.d.ts +3 -0
- package/types/sites/klart/formats/index.d.ts +4 -0
- package/types/sites/klart/index.d.ts +2 -0
- package/types/sites/klart/prepare-page-options.d.ts +3 -0
- package/types/sites/klart/prepare-tag.d.ts +3 -0
- package/types/sites/kompakt/config.d.ts +3 -0
- package/types/sites/kompakt/index.d.ts +1 -0
- package/types/sites/minmote/config.d.ts +3 -0
- package/types/sites/minmote/events.d.ts +14 -0
- package/types/sites/minmote/index.d.ts +2 -0
- package/types/sites/minmote/prepare-page-options.d.ts +3 -0
- package/types/sites/minmote/prepare-page-options.test.d.ts +1 -0
- package/types/sites/pent/config.d.ts +3 -0
- package/types/sites/pent/events.d.ts +14 -0
- package/types/sites/pent/index.d.ts +1 -0
- package/types/sites/pent/prepare-page-options.d.ts +3 -0
- package/types/sites/pent/prepare-page-options.test.d.ts +1 -0
- package/types/sites/sa/config.d.ts +3 -0
- package/types/sites/sa/events.d.ts +14 -0
- package/types/sites/sa/formats/Netboard/index.d.ts +3 -0
- package/types/sites/sa/formats/Skyscraper/index.d.ts +3 -0
- package/types/sites/sa/formats/Topboard/index.d.ts +3 -0
- package/types/sites/sa/formats/Wallpaper/index.d.ts +2 -0
- package/types/sites/sa/formats/index.d.ts +4 -0
- package/types/sites/sa/formats/scale-ads.d.ts +3 -0
- package/types/sites/sa/index.d.ts +4 -0
- package/types/sites/sa/prepare-page-options.d.ts +3 -0
- package/types/sites/sa/prepare-page-options.test.d.ts +1 -0
- package/types/sites/svd/config.d.ts +3 -0
- package/types/sites/svd/events.d.ts +14 -0
- package/types/sites/svd/formats/Insider/index.d.ts +3 -0
- package/types/sites/svd/formats/Panorama/index.d.ts +3 -0
- package/types/sites/svd/formats/Toppanorama/index.d.ts +3 -0
- package/types/sites/svd/formats/Widescreen/index.d.ts +3 -0
- package/types/sites/svd/formats/helpers.d.ts +5 -0
- package/types/sites/svd/formats/index.d.ts +5 -0
- package/types/sites/svd/index.d.ts +3 -0
- package/types/sites/svd/prepare-page-options.d.ts +3 -0
- package/types/sites/svd/prepare-page-options.test.d.ts +1 -0
- package/types/sites/svd/prepare-tag.d.ts +3 -0
- package/types/sites/tek/config.d.ts +3 -0
- package/types/sites/tek/events.d.ts +14 -0
- package/types/sites/tek/fallback-placement-to-backfill.d.ts +2 -0
- package/types/sites/tek/prepare-page-options.d.ts +3 -0
- package/types/sites/tek/prepare-page-options.test.d.ts +1 -0
- package/types/sites/vg/config.d.ts +3 -0
- package/types/sites/vg/custom-events-handler.d.ts +4 -0
- package/types/sites/vg/events.d.ts +14 -0
- package/types/sites/vg/formats/Brandboard/helpers.d.ts +3 -0
- package/types/sites/vg/formats/Netboard/index.d.ts +3 -0
- package/types/sites/vg/formats/Skyscraper/index.d.ts +3 -0
- package/types/sites/vg/formats/Topboard/index.d.ts +3 -0
- package/types/sites/vg/formats/Wallpaper/index.d.ts +3 -0
- package/types/sites/vg/formats/index.d.ts +4 -0
- package/types/sites/vg/formats/types.d.ts +4 -0
- package/types/sites/vg/index.d.ts +3 -0
- package/types/sites/vg/prepare-page-options.d.ts +3 -0
- package/types/sites/vg/prepare-page-options.test.d.ts +1 -0
- package/types/sites/vgv2/config.d.ts +3 -0
- package/types/sites/vgv2/custom-events-handler.d.ts +4 -0
- package/types/sites/vgv2/events.d.ts +14 -0
- package/types/sites/vgv2/formats/Brandboard/helpers.d.ts +3 -0
- package/types/sites/vgv2/formats/Netboard/index.d.ts +3 -0
- package/types/sites/vgv2/formats/Skyscraper/index.d.ts +3 -0
- package/types/sites/vgv2/formats/Topboard/index.d.ts +3 -0
- package/types/sites/vgv2/formats/Wallpaper/index.d.ts +3 -0
- package/types/sites/vgv2/formats/index.d.ts +4 -0
- package/types/sites/vgv2/formats/types.d.ts +4 -0
- package/types/sites/vgv2/index.d.ts +3 -0
- package/types/sites/vgv2/prepare-page-options.d.ts +3 -0
- package/types/sites/vgv2/prepare-page-options.test.d.ts +1 -0
- package/types/tests/default-test-data.d.ts +6 -0
- package/types/tests/mock-common.d.ts +2 -0
- package/types/tests/mock-glimr.d.ts +2 -0
- package/types/tests/mock-location.d.ts +2 -0
- package/types/tests/mock-screen-size.d.ts +2 -0
- package/types/tests/mock-tcf.d.ts +2 -0
- package/types/tests/setup-base-config.d.ts +3 -0
- package/types/tests/setupBaseHandlers.d.ts +3 -0
- package/types/tests/types.d.ts +35 -0
- package/types/utils/app-type/index.d.ts +3 -0
- package/types/utils/app-type/index.test.d.ts +1 -0
- package/types/utils/array-into-chunks/index.d.ts +2 -0
- package/types/utils/array-into-chunks/index.test.d.ts +1 -0
- package/types/utils/common/index.d.ts +10 -0
- package/types/utils/common/index.test.d.ts +1 -0
- package/types/utils/data-types/index.d.ts +1 -0
- package/types/utils/data-types/index.test.d.ts +1 -0
- package/types/utils/device/index.d.ts +10 -0
- package/types/utils/device/index.test.d.ts +1 -0
- package/types/utils/element-visibility/index.d.ts +2 -0
- package/types/utils/element-visibility/index.test.d.ts +1 -0
- package/types/utils/http-client/index.d.ts +3 -0
- package/types/utils/http-client/index.test.d.ts +1 -0
- package/types/utils/image/index.d.ts +2 -0
- package/types/utils/image/index.test.d.ts +1 -0
- package/types/utils/library/index.d.ts +3 -0
- package/types/utils/library/index.test.d.ts +1 -0
- package/types/utils/local-storage-client/index.d.ts +3 -0
- package/types/utils/local-storage-client/index.test.d.ts +1 -0
- package/types/utils/module/index.d.ts +3 -0
- package/types/utils/module/index.test.d.ts +1 -0
- package/types/utils/safe-execute-async/index.d.ts +3 -0
- package/types/utils/safe-execute-async/index.test.d.ts +1 -0
- package/types/utils/screen/index.d.ts +4 -0
- package/types/utils/screen/index.test.d.ts +1 -0
- package/types/utils/script/index.d.ts +2 -0
- package/types/utils/script/index.test.d.ts +1 -0
- package/types/utils/session-storage-client/index.d.ts +3 -0
- package/types/utils/session-storage-client/index.test.d.ts +1 -0
- package/types/utils/string/index.d.ts +3 -0
- package/types/utils/string/index.test.d.ts +1 -0
- package/types/utils/styles/index.d.ts +5 -0
- package/types/utils/styles/index.test.d.ts +1 -0
- package/types/utils/url/index.d.ts +3 -0
- package/types/utils/url/index.test.d.ts +1 -0
- package/types/utils/user-agent/index.d.ts +3 -0
- package/types/utils/user-agent/index.test.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";function n(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const i={get:(e,t)=>n(void 0,void 0,void 0,function*(){const n=yield fetch(e,t);if(!n.ok)throw new Error(n.statusText);return yield n.json()}),post:(e,t,i)=>n(void 0,void 0,void 0,function*(){const n=JSON.stringify(i),r=yield fetch(e,{method:"POST",headers:t,body:n});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},r=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},o=["netboard","board"];class a{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:r}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",r),o&&s.searchParams.append("urlData",o),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return n(this,void 0,void 0,function*(){var t,n;const o=yield this.identityFacade.getIdentityUser(),a=null!==(n=yield null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId())&&void 0!==n?n:"",s=(null==o?void 0:o.userId)?String(o.userId):"",d=this.buildUrl(e,{envId:a,spid:s});try{r("Starting fetching DrEdition ad from URL:",d);const e={method:"GET"},t=yield i.get(d,e);return r("Fetch operation completed successfully."),t}catch(e){r("Error during fetch operation:",e)}return null})}}class s{getDrEditionUTMParams(e,t){var n;const{title:i,clientName:r,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:r,utm_medium:s},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),r=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{r.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const r=this.getDrEditionUTMParams(e,t),o=new URL(i);return Object.entries(r).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return n(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:r,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:r,vgtvLoop:!!o,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:r}=new URL(n);if(!i.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const o=r.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const d=e=>{if(window.location.href.includes("collapse_ad=0"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&(()=>{const e=document.querySelector(".advertory-wallpaper-background");e&&e.remove()})())},l=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))};class c{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return n(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{containerSelector:o},renderAsBackfill:a=!1}=t,s=e.querySelector(o);if(!s)return void r(`Container with selector "${o}" not found.`);const c=yield this.drEditionService.fetchData(t);return(null==c?void 0:c.itemId)||a?!(null==c?void 0:c.itemId)&&a?(r("No Dr. Edition ads available to render. Collapsing whole placement."),void d(e.id)):((null==c?void 0:c.itemId)&&a&&(r("Dr. Edition ad available to render as a Xandr backfill."),l(e.id)),void(c&&(c.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(c.css,"style"),this.rendererManager.render(s,c,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(c,t),this.drEditionAds.push(c),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(c.itemId),this.observeAdView(e,c,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)))):(r("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(s),void this.showBackfill(e))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let r=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(r&&clearTimeout(r),r=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{o.observe(e)}),!0}}const u="cmp:loaded";let v,p=!1;const m=e=>{const t=!!(null==e?void 0:e.enabled),n=(null==e?void 0:e.timeout)||3e3,i=(o="bypass_tcf",new URLSearchParams(window.location.search).get(o));var o;return{initConsentManager:()=>new Promise((e,t)=>{if(r("Getting TCF consent manager..."),window._tcf_)return r("TCF consent manager is already available"),v=window._tcf_,void e(v);r("TCF consent manager is not available");const i=()=>{r("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(v=window._tcf_,e(v)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(u,i),p=!0,t(new Error("Timeout waiting for CMP to load"))},n);r("Listening for CMP loaded event..."),document.addEventListener(u,i,{once:!0})}),getConsentSync:()=>{if(((e,t)=>e?!!t&&(r("TCF bypass param detected, returning consent: true"),!0):(r("TCF is not enabled, returning consent: true"),!0))(t,i))return!0;if(p)return null;if(!v)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=v.getConsentedToAllSync();return r(`TCF consented to all is: ${e}`),v.getConsentedToAllSync()}}},g="mobile";class h{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){if(!(null==t?void 0:t.itemId))return;const{getConsentSync:i}=m(n.tcf),r=!!i(),o=n.device===g?t.mobileHTML:t.desktopHTML;const a=r?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var i,r,o;e.search=null!==(o=null===(r=(i=this.newsroomStrategy).getUrlSearchParams)||void 0===r?void 0:r.call(i,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})}}class y{constructor(e){this.strategy=e}handle(e,t){return n(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return n(this,void 0,void 0,function*(){const t=e.drEditionConfig.videoScriptUrl,i=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!i)try{yield((e,...t)=>n(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{r.removeEventListener("load",o),r.removeEventListener("error",a),clearTimeout(d)};r.addEventListener("load",o),r.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}))(t)}catch(e){r("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return n(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,r=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==r||r.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==r?void 0:r.parentNode;if(!o)return;const a=o.closest("a");o.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,r;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("playsinline",""),!(!s||!a)&&(null===(r=(i=t.drEditionConfig).addPreviewVideo)||void 0===r||r.call(i,s),!0))}}class w{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,r=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,i){return n(this,void 0,void 0,function*(){var n,r,o,a,s;if(!this.pulse)return;const d=this.getEventInput(e,t,i,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackViewUIElement)?null===(o=null===(r=this.pulse)||void 0===r?void 0:r.trackViewUIElement)||void 0===o||o.call(r,d):null===(s=null===(a=this.pulse)||void 0===a?void 0:a.trackElementView)||void 0===s||s.call(a,d)})}trackContentClick(e,t,i){return n(this,void 0,void 0,function*(){var n,r,o,a;if(!this.pulse)return;const s=this.getEventInput(e,t,i,"click");this.pulse.trackClickUIElement?null===(r=(n=this.pulse).trackClickUIElement)||void 0===r||r.call(n,s):null===(a=(o=this.pulse).trackElementClick)||void 0===a||a.call(o,s)})}}class f extends w{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){const{pulseData:{title:i,clientName:r="",creativeId:o}={}}=t,{columnName:a,primaryPosition:s}=n;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:i,placement:{columnName:a,primaryPosition:s},"spt:custom":{is_sponsored:!0,sponsor:r,"spt: creativeId":o},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class E extends w{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,v=n.editionName,p=this.mapPageType(this.pageType),m=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulseObjectId)||void 0===o?void 0:o.call(r))&&void 0!==a?a:v,"@type":"UIElement",position:v,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=m?m:v,"@type":p,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var r,o,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:v,url:p,probability:m}={}}=t,g=Math.floor(Date.now()/1e3),h=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),w=this.getTeaserElementText(e,"image"),f=null!==(s=null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getUrlWithParams)||void 0===o?void 0:o.call(r,t,n))&&void 0!==a?a:p)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:m,creativeId:c,device:n.device,editionId:u,itemId:v,link:f,placement:n.editionName,subtitle:y,time:g,title:h,type:i,imageUrl:w,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const b="vg",P="aftonbladet",I="e24",T="front",S=e=>n(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),C={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return n(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return q})})}})}};class L{handleVideo(e,t){return n(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:i,autoplay:r,mute:o,vendor:a}}){yield n(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const s=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=s)||l.forEach(e=>{C[e](c)});const u={id:t,node:i,autoplay:r,mute:o,vendor:a,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},v=yield S(u);v.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(v,s)}),v.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),v.once("PulseStats:ready",()=>n(this,void 0,void 0,function*(){const e=yield v.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===T?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),r=i.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const k="https://www.aftonbladet.se/video-player-extras/latest/";class j{handleVideo(e,t){return n(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${k}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${k}external-link.js`]:{name:"ExternalLink"}}};yield S(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}getPulseObjectId(){return""}getPulsePageId(){return""}}class M{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const A="se",N=(e,t,n)=>{const{publisher:i,pageType:r,country:o}=e,d={[b]:new s,[I]:new L,[P]:new j}[i]||new M,l=new(o===A?f:E)(n,d,r),u=new a(t,null==n?void 0:n.pulseTracker),v=new h(d,l),p=new y(d);return new c(u,v,p,l)},U=({editionName:n,fallbackTargetId:i,children:r,pulseData:o})=>{const a=(e=>{const t={};if(!e)return t;for(const[n,i]of Object.entries(e))t[`data-pulse-${n}`]=String(i);return t})(o);return e("div",Object.assign({className:"dr-edition-wrapper","data-edition-name":n},a,{children:[t("div",{className:"inscreen-target"}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:r})]}))},D=()=>n(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class V{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return n(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return r("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return n(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const _=(e,t,n)=>{const{wrapperSelector:i}=null==e?void 0:e.drEditionConfig,r=document.querySelectorAll(i),o=new IntersectionObserver((i,r)=>((e,t,n,i,r)=>{const o=N(n,i,r);e.forEach(e=>{var i,r,a;if(!e.isIntersecting)return;const s=e.target,d=null!==(i=s.dataset.editionName)&&void 0!==i?i:"",l=null!==(r=s.dataset.pulseColumnname)&&void 0!==r?r:"",c=null!==(a=s.dataset.pulsePrimaryposition)&&void 0!==a?a:"";o.fetchAndRenderAd(s,Object.assign(Object.assign({},n),{editionName:d,columnName:l,primaryPosition:c})),t.unobserve(s)})})(i,r,e,t,n),{rootMargin:"400% 0px"});r.forEach(e=>o.observe(e))},x=[],O=(e,t)=>n(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:a,deviceType:s,drEdition:d,publisher:l,pageType:c,country:u}=e,v=((e,t)=>{var n;const{deviceType:i,placements:r,drEdition:{fallbackGlobalEditionName:a}={}}=e,s=r[i]||r.desktop,d=(e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e})(t.targetId),l=s.find(e=>e.id===d),c=o.some(e=>d.startsWith(e)),u=x.includes(d),v=(null===(n=null==l?void 0:l.drEdition)||void 0===n?void 0:n.editionName)||a;return l&&c&&!u&&v?(x.push(d),Object.assign(Object.assign({},l),{drEdition:Object.assign(Object.assign({},l.drEdition),{editionName:v})})):null})(e,t);if(!v)return;if(!(null==i?void 0:i.instance))return void r("Pulse has not been passed as a prop, aborting");const p=yield D(),m=new V(p),g=N({publisher:l,pageType:c,country:u},m,null==i?void 0:i.instance),h=document.getElementById(t.targetId);if(!h||!d)return;h.classList.value="";const y=document.createElement("div");y.className=d.containerSelector.replace(/^[.#:[\]]+/,""),h.innerHTML=y.outerHTML;const w={editionName:(null===(n=null==v?void 0:v.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:d,device:s,tcf:a,renderAsBackfill:!0};yield g.fetchAndRenderAd(h,w)}),B=e=>n(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;const n=yield D(),i=new V(n);_({publisher:e.publisher,drEditionConfig:e.drEdition,device:e.deviceType,pageType:e.pageType,country:e.country},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)});const R=function(e){if("undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var q=Object.freeze({__proto__:null,default:R});export{U as DrEdition,N as getDrEditionManager,B as handleDrEdition,O as handleDrEditionBackfill};
|
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Identity, HasSessionSuccessResponse } from '@schibsted/account-sdk-browser';
|
|
3
|
+
|
|
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;
|
|
61
|
+
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
|
+
}
|
|
77
|
+
type AstKeywordValue = Array<string> | string | number | Array<number> | undefined;
|
|
78
|
+
type AstKeywords = Record<string, AstKeywordValue> & {
|
|
79
|
+
'se-generic-adformat'?: Array<string>;
|
|
80
|
+
'se-generic-targetid'?: Array<string>;
|
|
81
|
+
'se-sch-supply_type'?: Array<string>;
|
|
82
|
+
'no-sno-adformat'?: Array<string>;
|
|
83
|
+
'no-sno-targetid'?: Array<string>;
|
|
84
|
+
'aa-sch-dynamic-outstream'?: Array<string>;
|
|
85
|
+
};
|
|
86
|
+
interface SafeFrameConfig {
|
|
87
|
+
allowExpansionByPush?: boolean;
|
|
88
|
+
allowExpansionByOverlay?: boolean;
|
|
89
|
+
}
|
|
90
|
+
interface EidsUserSource {
|
|
91
|
+
id: string;
|
|
92
|
+
source: string;
|
|
93
|
+
}
|
|
94
|
+
interface AstUserIds {
|
|
95
|
+
type: string;
|
|
96
|
+
eids: Array<EidsUserSource>;
|
|
97
|
+
}
|
|
98
|
+
interface AstUser {
|
|
99
|
+
externalUid?: string;
|
|
100
|
+
dnt?: boolean;
|
|
101
|
+
userIds?: Array<AstUserIds>;
|
|
102
|
+
}
|
|
103
|
+
interface AstTrackingManagement {
|
|
104
|
+
native?: {
|
|
105
|
+
loadViewabilityScriptAt?: 'adresponse' | 'impression';
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
interface AstRenderingManagement {
|
|
109
|
+
sandboxAdIframe: boolean;
|
|
110
|
+
sandboxAttributes: Array<string>;
|
|
111
|
+
}
|
|
112
|
+
interface AstPageOptions {
|
|
113
|
+
keywords: Record<string, AstKeywordValue>;
|
|
114
|
+
enableSafeFrame?: boolean;
|
|
115
|
+
disablePsa?: boolean;
|
|
116
|
+
user?: AstUser;
|
|
117
|
+
member?: number;
|
|
118
|
+
trackingManagement?: AstTrackingManagement;
|
|
119
|
+
renderingManagement?: AstRenderingManagement;
|
|
120
|
+
}
|
|
121
|
+
interface AstNativeIcon {
|
|
122
|
+
url: string;
|
|
123
|
+
height?: number;
|
|
124
|
+
width?: number;
|
|
125
|
+
prevent_crop?: boolean;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare const DeviceTypes: {
|
|
129
|
+
readonly MOBILE: "mobile";
|
|
130
|
+
readonly TABLET: "tablet";
|
|
131
|
+
readonly DESKTOP: "desktop";
|
|
132
|
+
};
|
|
133
|
+
type DeviceType = (typeof DeviceTypes)[keyof typeof DeviceTypes];
|
|
134
|
+
|
|
135
|
+
declare const Countries: {
|
|
136
|
+
readonly NO: "no";
|
|
137
|
+
readonly SE: "se";
|
|
138
|
+
};
|
|
139
|
+
type Country = (typeof Countries)[keyof typeof Countries];
|
|
140
|
+
|
|
141
|
+
declare const PageTypes: {
|
|
142
|
+
readonly FRONT: "front";
|
|
143
|
+
readonly ARTICLE: "article";
|
|
144
|
+
readonly SECTION: "section";
|
|
145
|
+
readonly COLLECTION: "collection";
|
|
146
|
+
readonly OTHER: "other";
|
|
147
|
+
};
|
|
148
|
+
type PageType = (typeof PageTypes)[keyof typeof PageTypes];
|
|
149
|
+
|
|
150
|
+
interface AdvertisingIdentifiers {
|
|
151
|
+
xandr?: {
|
|
152
|
+
ppId1?: string;
|
|
153
|
+
ppId2?: string;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
interface TrackerInstance {
|
|
157
|
+
getAdvertisingIdentifiers: () => Promise<AdvertisingIdentifiers>;
|
|
158
|
+
getUserId: () => Promise<undefined | string | number>;
|
|
159
|
+
getEnvironmentId: () => Promise<undefined | string>;
|
|
160
|
+
getActor: () => Promise<undefined | unknown>;
|
|
161
|
+
state?: {
|
|
162
|
+
pageViewId?: string;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
interface PulseInstance {
|
|
166
|
+
pulseTracker: TrackerInstance;
|
|
167
|
+
getSDK: () => Promise<TrackerInstance>;
|
|
168
|
+
trackElementView?: (eventInput: unknown) => Promise<void>;
|
|
169
|
+
trackElementClick?: (eventInput: unknown) => Promise<void>;
|
|
170
|
+
trackClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
171
|
+
trackViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
172
|
+
}
|
|
173
|
+
interface Tracker {
|
|
174
|
+
clientId: string;
|
|
175
|
+
instance: TrackerInstance;
|
|
176
|
+
}
|
|
177
|
+
interface Pulse {
|
|
178
|
+
clientId: string;
|
|
179
|
+
instance: PulseInstance;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
type MarginPriority = 'high' | 'normal' | 'low';
|
|
183
|
+
interface PrioEntry {
|
|
184
|
+
renderMargin: number;
|
|
185
|
+
refreshMargin: number;
|
|
186
|
+
}
|
|
187
|
+
interface PrioPreloadMarginMap {
|
|
188
|
+
high?: Partial<PrioEntry>;
|
|
189
|
+
normal?: Partial<PrioEntry>;
|
|
190
|
+
low?: Partial<PrioEntry>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
type DistributionTypes = 'REALESTATE' | 'REALESTATE_RETARGET' | 'REALESTATE_LEISURE' | 'REALESTATE_LEISURE_RETARGET' | 'REALESTATE_PROJECT' | 'REALESTATE_PROJECT_RETARGET' | 'CAR' | 'JOB';
|
|
194
|
+
|
|
195
|
+
declare const Newsrooms: {
|
|
196
|
+
readonly SVD: "svd";
|
|
197
|
+
readonly VG: "vg";
|
|
198
|
+
readonly GODARE: "godare";
|
|
199
|
+
readonly AFTENPOSTEN: "aftenposten";
|
|
200
|
+
readonly SA: "sa";
|
|
201
|
+
readonly BT: "bt";
|
|
202
|
+
readonly AFTONBLADET: "aftonbladet";
|
|
203
|
+
readonly E24: "e24";
|
|
204
|
+
readonly MINMOTE: "minmote";
|
|
205
|
+
readonly PENT: "pent";
|
|
206
|
+
readonly GODT: "godt";
|
|
207
|
+
readonly TEK: "tekno";
|
|
208
|
+
readonly KLART: "klart";
|
|
209
|
+
readonly POLARIS: "polaris";
|
|
210
|
+
};
|
|
211
|
+
type Newsroom = (typeof Newsrooms)[keyof typeof Newsrooms];
|
|
212
|
+
|
|
213
|
+
interface SiteConfig {
|
|
214
|
+
publisher: string;
|
|
215
|
+
country: Country;
|
|
216
|
+
astUrl?: string;
|
|
217
|
+
gptUrl?: string;
|
|
218
|
+
testMember?: number;
|
|
219
|
+
pageType: PageType;
|
|
220
|
+
pageOptions: AstPageOptions;
|
|
221
|
+
placements: Placements;
|
|
222
|
+
keywordsConfig?: KeywordsConfig;
|
|
223
|
+
deviceType: DeviceType;
|
|
224
|
+
isMobileApp?: boolean;
|
|
225
|
+
glimr?: GlimrConfig;
|
|
226
|
+
tcf?: TCFConfig;
|
|
227
|
+
prebid?: PrebidConfig;
|
|
228
|
+
tracker?: Tracker;
|
|
229
|
+
pulse?: Pulse;
|
|
230
|
+
finnBlink?: FinnBlinkConfig;
|
|
231
|
+
wallpaper?: WallpaperConfig;
|
|
232
|
+
fullscreenScroll?: FullscreenScrollConfig;
|
|
233
|
+
appearanceConfig: AppearanceConfig;
|
|
234
|
+
queryConfig?: QueryConfig;
|
|
235
|
+
refreshConfig?: RefreshConfig;
|
|
236
|
+
preloadMarginsConfig?: Record<DeviceType, PrioPreloadMarginMap>;
|
|
237
|
+
takeover?: TakeoverConfig;
|
|
238
|
+
brandmetrics?: BrandmetricsConfig;
|
|
239
|
+
gdpr?: GdprConfig;
|
|
240
|
+
brandboard?: BrandboardConfig;
|
|
241
|
+
norstat?: NorstatConfig;
|
|
242
|
+
siteSpecificConfig?: SiteSpecificConfig;
|
|
243
|
+
sponsorstripe?: SponsorstripeConfig;
|
|
244
|
+
privacyBroker?: PrivacyBrokerConfig;
|
|
245
|
+
drEdition?: DrEditionConfig;
|
|
246
|
+
forwardExternalImpId?: boolean;
|
|
247
|
+
requestSize?: number;
|
|
248
|
+
nativeTrackingConfig?: NativeTrackingConfig;
|
|
249
|
+
sandboxAdIframeEnabled?: boolean;
|
|
250
|
+
pageSectionsSelectors?: PageSectionsSelectors;
|
|
251
|
+
editableConfiguration?: {
|
|
252
|
+
useS3Config?: boolean;
|
|
253
|
+
pageTypeToFetch?: string;
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
interface NativeTrackingConfig {
|
|
257
|
+
nativeTrackingEnabled?: boolean;
|
|
258
|
+
fireImpressionsBasedOnAppearanceThreshold?: boolean;
|
|
259
|
+
}
|
|
260
|
+
interface SiteSpecificConfig {
|
|
261
|
+
publisherClassName?: Newsroom;
|
|
262
|
+
fullWidthFormatClassName?: 'netboard' | 'panorama';
|
|
263
|
+
classesToRemoveOnRefresh?: Array<string>;
|
|
264
|
+
}
|
|
265
|
+
interface Placement {
|
|
266
|
+
id: string;
|
|
267
|
+
sizes: Array<Array<number>>;
|
|
268
|
+
allowedFormats: Array<AstAdType>;
|
|
269
|
+
invCode: string;
|
|
270
|
+
keywords: any;
|
|
271
|
+
refresh?: boolean;
|
|
272
|
+
bfCacheRefresh?: boolean;
|
|
273
|
+
priority?: MarginPriority;
|
|
274
|
+
ssa?: boolean;
|
|
275
|
+
threshold?: number;
|
|
276
|
+
finnBlink?: FinnBlinkPlacementConfig;
|
|
277
|
+
nativeCustomProperties?: Array<string>;
|
|
278
|
+
minViewWidth?: number;
|
|
279
|
+
dynamicSizeWidthCheck?: boolean;
|
|
280
|
+
safeframeConfig?: SafeFrameConfig;
|
|
281
|
+
resizeAdParentDiv?: boolean;
|
|
282
|
+
positionConfig?: Array<PositionConfig>;
|
|
283
|
+
drEdition?: DrEditionPlacementConfig;
|
|
284
|
+
isBackfill?: boolean;
|
|
285
|
+
}
|
|
286
|
+
interface Placements {
|
|
287
|
+
desktop: Array<Placement>;
|
|
288
|
+
tablet: Array<Placement>;
|
|
289
|
+
mobile: Array<Placement>;
|
|
290
|
+
}
|
|
291
|
+
interface AppearanceConfig {
|
|
292
|
+
defaultThreshold: {
|
|
293
|
+
mobile: number;
|
|
294
|
+
tablet: number;
|
|
295
|
+
desktop: number;
|
|
296
|
+
};
|
|
297
|
+
clearProbableDimensionsEnabled?: boolean;
|
|
298
|
+
isDarkModeEnabled?: boolean;
|
|
299
|
+
mainColumnWidth?: number;
|
|
300
|
+
subsectionTheme?: string;
|
|
301
|
+
}
|
|
302
|
+
interface PageSectionsSelectors {
|
|
303
|
+
top?: string;
|
|
304
|
+
left?: string;
|
|
305
|
+
right?: string;
|
|
306
|
+
main?: string;
|
|
307
|
+
mainFirstColumn?: string;
|
|
308
|
+
mainSecondColumn?: string;
|
|
309
|
+
}
|
|
310
|
+
interface KeywordsConfig {
|
|
311
|
+
includeCountingKeywordInTags?: boolean;
|
|
312
|
+
sponsors?: string;
|
|
313
|
+
}
|
|
314
|
+
interface QueryConfig {
|
|
315
|
+
queryByDataDevice?: boolean;
|
|
316
|
+
lazyLoadingV3?: {
|
|
317
|
+
enabled: boolean;
|
|
318
|
+
rootMargin: string;
|
|
319
|
+
};
|
|
320
|
+
placementBatches?: PlacementBatchesConfig;
|
|
321
|
+
}
|
|
322
|
+
interface PositionConfig {
|
|
323
|
+
adPositionIndex: number;
|
|
324
|
+
sizes?: Array<Array<number>>;
|
|
325
|
+
keywords?: AstKeywords;
|
|
326
|
+
}
|
|
327
|
+
type FinnBlinkTheme = 'light' | 'dark';
|
|
328
|
+
interface FinnBlinkConfig {
|
|
329
|
+
enabled?: boolean;
|
|
330
|
+
channel?: string;
|
|
331
|
+
userId?: string;
|
|
332
|
+
uuid?: string;
|
|
333
|
+
identifierUrl?: string;
|
|
334
|
+
theme?: FinnBlinkTheme;
|
|
335
|
+
replacementConfig?: {
|
|
336
|
+
adsToReplace?: Array<Array<string>>;
|
|
337
|
+
sizes?: {
|
|
338
|
+
width: number;
|
|
339
|
+
height: number;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
interface FinnBlinkPlacementConfig {
|
|
344
|
+
enabled: boolean;
|
|
345
|
+
renderOnlyWithAdBlock?: boolean;
|
|
346
|
+
position: string;
|
|
347
|
+
distributionTypes?: Array<DistributionTypes>;
|
|
348
|
+
height?: number;
|
|
349
|
+
limit?: number;
|
|
350
|
+
offset?: number;
|
|
351
|
+
requireImage?: boolean;
|
|
352
|
+
rec?: boolean;
|
|
353
|
+
theme?: FinnBlinkTheme;
|
|
354
|
+
advertoryTheme?: string;
|
|
355
|
+
}
|
|
356
|
+
interface PrebidConfig {
|
|
357
|
+
enabled: boolean;
|
|
358
|
+
url: string;
|
|
359
|
+
id: string;
|
|
360
|
+
externalUidInAuctionEnabled: boolean;
|
|
361
|
+
relevantCbTimeout?: number;
|
|
362
|
+
forwardGlimrTags?: boolean;
|
|
363
|
+
}
|
|
364
|
+
interface TCFConfig {
|
|
365
|
+
enabled: boolean;
|
|
366
|
+
timeout?: number;
|
|
367
|
+
}
|
|
368
|
+
interface GlimrConfig {
|
|
369
|
+
enabled: boolean;
|
|
370
|
+
clientId: string;
|
|
371
|
+
}
|
|
372
|
+
interface WallpaperConfig {
|
|
373
|
+
enabled: boolean;
|
|
374
|
+
options?: WallpaperConfigOptions;
|
|
375
|
+
}
|
|
376
|
+
interface WallpaperConfigOptions {
|
|
377
|
+
appMainContainerSelector?: string;
|
|
378
|
+
wallpaperAnchorSelector?: string;
|
|
379
|
+
}
|
|
380
|
+
interface BrandmetricsConfig {
|
|
381
|
+
enabled: boolean;
|
|
382
|
+
url: string;
|
|
383
|
+
}
|
|
384
|
+
interface GdprConfig {
|
|
385
|
+
url?: string;
|
|
386
|
+
allowHidingAds?: boolean;
|
|
387
|
+
}
|
|
388
|
+
interface FullscreenScrollConfig {
|
|
389
|
+
fadingHeaderEnabled: boolean;
|
|
390
|
+
headerSelectors: Array<string>;
|
|
391
|
+
skyscraperSelectors?: Array<string>;
|
|
392
|
+
headerZIndex: number;
|
|
393
|
+
overlayStyles?: OverlayStyles;
|
|
394
|
+
moveCogwheelToTheLeft?: boolean;
|
|
395
|
+
}
|
|
396
|
+
interface OverlayStyles {
|
|
397
|
+
backgroundColor?: string;
|
|
398
|
+
foregroundColor?: string;
|
|
399
|
+
articlesContainerWidth?: number;
|
|
400
|
+
margin?: string;
|
|
401
|
+
beforeContentValue?: string;
|
|
402
|
+
}
|
|
403
|
+
interface RefreshConfig {
|
|
404
|
+
delayTime?: number;
|
|
405
|
+
scrollRefreshEnabled?: boolean;
|
|
406
|
+
visibilityStateRefreshEnabled?: boolean;
|
|
407
|
+
backForwardNavigationRefreshEnabled?: boolean;
|
|
408
|
+
}
|
|
409
|
+
interface WelcomePageConfig {
|
|
410
|
+
showArrowIcon?: boolean;
|
|
411
|
+
headerElementSelector?: string;
|
|
412
|
+
buttonLabel?: string;
|
|
413
|
+
showCloseButton?: boolean;
|
|
414
|
+
}
|
|
415
|
+
interface BrandboardConfig {
|
|
416
|
+
enabled: boolean;
|
|
417
|
+
sidebarContainerSelector: string;
|
|
418
|
+
sidebarItemsContainerSelector: string;
|
|
419
|
+
}
|
|
420
|
+
interface SplashConfig {
|
|
421
|
+
themeColors?: ThemeColors;
|
|
422
|
+
buttonLabel: string;
|
|
423
|
+
logotype: Logotype;
|
|
424
|
+
showArrowIcon?: boolean;
|
|
425
|
+
showAnnonsLabel?: boolean;
|
|
426
|
+
}
|
|
427
|
+
interface TakeoverConfig {
|
|
428
|
+
enabled?: boolean;
|
|
429
|
+
splash?: SplashConfig;
|
|
430
|
+
welcomePage?: WelcomePageConfig;
|
|
431
|
+
topscroller?: WelcomePageConfig;
|
|
432
|
+
cookieCapName?: string | null;
|
|
433
|
+
cookieCapTime?: number;
|
|
434
|
+
setCookieCapForNotShownAd?: boolean;
|
|
435
|
+
}
|
|
436
|
+
interface Logotype {
|
|
437
|
+
url: string;
|
|
438
|
+
alt: string;
|
|
439
|
+
}
|
|
440
|
+
interface ThemeColors {
|
|
441
|
+
backgroundColor: string;
|
|
442
|
+
color: string;
|
|
443
|
+
}
|
|
444
|
+
interface NorstatConfig {
|
|
445
|
+
enabled: true;
|
|
446
|
+
}
|
|
447
|
+
interface SponsorstripeConfig {
|
|
448
|
+
toogleEnabled: boolean;
|
|
449
|
+
headerSelector?: string;
|
|
450
|
+
containersSelectors?: Array<string>;
|
|
451
|
+
}
|
|
452
|
+
interface PrivacyBrokerConfig {
|
|
453
|
+
enabled: boolean;
|
|
454
|
+
clientId: string;
|
|
455
|
+
storageKeyPrefix: string;
|
|
456
|
+
}
|
|
457
|
+
interface DrEditionConfig {
|
|
458
|
+
enabled: boolean;
|
|
459
|
+
containerSelector: string;
|
|
460
|
+
wrapperSelector: string;
|
|
461
|
+
fallbackGlobalEditionName?: string;
|
|
462
|
+
videoScriptUrl?: string;
|
|
463
|
+
addPreviewVideo?: (videoElement: HTMLElement) => void;
|
|
464
|
+
}
|
|
465
|
+
interface DrEditionPlacementConfig {
|
|
466
|
+
editionName: string;
|
|
467
|
+
}
|
|
468
|
+
interface DevicePlacementBatches {
|
|
469
|
+
[key: string]: Array<string>;
|
|
470
|
+
}
|
|
471
|
+
type PlacementBatchesConfig = {
|
|
472
|
+
[device in DeviceType]: DevicePlacementBatches;
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
interface DrEditionParams {
|
|
476
|
+
editionName: string;
|
|
477
|
+
columnName?: string;
|
|
478
|
+
primaryPosition?: string;
|
|
479
|
+
drEditionConfig: DrEditionConfig;
|
|
480
|
+
device: DeviceType;
|
|
481
|
+
tcf?: TCFConfig;
|
|
482
|
+
renderAsBackfill?: boolean;
|
|
483
|
+
}
|
|
484
|
+
interface DrEditionObserverConfig {
|
|
485
|
+
publisher: string;
|
|
486
|
+
drEditionConfig: DrEditionConfig;
|
|
487
|
+
device: DeviceType;
|
|
488
|
+
pageType: PageType;
|
|
489
|
+
country: Country;
|
|
490
|
+
}
|
|
491
|
+
interface VideoConfiguration {
|
|
492
|
+
id: number;
|
|
493
|
+
vendor: string;
|
|
494
|
+
node: string;
|
|
495
|
+
autoplay: boolean;
|
|
496
|
+
mute: boolean;
|
|
497
|
+
videoLoop: boolean;
|
|
498
|
+
preview: {
|
|
499
|
+
url: string;
|
|
500
|
+
thumbnail: {
|
|
501
|
+
url: string;
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
interface PulseData {
|
|
506
|
+
id: string;
|
|
507
|
+
url: string;
|
|
508
|
+
clientName: string;
|
|
509
|
+
title: string;
|
|
510
|
+
creativeId: string;
|
|
511
|
+
itemId: string;
|
|
512
|
+
editionId: string;
|
|
513
|
+
algorithm?: 'sov' | 'mab';
|
|
514
|
+
probability?: number;
|
|
515
|
+
}
|
|
516
|
+
interface DrEdition$1 {
|
|
517
|
+
itemId: string;
|
|
518
|
+
mobileHTML: string;
|
|
519
|
+
desktopHTML: string;
|
|
520
|
+
desktopIrisVersion: string;
|
|
521
|
+
mobileIrisVersion: string;
|
|
522
|
+
videoConfiguration: VideoConfiguration;
|
|
523
|
+
pulseData: PulseData;
|
|
524
|
+
css: string;
|
|
525
|
+
}
|
|
526
|
+
interface Renderer {
|
|
527
|
+
render: (container: HTMLElement, drEditionAd: DrEdition$1, drEditionParams: DrEditionParams) => void;
|
|
528
|
+
}
|
|
529
|
+
interface VideoManager {
|
|
530
|
+
handle: (drEditionAd: DrEdition$1, drEditionParams: DrEditionParams) => Promise<void>;
|
|
531
|
+
}
|
|
532
|
+
interface PulseManager {
|
|
533
|
+
trackContentView: (root: HTMLElement, content: DrEdition$1, drEditionParams: DrEditionParams) => Promise<void>;
|
|
534
|
+
trackContentClick: (root: HTMLElement, content: DrEdition$1, drEditionParams: DrEditionParams) => Promise<void>;
|
|
535
|
+
}
|
|
536
|
+
interface DrEditionComponentProps {
|
|
537
|
+
editionName: string;
|
|
538
|
+
fallbackTargetId: string;
|
|
539
|
+
children: ReactNode;
|
|
540
|
+
pulseData: {
|
|
541
|
+
[key: string]: string;
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
type DrEditionObserverProperties = Pick<DrEditionObserverConfig, 'publisher' | 'pageType' | 'country'>;
|
|
545
|
+
|
|
546
|
+
declare class IdentityFacade {
|
|
547
|
+
private readonly identity;
|
|
548
|
+
constructor(identity: Identity | undefined);
|
|
549
|
+
getIdentityUser(): Promise<HasSessionSuccessResponse | null>;
|
|
550
|
+
isUserLoggedIn(): Promise<boolean>;
|
|
551
|
+
onIdentityLogout(callback: () => void): void;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
declare class DrEditionService {
|
|
555
|
+
private readonly identityFacade;
|
|
556
|
+
private readonly tracker?;
|
|
557
|
+
constructor(identityFacade: IdentityFacade, tracker?: TrackerInstance | undefined);
|
|
558
|
+
private buildUrl;
|
|
559
|
+
fetchData(drEditionParams: DrEditionParams): Promise<DrEdition$1 | null>;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
declare class DrEditionManager {
|
|
563
|
+
private readonly drEditionService;
|
|
564
|
+
private readonly rendererManager;
|
|
565
|
+
private readonly videoManager;
|
|
566
|
+
private readonly pulseManager;
|
|
567
|
+
private readonly drEditionAds;
|
|
568
|
+
constructor(drEditionService: DrEditionService, rendererManager: Renderer, videoManager: VideoManager, pulseManager: PulseManager);
|
|
569
|
+
fetchAndRenderAd(wrapper: HTMLElement, drEditionParams: DrEditionParams): Promise<void>;
|
|
570
|
+
private observeAdView;
|
|
571
|
+
private showBackfill;
|
|
572
|
+
private hideDrEdition;
|
|
573
|
+
private observeCarousel;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
declare const getDrEditionManager: (drEditionPageProperties: DrEditionObserverProperties, identityFacade: IdentityFacade, pulse?: PulseInstance) => DrEditionManager;
|
|
577
|
+
|
|
578
|
+
declare const DrEdition: ({ editionName, fallbackTargetId, children, pulseData }: DrEditionComponentProps) => ReactNode;
|
|
579
|
+
|
|
580
|
+
declare const handleDrEditionBackfill: (config: SiteConfig, adObj: AstAdObj) => Promise<void>;
|
|
581
|
+
declare const handleDrEdition: (siteConfig: SiteConfig) => Promise<void>;
|
|
582
|
+
|
|
583
|
+
export { DrEdition, getDrEditionManager, handleDrEdition, handleDrEditionBackfill };
|