chore: update dependencies (#1041)
This commit is contained in:
committed by
GitHub
parent
808070761d
commit
40d697cac2
@ -1,5 +1,5 @@
|
||||
import ini from 'ini';
|
||||
import jwtDecode from 'jwt-decode';
|
||||
import { jwtDecode } from 'jwt-decode';
|
||||
import get from 'lodash/get';
|
||||
import intersection from 'lodash/intersection';
|
||||
import pick from 'lodash/pick';
|
||||
|
@ -8,8 +8,8 @@ import { getPreviewCard } from '@staticcms/core/lib/registry';
|
||||
import { getEntryBackupKey } from '@staticcms/core/lib/util/backup.util';
|
||||
import classNames from '@staticcms/core/lib/util/classNames.util';
|
||||
import {
|
||||
selectEntryCollectionTitle,
|
||||
getFields,
|
||||
selectEntryCollectionTitle,
|
||||
selectTemplateName,
|
||||
} from '@staticcms/core/lib/util/collection.util';
|
||||
import localForage from '@staticcms/core/lib/util/localForage';
|
||||
|
@ -94,8 +94,8 @@ const EditorWorkflowToolbarButtons: FC<EditorWorkflowToolbarButtonsProps> = ({
|
||||
isUpdatingStatus
|
||||
? t('editor.editorToolbar.updating')
|
||||
: isLoading
|
||||
? t('app.app.loading')
|
||||
: t('editor.editorToolbar.status', { status: statusToTranslation[currentStatus] })
|
||||
? t('app.app.loading')
|
||||
: t('editor.editorToolbar.status', { status: statusToTranslation[currentStatus] })
|
||||
}
|
||||
color="secondary"
|
||||
disabled={disabled}
|
||||
|
@ -208,8 +208,8 @@ const MediaLibrary: FC<MediaLibraryProps> = ({ canInsert = false, isDialog = fal
|
||||
const newValue = Array.isArray(selectedFile)
|
||||
? selectedFile
|
||||
: selectedFile
|
||||
? [selectedFile]
|
||||
: [];
|
||||
? [selectedFile]
|
||||
: [];
|
||||
if (newValue.includes(asset.path)) {
|
||||
return;
|
||||
}
|
||||
@ -226,8 +226,8 @@ const MediaLibrary: FC<MediaLibraryProps> = ({ canInsert = false, isDialog = fal
|
||||
const newValue = Array.isArray(selectedFile)
|
||||
? [...selectedFile]
|
||||
: selectedFile
|
||||
? [selectedFile]
|
||||
: [];
|
||||
? [selectedFile]
|
||||
: [];
|
||||
|
||||
const index = newValue.indexOf(asset.path);
|
||||
if (index < 0) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import formatDate from 'date-fns/format';
|
||||
import format from 'date-fns/format';
|
||||
|
||||
import { isNotNullish } from '@staticcms/core/lib/util/null.util';
|
||||
import { DEFAULT_DATETIME_FORMAT, DEFAULT_DATE_FORMAT, DEFAULT_TIME_FORMAT } from './constants';
|
||||
@ -29,7 +29,7 @@ const getDefaultValue: FieldGetDefaultMethod<string | Date, DateTimeField> = (
|
||||
}
|
||||
|
||||
const today = field.picker_utc ? localToUTC(new Date()) : new Date();
|
||||
return formatDate(today, finalFormat);
|
||||
return format(today, finalFormat);
|
||||
};
|
||||
|
||||
export default getDefaultValue;
|
||||
|
@ -176,8 +176,8 @@ const ListItem: FC<ListItemProps> = ({
|
||||
const labelReturn = summary
|
||||
? handleSummary(summary, entry, String(labelFieldValue), objectValue, multiFields, t)
|
||||
: labelFieldValue
|
||||
? String(labelFieldValue)
|
||||
: undefined;
|
||||
? String(labelFieldValue)
|
||||
: undefined;
|
||||
|
||||
return [labelReturn ?? t('editor.editorWidgets.list.noValue'), childObjectField];
|
||||
}
|
||||
|
@ -84,8 +84,8 @@ const RelationSummary: FC<RelationSummaryProps> = ({ value, field, locale, entry
|
||||
const newFilteredValue = Array.isArray(value)
|
||||
? value.filter(v => v && String(v) in byValue)
|
||||
: String(value) in byValue
|
||||
? [value]
|
||||
: [];
|
||||
? [value]
|
||||
: [];
|
||||
|
||||
const newInitialOptions = newFilteredValue.map(v => byValue[String(v)]);
|
||||
|
||||
|
Reference in New Issue
Block a user