Skip to content

Commit

Permalink
test: add bug reproduction from #7720
Browse files Browse the repository at this point in the history
fixes #7720
  • Loading branch information
niieani committed Oct 12, 2023
1 parent b5b3c99 commit 1ac6cf9
Show file tree
Hide file tree
Showing 3 changed files with 22,744 additions and 0 deletions.
149 changes: 149 additions & 0 deletions dev-test/gatsby/fragments.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
import gql from 'graphql-tag';

export const WPColumns = gql`
fragment WPColumns on WpCoreColumnsBlock {
__typename
attributes {
... on WpCoreColumnsBlockAttributes {
align
verticalAlignment
}
}
innerBlocks {
...WpColumnFields
...WpCoreImageBlockFragment
...WpCoreGalleryBlockFragment
innerBlocks {
__typename
...WpCoreImageBlockForGalleryFragment
...WpCoreGalleryBlockFragment
saveContent
dynamicContent
isDynamic
#
... on WpCoreGalleryBlock {
__typename
...WpCoreGalleryBlockFragment
innerBlocks {
__typename
...WpCoreImageBlockForGalleryFragment
}
}
... on WpCoreColumnsBlock {
innerBlocks {
...WpColumnFields
innerBlocks {
...WpCoreImageBlockFragment
...WpCoreGalleryBlockFragment
... on WpCoreColumnsBlock {
innerBlocks {
...WpColumnFields
innerBlocks {
...WpCoreImageBlockForGalleryFragment
...WpCoreGalleryBlockFragment
}
}
}
}
}
}
}
}
}
`;

export const wpColumnFields = gql`
fragment WpColumnFields on WpCoreColumnBlock {
__typename
saveContent
dynamicContent
isDynamic
attributes {
__typename
}
}
`;

export const WpCoreImageBlockFragment = gql`
fragment WpCoreImageBlockFragment on WpCoreImageBlock {
__typename
saveContent
originalContent
attributes {
__typename
... on WpCoreImageBlockAttributes {
id
alt
caption
width
title
height
linkTarget
url
imageFluid {
childImageSharp {
gatsbyImageData(quality: 100, layout: FULL_WIDTH)
}
}
}
}
}
`;

export const WpCoreImageBlockForGalleryFragment = gql`
fragment WpCoreImageBlockForGalleryFragment on WpCoreImageBlock {
__typename
saveContent
attributes {
__typename
... on WpCoreImageBlockAttributes {
id
alt
caption
width
title
height
linkTarget
url
imageFluid {
childImageSharp {
full: gatsbyImageData(quality: 100, layout: FULL_WIDTH)
thumbnail: gatsbyImageData(layout: CONSTRAINED)
}
}
}
}
}
`;

export const WpCoreParagraphBlockFragment = gql`
fragment WpCoreParagraphBlockFragment on WpCoreParagraphBlock {
__typename
saveContent
isDynamic
dynamicContent
}
`;

export const WpCoreGalleryBlockFragment = gql`
fragment WpCoreGalleryBlockFragment on WpCoreGalleryBlock {
dynamicContent
attributes {
... on WpCoreGalleryBlockAttributes {
align
anchor
ids
caption
images {
id
url
link
alt
caption
}
className
}
}
}
`;
Loading

0 comments on commit 1ac6cf9

Please sign in to comment.