@20minutes/tyr 2.4.6 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export interface ModerationProps {
3
+ enabled: boolean;
4
+ }
5
+ export declare const Moderation: React.FC<ModerationProps>;
@@ -0,0 +1 @@
1
+ export * from './Moderation';
@@ -1,4 +1,5 @@
1
1
  export * from './Cgu';
2
2
  export * from './Cookies';
3
3
  export * from './LegalMentions';
4
+ export * from './Moderation';
4
5
  export * from './Privacy';
@@ -5,5 +5,6 @@ export interface LegalPageProps extends PageTemplateProps {
5
5
  legalMentions?: React.ReactNode;
6
6
  privacy?: React.ReactNode;
7
7
  cookies?: React.ReactNode;
8
+ moderation?: React.ReactNode;
8
9
  }
9
10
  export declare const LegalPage: React.FC<LegalPageProps>;
@@ -59,3 +59,5 @@ export declare const LegalMentionsMobile: Story;
59
59
  export declare const LegalMentionsDesktop: Story;
60
60
  export declare const CookiesMobile: Story;
61
61
  export declare const CookiesDesktop: Story;
62
+ export declare const ModerationMobile: Story;
63
+ export declare const ModerationDesktop: Story;
@@ -180,6 +180,7 @@ export declare const enum ComponentNameLegal {
180
180
  LEGAL_PRIVACY = "legal/privacy",
181
181
  LEGAL_MENTIONS = "legal/mentions",
182
182
  LEGAL_COOKIES = "legal/cookies",
183
+ LEGAL_MODERATION = "legal/moderation",
183
184
  LEGAL_META = "legal/meta"
184
185
  }
185
186
  export declare const enum ComponentNameLegalNotice {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@20minutes/tyr",
3
- "version": "2.4.6",
3
+ "version": "2.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/20minutes/tyr.git"
@@ -100,8 +100,8 @@
100
100
  "@types/react": "^18.3.13",
101
101
  "@types/react-dom": "^18.3.1",
102
102
  "@types/sinon": "^17.0.4",
103
- "@typescript-eslint/eslint-plugin": "^8.26.0",
104
- "@typescript-eslint/parser": "^8.26.0",
103
+ "@typescript-eslint/eslint-plugin": "^8.26.1",
104
+ "@typescript-eslint/parser": "^8.26.1",
105
105
  "@vitejs/plugin-react": "^4.3.4",
106
106
  "@vitest/coverage-v8": "^3.0.8",
107
107
  "babel-loader": "^10.0.0",
@@ -109,7 +109,7 @@
109
109
  "eslint-config-airbnb": "^19.0.4",
110
110
  "eslint-config-prettier": "^9.1.0",
111
111
  "eslint-import-resolver-alias": "^1.1.2",
112
- "eslint-import-resolver-typescript": "^3.8.3",
112
+ "eslint-import-resolver-typescript": "^3.8.4",
113
113
  "eslint-plugin-babel": "^5.3.1",
114
114
  "eslint-plugin-import": "^2.31.0",
115
115
  "eslint-plugin-jsx-a11y": "^6.10.2",