@20minutes/tyr 1.4.4 → 1.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.
- package/dist/css/livePage-desktop-critical.css +1 -1
- package/dist/css/livePage-desktop-no-critical.css +1 -1
- package/dist/css/livePage-mobile-critical.css +1 -1
- package/dist/css/livePage-mobile-no-critical.css +1 -1
- package/dist/index.es.js +2696 -2692
- package/dist/index.umd.js +74 -74
- package/dist/js/main.min.js +2 -2
- package/dist/src/components/organisms/CardsList/CardsList.d.ts +2 -2
- package/dist/src/containers/ArticleListBottomContainer/useArticleListBottomContainer.d.ts +0 -1
- package/dist/src/helpers/transformArticlesForTagPage.d.ts +2 -2
- package/dist/src/types/graphql.d.ts +9 -4
- package/package.json +3 -3
|
@@ -10,8 +10,8 @@ export interface CardsListProps extends SpacingSystemProps {
|
|
|
10
10
|
variablesForQuery?: {
|
|
11
11
|
brandId: string;
|
|
12
12
|
slug: string;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
first: number;
|
|
14
|
+
endCursor: string | null;
|
|
15
15
|
hasNextPage: boolean;
|
|
16
16
|
};
|
|
17
17
|
tagTotalArticles?: number;
|
|
@@ -6,7 +6,6 @@ export interface UseArticleListBottomContainer {
|
|
|
6
6
|
onLoadMore: () => void;
|
|
7
7
|
}
|
|
8
8
|
export declare const useArticleListBottomContainer: (options: {
|
|
9
|
-
layout: CardsListProps['layout'];
|
|
10
9
|
defaultArticles: CardsListProps['articles'];
|
|
11
10
|
defaultVariablesForQuery: Required<CardsListProps>['variablesForQuery'];
|
|
12
11
|
}) => UseArticleListBottomContainer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CardsListProps } from '../components/organisms/CardsList';
|
|
2
|
-
import { type
|
|
2
|
+
import { type TGetTagArticlesWithCursorQuery } from '../types/graphql';
|
|
3
3
|
export declare const transformArticlesForTagPage: ({ pageEndpoint, imgEndpoint, data, }: {
|
|
4
4
|
pageEndpoint: string;
|
|
5
5
|
imgEndpoint: string;
|
|
6
|
-
data:
|
|
6
|
+
data: TGetTagArticlesWithCursorQuery | never[];
|
|
7
7
|
}) => CardsListProps['articles'];
|
|
@@ -17430,13 +17430,13 @@ export type TGetLivePostsQuery = {
|
|
|
17430
17430
|
} | null;
|
|
17431
17431
|
} | null;
|
|
17432
17432
|
};
|
|
17433
|
-
export type
|
|
17433
|
+
export type TGetTagArticlesWithCursorQueryVariables = Exact<{
|
|
17434
17434
|
brandId: Scalars['ID']['input'];
|
|
17435
17435
|
slug: Scalars['String']['input'];
|
|
17436
|
-
|
|
17437
|
-
|
|
17436
|
+
first: Scalars['FirstElement']['input'];
|
|
17437
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
17438
17438
|
}>;
|
|
17439
|
-
export type
|
|
17439
|
+
export type TGetTagArticlesWithCursorQuery = {
|
|
17440
17440
|
__typename?: 'Query';
|
|
17441
17441
|
brand?: {
|
|
17442
17442
|
__typename?: 'BrandSingleConnection';
|
|
@@ -17453,6 +17453,11 @@ export type TGetTagArticlesQuery = {
|
|
|
17453
17453
|
publishableContents?: {
|
|
17454
17454
|
__typename?: 'PublishableContentListConnection';
|
|
17455
17455
|
totalCount?: number | null;
|
|
17456
|
+
pageInfo: {
|
|
17457
|
+
__typename?: 'PageInfo';
|
|
17458
|
+
hasNextPage: boolean;
|
|
17459
|
+
endCursor?: string | null;
|
|
17460
|
+
};
|
|
17456
17461
|
edges?: Array<{
|
|
17457
17462
|
__typename?: 'PublishableContentEdge';
|
|
17458
17463
|
node?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/tyr",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"repository": "git@github.com:20minutes/tyr.git",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "20 Minutes",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@20minutes/eslint-config": "^1.2.6",
|
|
72
|
-
"@aws-sdk/client-s3": "3.
|
|
72
|
+
"@aws-sdk/client-s3": "3.523.0",
|
|
73
73
|
"@babel/core": "^7.23.9",
|
|
74
74
|
"@graphql-codegen/cli": "^5.0.2",
|
|
75
75
|
"@graphql-codegen/typescript": "^4.0.6",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@types/draft-js": "^0.11.17",
|
|
94
94
|
"@types/googletag": "^3.1.3",
|
|
95
95
|
"@types/jsdom": "^21.1.6",
|
|
96
|
-
"@types/react": "^18.2.
|
|
96
|
+
"@types/react": "^18.2.60",
|
|
97
97
|
"@types/react-dom": "^18.2.19",
|
|
98
98
|
"@types/sinon": "^17.0.3",
|
|
99
99
|
"@typescript-eslint/eslint-plugin": "^7.1.0",
|