diff --git a/__generated__/DetailSidebarFragment.graphql.ts b/__generated__/DetailSidebarFragment.graphql.ts index bf2cbaec3..240f091fa 100644 --- a/__generated__/DetailSidebarFragment.graphql.ts +++ b/__generated__/DetailSidebarFragment.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<1ea719ed1709c9e89d48268f3435e71a>> + * @generated SignedSource<<60d33ad74701a52c793d93767b84166e>> * @lightSyntaxTransform * @nogrep */ @@ -35,40 +35,22 @@ export type DetailSidebarFragment$key = { }; const node: ReaderFragment = (function(){ -var v0 = [ - { - "alias": null, - "args": null, - "concreteType": "AnalyticsEventCountSummary", - "kind": "LinkedField", - "name": "entityViews", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "ViewCountFragment" - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "AnalyticsEventCountSummary", - "kind": "LinkedField", - "name": "assetDownloads", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "DownloadCountFragment" - } - ], - "storageKey": null - } -]; +var v0 = { + "alias": null, + "args": null, + "concreteType": "AnalyticsEventCountSummary", + "kind": "LinkedField", + "name": "entityViews", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "ViewCountFragment" + } + ], + "storageKey": null +}; return { "argumentDefinitions": [], "kind": "Fragment", @@ -85,13 +67,33 @@ return { "selections": [ { "kind": "InlineFragment", - "selections": (v0/*: any*/), + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "AnalyticsEventCountSummary", + "kind": "LinkedField", + "name": "assetDownloads", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "DownloadCountFragment" + } + ], + "storageKey": null + } + ], "type": "Item", "abstractKey": null }, { "kind": "InlineFragment", - "selections": (v0/*: any*/), + "selections": [ + (v0/*: any*/) + ], "type": "Collection", "abstractKey": null } @@ -149,6 +151,6 @@ return { }; })(); -(node as any).hash = "647d60137461dbeb387c1724235e1534"; +(node as any).hash = "0329427bb0af55f417f83147e1bb7947"; export default node; diff --git a/__generated__/HeaderSidebarFragment.graphql.ts b/__generated__/HeaderSidebarFragment.graphql.ts index b8fab2246..c0c610343 100644 --- a/__generated__/HeaderSidebarFragment.graphql.ts +++ b/__generated__/HeaderSidebarFragment.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<1016125c29fdc4d114e33b47f1acec42>> * @lightSyntaxTransform * @nogrep */ @@ -41,40 +41,22 @@ export type HeaderSidebarFragment$key = { }; const node: ReaderFragment = (function(){ -var v0 = [ - { - "alias": null, - "args": null, - "concreteType": "AnalyticsEventCountSummary", - "kind": "LinkedField", - "name": "entityViews", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "ViewCountFragment" - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "AnalyticsEventCountSummary", - "kind": "LinkedField", - "name": "assetDownloads", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "DownloadCountFragment" - } - ], - "storageKey": null - } -]; +var v0 = { + "alias": null, + "args": null, + "concreteType": "AnalyticsEventCountSummary", + "kind": "LinkedField", + "name": "entityViews", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "ViewCountFragment" + } + ], + "storageKey": null +}; return { "argumentDefinitions": [], "kind": "Fragment", @@ -121,13 +103,33 @@ return { }, { "kind": "InlineFragment", - "selections": (v0/*: any*/), + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "AnalyticsEventCountSummary", + "kind": "LinkedField", + "name": "assetDownloads", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "DownloadCountFragment" + } + ], + "storageKey": null + } + ], "type": "Item", "abstractKey": null }, { "kind": "InlineFragment", - "selections": (v0/*: any*/), + "selections": [ + (v0/*: any*/) + ], "type": "Collection", "abstractKey": null } @@ -199,6 +201,6 @@ return { }; })(); -(node as any).hash = "705665d0116bd2d2541cf933873e9204"; +(node as any).hash = "64a9b230d948f1c0641ce7542f0a4c37"; export default node; diff --git a/__generated__/ViewCounterQuery.graphql.ts b/__generated__/ViewCounterQuery.graphql.ts index ec3d83dab..bf0b741d9 100644 --- a/__generated__/ViewCounterQuery.graphql.ts +++ b/__generated__/ViewCounterQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<7d30c2aeed0a6acac9b59077b8188666>> * @lightSyntaxTransform * @nogrep */ @@ -15,12 +15,24 @@ export type ViewCounterQuery$variables = { export type ViewCounterQuery$data = { readonly collection: { readonly __typename: "Collection"; + readonly assetDownloads: { + readonly total: number; + }; + readonly entityViews: { + readonly total: number; + }; } | null | undefined; readonly community: { readonly __typename: "Community"; } | null | undefined; readonly item: { readonly __typename: "Item"; + readonly assetDownloads: { + readonly total: number; + }; + readonly entityViews: { + readonly total: number; + }; } | null | undefined; }; export type ViewCounterQuery = { @@ -51,17 +63,51 @@ v2 = { "storageKey": null }, v3 = [ - (v2/*: any*/) -], -v4 = [ - (v2/*: any*/), { "alias": null, "args": null, "kind": "ScalarField", - "name": "id", + "name": "total", "storageKey": null } +], +v4 = { + "alias": null, + "args": null, + "concreteType": "AnalyticsEventCountSummary", + "kind": "LinkedField", + "name": "entityViews", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "concreteType": "AnalyticsEventCountSummary", + "kind": "LinkedField", + "name": "assetDownloads", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null +}, +v6 = [ + (v2/*: any*/), + (v4/*: any*/), + (v5/*: any*/) +], +v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v8 = [ + (v2/*: any*/), + (v4/*: any*/), + (v5/*: any*/), + (v7/*: any*/) ]; return { "fragment": { @@ -77,7 +123,7 @@ return { "kind": "LinkedField", "name": "item", "plural": false, - "selections": (v3/*: any*/), + "selections": (v6/*: any*/), "storageKey": null }, { @@ -87,7 +133,7 @@ return { "kind": "LinkedField", "name": "collection", "plural": false, - "selections": (v3/*: any*/), + "selections": (v6/*: any*/), "storageKey": null }, { @@ -97,7 +143,9 @@ return { "kind": "LinkedField", "name": "community", "plural": false, - "selections": (v3/*: any*/), + "selections": [ + (v2/*: any*/) + ], "storageKey": null } ], @@ -117,7 +165,7 @@ return { "kind": "LinkedField", "name": "item", "plural": false, - "selections": (v4/*: any*/), + "selections": (v8/*: any*/), "storageKey": null }, { @@ -127,7 +175,7 @@ return { "kind": "LinkedField", "name": "collection", "plural": false, - "selections": (v4/*: any*/), + "selections": (v8/*: any*/), "storageKey": null }, { @@ -137,22 +185,25 @@ return { "kind": "LinkedField", "name": "community", "plural": false, - "selections": (v4/*: any*/), + "selections": [ + (v2/*: any*/), + (v7/*: any*/) + ], "storageKey": null } ] }, "params": { - "cacheID": "811bf249cf708f3fb2c76479d1a9285a", + "cacheID": "c3174bcccb33b6c1121ff79dae3ee444", "id": null, "metadata": {}, "name": "ViewCounterQuery", "operationKind": "query", - "text": "query ViewCounterQuery(\n $slug: Slug!\n) {\n item(slug: $slug) {\n __typename\n id\n }\n collection(slug: $slug) {\n __typename\n id\n }\n community(slug: $slug) {\n __typename\n id\n }\n}\n" + "text": "query ViewCounterQuery(\n $slug: Slug!\n) {\n item(slug: $slug) {\n __typename\n entityViews {\n total\n }\n assetDownloads {\n total\n }\n id\n }\n collection(slug: $slug) {\n __typename\n entityViews {\n total\n }\n assetDownloads {\n total\n }\n id\n }\n community(slug: $slug) {\n __typename\n id\n }\n}\n" } }; })(); -(node as any).hash = "d2bad520736297e1f208bd846da52a52"; +(node as any).hash = "56e69258d5565b3ef528b4bde75652a4"; export default node; diff --git a/__generated__/layoutCollectionTemplateQuery.graphql.ts b/__generated__/layoutCollectionTemplateQuery.graphql.ts index ea19e91f0..3e9e4f582 100644 --- a/__generated__/layoutCollectionTemplateQuery.graphql.ts +++ b/__generated__/layoutCollectionTemplateQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -316,17 +316,7 @@ v29 = { "selections": (v28/*: any*/), "storageKey": null }, -v30 = { - "alias": null, - "args": null, - "concreteType": "AnalyticsEventCountSummary", - "kind": "LinkedField", - "name": "assetDownloads", - "plural": false, - "selections": (v28/*: any*/), - "storageKey": null -}, -v31 = [ +v30 = [ { "alias": null, "args": null, @@ -398,17 +388,17 @@ v31 = [ }, (v8/*: any*/) ], -v32 = { +v31 = { "alias": null, "args": null, "concreteType": "ItemAttribution", "kind": "LinkedField", "name": "attributions", "plural": true, - "selections": (v31/*: any*/), + "selections": (v30/*: any*/), "storageKey": null }, -v33 = { +v32 = { "alias": "image", "args": null, "concreteType": "ImageSize", @@ -418,7 +408,7 @@ v33 = { "selections": (v13/*: any*/), "storageKey": null }, -v34 = { +v33 = { "alias": null, "args": null, "concreteType": "ImageAttachment", @@ -426,24 +416,24 @@ v34 = { "name": "thumbnail", "plural": false, "selections": [ - (v33/*: any*/) + (v32/*: any*/) ], "storageKey": null }, -v35 = [ - (v34/*: any*/) +v34 = [ + (v33/*: any*/) ], -v36 = { +v35 = { "kind": "InlineFragment", - "selections": (v35/*: any*/), + "selections": (v34/*: any*/), "type": "Collection", "abstractKey": null }, -v37 = { +v36 = { "kind": "InlineFragment", "selections": [ - (v32/*: any*/), - (v34/*: any*/), + (v31/*: any*/), + (v33/*: any*/), { "alias": null, "args": null, @@ -461,10 +451,10 @@ v37 = { "plural": false, "selections": [ (v2/*: any*/), - (v36/*: any*/), + (v35/*: any*/), { "kind": "InlineFragment", - "selections": (v35/*: any*/), + "selections": (v34/*: any*/), "type": "Item", "abstractKey": null }, @@ -480,17 +470,17 @@ v37 = { "type": "Item", "abstractKey": null }, -v38 = { +v37 = { "alias": null, "args": null, "concreteType": "CollectionAttribution", "kind": "LinkedField", "name": "attributions", "plural": true, - "selections": (v31/*: any*/), + "selections": (v30/*: any*/), "storageKey": null }, -v39 = { +v38 = { "alias": null, "args": null, "concreteType": "EntityBreadcrumb", @@ -507,7 +497,7 @@ v39 = { "plural": false, "selections": [ (v2/*: any*/), - (v36/*: any*/), + (v35/*: any*/), (v18/*: any*/) ], "storageKey": null @@ -516,14 +506,14 @@ v39 = { ], "storageKey": null }, -v40 = { +v39 = { "alias": null, "args": null, "kind": "ScalarField", "name": "name", "storageKey": null }, -v41 = { +v40 = { "alias": null, "args": [ { @@ -545,7 +535,7 @@ v41 = { "name": "nodes", "plural": true, "selections": [ - (v40/*: any*/), + (v39/*: any*/), (v7/*: any*/), (v20/*: any*/), { @@ -1064,20 +1054,29 @@ return { "kind": "InlineFragment", "selections": [ (v29/*: any*/), - (v30/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "AnalyticsEventCountSummary", + "kind": "LinkedField", + "name": "assetDownloads", + "plural": false, + "selections": (v28/*: any*/), + "storageKey": null + }, (v8/*: any*/), (v4/*: any*/), (v7/*: any*/), { "kind": "InlineFragment", "selections": [ - (v37/*: any*/), + (v36/*: any*/), { "kind": "InlineFragment", "selections": [ - (v38/*: any*/), - (v34/*: any*/), - (v39/*: any*/) + (v37/*: any*/), + (v33/*: any*/), + (v38/*: any*/) ], "type": "Collection", "abstractKey": null @@ -1094,7 +1093,6 @@ return { "kind": "InlineFragment", "selections": [ (v29/*: any*/), - (v30/*: any*/), (v8/*: any*/), (v7/*: any*/), (v4/*: any*/), @@ -1131,19 +1129,19 @@ return { ], "storageKey": null }, - (v33/*: any*/) + (v32/*: any*/) ], "storageKey": null }, { "kind": "InlineFragment", "selections": [ - (v37/*: any*/), + (v36/*: any*/), { "kind": "InlineFragment", "selections": [ - (v38/*: any*/), - (v39/*: any*/) + (v37/*: any*/), + (v38/*: any*/) ], "type": "Collection", "abstractKey": null @@ -1166,7 +1164,7 @@ return { { "kind": "InlineFragment", "selections": [ - (v32/*: any*/) + (v31/*: any*/) ], "type": "Item", "abstractKey": null @@ -1174,7 +1172,7 @@ return { { "kind": "InlineFragment", "selections": [ - (v38/*: any*/) + (v37/*: any*/) ], "type": "Collection", "abstractKey": null @@ -1274,7 +1272,7 @@ return { ], "storageKey": null }, - (v41/*: any*/), + (v40/*: any*/), { "alias": null, "args": null, @@ -1346,13 +1344,13 @@ return { "name": "schemaVersion", "plural": false, "selections": [ - (v40/*: any*/), + (v39/*: any*/), (v20/*: any*/), (v8/*: any*/) ], "storageKey": null }, - (v41/*: any*/), + (v40/*: any*/), { "alias": null, "args": null, @@ -1472,12 +1470,12 @@ return { ] }, "params": { - "cacheID": "1791511f078253eecefdf030fed8b1ea", + "cacheID": "50ba229ea2b32ff0c197b688196ddec0", "id": null, "metadata": {}, "name": "layoutCollectionTemplateQuery", "operationKind": "query", - "text": "query layoutCollectionTemplateQuery(\n $slug: Slug!\n) {\n collection(slug: $slug) {\n layouts {\n hero {\n ...HeroTemplateFragment\n id\n }\n ...ProcessingCheckFragment\n }\n ...SearchButtonFragment\n ...EntityNavBarFragment\n community {\n ...SetCommunityFragment\n id\n }\n id\n }\n}\n\nfragment BreadcrumbLinkFragment on EntityBreadcrumb {\n label\n kind\n slug\n}\n\nfragment BreadcrumbsBarFragment on Entity {\n __isEntity: __typename\n __typename\n title\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n ... on Permalinkable {\n __isPermalinkable: __typename\n permalinks {\n canonical\n uri\n id\n }\n }\n ...BreadcrumbsFragment\n}\n\nfragment BreadcrumbsFragment on Entity {\n __isEntity: __typename\n __typename\n title\n breadcrumbs {\n depth\n ...BreadcrumbLinkFragment\n id\n }\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n}\n\nfragment CommunityContextFragment on Community {\n ...CommunityNameFragment\n ...CommunityNavListFragment\n ...CommunityPickerCommunityNameFragment\n}\n\nfragment CommunityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n heroImage {\n ...ImageHeroTemplateFragment\n hero {\n webp {\n url\n }\n }\n }\n heroImageLayout\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n showHeroImage\n showBigSearchPrompt\n id\n }\n slots {\n bigSearchPrompt {\n ...sharedInlineSlotFragment\n }\n header {\n empty\n }\n headerSummary {\n empty\n }\n }\n ...HeaderHeroFragment\n id\n }\n}\n\nfragment CommunityLogoFragment on ImageAttachment {\n storage\n original {\n url\n alt\n width\n height\n }\n}\n\nfragment CommunityNameFragment on Community {\n title\n slug\n logo {\n storage\n original {\n width\n height\n }\n ...CommunityLogoFragment\n }\n}\n\nfragment CommunityNavListContentFragment on Community {\n slug\n orderings(availability: ENABLED) {\n nodes {\n name\n slug\n identifier\n count\n id\n }\n }\n pages {\n nodes {\n slug\n title\n id\n }\n }\n}\n\nfragment CommunityNavListFragment on Community {\n ...CommunityNavListContentFragment\n}\n\nfragment CommunityPickerCommunityNameFragment on Community {\n title\n}\n\nfragment ContributorNameFragment on AnyContributor {\n __isAnyContributor: __typename\n ... on PersonContributor {\n __typename\n familyName\n givenName\n }\n ... on OrganizationContributor {\n __typename\n legalName\n }\n}\n\nfragment ContributorsListFragment on Entity {\n __isEntity: __typename\n ... on Item {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Collection {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment CoverCardListFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment CoverImageFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment DOIFragment on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n url\n }\n}\n\nfragment DetailContentFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n slug\n ...ContributorsListFragment\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n id\n }\n slots {\n subheader {\n ...sharedInlineSlotFragment\n }\n subheaderSubtitle {\n ...sharedInlineSlotFragment\n }\n subheaderAside {\n ...sharedInlineSlotFragment\n }\n subheaderSummary {\n ...sharedBlockSlotFragment\n }\n metadata {\n ...sharedInlineSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DetailCoverImageFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n id\n title\n ...getThumbWithFallbackFragment\n }\n ... on Item {\n id\n title\n ...getThumbWithFallbackFragment\n }\n}\n\nfragment DetailHeroFragment on HeroTemplateInstance {\n entity {\n __typename\n ...DetailCoverImageFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showThumbnailImage\n id\n }\n ...DetailContentFragment\n ...DetailSidebarFragment\n}\n\nfragment DetailSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showBasicViewMetrics\n id\n }\n slots {\n sidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DownloadCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment EntityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Collection {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ... on Item {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ...BreadcrumbsBarFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n background\n showHeroImage\n showBreadcrumbs\n showSharingLink\n showSplitDisplay\n id\n }\n ...HeaderHeroFragment\n ...DetailHeroFragment\n id\n }\n}\n\nfragment EntityNavBarFragment on Entity {\n __isEntity: __typename\n ... on Node {\n __isNode: __typename\n id\n }\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n title\n ...EntityNavListFragment\n layouts {\n hero {\n template {\n definition {\n enableDescendantBrowsing\n enableDescendantSearch\n id\n }\n slots {\n descendantSearchPrompt {\n ...sharedInlineSlotFragment\n }\n }\n id\n }\n id\n }\n }\n}\n\nfragment EntityNavListFragment on Entity {\n __isEntity: __typename\n __typename\n schemaVersion {\n name\n identifier\n id\n }\n orderings(availability: ENABLED) {\n nodes {\n name\n slug\n identifier\n count\n id\n }\n }\n pages {\n nodes {\n title\n slug\n id\n }\n }\n}\n\nfragment HeaderHeroFragment on HeroTemplateInstance {\n definition {\n showSplitDisplay\n id\n }\n ...HeaderSidebarFragment\n ...HeaderTitleBlockFragment\n}\n\nfragment HeaderSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n }\n }\n ...DOIFragment\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showDOI\n showBasicViewMetrics\n showSplitDisplay\n id\n }\n slots {\n headerSidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeaderTitleBlockFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Community {\n ...ContributorsListFragment\n }\n ... on Item {\n ...ContributorsListFragment\n }\n ... on Collection {\n id\n slug\n title\n ...ContributorsListFragment\n thumbnail {\n storage\n medium {\n webp {\n width\n height\n }\n }\n ...CoverImageFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n showThumbnailImage\n showSplitDisplay\n id\n }\n slots {\n header {\n ...sharedInlineSlotFragment\n }\n headerSubtitle {\n ...sharedInlineSlotFragment\n }\n headerParent {\n ...sharedInlineSlotFragment\n }\n headerAside {\n ...sharedInlineSlotFragment\n }\n headerSummary {\n ...sharedBlockSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeroTemplateFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n ...CommunityHeroHeaderFragment\n ...EntityHeroHeaderFragment\n}\n\nfragment ImageHeroTemplateFragment on ImageAttachment {\n hero {\n webp {\n url\n alt\n width\n height\n }\n }\n large {\n webp {\n url\n width\n }\n }\n medium {\n webp {\n url\n width\n }\n }\n}\n\nfragment ProcessingCheckFragment on EntityLayouts {\n main {\n allHidden\n templates {\n __typename\n ... on TemplateInstance {\n __isTemplateInstance: __typename\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SearchButtonFragment on Entity {\n __isEntity: __typename\n ...SearchModalFragment\n}\n\nfragment SearchModalFragment on Entity {\n __isEntity: __typename\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n title\n breadcrumbs {\n crumb {\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n __isEntity: __typename\n title\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SetCommunityFragment on Community {\n ...CommunityContextFragment\n}\n\nfragment ViewCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment getThumbWithFallbackFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment sharedBlockSlotFragment on TemplateSlotBlockInstance {\n empty\n content\n kind\n valid\n}\n\nfragment sharedInlineSlotFragment on TemplateSlotInlineInstance {\n empty\n content\n kind\n valid\n hidesTemplate\n}\n" + "text": "query layoutCollectionTemplateQuery(\n $slug: Slug!\n) {\n collection(slug: $slug) {\n layouts {\n hero {\n ...HeroTemplateFragment\n id\n }\n ...ProcessingCheckFragment\n }\n ...SearchButtonFragment\n ...EntityNavBarFragment\n community {\n ...SetCommunityFragment\n id\n }\n id\n }\n}\n\nfragment BreadcrumbLinkFragment on EntityBreadcrumb {\n label\n kind\n slug\n}\n\nfragment BreadcrumbsBarFragment on Entity {\n __isEntity: __typename\n __typename\n title\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n ... on Permalinkable {\n __isPermalinkable: __typename\n permalinks {\n canonical\n uri\n id\n }\n }\n ...BreadcrumbsFragment\n}\n\nfragment BreadcrumbsFragment on Entity {\n __isEntity: __typename\n __typename\n title\n breadcrumbs {\n depth\n ...BreadcrumbLinkFragment\n id\n }\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n}\n\nfragment CommunityContextFragment on Community {\n ...CommunityNameFragment\n ...CommunityNavListFragment\n ...CommunityPickerCommunityNameFragment\n}\n\nfragment CommunityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n heroImage {\n ...ImageHeroTemplateFragment\n hero {\n webp {\n url\n }\n }\n }\n heroImageLayout\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n showHeroImage\n showBigSearchPrompt\n id\n }\n slots {\n bigSearchPrompt {\n ...sharedInlineSlotFragment\n }\n header {\n empty\n }\n headerSummary {\n empty\n }\n }\n ...HeaderHeroFragment\n id\n }\n}\n\nfragment CommunityLogoFragment on ImageAttachment {\n storage\n original {\n url\n alt\n width\n height\n }\n}\n\nfragment CommunityNameFragment on Community {\n title\n slug\n logo {\n storage\n original {\n width\n height\n }\n ...CommunityLogoFragment\n }\n}\n\nfragment CommunityNavListContentFragment on Community {\n slug\n orderings(availability: ENABLED) {\n nodes {\n name\n slug\n identifier\n count\n id\n }\n }\n pages {\n nodes {\n slug\n title\n id\n }\n }\n}\n\nfragment CommunityNavListFragment on Community {\n ...CommunityNavListContentFragment\n}\n\nfragment CommunityPickerCommunityNameFragment on Community {\n title\n}\n\nfragment ContributorNameFragment on AnyContributor {\n __isAnyContributor: __typename\n ... on PersonContributor {\n __typename\n familyName\n givenName\n }\n ... on OrganizationContributor {\n __typename\n legalName\n }\n}\n\nfragment ContributorsListFragment on Entity {\n __isEntity: __typename\n ... on Item {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Collection {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment CoverCardListFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment CoverImageFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment DOIFragment on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n url\n }\n}\n\nfragment DetailContentFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n slug\n ...ContributorsListFragment\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n id\n }\n slots {\n subheader {\n ...sharedInlineSlotFragment\n }\n subheaderSubtitle {\n ...sharedInlineSlotFragment\n }\n subheaderAside {\n ...sharedInlineSlotFragment\n }\n subheaderSummary {\n ...sharedBlockSlotFragment\n }\n metadata {\n ...sharedInlineSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DetailCoverImageFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n id\n title\n ...getThumbWithFallbackFragment\n }\n ... on Item {\n id\n title\n ...getThumbWithFallbackFragment\n }\n}\n\nfragment DetailHeroFragment on HeroTemplateInstance {\n entity {\n __typename\n ...DetailCoverImageFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showThumbnailImage\n id\n }\n ...DetailContentFragment\n ...DetailSidebarFragment\n}\n\nfragment DetailSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showBasicViewMetrics\n id\n }\n slots {\n sidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DownloadCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment EntityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Collection {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ... on Item {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ...BreadcrumbsBarFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n background\n showHeroImage\n showBreadcrumbs\n showSharingLink\n showSplitDisplay\n id\n }\n ...HeaderHeroFragment\n ...DetailHeroFragment\n id\n }\n}\n\nfragment EntityNavBarFragment on Entity {\n __isEntity: __typename\n ... on Node {\n __isNode: __typename\n id\n }\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n title\n ...EntityNavListFragment\n layouts {\n hero {\n template {\n definition {\n enableDescendantBrowsing\n enableDescendantSearch\n id\n }\n slots {\n descendantSearchPrompt {\n ...sharedInlineSlotFragment\n }\n }\n id\n }\n id\n }\n }\n}\n\nfragment EntityNavListFragment on Entity {\n __isEntity: __typename\n __typename\n schemaVersion {\n name\n identifier\n id\n }\n orderings(availability: ENABLED) {\n nodes {\n name\n slug\n identifier\n count\n id\n }\n }\n pages {\n nodes {\n title\n slug\n id\n }\n }\n}\n\nfragment HeaderHeroFragment on HeroTemplateInstance {\n definition {\n showSplitDisplay\n id\n }\n ...HeaderSidebarFragment\n ...HeaderTitleBlockFragment\n}\n\nfragment HeaderSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n }\n }\n ...DOIFragment\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showDOI\n showBasicViewMetrics\n showSplitDisplay\n id\n }\n slots {\n headerSidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeaderTitleBlockFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Community {\n ...ContributorsListFragment\n }\n ... on Item {\n ...ContributorsListFragment\n }\n ... on Collection {\n id\n slug\n title\n ...ContributorsListFragment\n thumbnail {\n storage\n medium {\n webp {\n width\n height\n }\n }\n ...CoverImageFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n showThumbnailImage\n showSplitDisplay\n id\n }\n slots {\n header {\n ...sharedInlineSlotFragment\n }\n headerSubtitle {\n ...sharedInlineSlotFragment\n }\n headerParent {\n ...sharedInlineSlotFragment\n }\n headerAside {\n ...sharedInlineSlotFragment\n }\n headerSummary {\n ...sharedBlockSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeroTemplateFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n ...CommunityHeroHeaderFragment\n ...EntityHeroHeaderFragment\n}\n\nfragment ImageHeroTemplateFragment on ImageAttachment {\n hero {\n webp {\n url\n alt\n width\n height\n }\n }\n large {\n webp {\n url\n width\n }\n }\n medium {\n webp {\n url\n width\n }\n }\n}\n\nfragment ProcessingCheckFragment on EntityLayouts {\n main {\n allHidden\n templates {\n __typename\n ... on TemplateInstance {\n __isTemplateInstance: __typename\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SearchButtonFragment on Entity {\n __isEntity: __typename\n ...SearchModalFragment\n}\n\nfragment SearchModalFragment on Entity {\n __isEntity: __typename\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n title\n breadcrumbs {\n crumb {\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n __isEntity: __typename\n title\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SetCommunityFragment on Community {\n ...CommunityContextFragment\n}\n\nfragment ViewCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment getThumbWithFallbackFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment sharedBlockSlotFragment on TemplateSlotBlockInstance {\n empty\n content\n kind\n valid\n}\n\nfragment sharedInlineSlotFragment on TemplateSlotInlineInstance {\n empty\n content\n kind\n valid\n hidesTemplate\n}\n" } }; })(); diff --git a/__generated__/layoutCommunityTemplateQuery.graphql.ts b/__generated__/layoutCommunityTemplateQuery.graphql.ts index 7c868d6f0..ed84ea244 100644 --- a/__generated__/layoutCommunityTemplateQuery.graphql.ts +++ b/__generated__/layoutCommunityTemplateQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<07e1b854ca4ae7a9b9b4428c7aec35eb>> + * @generated SignedSource<<5bbb65f7f49b9978af11487bb5b4fa71>> * @lightSyntaxTransform * @nogrep */ @@ -148,37 +148,27 @@ v14 = { "storageKey": null }, v15 = { - "alias": null, - "args": null, - "concreteType": "AnalyticsEventCountSummary", - "kind": "LinkedField", - "name": "assetDownloads", - "plural": false, - "selections": (v13/*: any*/), - "storageKey": null -}, -v16 = { "alias": null, "args": null, "kind": "ScalarField", "name": "title", "storageKey": null }, -v17 = { +v16 = { "alias": null, "args": null, "kind": "ScalarField", "name": "slug", "storageKey": null }, -v18 = { +v17 = { "alias": null, "args": null, "kind": "ScalarField", "name": "label", "storageKey": null }, -v19 = { +v18 = { "kind": "InlineFragment", "selections": [ (v3/*: any*/) @@ -186,7 +176,7 @@ v19 = { "type": "Node", "abstractKey": "__isNode" }, -v20 = [ +v19 = [ { "alias": null, "args": null, @@ -195,7 +185,7 @@ v20 = [ "name": "roles", "plural": true, "selections": [ - (v18/*: any*/), + (v17/*: any*/), (v3/*: any*/) ], "storageKey": null @@ -209,7 +199,7 @@ v20 = [ "plural": false, "selections": [ (v10/*: any*/), - (v17/*: any*/), + (v16/*: any*/), { "kind": "InlineFragment", "selections": [ @@ -252,44 +242,44 @@ v20 = [ "type": "AnyContributor", "abstractKey": "__isAnyContributor" }, - (v19/*: any*/) + (v18/*: any*/) ], "storageKey": null }, (v3/*: any*/) ], -v21 = { +v20 = { "alias": null, "args": null, "concreteType": "ItemAttribution", "kind": "LinkedField", "name": "attributions", "plural": true, - "selections": (v20/*: any*/), + "selections": (v19/*: any*/), "storageKey": null }, -v22 = { +v21 = { "alias": null, "args": null, "kind": "ScalarField", "name": "alt", "storageKey": null }, -v23 = { +v22 = { "alias": null, "args": null, "kind": "ScalarField", "name": "width", "storageKey": null }, -v24 = { +v23 = { "alias": null, "args": null, "kind": "ScalarField", "name": "height", "storageKey": null }, -v25 = [ +v24 = [ { "alias": null, "args": null, @@ -299,24 +289,24 @@ v25 = [ "plural": false, "selections": [ (v12/*: any*/), + (v21/*: any*/), (v22/*: any*/), - (v23/*: any*/), - (v24/*: any*/) + (v23/*: any*/) ], "storageKey": null } ], -v26 = { +v25 = { "alias": "image", "args": null, "concreteType": "ImageSize", "kind": "LinkedField", "name": "medium", "plural": false, - "selections": (v25/*: any*/), + "selections": (v24/*: any*/), "storageKey": null }, -v27 = { +v26 = { "alias": null, "args": null, "concreteType": "ImageAttachment", @@ -324,24 +314,24 @@ v27 = { "name": "thumbnail", "plural": false, "selections": [ - (v26/*: any*/) + (v25/*: any*/) ], "storageKey": null }, -v28 = [ - (v27/*: any*/) +v27 = [ + (v26/*: any*/) ], -v29 = { +v28 = { "kind": "InlineFragment", - "selections": (v28/*: any*/), + "selections": (v27/*: any*/), "type": "Collection", "abstractKey": null }, -v30 = { +v29 = { "kind": "InlineFragment", "selections": [ - (v21/*: any*/), - (v27/*: any*/), + (v20/*: any*/), + (v26/*: any*/), { "alias": null, "args": null, @@ -359,14 +349,14 @@ v30 = { "plural": false, "selections": [ (v10/*: any*/), - (v29/*: any*/), + (v28/*: any*/), { "kind": "InlineFragment", - "selections": (v28/*: any*/), + "selections": (v27/*: any*/), "type": "Item", "abstractKey": null }, - (v19/*: any*/) + (v18/*: any*/) ], "storageKey": null }, @@ -378,17 +368,17 @@ v30 = { "type": "Item", "abstractKey": null }, -v31 = { +v30 = { "alias": null, "args": null, "concreteType": "CollectionAttribution", "kind": "LinkedField", "name": "attributions", "plural": true, - "selections": (v20/*: any*/), + "selections": (v19/*: any*/), "storageKey": null }, -v32 = { +v31 = { "alias": null, "args": null, "concreteType": "EntityBreadcrumb", @@ -405,8 +395,8 @@ v32 = { "plural": false, "selections": [ (v10/*: any*/), - (v29/*: any*/), - (v19/*: any*/) + (v28/*: any*/), + (v18/*: any*/) ], "storageKey": null }, @@ -414,24 +404,24 @@ v32 = { ], "storageKey": null }, -v33 = { +v32 = { "alias": null, "args": null, "kind": "ScalarField", "name": "storage", "storageKey": null }, -v34 = { +v33 = { "alias": null, "args": null, "concreteType": "ImageSize", "kind": "LinkedField", "name": "hero", "plural": false, - "selections": (v25/*: any*/), + "selections": (v24/*: any*/), "storageKey": null }, -v35 = [ +v34 = [ { "alias": null, "args": null, @@ -441,39 +431,39 @@ v35 = [ "plural": false, "selections": [ (v12/*: any*/), - (v23/*: any*/) + (v22/*: any*/) ], "storageKey": null } ], -v36 = { +v35 = { "alias": null, "args": null, "concreteType": "ImageSize", "kind": "LinkedField", "name": "large", "plural": false, - "selections": (v35/*: any*/), + "selections": (v34/*: any*/), "storageKey": null }, -v37 = { +v36 = { "alias": null, "args": null, "concreteType": "ImageSize", "kind": "LinkedField", "name": "medium", "plural": false, - "selections": (v35/*: any*/), + "selections": (v34/*: any*/), "storageKey": null }, -v38 = { +v37 = { "alias": null, "args": null, "kind": "ScalarField", "name": "identifier", "storageKey": null }, -v39 = [ +v38 = [ { "alias": null, "args": null, @@ -496,10 +486,10 @@ v39 = [ "name": "heroImage", "plural": false, "selections": [ + (v32/*: any*/), (v33/*: any*/), - (v34/*: any*/), - (v36/*: any*/), - (v37/*: any*/) + (v35/*: any*/), + (v36/*: any*/) ], "storageKey": null }, @@ -511,16 +501,16 @@ v39 = [ "name": "schemaDefinition", "plural": false, "selections": [ - (v38/*: any*/), + (v37/*: any*/), (v3/*: any*/) ], "storageKey": null } ], -v40 = { +v39 = { "kind": "InlineFragment", "selections": [ - (v17/*: any*/) + (v16/*: any*/) ], "type": "Sluggable", "abstractKey": "__isSluggable" @@ -930,20 +920,29 @@ return { "kind": "InlineFragment", "selections": [ (v14/*: any*/), - (v15/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "AnalyticsEventCountSummary", + "kind": "LinkedField", + "name": "assetDownloads", + "plural": false, + "selections": (v13/*: any*/), + "storageKey": null + }, (v3/*: any*/), + (v15/*: any*/), (v16/*: any*/), - (v17/*: any*/), { "kind": "InlineFragment", "selections": [ - (v30/*: any*/), + (v29/*: any*/), { "kind": "InlineFragment", "selections": [ - (v31/*: any*/), - (v27/*: any*/), - (v32/*: any*/) + (v30/*: any*/), + (v26/*: any*/), + (v31/*: any*/) ], "type": "Collection", "abstractKey": null @@ -960,10 +959,9 @@ return { "kind": "InlineFragment", "selections": [ (v14/*: any*/), - (v15/*: any*/), (v3/*: any*/), - (v17/*: any*/), (v16/*: any*/), + (v15/*: any*/), { "alias": null, "args": null, @@ -972,7 +970,7 @@ return { "name": "thumbnail", "plural": false, "selections": [ - (v33/*: any*/), + (v32/*: any*/), { "alias": null, "args": null, @@ -989,27 +987,27 @@ return { "name": "webp", "plural": false, "selections": [ - (v23/*: any*/), - (v24/*: any*/) + (v22/*: any*/), + (v23/*: any*/) ], "storageKey": null } ], "storageKey": null }, - (v26/*: any*/) + (v25/*: any*/) ], "storageKey": null }, { "kind": "InlineFragment", "selections": [ - (v30/*: any*/), + (v29/*: any*/), { "kind": "InlineFragment", "selections": [ - (v31/*: any*/), - (v32/*: any*/) + (v30/*: any*/), + (v31/*: any*/) ], "type": "Collection", "abstractKey": null @@ -1022,7 +1020,7 @@ return { "type": "Collection", "abstractKey": null }, - (v19/*: any*/), + (v18/*: any*/), { "kind": "InlineFragment", "selections": [ @@ -1032,7 +1030,7 @@ return { { "kind": "InlineFragment", "selections": [ - (v21/*: any*/) + (v20/*: any*/) ], "type": "Item", "abstractKey": null @@ -1040,7 +1038,7 @@ return { { "kind": "InlineFragment", "selections": [ - (v31/*: any*/) + (v30/*: any*/) ], "type": "Collection", "abstractKey": null @@ -1069,7 +1067,7 @@ return { "selections": [ (v10/*: any*/), (v11/*: any*/), - (v16/*: any*/), + (v15/*: any*/), { "alias": null, "args": null, @@ -1085,9 +1083,9 @@ return { "name": "depth", "storageKey": null }, - (v18/*: any*/), - (v6/*: any*/), (v17/*: any*/), + (v6/*: any*/), + (v16/*: any*/), (v3/*: any*/) ], "storageKey": null @@ -1103,9 +1101,9 @@ return { "name": "heroImage", "plural": false, "selections": [ - (v34/*: any*/), - (v36/*: any*/), - (v37/*: any*/) + (v33/*: any*/), + (v35/*: any*/), + (v36/*: any*/) ], "storageKey": null }, @@ -1120,20 +1118,20 @@ return { "type": "Community", "abstractKey": null }, - (v19/*: any*/), + (v18/*: any*/), { "kind": "InlineFragment", - "selections": (v39/*: any*/), + "selections": (v38/*: any*/), "type": "Collection", "abstractKey": null }, { "kind": "InlineFragment", - "selections": (v39/*: any*/), + "selections": (v38/*: any*/), "type": "Item", "abstractKey": null }, - (v40/*: any*/), + (v39/*: any*/), { "kind": "InlineFragment", "selections": [ @@ -1202,7 +1200,7 @@ return { "kind": "TypeDiscriminator", "abstractKey": "__isTemplateInstance" }, - (v19/*: any*/) + (v18/*: any*/) ], "storageKey": null }, @@ -1213,8 +1211,8 @@ return { ], "storageKey": null }, + (v15/*: any*/), (v16/*: any*/), - (v17/*: any*/), { "alias": null, "args": null, @@ -1223,7 +1221,7 @@ return { "name": "logo", "plural": false, "selections": [ - (v33/*: any*/), + (v32/*: any*/), { "alias": null, "args": null, @@ -1232,10 +1230,10 @@ return { "name": "original", "plural": false, "selections": [ + (v22/*: any*/), (v23/*: any*/), - (v24/*: any*/), (v12/*: any*/), - (v22/*: any*/) + (v21/*: any*/) ], "storageKey": null } @@ -1271,8 +1269,8 @@ return { "name": "name", "storageKey": null }, - (v17/*: any*/), - (v38/*: any*/), + (v16/*: any*/), + (v37/*: any*/), { "alias": null, "args": null, @@ -1303,8 +1301,8 @@ return { "name": "nodes", "plural": true, "selections": [ - (v17/*: any*/), (v16/*: any*/), + (v15/*: any*/), (v3/*: any*/) ], "storageKey": null @@ -1334,10 +1332,10 @@ return { "plural": false, "selections": [ (v10/*: any*/), - (v40/*: any*/), + (v39/*: any*/), (v11/*: any*/), - (v16/*: any*/), - (v19/*: any*/) + (v15/*: any*/), + (v18/*: any*/) ], "storageKey": null }, @@ -1359,12 +1357,12 @@ return { ] }, "params": { - "cacheID": "536c417738dfed7ff189c002acab3f2b", + "cacheID": "1fee895cb7fb607e5a59a36c2a9e926f", "id": null, "metadata": {}, "name": "layoutCommunityTemplateQuery", "operationKind": "query", - "text": "query layoutCommunityTemplateQuery(\n $slug: Slug!\n) {\n community(slug: $slug) {\n layouts {\n hero {\n template {\n definition {\n enableDescendantBrowsing\n id\n }\n id\n }\n ...HeroTemplateFragment\n id\n }\n ...ProcessingCheckFragment\n }\n ...CommunityNavBarFragment\n ...CommunityNavBarEntityFragment\n ...SetCommunityFragment\n id\n }\n}\n\nfragment BreadcrumbLinkFragment on EntityBreadcrumb {\n label\n kind\n slug\n}\n\nfragment BreadcrumbsBarFragment on Entity {\n __isEntity: __typename\n __typename\n title\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n ... on Permalinkable {\n __isPermalinkable: __typename\n permalinks {\n canonical\n uri\n id\n }\n }\n ...BreadcrumbsFragment\n}\n\nfragment BreadcrumbsFragment on Entity {\n __isEntity: __typename\n __typename\n title\n breadcrumbs {\n depth\n ...BreadcrumbLinkFragment\n id\n }\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n}\n\nfragment CommunityContextFragment on Community {\n ...CommunityNameFragment\n ...CommunityNavListFragment\n ...CommunityPickerCommunityNameFragment\n}\n\nfragment CommunityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n heroImage {\n ...ImageHeroTemplateFragment\n hero {\n webp {\n url\n }\n }\n }\n heroImageLayout\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n showHeroImage\n showBigSearchPrompt\n id\n }\n slots {\n bigSearchPrompt {\n ...sharedInlineSlotFragment\n }\n header {\n empty\n }\n headerSummary {\n empty\n }\n }\n ...HeaderHeroFragment\n id\n }\n}\n\nfragment CommunityLogoFragment on ImageAttachment {\n storage\n original {\n url\n alt\n width\n height\n }\n}\n\nfragment CommunityNameFragment on Community {\n title\n slug\n logo {\n storage\n original {\n width\n height\n }\n ...CommunityLogoFragment\n }\n}\n\nfragment CommunityNavBarEntityFragment on Entity {\n __isEntity: __typename\n ...SearchButtonFragment\n}\n\nfragment CommunityNavBarFragment on Community {\n ...CommunityNameFragment\n ...CommunityNavListFragment\n}\n\nfragment CommunityNavListContentFragment on Community {\n slug\n orderings(availability: ENABLED) {\n nodes {\n name\n slug\n identifier\n count\n id\n }\n }\n pages {\n nodes {\n slug\n title\n id\n }\n }\n}\n\nfragment CommunityNavListFragment on Community {\n ...CommunityNavListContentFragment\n}\n\nfragment CommunityPickerCommunityNameFragment on Community {\n title\n}\n\nfragment ContributorNameFragment on AnyContributor {\n __isAnyContributor: __typename\n ... on PersonContributor {\n __typename\n familyName\n givenName\n }\n ... on OrganizationContributor {\n __typename\n legalName\n }\n}\n\nfragment ContributorsListFragment on Entity {\n __isEntity: __typename\n ... on Item {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Collection {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment CoverCardListFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment CoverImageFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment DOIFragment on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n url\n }\n}\n\nfragment DetailContentFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n slug\n ...ContributorsListFragment\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n id\n }\n slots {\n subheader {\n ...sharedInlineSlotFragment\n }\n subheaderSubtitle {\n ...sharedInlineSlotFragment\n }\n subheaderAside {\n ...sharedInlineSlotFragment\n }\n subheaderSummary {\n ...sharedBlockSlotFragment\n }\n metadata {\n ...sharedInlineSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DetailCoverImageFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n id\n title\n ...getThumbWithFallbackFragment\n }\n ... on Item {\n id\n title\n ...getThumbWithFallbackFragment\n }\n}\n\nfragment DetailHeroFragment on HeroTemplateInstance {\n entity {\n __typename\n ...DetailCoverImageFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showThumbnailImage\n id\n }\n ...DetailContentFragment\n ...DetailSidebarFragment\n}\n\nfragment DetailSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showBasicViewMetrics\n id\n }\n slots {\n sidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DownloadCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment EntityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Collection {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ... on Item {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ...BreadcrumbsBarFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n background\n showHeroImage\n showBreadcrumbs\n showSharingLink\n showSplitDisplay\n id\n }\n ...HeaderHeroFragment\n ...DetailHeroFragment\n id\n }\n}\n\nfragment HeaderHeroFragment on HeroTemplateInstance {\n definition {\n showSplitDisplay\n id\n }\n ...HeaderSidebarFragment\n ...HeaderTitleBlockFragment\n}\n\nfragment HeaderSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n }\n }\n ...DOIFragment\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showDOI\n showBasicViewMetrics\n showSplitDisplay\n id\n }\n slots {\n headerSidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeaderTitleBlockFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Community {\n ...ContributorsListFragment\n }\n ... on Item {\n ...ContributorsListFragment\n }\n ... on Collection {\n id\n slug\n title\n ...ContributorsListFragment\n thumbnail {\n storage\n medium {\n webp {\n width\n height\n }\n }\n ...CoverImageFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n showThumbnailImage\n showSplitDisplay\n id\n }\n slots {\n header {\n ...sharedInlineSlotFragment\n }\n headerSubtitle {\n ...sharedInlineSlotFragment\n }\n headerParent {\n ...sharedInlineSlotFragment\n }\n headerAside {\n ...sharedInlineSlotFragment\n }\n headerSummary {\n ...sharedBlockSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeroTemplateFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n ...CommunityHeroHeaderFragment\n ...EntityHeroHeaderFragment\n}\n\nfragment ImageHeroTemplateFragment on ImageAttachment {\n hero {\n webp {\n url\n alt\n width\n height\n }\n }\n large {\n webp {\n url\n width\n }\n }\n medium {\n webp {\n url\n width\n }\n }\n}\n\nfragment ProcessingCheckFragment on EntityLayouts {\n main {\n allHidden\n templates {\n __typename\n ... on TemplateInstance {\n __isTemplateInstance: __typename\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SearchButtonFragment on Entity {\n __isEntity: __typename\n ...SearchModalFragment\n}\n\nfragment SearchModalFragment on Entity {\n __isEntity: __typename\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n title\n breadcrumbs {\n crumb {\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n __isEntity: __typename\n title\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SetCommunityFragment on Community {\n ...CommunityContextFragment\n}\n\nfragment ViewCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment getThumbWithFallbackFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment sharedBlockSlotFragment on TemplateSlotBlockInstance {\n empty\n content\n kind\n valid\n}\n\nfragment sharedInlineSlotFragment on TemplateSlotInlineInstance {\n empty\n content\n kind\n valid\n hidesTemplate\n}\n" + "text": "query layoutCommunityTemplateQuery(\n $slug: Slug!\n) {\n community(slug: $slug) {\n layouts {\n hero {\n template {\n definition {\n enableDescendantBrowsing\n id\n }\n id\n }\n ...HeroTemplateFragment\n id\n }\n ...ProcessingCheckFragment\n }\n ...CommunityNavBarFragment\n ...CommunityNavBarEntityFragment\n ...SetCommunityFragment\n id\n }\n}\n\nfragment BreadcrumbLinkFragment on EntityBreadcrumb {\n label\n kind\n slug\n}\n\nfragment BreadcrumbsBarFragment on Entity {\n __isEntity: __typename\n __typename\n title\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n ... on Permalinkable {\n __isPermalinkable: __typename\n permalinks {\n canonical\n uri\n id\n }\n }\n ...BreadcrumbsFragment\n}\n\nfragment BreadcrumbsFragment on Entity {\n __isEntity: __typename\n __typename\n title\n breadcrumbs {\n depth\n ...BreadcrumbLinkFragment\n id\n }\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n}\n\nfragment CommunityContextFragment on Community {\n ...CommunityNameFragment\n ...CommunityNavListFragment\n ...CommunityPickerCommunityNameFragment\n}\n\nfragment CommunityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n heroImage {\n ...ImageHeroTemplateFragment\n hero {\n webp {\n url\n }\n }\n }\n heroImageLayout\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n showHeroImage\n showBigSearchPrompt\n id\n }\n slots {\n bigSearchPrompt {\n ...sharedInlineSlotFragment\n }\n header {\n empty\n }\n headerSummary {\n empty\n }\n }\n ...HeaderHeroFragment\n id\n }\n}\n\nfragment CommunityLogoFragment on ImageAttachment {\n storage\n original {\n url\n alt\n width\n height\n }\n}\n\nfragment CommunityNameFragment on Community {\n title\n slug\n logo {\n storage\n original {\n width\n height\n }\n ...CommunityLogoFragment\n }\n}\n\nfragment CommunityNavBarEntityFragment on Entity {\n __isEntity: __typename\n ...SearchButtonFragment\n}\n\nfragment CommunityNavBarFragment on Community {\n ...CommunityNameFragment\n ...CommunityNavListFragment\n}\n\nfragment CommunityNavListContentFragment on Community {\n slug\n orderings(availability: ENABLED) {\n nodes {\n name\n slug\n identifier\n count\n id\n }\n }\n pages {\n nodes {\n slug\n title\n id\n }\n }\n}\n\nfragment CommunityNavListFragment on Community {\n ...CommunityNavListContentFragment\n}\n\nfragment CommunityPickerCommunityNameFragment on Community {\n title\n}\n\nfragment ContributorNameFragment on AnyContributor {\n __isAnyContributor: __typename\n ... on PersonContributor {\n __typename\n familyName\n givenName\n }\n ... on OrganizationContributor {\n __typename\n legalName\n }\n}\n\nfragment ContributorsListFragment on Entity {\n __isEntity: __typename\n ... on Item {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Collection {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment CoverCardListFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment CoverImageFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment DOIFragment on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n url\n }\n}\n\nfragment DetailContentFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n slug\n ...ContributorsListFragment\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n id\n }\n slots {\n subheader {\n ...sharedInlineSlotFragment\n }\n subheaderSubtitle {\n ...sharedInlineSlotFragment\n }\n subheaderAside {\n ...sharedInlineSlotFragment\n }\n subheaderSummary {\n ...sharedBlockSlotFragment\n }\n metadata {\n ...sharedInlineSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DetailCoverImageFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n id\n title\n ...getThumbWithFallbackFragment\n }\n ... on Item {\n id\n title\n ...getThumbWithFallbackFragment\n }\n}\n\nfragment DetailHeroFragment on HeroTemplateInstance {\n entity {\n __typename\n ...DetailCoverImageFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showThumbnailImage\n id\n }\n ...DetailContentFragment\n ...DetailSidebarFragment\n}\n\nfragment DetailSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showBasicViewMetrics\n id\n }\n slots {\n sidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DownloadCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment EntityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Collection {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ... on Item {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ...BreadcrumbsBarFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n background\n showHeroImage\n showBreadcrumbs\n showSharingLink\n showSplitDisplay\n id\n }\n ...HeaderHeroFragment\n ...DetailHeroFragment\n id\n }\n}\n\nfragment HeaderHeroFragment on HeroTemplateInstance {\n definition {\n showSplitDisplay\n id\n }\n ...HeaderSidebarFragment\n ...HeaderTitleBlockFragment\n}\n\nfragment HeaderSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n }\n }\n ...DOIFragment\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showDOI\n showBasicViewMetrics\n showSplitDisplay\n id\n }\n slots {\n headerSidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeaderTitleBlockFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Community {\n ...ContributorsListFragment\n }\n ... on Item {\n ...ContributorsListFragment\n }\n ... on Collection {\n id\n slug\n title\n ...ContributorsListFragment\n thumbnail {\n storage\n medium {\n webp {\n width\n height\n }\n }\n ...CoverImageFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n showThumbnailImage\n showSplitDisplay\n id\n }\n slots {\n header {\n ...sharedInlineSlotFragment\n }\n headerSubtitle {\n ...sharedInlineSlotFragment\n }\n headerParent {\n ...sharedInlineSlotFragment\n }\n headerAside {\n ...sharedInlineSlotFragment\n }\n headerSummary {\n ...sharedBlockSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeroTemplateFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n ...CommunityHeroHeaderFragment\n ...EntityHeroHeaderFragment\n}\n\nfragment ImageHeroTemplateFragment on ImageAttachment {\n hero {\n webp {\n url\n alt\n width\n height\n }\n }\n large {\n webp {\n url\n width\n }\n }\n medium {\n webp {\n url\n width\n }\n }\n}\n\nfragment ProcessingCheckFragment on EntityLayouts {\n main {\n allHidden\n templates {\n __typename\n ... on TemplateInstance {\n __isTemplateInstance: __typename\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SearchButtonFragment on Entity {\n __isEntity: __typename\n ...SearchModalFragment\n}\n\nfragment SearchModalFragment on Entity {\n __isEntity: __typename\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n title\n breadcrumbs {\n crumb {\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n __isEntity: __typename\n title\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SetCommunityFragment on Community {\n ...CommunityContextFragment\n}\n\nfragment ViewCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment getThumbWithFallbackFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment sharedBlockSlotFragment on TemplateSlotBlockInstance {\n empty\n content\n kind\n valid\n}\n\nfragment sharedInlineSlotFragment on TemplateSlotInlineInstance {\n empty\n content\n kind\n valid\n hidesTemplate\n}\n" } }; })(); diff --git a/__generated__/layoutItemTemplateQuery.graphql.ts b/__generated__/layoutItemTemplateQuery.graphql.ts index c798f977d..2cefa9630 100644 --- a/__generated__/layoutItemTemplateQuery.graphql.ts +++ b/__generated__/layoutItemTemplateQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<9a09cd9317b8370cdfc271e9b765f243>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -326,17 +326,7 @@ v30 = { "selections": (v29/*: any*/), "storageKey": null }, -v31 = { - "alias": null, - "args": null, - "concreteType": "AnalyticsEventCountSummary", - "kind": "LinkedField", - "name": "assetDownloads", - "plural": false, - "selections": (v29/*: any*/), - "storageKey": null -}, -v32 = [ +v31 = [ { "alias": null, "args": null, @@ -408,17 +398,17 @@ v32 = [ }, (v8/*: any*/) ], -v33 = { +v32 = { "alias": null, "args": null, "concreteType": "ItemAttribution", "kind": "LinkedField", "name": "attributions", "plural": true, - "selections": (v32/*: any*/), + "selections": (v31/*: any*/), "storageKey": null }, -v34 = { +v33 = { "alias": "image", "args": null, "concreteType": "ImageSize", @@ -428,7 +418,7 @@ v34 = { "selections": (v13/*: any*/), "storageKey": null }, -v35 = { +v34 = { "alias": null, "args": null, "concreteType": "ImageAttachment", @@ -436,24 +426,24 @@ v35 = { "name": "thumbnail", "plural": false, "selections": [ - (v34/*: any*/) + (v33/*: any*/) ], "storageKey": null }, -v36 = [ - (v35/*: any*/) +v35 = [ + (v34/*: any*/) ], -v37 = { +v36 = { "kind": "InlineFragment", - "selections": (v36/*: any*/), + "selections": (v35/*: any*/), "type": "Collection", "abstractKey": null }, -v38 = { +v37 = { "kind": "InlineFragment", "selections": [ - (v33/*: any*/), - (v35/*: any*/), + (v32/*: any*/), + (v34/*: any*/), { "alias": null, "args": null, @@ -471,10 +461,10 @@ v38 = { "plural": false, "selections": [ (v2/*: any*/), - (v37/*: any*/), + (v36/*: any*/), { "kind": "InlineFragment", - "selections": (v36/*: any*/), + "selections": (v35/*: any*/), "type": "Item", "abstractKey": null }, @@ -490,17 +480,17 @@ v38 = { "type": "Item", "abstractKey": null }, -v39 = { +v38 = { "alias": null, "args": null, "concreteType": "CollectionAttribution", "kind": "LinkedField", "name": "attributions", "plural": true, - "selections": (v32/*: any*/), + "selections": (v31/*: any*/), "storageKey": null }, -v40 = { +v39 = { "alias": null, "args": null, "concreteType": "EntityBreadcrumb", @@ -517,7 +507,7 @@ v40 = { "plural": false, "selections": [ (v2/*: any*/), - (v37/*: any*/), + (v36/*: any*/), (v18/*: any*/) ], "storageKey": null @@ -526,12 +516,12 @@ v40 = { ], "storageKey": null }, -v41 = [ +v40 = [ (v4/*: any*/), (v7/*: any*/), (v8/*: any*/) ], -v42 = { +v41 = { "alias": null, "args": null, "concreteType": "PageConnection", @@ -554,7 +544,7 @@ v42 = { "kind": "LinkedField", "name": "node", "plural": false, - "selections": (v41/*: any*/), + "selections": (v40/*: any*/), "storageKey": null } ], @@ -563,7 +553,7 @@ v42 = { ], "storageKey": null }, -v43 = [ +v42 = [ { "alias": null, "args": null, @@ -583,24 +573,24 @@ v43 = [ "storageKey": null } ], -v44 = { +v43 = { "alias": null, "args": null, "concreteType": "AssetConnection", "kind": "LinkedField", "name": "assets", "plural": false, - "selections": (v43/*: any*/), + "selections": (v42/*: any*/), "storageKey": null }, -v45 = { +v44 = { "alias": null, "args": null, "kind": "ScalarField", "name": "name", "storageKey": null }, -v46 = { +v45 = { "alias": null, "args": [ { @@ -622,7 +612,7 @@ v46 = { "name": "nodes", "plural": true, "selections": [ - (v45/*: any*/), + (v44/*: any*/), (v7/*: any*/), (v20/*: any*/), { @@ -1156,20 +1146,29 @@ return { "kind": "InlineFragment", "selections": [ (v30/*: any*/), - (v31/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "AnalyticsEventCountSummary", + "kind": "LinkedField", + "name": "assetDownloads", + "plural": false, + "selections": (v29/*: any*/), + "storageKey": null + }, (v8/*: any*/), (v4/*: any*/), (v7/*: any*/), { "kind": "InlineFragment", "selections": [ - (v38/*: any*/), + (v37/*: any*/), { "kind": "InlineFragment", "selections": [ - (v39/*: any*/), - (v35/*: any*/), - (v40/*: any*/) + (v38/*: any*/), + (v34/*: any*/), + (v39/*: any*/) ], "type": "Collection", "abstractKey": null @@ -1186,7 +1185,6 @@ return { "kind": "InlineFragment", "selections": [ (v30/*: any*/), - (v31/*: any*/), (v8/*: any*/), (v7/*: any*/), (v4/*: any*/), @@ -1223,19 +1221,19 @@ return { ], "storageKey": null }, - (v34/*: any*/) + (v33/*: any*/) ], "storageKey": null }, { "kind": "InlineFragment", "selections": [ - (v38/*: any*/), + (v37/*: any*/), { "kind": "InlineFragment", "selections": [ - (v39/*: any*/), - (v40/*: any*/) + (v38/*: any*/), + (v39/*: any*/) ], "type": "Collection", "abstractKey": null @@ -1258,7 +1256,7 @@ return { { "kind": "InlineFragment", "selections": [ - (v33/*: any*/) + (v32/*: any*/) ], "type": "Item", "abstractKey": null @@ -1266,7 +1264,7 @@ return { { "kind": "InlineFragment", "selections": [ - (v39/*: any*/) + (v38/*: any*/) ], "type": "Collection", "abstractKey": null @@ -1338,7 +1336,7 @@ return { { "kind": "InlineFragment", "selections": [ - (v42/*: any*/), + (v41/*: any*/), { "alias": null, "args": null, @@ -1346,10 +1344,10 @@ return { "kind": "LinkedField", "name": "contributions", "plural": false, - "selections": (v43/*: any*/), + "selections": (v42/*: any*/), "storageKey": null }, - (v44/*: any*/) + (v43/*: any*/) ], "type": "Item", "abstractKey": null @@ -1357,7 +1355,7 @@ return { { "kind": "InlineFragment", "selections": [ - (v42/*: any*/), + (v41/*: any*/), { "alias": null, "args": null, @@ -1365,10 +1363,10 @@ return { "kind": "LinkedField", "name": "contributions", "plural": false, - "selections": (v43/*: any*/), + "selections": (v42/*: any*/), "storageKey": null }, - (v44/*: any*/) + (v43/*: any*/) ], "type": "Collection", "abstractKey": null @@ -1376,8 +1374,8 @@ return { { "kind": "InlineFragment", "selections": [ - (v42/*: any*/), - (v44/*: any*/) + (v41/*: any*/), + (v43/*: any*/) ], "type": "Community", "abstractKey": null @@ -1548,7 +1546,7 @@ return { ], "storageKey": null }, - (v46/*: any*/), + (v45/*: any*/), { "alias": null, "args": null, @@ -1620,13 +1618,13 @@ return { "name": "schemaVersion", "plural": false, "selections": [ - (v45/*: any*/), + (v44/*: any*/), (v20/*: any*/), (v8/*: any*/) ], "storageKey": null }, - (v46/*: any*/), + (v45/*: any*/), { "alias": null, "args": null, @@ -1642,7 +1640,7 @@ return { "kind": "LinkedField", "name": "nodes", "plural": true, - "selections": (v41/*: any*/), + "selections": (v40/*: any*/), "storageKey": null } ], @@ -1742,12 +1740,12 @@ return { ] }, "params": { - "cacheID": "949f6ea340091ad073b1233d69396496", + "cacheID": "feb54e058ebd869c3238971fe99b1321", "id": null, "metadata": {}, "name": "layoutItemTemplateQuery", "operationKind": "query", - "text": "query layoutItemTemplateQuery(\n $slug: Slug!\n) {\n item(slug: $slug) {\n layouts {\n hero {\n ...HeroTemplateFragment\n id\n }\n navigation {\n ...EntityNavigationTemplateFragment\n id\n }\n ...ProcessingCheckFragment\n ...FullTextCheckFragment\n }\n ...SearchButtonFragment\n ...EntityNavBarFragment\n community {\n ...SetCommunityFragment\n id\n }\n id\n }\n}\n\nfragment BreadcrumbLinkFragment on EntityBreadcrumb {\n label\n kind\n slug\n}\n\nfragment BreadcrumbsBarFragment on Entity {\n __isEntity: __typename\n __typename\n title\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n ... on Permalinkable {\n __isPermalinkable: __typename\n permalinks {\n canonical\n uri\n id\n }\n }\n ...BreadcrumbsFragment\n}\n\nfragment BreadcrumbsFragment on Entity {\n __isEntity: __typename\n __typename\n title\n breadcrumbs {\n depth\n ...BreadcrumbLinkFragment\n id\n }\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n}\n\nfragment CommunityContextFragment on Community {\n ...CommunityNameFragment\n ...CommunityNavListFragment\n ...CommunityPickerCommunityNameFragment\n}\n\nfragment CommunityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n heroImage {\n ...ImageHeroTemplateFragment\n hero {\n webp {\n url\n }\n }\n }\n heroImageLayout\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n showHeroImage\n showBigSearchPrompt\n id\n }\n slots {\n bigSearchPrompt {\n ...sharedInlineSlotFragment\n }\n header {\n empty\n }\n headerSummary {\n empty\n }\n }\n ...HeaderHeroFragment\n id\n }\n}\n\nfragment CommunityLogoFragment on ImageAttachment {\n storage\n original {\n url\n alt\n width\n height\n }\n}\n\nfragment CommunityNameFragment on Community {\n title\n slug\n logo {\n storage\n original {\n width\n height\n }\n ...CommunityLogoFragment\n }\n}\n\nfragment CommunityNavListContentFragment on Community {\n slug\n orderings(availability: ENABLED) {\n nodes {\n name\n slug\n identifier\n count\n id\n }\n }\n pages {\n nodes {\n slug\n title\n id\n }\n }\n}\n\nfragment CommunityNavListFragment on Community {\n ...CommunityNavListContentFragment\n}\n\nfragment CommunityPickerCommunityNameFragment on Community {\n title\n}\n\nfragment ContributorNameFragment on AnyContributor {\n __isAnyContributor: __typename\n ... on PersonContributor {\n __typename\n familyName\n givenName\n }\n ... on OrganizationContributor {\n __typename\n legalName\n }\n}\n\nfragment ContributorsListFragment on Entity {\n __isEntity: __typename\n ... on Item {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Collection {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment CoverCardListFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment CoverImageFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment DOIFragment on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n url\n }\n}\n\nfragment DetailContentFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n slug\n ...ContributorsListFragment\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n id\n }\n slots {\n subheader {\n ...sharedInlineSlotFragment\n }\n subheaderSubtitle {\n ...sharedInlineSlotFragment\n }\n subheaderAside {\n ...sharedInlineSlotFragment\n }\n subheaderSummary {\n ...sharedBlockSlotFragment\n }\n metadata {\n ...sharedInlineSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DetailCoverImageFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n id\n title\n ...getThumbWithFallbackFragment\n }\n ... on Item {\n id\n title\n ...getThumbWithFallbackFragment\n }\n}\n\nfragment DetailHeroFragment on HeroTemplateInstance {\n entity {\n __typename\n ...DetailCoverImageFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showThumbnailImage\n id\n }\n ...DetailContentFragment\n ...DetailSidebarFragment\n}\n\nfragment DetailSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showBasicViewMetrics\n id\n }\n slots {\n sidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DownloadCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment EntityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Collection {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ... on Item {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ...BreadcrumbsBarFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n background\n showHeroImage\n showBreadcrumbs\n showSharingLink\n showSplitDisplay\n id\n }\n ...HeaderHeroFragment\n ...DetailHeroFragment\n id\n }\n}\n\nfragment EntityNavBarFragment on Entity {\n __isEntity: __typename\n ... on Node {\n __isNode: __typename\n id\n }\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n title\n ...EntityNavListFragment\n layouts {\n hero {\n template {\n definition {\n enableDescendantBrowsing\n enableDescendantSearch\n id\n }\n slots {\n descendantSearchPrompt {\n ...sharedInlineSlotFragment\n }\n }\n id\n }\n id\n }\n }\n}\n\nfragment EntityNavListFragment on Entity {\n __isEntity: __typename\n __typename\n schemaVersion {\n name\n identifier\n id\n }\n orderings(availability: ENABLED) {\n nodes {\n name\n slug\n identifier\n count\n id\n }\n }\n pages {\n nodes {\n title\n slug\n id\n }\n }\n}\n\nfragment EntityNavigationTemplateFragment on NavigationLayoutInstance {\n template {\n definition {\n background\n id\n }\n ...NavigationTabsFragment\n id\n }\n}\n\nfragment FullTextCheckFragment on EntityLayouts {\n main {\n templates {\n __typename\n ... on DetailTemplateInstance {\n definition {\n showBody\n variant\n id\n }\n slots {\n body {\n valid\n content\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment HeaderHeroFragment on HeroTemplateInstance {\n definition {\n showSplitDisplay\n id\n }\n ...HeaderSidebarFragment\n ...HeaderTitleBlockFragment\n}\n\nfragment HeaderSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n }\n }\n ...DOIFragment\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showDOI\n showBasicViewMetrics\n showSplitDisplay\n id\n }\n slots {\n headerSidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeaderTitleBlockFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Community {\n ...ContributorsListFragment\n }\n ... on Item {\n ...ContributorsListFragment\n }\n ... on Collection {\n id\n slug\n title\n ...ContributorsListFragment\n thumbnail {\n storage\n medium {\n webp {\n width\n height\n }\n }\n ...CoverImageFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n showThumbnailImage\n showSplitDisplay\n id\n }\n slots {\n header {\n ...sharedInlineSlotFragment\n }\n headerSubtitle {\n ...sharedInlineSlotFragment\n }\n headerParent {\n ...sharedInlineSlotFragment\n }\n headerAside {\n ...sharedInlineSlotFragment\n }\n headerSummary {\n ...sharedBlockSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeroTemplateFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n ...CommunityHeroHeaderFragment\n ...EntityHeroHeaderFragment\n}\n\nfragment ImageHeroTemplateFragment on ImageAttachment {\n hero {\n webp {\n url\n alt\n width\n height\n }\n }\n large {\n webp {\n url\n width\n }\n }\n medium {\n webp {\n url\n width\n }\n }\n}\n\nfragment NavigationTabsFragment on NavigationTemplateInstance {\n entity {\n __typename\n ... on Item {\n __typename\n pages {\n edges {\n node {\n title\n slug\n id\n }\n }\n }\n contributions {\n pageInfo {\n totalCount\n }\n }\n assets {\n pageInfo {\n totalCount\n }\n }\n }\n ... on Collection {\n __typename\n pages {\n edges {\n node {\n title\n slug\n id\n }\n }\n }\n contributions {\n pageInfo {\n totalCount\n }\n }\n assets {\n pageInfo {\n totalCount\n }\n }\n }\n ... on Community {\n __typename\n pages {\n edges {\n node {\n title\n slug\n id\n }\n }\n }\n assets {\n pageInfo {\n totalCount\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n hideMetadata\n id\n }\n slots {\n entityLabel {\n ...sharedInlineSlotFragment\n }\n }\n}\n\nfragment ProcessingCheckFragment on EntityLayouts {\n main {\n allHidden\n templates {\n __typename\n ... on TemplateInstance {\n __isTemplateInstance: __typename\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SearchButtonFragment on Entity {\n __isEntity: __typename\n ...SearchModalFragment\n}\n\nfragment SearchModalFragment on Entity {\n __isEntity: __typename\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n title\n breadcrumbs {\n crumb {\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n __isEntity: __typename\n title\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SetCommunityFragment on Community {\n ...CommunityContextFragment\n}\n\nfragment ViewCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment getThumbWithFallbackFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment sharedBlockSlotFragment on TemplateSlotBlockInstance {\n empty\n content\n kind\n valid\n}\n\nfragment sharedInlineSlotFragment on TemplateSlotInlineInstance {\n empty\n content\n kind\n valid\n hidesTemplate\n}\n" + "text": "query layoutItemTemplateQuery(\n $slug: Slug!\n) {\n item(slug: $slug) {\n layouts {\n hero {\n ...HeroTemplateFragment\n id\n }\n navigation {\n ...EntityNavigationTemplateFragment\n id\n }\n ...ProcessingCheckFragment\n ...FullTextCheckFragment\n }\n ...SearchButtonFragment\n ...EntityNavBarFragment\n community {\n ...SetCommunityFragment\n id\n }\n id\n }\n}\n\nfragment BreadcrumbLinkFragment on EntityBreadcrumb {\n label\n kind\n slug\n}\n\nfragment BreadcrumbsBarFragment on Entity {\n __isEntity: __typename\n __typename\n title\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n ... on Permalinkable {\n __isPermalinkable: __typename\n permalinks {\n canonical\n uri\n id\n }\n }\n ...BreadcrumbsFragment\n}\n\nfragment BreadcrumbsFragment on Entity {\n __isEntity: __typename\n __typename\n title\n breadcrumbs {\n depth\n ...BreadcrumbLinkFragment\n id\n }\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n}\n\nfragment CommunityContextFragment on Community {\n ...CommunityNameFragment\n ...CommunityNavListFragment\n ...CommunityPickerCommunityNameFragment\n}\n\nfragment CommunityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n heroImage {\n ...ImageHeroTemplateFragment\n hero {\n webp {\n url\n }\n }\n }\n heroImageLayout\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n showHeroImage\n showBigSearchPrompt\n id\n }\n slots {\n bigSearchPrompt {\n ...sharedInlineSlotFragment\n }\n header {\n empty\n }\n headerSummary {\n empty\n }\n }\n ...HeaderHeroFragment\n id\n }\n}\n\nfragment CommunityLogoFragment on ImageAttachment {\n storage\n original {\n url\n alt\n width\n height\n }\n}\n\nfragment CommunityNameFragment on Community {\n title\n slug\n logo {\n storage\n original {\n width\n height\n }\n ...CommunityLogoFragment\n }\n}\n\nfragment CommunityNavListContentFragment on Community {\n slug\n orderings(availability: ENABLED) {\n nodes {\n name\n slug\n identifier\n count\n id\n }\n }\n pages {\n nodes {\n slug\n title\n id\n }\n }\n}\n\nfragment CommunityNavListFragment on Community {\n ...CommunityNavListContentFragment\n}\n\nfragment CommunityPickerCommunityNameFragment on Community {\n title\n}\n\nfragment ContributorNameFragment on AnyContributor {\n __isAnyContributor: __typename\n ... on PersonContributor {\n __typename\n familyName\n givenName\n }\n ... on OrganizationContributor {\n __typename\n legalName\n }\n}\n\nfragment ContributorsListFragment on Entity {\n __isEntity: __typename\n ... on Item {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Collection {\n attributions {\n roles {\n label\n id\n }\n contributor {\n __typename\n slug\n ...ContributorNameFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment CoverCardListFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment CoverImageFragment on ImageAttachment {\n image: medium {\n webp {\n url\n alt\n width\n height\n }\n }\n}\n\nfragment DOIFragment on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n url\n }\n}\n\nfragment DetailContentFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n slug\n ...ContributorsListFragment\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n id\n }\n slots {\n subheader {\n ...sharedInlineSlotFragment\n }\n subheaderSubtitle {\n ...sharedInlineSlotFragment\n }\n subheaderAside {\n ...sharedInlineSlotFragment\n }\n subheaderSummary {\n ...sharedBlockSlotFragment\n }\n metadata {\n ...sharedInlineSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DetailCoverImageFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n id\n title\n ...getThumbWithFallbackFragment\n }\n ... on Item {\n id\n title\n ...getThumbWithFallbackFragment\n }\n}\n\nfragment DetailHeroFragment on HeroTemplateInstance {\n entity {\n __typename\n ...DetailCoverImageFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showThumbnailImage\n id\n }\n ...DetailContentFragment\n ...DetailSidebarFragment\n}\n\nfragment DetailSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showBasicViewMetrics\n id\n }\n slots {\n sidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment DownloadCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment EntityHeroHeaderFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Collection {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ... on Item {\n __typename\n visibility\n currentlyHidden\n heroImage {\n storage\n ...ImageHeroTemplateFragment\n }\n schemaDefinition {\n identifier\n id\n }\n }\n ...BreadcrumbsBarFragment\n ... on Node {\n __isNode: __typename\n id\n }\n }\n template {\n definition {\n background\n showHeroImage\n showBreadcrumbs\n showSharingLink\n showSplitDisplay\n id\n }\n ...HeaderHeroFragment\n ...DetailHeroFragment\n id\n }\n}\n\nfragment EntityNavBarFragment on Entity {\n __isEntity: __typename\n ... on Node {\n __isNode: __typename\n id\n }\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n title\n ...EntityNavListFragment\n layouts {\n hero {\n template {\n definition {\n enableDescendantBrowsing\n enableDescendantSearch\n id\n }\n slots {\n descendantSearchPrompt {\n ...sharedInlineSlotFragment\n }\n }\n id\n }\n id\n }\n }\n}\n\nfragment EntityNavListFragment on Entity {\n __isEntity: __typename\n __typename\n schemaVersion {\n name\n identifier\n id\n }\n orderings(availability: ENABLED) {\n nodes {\n name\n slug\n identifier\n count\n id\n }\n }\n pages {\n nodes {\n title\n slug\n id\n }\n }\n}\n\nfragment EntityNavigationTemplateFragment on NavigationLayoutInstance {\n template {\n definition {\n background\n id\n }\n ...NavigationTabsFragment\n id\n }\n}\n\nfragment FullTextCheckFragment on EntityLayouts {\n main {\n templates {\n __typename\n ... on DetailTemplateInstance {\n definition {\n showBody\n variant\n id\n }\n slots {\n body {\n valid\n content\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment HeaderHeroFragment on HeroTemplateInstance {\n definition {\n showSplitDisplay\n id\n }\n ...HeaderSidebarFragment\n ...HeaderTitleBlockFragment\n}\n\nfragment HeaderSidebarFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on HasDOI {\n __isHasDOI: __typename\n doiData {\n doi\n }\n }\n ...DOIFragment\n ... on Item {\n entityViews {\n ...ViewCountFragment\n }\n assetDownloads {\n ...DownloadCountFragment\n }\n }\n ... on Collection {\n entityViews {\n ...ViewCountFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n showDOI\n showBasicViewMetrics\n showSplitDisplay\n id\n }\n slots {\n headerSidebar {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeaderTitleBlockFragment on HeroTemplateInstance {\n entity {\n __typename\n ... on Community {\n ...ContributorsListFragment\n }\n ... on Item {\n ...ContributorsListFragment\n }\n ... on Collection {\n id\n slug\n title\n ...ContributorsListFragment\n thumbnail {\n storage\n medium {\n webp {\n width\n height\n }\n }\n ...CoverImageFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n listContributors\n showThumbnailImage\n showSplitDisplay\n id\n }\n slots {\n header {\n ...sharedInlineSlotFragment\n }\n headerSubtitle {\n ...sharedInlineSlotFragment\n }\n headerParent {\n ...sharedInlineSlotFragment\n }\n headerAside {\n ...sharedInlineSlotFragment\n }\n headerSummary {\n ...sharedBlockSlotFragment\n }\n callToAction {\n ...sharedBlockSlotFragment\n }\n }\n}\n\nfragment HeroTemplateFragment on HeroLayoutInstance {\n entity {\n __typename\n ... on Community {\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n ...CommunityHeroHeaderFragment\n ...EntityHeroHeaderFragment\n}\n\nfragment ImageHeroTemplateFragment on ImageAttachment {\n hero {\n webp {\n url\n alt\n width\n height\n }\n }\n large {\n webp {\n url\n width\n }\n }\n medium {\n webp {\n url\n width\n }\n }\n}\n\nfragment NavigationTabsFragment on NavigationTemplateInstance {\n entity {\n __typename\n ... on Item {\n __typename\n pages {\n edges {\n node {\n title\n slug\n id\n }\n }\n }\n contributions {\n pageInfo {\n totalCount\n }\n }\n assets {\n pageInfo {\n totalCount\n }\n }\n }\n ... on Collection {\n __typename\n pages {\n edges {\n node {\n title\n slug\n id\n }\n }\n }\n contributions {\n pageInfo {\n totalCount\n }\n }\n assets {\n pageInfo {\n totalCount\n }\n }\n }\n ... on Community {\n __typename\n pages {\n edges {\n node {\n title\n slug\n id\n }\n }\n }\n assets {\n pageInfo {\n totalCount\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n definition {\n hideMetadata\n id\n }\n slots {\n entityLabel {\n ...sharedInlineSlotFragment\n }\n }\n}\n\nfragment ProcessingCheckFragment on EntityLayouts {\n main {\n allHidden\n templates {\n __typename\n ... on TemplateInstance {\n __isTemplateInstance: __typename\n __typename\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SearchButtonFragment on Entity {\n __isEntity: __typename\n ...SearchModalFragment\n}\n\nfragment SearchModalFragment on Entity {\n __isEntity: __typename\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n title\n breadcrumbs {\n crumb {\n __typename\n ... on Sluggable {\n __isSluggable: __typename\n slug\n }\n __isEntity: __typename\n title\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n}\n\nfragment SetCommunityFragment on Community {\n ...CommunityContextFragment\n}\n\nfragment ViewCountFragment on AnalyticsEventCountSummary {\n total\n}\n\nfragment getThumbWithFallbackFragment on Entity {\n __isEntity: __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n breadcrumbs {\n crumb {\n __typename\n ... on Collection {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Item {\n thumbnail {\n image: medium {\n webp {\n url\n }\n }\n ...CoverImageFragment\n ...CoverCardListFragment\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment sharedBlockSlotFragment on TemplateSlotBlockInstance {\n empty\n content\n kind\n valid\n}\n\nfragment sharedInlineSlotFragment on TemplateSlotInlineInstance {\n empty\n content\n kind\n valid\n hidesTemplate\n}\n" } }; })(); diff --git a/components/composed/analytics/ArticleAnalyticsBlock/ArticleAnalyticsBlock.tsx b/components/composed/analytics/ArticleAnalyticsBlock/ArticleAnalyticsBlock.tsx index 862df6d97..bf9073295 100644 --- a/components/composed/analytics/ArticleAnalyticsBlock/ArticleAnalyticsBlock.tsx +++ b/components/composed/analytics/ArticleAnalyticsBlock/ArticleAnalyticsBlock.tsx @@ -7,12 +7,7 @@ import { useEffect, useCallback, } from "react"; -import { - graphql, - useRefetchableFragment, - useRelayEnvironment, - commitLocalUpdate, -} from "react-relay"; +import { graphql, useRefetchableFragment } from "react-relay"; import dynamic from "next/dynamic"; import LoadingBlock from "@/components/atomic/loading/LoadingBlock"; import { ArticleAnalyticsBlockFragment$key } from "@/relay/ArticleAnalyticsBlockFragment.graphql"; @@ -54,8 +49,6 @@ export default function ArticleAnalyticsBlock({ data }: Props) { updated: false, }; - const environment = useRelayEnvironment(); - const [isPending, startTransition] = useTransition(); const doRefetch = useCallback( @@ -77,31 +70,6 @@ export default function ArticleAnalyticsBlock({ data }: Props) { doRefetch(settings); }, [doRefetch, settings]); - useEffect(() => { - const viewsTotal = chartData.viewsByDate.unfilteredTotal; - const downloadsTotal = chartData.downloadsByDate.unfilteredTotal; - - commitLocalUpdate(environment, (store) => { - const itemRecord = store.get(chartData.id); - if (!itemRecord) return; - - const entityViews = itemRecord.getLinkedRecord("entityViews"); - if (entityViews) { - entityViews.setValue(viewsTotal, "total"); - } - - const assetDownloads = itemRecord.getLinkedRecord("assetDownloads"); - if (assetDownloads) { - assetDownloads.setValue(downloadsTotal, "total"); - } - }); - }, [ - environment, - chartData.id, - chartData.viewsByDate.unfilteredTotal, - chartData.downloadsByDate.unfilteredTotal, - ]); - const region = settings.usOnly ? "US" : "world"; return chartData?.viewsByDate ? ( diff --git a/components/composed/analytics/ViewCounter/ViewCounter.tsx b/components/composed/analytics/ViewCounter/ViewCounter.tsx index 1990327df..8e449f7f5 100644 --- a/components/composed/analytics/ViewCounter/ViewCounter.tsx +++ b/components/composed/analytics/ViewCounter/ViewCounter.tsx @@ -41,9 +41,21 @@ const query = graphql` query ViewCounterQuery($slug: Slug!) { item(slug: $slug) { __typename + entityViews { + total + } + assetDownloads { + total + } } collection(slug: $slug) { __typename + entityViews { + total + } + assetDownloads { + total + } } community(slug: $slug) { __typename diff --git a/components/templates/Hero/Detail/DetailSidebar.tsx b/components/templates/Hero/Detail/DetailSidebar.tsx index 2355e7e09..0c0a80e1b 100644 --- a/components/templates/Hero/Detail/DetailSidebar.tsx +++ b/components/templates/Hero/Detail/DetailSidebar.tsx @@ -54,9 +54,6 @@ const fragment = graphql` entityViews { ...ViewCountFragment } - assetDownloads { - ...DownloadCountFragment - } } } definition { diff --git a/components/templates/Hero/Header/HeaderSidebar.tsx b/components/templates/Hero/Header/HeaderSidebar.tsx index 3077cdf64..7f3513d58 100644 --- a/components/templates/Hero/Header/HeaderSidebar.tsx +++ b/components/templates/Hero/Header/HeaderSidebar.tsx @@ -69,9 +69,6 @@ const fragment = graphql` entityViews { ...ViewCountFragment } - assetDownloads { - ...DownloadCountFragment - } } } definition {