cmspageblocks 1.0.46 → 1.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmspageblocks",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "repository": {
@@ -34,10 +34,7 @@
34
34
  "classnames": "^2.3.1",
35
35
  "formik": "^2.2.9",
36
36
  "react-image-gallery": "^1.2.7",
37
- "react-photo-gallery": "^8.0.0",
38
- "react-responsive-carousel": "^3.2.21",
39
- "react-slick": "^0.28.1",
40
- "slick-carousel": "^1.8.1"
37
+ "react-responsive-carousel": "^3.2.21"
41
38
  },
42
39
  "devDependencies": {
43
40
  "@babel/core": "^7.15.0",
@@ -1,6 +1,5 @@
1
- import React, { useState } from 'react'
1
+ import React from 'react'
2
2
  import Gallery from 'react-image-gallery';
3
- // import GridGallery from './GridGallery';
4
3
  import { NewGallery } from './ImageSlide.css';
5
4
 
6
5
  export default function ImageGallery({options}) {
@@ -13,7 +12,6 @@ export default function ImageGallery({options}) {
13
12
  return (
14
13
  <NewGallery>
15
14
  <Gallery items={items} showThumbnails={true} thumbnailPosition='right'></Gallery>
16
- {/* <GridGallery options={options} /> */}
17
15
  </NewGallery>
18
16
  )
19
17
  }
@@ -1,33 +0,0 @@
1
- import React from 'react'
2
- import Gallery from 'react-photo-gallery'
3
-
4
- export default function GridGallery({ options }) {
5
-
6
- const items = options.content.map(transform)
7
-
8
- return (
9
- <div>
10
- <div style={{ columns: 3 }}>
11
- {items.map((photo, index) => (
12
- <img src={photo.original}></img>
13
- ))}
14
- </div>
15
- <Gallery photos={items}>
16
-
17
- </Gallery>
18
- </div>
19
- )
20
- }
21
-
22
- function transform(item) {
23
- return {
24
- src: `https://cdn.burobork.nl/${item.reference}`,
25
- original: `https://cdn.burobork.nl/${item.reference}`,
26
- thumbnail: `https://cdn.burobork.nl/${item.reference}`,
27
- originalAlt: item.alt,
28
- originalTitle: item.title,
29
- lazyLoad: true,
30
- height: 3,
31
- width: 4,
32
- }
33
- }