@contentful/field-editor-shared 2.4.1 → 2.4.2

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.
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "LocalePublishingStatusList", {
10
10
  });
11
11
  const _react = /*#__PURE__*/ _interop_require_default(require("react"));
12
12
  const _f36components = require("@contentful/f36-components");
13
- const _lodash = require("lodash");
13
+ const _sortBy = /*#__PURE__*/ _interop_require_default(require("lodash/sortBy"));
14
14
  const _Banner = require("./Banner");
15
15
  const _LocalePublishingStatus = require("./LocalePublishingStatus");
16
16
  function _interop_require_default(obj) {
@@ -38,7 +38,7 @@ function groupAndSortLocales(entries, activeLocales) {
38
38
  nonSelected: []
39
39
  });
40
40
  return {
41
- selected: (0, _lodash.sortBy)(selected, 'locale.name'),
41
+ selected: (0, _sortBy.default)(selected, 'locale.name'),
42
42
  nonSelected: nonSelected.sort((a, b)=>{
43
43
  if (a.status === b.status) {
44
44
  return a.locale.name.localeCompare(b.locale.name);
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "ScheduledBanner", {
10
10
  });
11
11
  const _react = /*#__PURE__*/ _interop_require_default(require("react"));
12
12
  const _f36components = require("@contentful/f36-components");
13
- const _lodash = require("lodash");
13
+ const _orderBy = /*#__PURE__*/ _interop_require_default(require("lodash/orderBy"));
14
14
  const _Banner = require("./Banner");
15
15
  function _interop_require_default(obj) {
16
16
  return obj && obj.__esModule ? obj : {
@@ -25,7 +25,7 @@ var ScheduledActionTypes = /*#__PURE__*/ function(ScheduledActionTypes) {
25
25
  }(ScheduledActionTypes || {});
26
26
  function ScheduledBanner({ entityId, jobs }) {
27
27
  const scheduledJobs = jobs.filter((job)=>job.entity.sys.id === entityId);
28
- const sortedScheduledJobs = (0, _lodash.orderBy)(scheduledJobs, [
28
+ const sortedScheduledJobs = (0, _orderBy.default)(scheduledJobs, [
29
29
  'scheduledFor.datetime'
30
30
  ], [
31
31
  'asc'
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { MenuSectionTitle } from '@contentful/f36-components';
3
- import { sortBy } from 'lodash';
3
+ import sortBy from 'lodash/sortBy';
4
4
  import { Banner } from './Banner';
5
5
  import { LocalePublishingStatus } from './LocalePublishingStatus';
6
6
  function groupAndSortLocales(entries, activeLocales) {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { formatDateAndTime } from '@contentful/f36-components';
3
- import { orderBy } from 'lodash';
3
+ import orderBy from 'lodash/orderBy';
4
4
  import { Banner } from './Banner';
5
5
  var ScheduledActionTypes = /*#__PURE__*/ function(ScheduledActionTypes) {
6
6
  ScheduledActionTypes["publish"] = "publish";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-shared",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "registry": "https://npm.pkg.github.com/"
57
57
  },
58
- "gitHead": "1d0dc6dc10cf4ad43aa48b04fa67d29ab7edaee8"
58
+ "gitHead": "6bee4a59a3c19a95d2cadde3ef0c78112788626e"
59
59
  }