@20minutes/tyr 2.4.5 → 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.5",
3
+ "version": "2.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/20minutes/tyr.git"
@@ -71,22 +71,22 @@
71
71
  "@babel/eslint-parser": "^7.26.8",
72
72
  "@eslint/compat": "^1.2.7",
73
73
  "@eslint/eslintrc": "^3.3.0",
74
- "@eslint/js": "^9.21.0",
74
+ "@eslint/js": "^9.22.0",
75
75
  "@graphql-codegen/cli": "^5.0.5",
76
76
  "@graphql-codegen/typescript": "^4.1.5",
77
77
  "@graphql-codegen/typescript-operations": "^4.5.1",
78
78
  "@octokit/core": "5.1.0",
79
- "@rollup/plugin-commonjs": "^28.0.2",
79
+ "@rollup/plugin-commonjs": "^28.0.3",
80
80
  "@rollup/plugin-node-resolve": "^16.0.0",
81
81
  "@rollup/plugin-replace": "^6.0.2",
82
82
  "@rollup/plugin-terser": "^0.4.4",
83
- "@storybook/addon-actions": "^8.6.3",
84
- "@storybook/addon-essentials": "^8.6.3",
85
- "@storybook/addon-interactions": "^8.6.3",
86
- "@storybook/addon-links": "^8.6.3",
87
- "@storybook/manager-api": "^8.6.3",
88
- "@storybook/react": "^8.6.3",
89
- "@storybook/react-vite": "^8.6.3",
83
+ "@storybook/addon-actions": "^8.6.4",
84
+ "@storybook/addon-essentials": "^8.6.4",
85
+ "@storybook/addon-interactions": "^8.6.4",
86
+ "@storybook/addon-links": "^8.6.4",
87
+ "@storybook/manager-api": "^8.6.4",
88
+ "@storybook/react": "^8.6.4",
89
+ "@storybook/react-vite": "^8.6.4",
90
90
  "@storybook/theming": "^8.5.5",
91
91
  "@testing-library/dom": "^10.4.0",
92
92
  "@testing-library/jest-dom": "^6.6.3",
@@ -94,22 +94,22 @@
94
94
  "@types/draft-js": "^0.11.18",
95
95
  "@types/googletag": "^3.3.0",
96
96
  "@types/jsdom": "^21.1.7",
97
- "@types/node": "^22.13.9",
97
+ "@types/node": "^22.13.10",
98
98
  "@types/poool-access": "^5.18.0",
99
99
  "@types/poool-engage": "^2.1.2",
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
- "@vitest/coverage-v8": "^3.0.7",
106
+ "@vitest/coverage-v8": "^3.0.8",
107
107
  "babel-loader": "^10.0.0",
108
108
  "eslint": "^8.57.1",
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",
@@ -117,7 +117,7 @@
117
117
  "eslint-plugin-prettier": "^5.2.3",
118
118
  "eslint-plugin-react": "^7.37.4",
119
119
  "eslint-plugin-simple-import-sort": "^12.1.1",
120
- "eslint-plugin-storybook": "^0.11.3",
120
+ "eslint-plugin-storybook": "^0.11.4",
121
121
  "globals": "^16.0.0",
122
122
  "graphql": "^16.10.0",
123
123
  "husky": "^9.1.7",
@@ -128,21 +128,21 @@
128
128
  "prettier": "3.5.3",
129
129
  "purgecss": "^7.0.2",
130
130
  "purgecss-from-html": "^7.0.2",
131
- "rollup": "^4.34.9",
131
+ "rollup": "^4.35.0",
132
132
  "rollup-plugin-cleanup": "^3.2.1",
133
133
  "rollup-plugin-esbuild": "^6.2.1",
134
134
  "rollup-plugin-typescript-paths": "^1.5.0",
135
135
  "rollup-plugin-visualizer": "^5.14.0",
136
136
  "schema-dts": "^1.1.5",
137
- "storybook": "^8.6.3",
137
+ "storybook": "^8.6.4",
138
138
  "ts-node": "^10.9.2",
139
139
  "tsconfig-paths": "^4.2.0",
140
140
  "typed-query-selector": "^2.12.0",
141
141
  "typescript": "^4.9.5",
142
- "vite": "^6.2.0",
142
+ "vite": "^6.2.1",
143
143
  "vite-plugin-dts": "^4.5.3",
144
144
  "vite-tsconfig-paths": "^5.1.4",
145
- "vitest": "3.0.7"
145
+ "vitest": "3.0.8"
146
146
  },
147
147
  "resolutions": {
148
148
  "uri-js": "npm:uri-js-replace",