decap-cms-widget-list 3.0.2 → 3.0.3

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,7 +1,7 @@
1
1
  {
2
2
  "name": "decap-cms-widget-list",
3
3
  "description": "Widget for editing lists in Decap CMS.",
4
- "version": "3.0.2",
4
+ "version": "3.0.3",
5
5
  "homepage": "https://www.decapcms.org/docs/widgets/#list",
6
6
  "repository": "https://github.com/decaporg/decap-cms/tree/master/packages/decap-cms-widget-list",
7
7
  "bugs": "https://github.com/decaporg/decap-cms/issues",
@@ -37,5 +37,5 @@
37
37
  "react": "^16.8.4 || ^17.0.0",
38
38
  "react-immutable-proptypes": "^2.1.0"
39
39
  },
40
- "gitHead": "b1eae3bbb1661dfa5e3fc0407f03a2e0d564c14e"
40
+ "gitHead": "34f0b63b4602efa261ef11aafae85460ca8f77cd"
41
41
  }
@@ -5,7 +5,7 @@ import styled from '@emotion/styled';
5
5
  import { css, ClassNames } from '@emotion/core';
6
6
  import { List, Map, fromJS } from 'immutable';
7
7
  import { partial, isEmpty, uniqueId } from 'lodash';
8
- import uuid from 'uuid/v4';
8
+ import { v4 as uuid } from 'uuid';
9
9
  import DecapCmsWidgetObject from 'decap-cms-widget-object';
10
10
  import {
11
11
  DndContext,
@@ -593,8 +593,6 @@ export default class ListControl extends React.Component {
593
593
  }
594
594
  }
595
595
 
596
- console.log('kurwa', classNameWrapper);
597
-
598
596
  return (
599
597
  <SortableListItem
600
598
  css={[styles.listControlItem, collapsed && styles.listControlItemCollapsed]}
@@ -34,7 +34,7 @@ jest.mock('decap-cms-ui-default', () => {
34
34
  ListItemTopBar,
35
35
  };
36
36
  });
37
- jest.mock('uuid/v4');
37
+ jest.mock('uuid');
38
38
 
39
39
  describe('ListControl', () => {
40
40
  const props = {
@@ -63,9 +63,9 @@ describe('ListControl', () => {
63
63
 
64
64
  beforeEach(() => {
65
65
  jest.clearAllMocks();
66
- const uuid = require('uuid/v4');
66
+ const uuid = require('uuid');
67
67
  let id = 0;
68
- uuid.mockImplementation(() => {
68
+ uuid.v4.mockImplementation(() => {
69
69
  return id++;
70
70
  });
71
71
  });