From 0a2cecc9a74ebaca414c14c5842ae661301f0d82 Mon Sep 17 00:00:00 2001 From: Anthony Ledesma <30462574+AnthonyLedesma@users.noreply.github.com> Date: Tue, 27 Feb 2024 13:15:02 -0700 Subject: [PATCH] enable the lightbox script to load for all CoBlocks galleries (#2589) Co-authored-by: aledesma-godaddy --- src/blocks/gallery-carousel/block.json | 1 + src/blocks/gallery-collage/block.json | 1 + src/blocks/gallery-offset/block.json | 1 + src/blocks/gallery-stacked/block.json | 1 + 4 files changed, 4 insertions(+) diff --git a/src/blocks/gallery-carousel/block.json b/src/blocks/gallery-carousel/block.json index 9d10833e4c6..7fa4c03a01c 100644 --- a/src/blocks/gallery-carousel/block.json +++ b/src/blocks/gallery-carousel/block.json @@ -111,6 +111,7 @@ "title": "Carousel", "textdomain": "coblocks", "editorScript": ["coblocks-1"], + "viewScript": ["coblocks-lightbox"], "script": [ "coblocks-tiny-swiper", "coblocks-tinyswiper-initializer" ], "description": "Display multiple images in a beautiful carousel gallery.", "supports": { diff --git a/src/blocks/gallery-collage/block.json b/src/blocks/gallery-collage/block.json index dba76091f32..a981b3d25ff 100644 --- a/src/blocks/gallery-collage/block.json +++ b/src/blocks/gallery-collage/block.json @@ -65,5 +65,6 @@ "title": "Collage", "textdomain": "coblocks", "editorScript": ["coblocks-4"], + "viewScript": ["coblocks-lightbox"], "description": "Assemble images into a beautiful collage gallery." } diff --git a/src/blocks/gallery-offset/block.json b/src/blocks/gallery-offset/block.json index 54a5bea1ae2..7105dc3f879 100644 --- a/src/blocks/gallery-offset/block.json +++ b/src/blocks/gallery-offset/block.json @@ -10,5 +10,6 @@ "title": "Offset", "textdomain": "coblocks", "editorScript": ["coblocks-7"], + "viewScript": ["coblocks-lightbox"], "description": "Display images in an offset brick pattern gallery." } diff --git a/src/blocks/gallery-stacked/block.json b/src/blocks/gallery-stacked/block.json index fa470c6e3f6..9888d0d6f0d 100644 --- a/src/blocks/gallery-stacked/block.json +++ b/src/blocks/gallery-stacked/block.json @@ -93,5 +93,6 @@ "textdomain": "coblocks", "title": "Stacked", "editorScript": ["coblocks-10"], + "viewScript": ["coblocks-lightbox"], "description": "Display multiple images in a single column stacked gallery." }