diff --git a/package.json b/package.json index 407913e9..5e4af255 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-helsinki-headless-cms", - "version": "1.0.0-alpha270", + "version": "1.0.0-alpha271", "description": "React components for displaying Headless CMS content according to guidelines set by HDS", "main": "cjs/index.js", "module": "index.js", diff --git a/src/common/headlessService/__generated__.ts b/src/common/headlessService/__generated__.ts index 127005de..227af663 100644 --- a/src/common/headlessService/__generated__.ts +++ b/src/common/headlessService/__generated__.ts @@ -2477,8 +2477,12 @@ export type CreateUserInput = { nickname?: InputMaybe; /** A string that contains the plain text password for the user. */ password?: InputMaybe; + /** If true, this will refresh the users JWT secret. */ + refreshJwtUserSecret?: InputMaybe; /** The date the user registered. Format is Y-m-d H:i:s. */ registered?: InputMaybe; + /** If true, this will revoke the users JWT secret. If false, this will unrevoke the JWT secret AND issue a new one. To revoke, the user must have proper capabilities to edit users JWT secrets. */ + revokeJwtUserSecret?: InputMaybe; /** A string for whether to enable the rich editor or not. False if not empty. */ richEditing?: InputMaybe; /** An array of roles to be assigned to the user. */ @@ -4388,6 +4392,29 @@ export type LocationsSelectedCarousel = { title?: Maybe; }; +/** Input for the login mutation. */ +export type LoginInput = { + /** This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions. */ + clientMutationId?: InputMaybe; + /** The plain-text password for the user logging in. */ + password: Scalars['String']['input']; + /** The username used for login. Typically a unique or email address depending on specific configuration */ + username: Scalars['String']['input']; +}; + +/** The payload for the login mutation. */ +export type LoginPayload = { + __typename?: 'LoginPayload'; + /** JWT Token that can be used in future requests for Authentication */ + authToken?: Maybe; + /** If a 'clientMutationId' input is provided to the mutation, it will be returned as output on the mutation. This ID can be used by the client to track the progress of mutations and catch possible duplicate mutation submissions. */ + clientMutationId?: Maybe; + /** A JWT token that can be used in future requests to get a refreshed jwtAuthToken. If the refresh token used in a request is revoked or otherwise invalid, a valid Auth token will NOT be issued in the response headers. */ + refreshToken?: Maybe; + /** The user that was logged in */ + user?: Maybe; +}; + /** File details for a Media Item */ export type MediaDetails = { __typename?: 'MediaDetails'; @@ -6455,12 +6482,18 @@ export enum PostStatusEnum { DpRewriteRepublish = 'DP_REWRITE_REPUBLISH', /** Objects with the draft status */ Draft = 'DRAFT', + /** Objects with the draft-revision status */ + DraftRevision = 'DRAFT_REVISION', /** Objects with the future status */ Future = 'FUTURE', + /** Objects with the future-revision status */ + FutureRevision = 'FUTURE_REVISION', /** Objects with the inherit status */ Inherit = 'INHERIT', /** Objects with the pending status */ Pending = 'PENDING', + /** Objects with the pending-revision status */ + PendingRevision = 'PENDING_REVISION', /** Objects with the private status */ Private = 'PRIVATE', /** Objects with the publish status */ @@ -7027,6 +7060,23 @@ export type ReadingSettings = { showOnFront?: Maybe; }; +/** Input for the refreshJwtAuthToken mutation. */ +export type RefreshJwtAuthTokenInput = { + /** This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions. */ + clientMutationId?: InputMaybe; + /** A valid, previously issued JWT refresh token. If valid a new Auth token will be provided. If invalid, expired, revoked or otherwise invalid, a new AuthToken will not be provided. */ + jwtRefreshToken: Scalars['String']['input']; +}; + +/** The payload for the refreshJwtAuthToken mutation. */ +export type RefreshJwtAuthTokenPayload = { + __typename?: 'RefreshJwtAuthTokenPayload'; + /** JWT Token that can be used in future requests for Authentication */ + authToken?: Maybe; + /** If a 'clientMutationId' input is provided to the mutation, it will be returned as output on the mutation. This ID can be used by the client to track the progress of mutations and catch possible duplicate mutation submissions. */ + clientMutationId?: Maybe; +}; + /** Input for the registerUser mutation. */ export type RegisterUserInput = { /** User's AOL IM account. */ @@ -7053,8 +7103,12 @@ export type RegisterUserInput = { nickname?: InputMaybe; /** A string that contains the plain text password for the user. */ password?: InputMaybe; + /** If true, this will refresh the users JWT secret. */ + refreshJwtUserSecret?: InputMaybe; /** The date the user registered. Format is Y-m-d H:i:s. */ registered?: InputMaybe; + /** If true, this will revoke the users JWT secret. If false, this will unrevoke the JWT secret AND issue a new one. To revoke, the user must have proper capabilities to edit users JWT secrets. */ + revokeJwtUserSecret?: InputMaybe; /** A string for whether to enable the rich editor or not. False if not empty. */ richEditing?: InputMaybe; /** A string that contains the user's username. */ @@ -7445,6 +7499,10 @@ export type RootMutation = { deleteUser?: Maybe; /** Increase the count. */ increaseCount?: Maybe; + /** Login a user. Request for an authToken and User details in response */ + login?: Maybe; + /** Use a valid JWT Refresh token to retrieve a new JWT Auth Token */ + refreshJwtAuthToken?: Maybe; /** The registerUser mutation */ registerUser?: Maybe; /** The resetUserPassword mutation */ @@ -7618,6 +7676,16 @@ export type RootMutationIncreaseCountArgs = { count?: InputMaybe; }; +/** The root mutation */ +export type RootMutationLoginArgs = { + input: LoginInput; +}; + +/** The root mutation */ +export type RootMutationRefreshJwtAuthTokenArgs = { + input: RefreshJwtAuthTokenInput; +}; + /** The root mutation */ export type RootMutationRegisterUserArgs = { input: RegisterUserInput; @@ -11752,8 +11820,12 @@ export type UpdateUserInput = { nickname?: InputMaybe; /** A string that contains the plain text password for the user. */ password?: InputMaybe; + /** If true, this will refresh the users JWT secret. */ + refreshJwtUserSecret?: InputMaybe; /** The date the user registered. Format is Y-m-d H:i:s. */ registered?: InputMaybe; + /** If true, this will revoke the users JWT secret. If false, this will unrevoke the JWT secret AND issue a new one. To revoke, the user must have proper capabilities to edit users JWT secrets. */ + revokeJwtUserSecret?: InputMaybe; /** A string for whether to enable the rich editor or not. False if not empty. */ richEditing?: InputMaybe; /** An array of roles to be assigned to the user. */ @@ -11809,12 +11881,22 @@ export type User = Commenter & isContentNode: Scalars['Boolean']['output']; /** Whether the node represents the front page. */ isFrontPage: Scalars['Boolean']['output']; + /** Whether the JWT User secret has been revoked. If the secret has been revoked, auth tokens will not be issued until an admin, or user with proper capabilities re-issues a secret for the user. */ + isJwtAuthSecretRevoked: Scalars['Boolean']['output']; /** Whether the node represents the blog page. */ isPostsPage: Scalars['Boolean']['output']; /** Whether the object is restricted from the current viewer */ isRestricted?: Maybe; /** Whether the node is a Term */ isTermNode: Scalars['Boolean']['output']; + /** The expiration for the JWT Token for the user. If not set custom for the user, it will use the default sitewide expiration setting */ + jwtAuthExpiration?: Maybe; + /** A JWT token that can be used in future requests for authentication/authorization */ + jwtAuthToken?: Maybe; + /** A JWT token that can be used in future requests to get a refreshed jwtAuthToken. If the refresh token used in a request is revoked or otherwise invalid, a valid Auth token will NOT be issued in the response headers. */ + jwtRefreshToken?: Maybe; + /** A unique secret tied to the users JWT token that can be revoked or refreshed. Revoking the secret prevents JWT tokens from being issued to the user. Refreshing the token invalidates previously issued tokens, but allows new tokens to be issued. */ + jwtUserSecret?: Maybe; /** Last name of the user. This is equivalent to the WP_User->user_last_name property. */ lastName?: Maybe; /** The preferred language locale set for the user. Value derived from get_user_locale(). */ @@ -12040,6 +12122,8 @@ export enum UserRoleEnum { /** User role with specific capabilities */ HeadlessCmsViewer = 'HEADLESS_CMS_VIEWER', /** User role with specific capabilities */ + Revisor = 'REVISOR', + /** User role with specific capabilities */ Subscriber = 'SUBSCRIBER', } @@ -12753,6 +12837,9 @@ export type PostFragment = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -12780,6 +12867,9 @@ export type PostFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -12836,6 +12926,9 @@ export type PostFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -12896,6 +12989,9 @@ export type PostFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -12924,6 +13020,9 @@ export type PostFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -13022,6 +13121,9 @@ export type PostFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -13045,6 +13147,9 @@ export type PostFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -13163,6 +13268,9 @@ export type ArticleQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -13190,6 +13298,9 @@ export type ArticleQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -13246,6 +13357,9 @@ export type ArticleQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -13306,6 +13420,9 @@ export type ArticleQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -13334,6 +13451,9 @@ export type ArticleQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -13432,6 +13552,9 @@ export type ArticleQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -13455,6 +13578,9 @@ export type ArticleQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -13597,6 +13723,9 @@ export type PostsQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -13624,6 +13753,9 @@ export type PostsQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -13683,6 +13815,9 @@ export type PostsQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -13743,6 +13878,9 @@ export type PostsQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -13774,6 +13912,9 @@ export type PostsQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -13875,6 +14016,9 @@ export type PostsQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -13898,6 +14042,9 @@ export type PostsQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -14174,6 +14321,9 @@ export type MenuItemFragment = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -14201,6 +14351,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -14260,6 +14413,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -14320,6 +14476,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -14351,6 +14510,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -14452,6 +14614,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -14475,6 +14640,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -14555,6 +14723,9 @@ export type MenuItemFragment = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -14582,6 +14753,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -14641,6 +14815,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -14701,6 +14878,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -14732,6 +14912,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -14833,6 +15016,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -14856,6 +15042,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -14979,6 +15168,9 @@ export type MenuItemFragment = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -15006,6 +15198,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -15065,6 +15260,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -15125,6 +15323,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -15156,6 +15357,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -15257,6 +15461,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -15280,6 +15487,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -15360,6 +15570,9 @@ export type MenuItemFragment = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -15387,6 +15600,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -15446,6 +15662,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -15506,6 +15725,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -15537,6 +15759,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -15638,6 +15863,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -15661,6 +15889,9 @@ export type MenuItemFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -15818,6 +16049,9 @@ export type MenuPageFieldsFragment = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -15845,6 +16079,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -15901,6 +16138,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -15961,6 +16201,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -15989,6 +16232,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -16087,6 +16333,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -16110,6 +16359,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -16190,6 +16442,9 @@ export type MenuPageFieldsFragment = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -16217,6 +16472,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -16273,6 +16531,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -16333,6 +16594,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -16361,6 +16625,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -16459,6 +16726,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -16482,6 +16752,9 @@ export type MenuPageFieldsFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -16653,6 +16926,9 @@ export type MenuQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -16680,6 +16956,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -16739,6 +17018,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -16799,6 +17081,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -16830,6 +17115,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -16931,6 +17219,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -16954,6 +17245,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -17034,6 +17328,9 @@ export type MenuQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -17061,6 +17358,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -17120,6 +17420,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -17180,6 +17483,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -17211,6 +17517,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -17312,6 +17621,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -17335,6 +17647,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -17458,6 +17773,9 @@ export type MenuQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -17485,6 +17803,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -17544,6 +17865,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -17604,6 +17928,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -17635,6 +17962,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -17736,6 +18066,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -17759,6 +18092,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -17839,6 +18175,9 @@ export type MenuQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -17866,6 +18205,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -17925,6 +18267,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -17985,6 +18330,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -18016,6 +18364,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -18117,6 +18468,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -18140,6 +18494,9 @@ export type MenuQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -18212,6 +18569,9 @@ export type LayoutArticlesFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -18241,6 +18601,9 @@ export type LayoutArticlesCarouselFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -18270,6 +18633,9 @@ export type LayoutPagesFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -18294,6 +18660,9 @@ export type LayoutPagesCarouselFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -18542,6 +18911,9 @@ export type PageFragment = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -18569,6 +18941,9 @@ export type PageFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -18625,6 +19000,9 @@ export type PageFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -18685,6 +19063,9 @@ export type PageFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -18713,6 +19094,9 @@ export type PageFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -18811,6 +19195,9 @@ export type PageFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -18834,6 +19221,9 @@ export type PageFragment = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -18958,6 +19348,9 @@ export type PageQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -18985,6 +19378,9 @@ export type PageQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -19041,6 +19437,9 @@ export type PageQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -19101,6 +19500,9 @@ export type PageQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -19129,6 +19531,9 @@ export type PageQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -19227,6 +19632,9 @@ export type PageQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -19250,6 +19658,9 @@ export type PageQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -19376,6 +19787,9 @@ export type PageByTemplateQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -19403,6 +19817,9 @@ export type PageByTemplateQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -19459,6 +19876,9 @@ export type PageByTemplateQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -19519,6 +19939,9 @@ export type PageByTemplateQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -19547,6 +19970,9 @@ export type PageByTemplateQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -19645,6 +20071,9 @@ export type PageByTemplateQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -19668,6 +20097,9 @@ export type PageByTemplateQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -19824,6 +20256,9 @@ export type PageChildrenSearchQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -19851,6 +20286,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -19910,6 +20348,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -19970,6 +20411,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -20001,6 +20445,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -20102,6 +20549,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -20125,6 +20575,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -20205,6 +20658,9 @@ export type PageChildrenSearchQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -20232,6 +20688,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -20291,6 +20750,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -20351,6 +20813,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -20382,6 +20847,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -20483,6 +20951,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -20506,6 +20977,9 @@ export type PageChildrenSearchQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -20652,6 +21126,9 @@ export type PagesQuery = { title?: string | null; uri?: string | null; photographerName?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; breadcrumbs?: Array<{ @@ -20679,6 +21156,9 @@ export type PagesQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -20738,6 +21218,9 @@ export type PagesQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -20798,6 +21281,9 @@ export type PagesQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -20829,6 +21315,9 @@ export type PagesQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; categories?: { @@ -20930,6 +21419,9 @@ export type PagesQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -20953,6 +21445,9 @@ export type PagesQuery = { __typename?: 'MediaItem'; altText?: string | null; mediaItemUrl?: string | null; + medium_large?: string | null; + medium?: string | null; + thumbnail?: string | null; }; } | null; } | null> | null; @@ -21131,6 +21626,9 @@ export const LayoutArticlesFragmentDoc = gql` node { altText mediaItemUrl + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } categories { @@ -21159,6 +21657,9 @@ export const LayoutPagesFragmentDoc = gql` node { altText mediaItemUrl + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } } @@ -21197,6 +21698,9 @@ export const LayoutArticlesCarouselFragmentDoc = gql` node { altText mediaItemUrl + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } categories { @@ -21226,6 +21730,9 @@ export const LayoutPagesCarouselFragmentDoc = gql` node { altText mediaItemUrl + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } } @@ -21396,6 +21903,9 @@ export const PostFragmentDoc = gql` title uri photographerName + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } breadcrumbs { @@ -21546,6 +22056,9 @@ export const PageFragmentDoc = gql` title uri photographerName + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } breadcrumbs { diff --git a/src/common/headlessService/graphql/article.graphql b/src/common/headlessService/graphql/article.graphql index 026fadfd..ddb6badd 100644 --- a/src/common/headlessService/graphql/article.graphql +++ b/src/common/headlessService/graphql/article.graphql @@ -46,6 +46,9 @@ fragment Post on Post { title uri photographerName + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } breadcrumbs { diff --git a/src/common/headlessService/graphql/modules.graphql b/src/common/headlessService/graphql/modules.graphql index dcd18261..62d91cb2 100644 --- a/src/common/headlessService/graphql/modules.graphql +++ b/src/common/headlessService/graphql/modules.graphql @@ -24,6 +24,9 @@ fragment LayoutArticles on LayoutArticles { node { altText mediaItemUrl + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } categories { @@ -50,6 +53,9 @@ fragment LayoutArticlesCarousel on LayoutArticlesCarousel { node { altText mediaItemUrl + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } categories { @@ -78,6 +84,9 @@ fragment LayoutPages on LayoutPages { node { altText mediaItemUrl + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } } @@ -100,6 +109,9 @@ fragment LayoutPagesCarousel on LayoutPagesCarousel { node { altText mediaItemUrl + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } } diff --git a/src/common/headlessService/graphql/page.graphql b/src/common/headlessService/graphql/page.graphql index 1104b511..e62a27d5 100644 --- a/src/common/headlessService/graphql/page.graphql +++ b/src/common/headlessService/graphql/page.graphql @@ -45,6 +45,9 @@ fragment Page on Page { title uri photographerName + medium_large: sourceUrl(size: MEDIUM_LARGE) + medium: sourceUrl(size: MEDIUM) + thumbnail: sourceUrl(size: THUMBNAIL) } } breadcrumbs { diff --git a/src/core/pageContent/utils.ts b/src/core/pageContent/utils.ts index c18f9576..4b13fe49 100644 --- a/src/core/pageContent/utils.ts +++ b/src/core/pageContent/utils.ts @@ -98,7 +98,7 @@ export function getArticlePageCardProps( id: item.id, title: item.title, url: item.link, - imageUrl: item.featuredImage?.node?.mediaItemUrl, + imageUrl: item.featuredImage?.node?.medium_large, ariaLabel: item.title, text: getElementTextContent((item.lead || item.content) ?? ''), hasLink: true,