@kids-reporter/draft-editor 0.1.0 → 0.1.1

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.
@@ -26,7 +26,6 @@ const {
26
26
  MediaBlock,
27
27
  ImageBlock,
28
28
  SlideshowBlock,
29
- SlideshowBlockV2,
30
29
  DividerBlock,
31
30
  RelatedPostBlock,
32
31
  VideoBlock,
@@ -55,11 +54,6 @@ const AtomicBlock = props => {
55
54
  return SlideshowBlock(entity);
56
55
  }
57
56
 
58
- case 'slideshow-v2':
59
- {
60
- return SlideshowBlockV2(entity);
61
- }
62
-
63
57
  case 'EMBEDDEDCODE':
64
58
  {
65
59
  return EmbeddedCodeBlock(entity);
@@ -216,12 +216,14 @@ const imagesQuery = (0, _apollo.gql)`
216
216
  name
217
217
  imageFile {
218
218
  url
219
+ width
220
+ height
219
221
  }
220
222
  resized {
221
223
  original
222
224
  tiny
223
225
  small
224
- medium
226
+ medium
225
227
  large
226
228
  }
227
229
  }
@@ -34,9 +34,8 @@ function SlideshowButton(props) {
34
34
  return;
35
35
  }
36
36
 
37
- const contentState = editorState.getCurrentContent(); // since 202206, only slideshow-v2 will be created
38
-
39
- const contentStateWithEntity = contentState.createEntity('slideshow-v2', 'IMMUTABLE', {
37
+ const contentState = editorState.getCurrentContent();
38
+ const contentStateWithEntity = contentState.createEntity('slideshow', 'IMMUTABLE', {
40
39
  alignment: align,
41
40
  delay,
42
41
  images: selected.map(ele => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kids-reporter/draft-editor",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -23,17 +23,17 @@
23
23
  ],
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "draft-js": "^0.11.7",
27
- "@kids-reporter/draft-renderer": "0.1.0"
26
+ "@kids-reporter/draft-renderer": "0.1.1",
27
+ "draft-js": "^0.11.7"
28
28
  },
29
29
  "peerDependencies": {
30
- "react": "18.2.0",
31
- "react-dom": "18.2.0",
32
- "styled-components": "5.3.5",
33
30
  "@keystone-6/core": "5.2.0",
34
31
  "@keystone-ui/button": "^7.0.2",
35
32
  "@keystone-ui/fields": "^7.2.0",
36
- "@keystone-ui/modals": "^6.0.3"
33
+ "@keystone-ui/modals": "^6.0.3",
34
+ "react": "18.2.0",
35
+ "react-dom": "18.2.0",
36
+ "styled-components": "5.3.5"
37
37
  },
38
38
  "files": [
39
39
  "lib"