Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@20minutes/tyr

Package Overview
Dependencies
Maintainers
2
Versions
449
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@20minutes/tyr - npm Package Compare versions

Comparing version 0.1.43 to 0.1.44

dist/assets/scripts/thirdParties/ads/adSlotsKeyValues.d.ts

381

dist/index.d.ts

@@ -1,376 +0,5 @@

/// <reference types="react" />
import * as React$1 from 'react';
import { LayoutType, HeaderBannerProps, HoroscopeTopicCardProps, LinkProps } from '@20minutes/hela';
import { AwsRumConfig, AwsRum } from 'aws-rum-web';
declare const enum ComponentNameCommon {
COMMON_HEADER = "common/header",
COMMON_FOOTER = "common/footer",
COMMON_NEWSLETTER = "common/newsletter",
COMMON_LIVE_CARDS = "common/live-cards",
COMMON_OVERVIEW_BAR = "common/overview-bar",
COMMON_MOST_READ_ARTICLES = "common/most-read-articles"
}
declare const enum ComponentNameRubric {
RUBRIC_CATEGORY_CARDS = "rubric/category-cards",
RUBRIC_MOST_READ_ARTICLES = "rubric/most-read-articles",
RUBRIC_PARTNER_CARDS = "rubric/partner-cards",
ARTICLE_SCROLL_PROGRESS_BAR = "rubric/scroll-progress-bar"
}
declare const enum ComponentNameArticle {
ARTICLE_BREADCRUMB = "article/breadcrumb",
ARTICLE_HEADER = "article/article-header",
ARTICLE_IMAGE_COVER = "article/article-image-cover",
ARTICLE_SOCIAL_BAR = "article/social-bar",
ARTICLE_SUMMARY = "article/article-summary",
ARTICLE_CONTENT = "article/article-content",
ARTICLE_TAG_BAR = "article/tag-bar",
ARTICLE_SIGNATURE = "article/signature",
ARTICLE_META = "article/meta"
}
declare const enum ComponentNameHoroscope {
HOROSCOPE_META = "horoscope/meta",
HOROSCOPE_BREADCRUMB = "horoscope/breadcrumb",
HOROSCOPE_HEADER_PAGE = "horoscope/header-page",
HOROSCOPE_HEADER_BANNER = "horoscope/header-banner",
HOROSCOPE_HOROSCOPE_CONTENT = "horoscope/horoscope-content",
HOROSCOPE_HOMEPAGE_CONTENT = "horoscope/horoscope-homepage-content",
HOROSCOPE_LINK = "horoscope/link",
HOROSCOPE_HOROSCOPE_TILES = "horoscope/horoscope-tiles",
HOROSCOPE_HOROSCOPE_LINK_NEXT_TYPE = "horoscope/horoscope-link-next-type"
}
declare const enum ComponentNameTag {
TAG_BREADCRUMB = "tag/breadcrumb",
TAG_HEADER_PAGE = "tag/header-page"
}
declare const enum ComponentNameSearch {
SEARCH_BREADCRUMB = "search/breadcrumb",
SEARCH_HEADER_PAGE = "search/header-page",
SEARCH_META = "search/meta"
}
declare const enum ComponentNameError {
ERROR_CONTENT = "error/content",
ERROR_META = "error/meta"
}
interface ComponentConfig<TComponentName = ComponentNameCommon | ComponentNameRubric | ComponentNameArticle | ComponentNameHoroscope | ComponentNameTag | ComponentNameSearch | ComponentNameError, TComponent = React$1.FC<any>> {
componentName: TComponentName;
component: TComponent;
expiration?: number;
}
type Privacy = {
setVisitorMode: (authority: string, mode: string) => void;
getVisitorMode: () => Record<string, unknown>;
setVisitorOptin: () => void;
};
type CustomVars = {
set: (arg0: {
site: Record<number, unknown>;
}) => void;
};
type Props = Record<string, string | boolean>;
type IdentifiedVisitor = {
set: (arg0: Record<string, unknown>) => void;
};
type PageDefaultKeys = {
name: string;
chapter1: string;
chapter2: string;
chapter3: string;
customObject: {
device: string;
};
};
type Tag = {
privacy: Privacy;
identifiedVisitor: IdentifiedVisitor;
customVars: CustomVars;
page: {
set: (pageDefaultKeys: PageDefaultKeys) => void;
};
setProps: (props: Props, persistent: boolean) => void;
dispatch: () => void;
};
interface TagConstructor {
new (): Tag;
}
interface Tracker {
Tag: TagConstructor;
instances?: Tag[];
}
type ATInternetType = {
Tracker?: Tracker;
onTrackerLoad: () => void;
};
type VariablesSmartPlayerDigitekaType = {
ULTIMEDIA_mdtk: string;
ULTIMEDIA_zone: string;
ULTIMEDIA_target: string;
ULTIMEDIA_async: boolean;
};
interface DefaultDataLayerType {
page_uri: string;
page_type?: string;
libelle?: string;
chapter1?: string;
chapter2?: string;
chapter3?: string;
chapter4?: string;
ac?: string;
an?: string;
}
interface UserDataLayerType {
darkmode: string;
adblock: string;
referrer: string;
source_type: string;
user_status: string;
}
interface VariablesDataLayerType {
signature?: string;
nbParagraphs?: number;
pageType?: string;
tags?: string;
article_section?: string;
content_id?: string;
}
interface DataLayerType extends DefaultDataLayerType, UserDataLayerType, VariablesDataLayerType {
}
type SlotType = {
slotElementId: string;
path: string;
sizes: string;
};
type TargetingType = {
pageType: string;
tags: string;
};
type Purposes = 'Cookies' | 'CookiesAnalytics' | 'CookiesSocial' | 'AdvertisingPersonalization' | 'CookiesMarketing' | 'Analytics' | 'ContentPersonalization' | 'AdDelivery' | 'DeviceAccess' | 'OfflineMatch' | 'LinkDevices' | 'PreciseGeo' | 'SelectBasicAds' | 'CreateAdsProfile' | 'SelectPersonalizedAds' | 'CreateContentProfile' | 'SelectPersonalizedContent' | 'MeasureAdPerformance' | 'MeasureContentPerformance' | 'MarketResearch' | 'ImproveProducts' | 'mesureda-6qyqaZXC' | 'publicite-Nfb9aWMW';
type PurposesList = {
[key in Purposes]: string;
};
type Notice = {
show: () => void;
};
interface Didomi {
CCPA: string[];
Purposes: PurposesList;
notice: Notice;
preferences: string[];
theme: string[];
version: string;
getUserConsentStatusForPurpose: (purpose: Purposes) => boolean;
reset: () => void;
}
type DidomiOnReady = (() => void)[];
type EventListener = {
event: string;
listener: () => void;
};
type DidomiEventListeners = EventListener[];
type CmpType = {
consentEventsCount: number;
};
type TcData = {
eventStatus: string;
listenerId: number;
};
type VariablesCmpType = {
Didomi: Didomi;
didomiOnReady: DidomiOnReady;
disapproveDidomiGTMEvents: boolean;
didomiEventListeners: DidomiEventListeners;
__tcfapi: (arg1: string, arg2: number, arg3: ((tcData: TcData, success: boolean) => void) | null, arg4?: number) => void;
};
type HubvisorType = {
cmd: (() => void)[];
};
interface AwsRumVariablesType {
APPLICATION_ID: string;
APPLICATION_VERSION: string;
APPLICATION_REGION: string;
config: AwsRumConfig;
}
interface EnvVariablesType {
googleSearchCode: string;
}
interface HtmlTemplateProps {
layout?: LayoutType;
stylesheets?: {
name: string;
url: string;
isCritical?: boolean;
}[];
preloadLinks?: {
name: string;
url: string;
as: string;
type: string;
}[];
inlineCss?: string;
didomiScript?: string;
gtmScript?: string;
gtmNoScript?: string;
mainInlineScript?: string;
memberScript?: string;
adblockScript?: string;
awsRum?: {
variables: AwsRumVariablesType;
inlineScript: string;
};
meta: React$1.ReactNode;
thirdParties?: {
variables?: VariablesDataLayerType;
inlineScript: string;
};
children: React$1.ReactNode;
envVariables?: EnvVariablesType;
}
declare const HtmlTemplate: React$1.FC<HtmlTemplateProps>;
interface PageTemplateProps {
layout?: LayoutType;
htmlTemplateProps: HtmlTemplateProps;
header: React$1.ReactNode;
footer: React$1.ReactNode;
children: React$1.ReactNode;
}
declare const PageTemplate: React$1.FC<PageTemplateProps>;
interface ArticlePageProps extends PageTemplateProps {
overviewBar: React$1.ReactNode;
breadcrumb: React$1.ReactNode;
articleHeader: React$1.ReactNode;
articleImageCover: React$1.ReactNode;
socialBarAdvanced: React$1.ReactNode;
signature: React$1.ReactNode;
articleSummary: React$1.ReactNode;
articleContent: React$1.ReactNode;
tagBar: React$1.ReactNode;
mostReadArticles: React$1.ReactNode;
newsletter: React$1.ReactNode;
liveCards: React$1.ReactNode;
categoryCards: React$1.ReactNode;
partnerCards: React$1.ReactNode;
scrollProgressBar: React$1.ReactNode;
}
declare const ArticlePage: React$1.FC<ArticlePageProps>;
interface HoroscopePageProps extends PageTemplateProps {
breadcrumb: React$1.ReactNode;
headerPage: React$1.ReactNode;
headerBanner: React$1.ReactNode;
horoscopeContent: React$1.ReactNode;
link: React$1.ReactNode;
horoscopeTiles: React$1.ReactNode;
horoscopeLinkNextType: React$1.ReactNode;
}
declare const HoroscopePage: React$1.FC<HoroscopePageProps>;
interface HoroscopeHomePageProps extends PageTemplateProps {
breadcrumb: React$1.ReactNode;
headerPage: React$1.ReactNode;
horoscopeHomepageContent: React$1.ReactNode;
horoscopeTiles: React$1.ReactNode;
horoscopeLinkNextType: React$1.ReactNode;
}
declare const HoroscopeHomePage: React$1.FC<HoroscopeHomePageProps>;
interface ErrorPageProps extends PageTemplateProps {
errorContent: React$1.ReactNode;
}
declare const ErrorPage: React$1.FC<ErrorPageProps>;
interface TagPageProps extends PageTemplateProps {
overviewBar: React$1.ReactNode;
breadcrumb: React$1.ReactNode;
headerPage: React$1.ReactNode;
newsletter: React$1.ReactNode;
}
declare const TagPage: React$1.FC<TagPageProps>;
interface SearchPageProps extends PageTemplateProps {
breadcrumb: React$1.ReactNode;
mostReadArticles: React$1.ReactNode;
headerPage: React$1.ReactNode;
}
declare const SearchPage: React$1.FC<SearchPageProps>;
type PageComponentConfig<TComponentName = string, TPropName = string> = {
name: TComponentName;
propName: TPropName;
required: boolean;
};
type PageConfig<TPageName = string, TComponentPage = React.FC<any>, TComponentName = string, TPropName = string> = {
name: TPageName;
component: TComponentPage;
expiration: number;
components: PageComponentConfig<TComponentName, TPropName>[];
};
type PageTemplateComponentConfigs = PageComponentConfig<ComponentNameCommon, keyof Pick<PageTemplateProps, 'header' | 'footer'>>[];
type ArticlePageConfig = PageConfig<'article', typeof ArticlePage, ComponentNameCommon | ComponentNameRubric | ComponentNameArticle, keyof ArticlePageProps | 'meta'>;
type HoroscopePageConfig = PageConfig<'horoscope', typeof HoroscopePage, ComponentNameCommon | ComponentNameRubric | ComponentNameHoroscope, keyof HoroscopePageProps | 'meta'>;
type HoroscopeHomePageConfig = PageConfig<'horoscopeHome', typeof HoroscopeHomePage, ComponentNameCommon | ComponentNameRubric | ComponentNameHoroscope, keyof HoroscopeHomePageProps | 'meta'>;
type ErrorPageConfig = PageConfig<'error', typeof ErrorPage, ComponentNameCommon | ComponentNameError, keyof ErrorPageProps | 'meta'>;
type TagPageConfig = PageConfig<'tag', typeof TagPage, ComponentNameCommon | ComponentNameRubric | ComponentNameTag, keyof TagPageProps | 'meta'>;
type SearchPageConfig = PageConfig<'search', typeof SearchPage, ComponentNameCommon | ComponentNameRubric | ComponentNameSearch, keyof SearchPageProps | 'meta'>;
type PageConfigs = [
ArticlePageConfig,
HoroscopePageConfig,
HoroscopeHomePageConfig,
ErrorPageConfig,
TagPageConfig,
SearchPageConfig
];
type PageConfigAvailable = PageConfigs[number];
declare global {
interface Window extends VariablesDataLayerType, VariablesCmpType, VariablesSmartPlayerDigitekaType {
layout: LayoutType;
datalayer: Partial<DataLayerType>;
gtmDatalayer: Record<number, unknown>;
awsRumVariables: AwsRumVariablesType;
dfpVariables: TargetingType;
awsRum?: AwsRum;
dfp: {
slotsReady: boolean;
hubvisorEnd: boolean;
slots: SlotType[];
targeting: Partial<TargetingType>;
} | Record<string, never>;
cmpVariables: CmpType;
ATInternet: ATInternetType;
Hubvisor: HubvisorType;
adsapp: boolean;
envVariables: EnvVariablesType;
}
}
declare const COMPONENT_CONFIGS: ComponentConfig[];
declare const PAGE_CONFIGS: PageConfigs;
interface HoroscopeHomepageContentProps {
signsContent: {
heading: HeaderBannerProps;
topics: HoroscopeTopicCardProps[];
link: LinkProps;
}[];
layout?: LayoutType;
}
declare const HoroscopeHomepageContent: React$1.FC<HoroscopeHomepageContentProps>;
export { ArticlePage, ArticlePageConfig, ArticlePageProps, COMPONENT_CONFIGS, ComponentConfig, ComponentNameArticle, ComponentNameCommon, ComponentNameError, ComponentNameHoroscope, ComponentNameRubric, ComponentNameSearch, ComponentNameTag, ErrorPage, ErrorPageConfig, ErrorPageProps, HoroscopeHomePage, HoroscopeHomePageConfig, HoroscopeHomePageProps, HoroscopeHomepageContent, HoroscopeHomepageContentProps, HoroscopePage, HoroscopePageConfig, HoroscopePageProps, HtmlTemplate, HtmlTemplateProps, PAGE_CONFIGS, PageComponentConfig, PageConfig, PageConfigAvailable, PageConfigs, PageTemplate, PageTemplateComponentConfigs, PageTemplateProps, SearchPageConfig, TagPage, TagPageConfig, TagPageProps };
export * from './types';
export * from './config';
export * from './templates';
export * from './pages';
export * from './components/molecules';
{
"name": "@20minutes/tyr",
"version": "0.1.43",
"version": "0.1.44",
"repository": "git@github.com:20minutes/tyr.git",

@@ -28,3 +28,3 @@ "license": "MIT",

"prepare": "husky install && ts-node scripts/copyAssets",
"build:library": "ts-node scripts/buildLibrary",
"build:library": "yarn vite build && rollup -c && ts-node scripts/buildStylesForPage",
"storybook": "start-storybook -p 6007",

@@ -45,3 +45,3 @@ "build:storybook": "build-storybook",

"dependencies": {
"@20minutes/hela": "^0.1.33",
"@20minutes/hela": "^0.1.34",
"aws-rum-web": "^1.12.0",

@@ -58,3 +58,3 @@ "react": "^18.2.0",

"@storybook/addon-links": "^6.5.14",
"@storybook/builder-vite": "^0.2.5",
"@storybook/builder-vite": "^0.2.6",
"@storybook/react": "^6.5.14",

@@ -66,7 +66,7 @@ "@storybook/testing-library": "0.0.13",

"@types/react-dom": "^18.0.9",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"@vitejs/plugin-react": "^3.0.0",
"babel-loader": "^9.1.0",
"eslint": "^8.29.0",
"eslint": "^8.30.0",
"eslint-config-airbnb": "^19.0.4",

@@ -88,3 +88,2 @@ "eslint-config-prettier": "^8.5.0",

"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-dts": "^4.2.3",
"rollup-plugin-esbuild": "^5.0.0",

@@ -94,4 +93,6 @@ "ts-jest": "^29.0.3",

"typescript": "^4.9.4",
"vite": "^4.0.1"
"vite": "^4.0.2",
"vite-plugin-dts": "^1.7.1",
"vite-tsconfig-paths": "^4.0.2"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc