fix(deps): update dependency react-datetime to v3 (#5383)
This commit is contained in:
parent
558b21f700
commit
a2735b5fd6
@ -22,7 +22,7 @@
|
|||||||
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore \"**/__tests__\" --root-mode upward"
|
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore \"**/__tests__\" --root-mode upward"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-datetime": "^2.16.3"
|
"react-datetime": "^3.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@emotion/core": "^10.0.35",
|
"@emotion/core": "^10.0.35",
|
||||||
|
@ -103,7 +103,7 @@ export default class DateControl extends React.Component {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
onBlur = datetime => {
|
onClose = datetime => {
|
||||||
const { setInactiveStyle } = this.props;
|
const { setInactiveStyle } = this.props;
|
||||||
|
|
||||||
if (!this.isValidDate(datetime)) {
|
if (!this.isValidDate(datetime)) {
|
||||||
@ -133,8 +133,8 @@ export default class DateControl extends React.Component {
|
|||||||
timeFormat={timeFormat}
|
timeFormat={timeFormat}
|
||||||
value={moment(value, format)}
|
value={moment(value, format)}
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
onFocus={setActiveStyle}
|
onOpen={setActiveStyle}
|
||||||
onBlur={this.onBlur}
|
onClose={this.onClose}
|
||||||
inputProps={{ className: classNameWrapper, id: forID }}
|
inputProps={{ className: classNameWrapper, id: forID }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -125,7 +125,7 @@ export default class DateTimeControl extends React.Component {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
onBlur = datetime => {
|
onClose = datetime => {
|
||||||
const { setInactiveStyle } = this.props;
|
const { setInactiveStyle } = this.props;
|
||||||
|
|
||||||
if (!this.isValidDate(datetime)) {
|
if (!this.isValidDate(datetime)) {
|
||||||
@ -157,8 +157,8 @@ export default class DateTimeControl extends React.Component {
|
|||||||
timeFormat={timeFormat}
|
timeFormat={timeFormat}
|
||||||
value={moment(value, format)}
|
value={moment(value, format)}
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
onFocus={setActiveStyle}
|
onOpen={setActiveStyle}
|
||||||
onBlur={this.onBlur}
|
onClose={this.onClose}
|
||||||
inputProps={{ className: classNameWrapper, id: forID }}
|
inputProps={{ className: classNameWrapper, id: forID }}
|
||||||
utc={this.pickerUtc}
|
utc={this.pickerUtc}
|
||||||
/>
|
/>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"codemirror": "^5.46.0",
|
"codemirror": "^5.46.0",
|
||||||
|
"create-react-class": "^15.7.0",
|
||||||
"netlify-cms-app": "^2.15.6",
|
"netlify-cms-app": "^2.15.6",
|
||||||
"netlify-cms-media-library-cloudinary": "^1.3.10",
|
"netlify-cms-media-library-cloudinary": "^1.3.10",
|
||||||
"netlify-cms-media-library-uploadcare": "^0.5.10",
|
"netlify-cms-media-library-uploadcare": "^0.5.10",
|
||||||
|
39
yarn.lock
39
yarn.lock
@ -6673,7 +6673,7 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7:
|
|||||||
safe-buffer "^5.0.1"
|
safe-buffer "^5.0.1"
|
||||||
sha.js "^2.4.8"
|
sha.js "^2.4.8"
|
||||||
|
|
||||||
create-react-class@^15.5.2:
|
create-react-class@^15.5.1, create-react-class@^15.7.0:
|
||||||
version "15.7.0"
|
version "15.7.0"
|
||||||
resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.7.0.tgz#7499d7ca2e69bb51d13faf59bd04f0c65a1d6c1e"
|
resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.7.0.tgz#7499d7ca2e69bb51d13faf59bd04f0c65a1d6c1e"
|
||||||
integrity sha512-QZv4sFWG9S5RUvkTYWbflxeZX+JG7Cz0Tn33rQBJ+WFQTqTfUTjMjiv9tnfXazjsO5r0KhPs+AqCjyrQX6h2ng==
|
integrity sha512-QZv4sFWG9S5RUvkTYWbflxeZX+JG7Cz0Tn33rQBJ+WFQTqTfUTjMjiv9tnfXazjsO5r0KhPs+AqCjyrQX6h2ng==
|
||||||
@ -10243,7 +10243,7 @@ interpret@^2.0.0, interpret@^2.2.0:
|
|||||||
resolved "https://registry.yarnpkg.com/interpret/-/interpret-2.2.0.tgz#1a78a0b5965c40a5416d007ad6f50ad27c417df9"
|
resolved "https://registry.yarnpkg.com/interpret/-/interpret-2.2.0.tgz#1a78a0b5965c40a5416d007ad6f50ad27c417df9"
|
||||||
integrity sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==
|
integrity sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==
|
||||||
|
|
||||||
invariant@^2.1.0, invariant@^2.2.2, invariant@^2.2.3, invariant@^2.2.4:
|
invariant@^2.0.0, invariant@^2.1.0, invariant@^2.2.2, invariant@^2.2.3, invariant@^2.2.4:
|
||||||
version "2.2.4"
|
version "2.2.4"
|
||||||
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
|
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
|
||||||
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
|
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
|
||||||
@ -13299,11 +13299,6 @@ oauth-sign@~0.9.0:
|
|||||||
resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455"
|
resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455"
|
||||||
integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==
|
integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==
|
||||||
|
|
||||||
object-assign@^3.0.0:
|
|
||||||
version "3.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-3.0.0.tgz#9bedd5ca0897949bca47e7ff408062d549f587f2"
|
|
||||||
integrity sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=
|
|
||||||
|
|
||||||
object-assign@^4, object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1:
|
object-assign@^4, object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1:
|
||||||
version "4.1.1"
|
version "4.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
|
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
|
||||||
@ -14803,15 +14798,12 @@ react-color@^2.18.1:
|
|||||||
reactcss "^1.2.0"
|
reactcss "^1.2.0"
|
||||||
tinycolor2 "^1.4.1"
|
tinycolor2 "^1.4.1"
|
||||||
|
|
||||||
react-datetime@^2.16.3:
|
react-datetime@^3.0.0:
|
||||||
version "2.16.3"
|
version "3.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/react-datetime/-/react-datetime-2.16.3.tgz#7f9ac7d4014a939c11c761d0c22d1fb506cb505e"
|
resolved "https://registry.yarnpkg.com/react-datetime/-/react-datetime-3.0.4.tgz#176159d08d35c9e750f0be2f0b974e4f9532ffa5"
|
||||||
integrity sha512-amWfb5iGEiyqjLmqCLlPpu2oN415jK8wX1qoTq7qn6EYiU7qQgbNHglww014PT4O/3G5eo/3kbJu/M/IxxTyGw==
|
integrity sha512-v6MVwCve+DRaLN2f22LTO5TlrPpkUXumPkp1zfrbhaFtSYGl2grZ2JtwJfLxRj/T4ACyePAV4srCR6cMSiQ/Iw==
|
||||||
dependencies:
|
dependencies:
|
||||||
create-react-class "^15.5.2"
|
|
||||||
object-assign "^3.0.0"
|
|
||||||
prop-types "^15.5.7"
|
prop-types "^15.5.7"
|
||||||
react-onclickoutside "^6.5.0"
|
|
||||||
|
|
||||||
react-dev-utils@^9.0.0:
|
react-dev-utils@^9.0.0:
|
||||||
version "9.1.0"
|
version "9.1.0"
|
||||||
@ -15008,11 +15000,6 @@ react-modal@^3.8.1:
|
|||||||
react-lifecycles-compat "^3.0.0"
|
react-lifecycles-compat "^3.0.0"
|
||||||
warning "^4.0.3"
|
warning "^4.0.3"
|
||||||
|
|
||||||
react-onclickoutside@^6.5.0:
|
|
||||||
version "6.10.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/react-onclickoutside/-/react-onclickoutside-6.10.0.tgz#05abb592575b08b4d129003494056b9dff46eeeb"
|
|
||||||
integrity sha512-7i2L3ef+0ILXpL6P+Hg304eCQswh4jl3ynwR71BSlMU49PE2uk31k8B2GkP6yE9s2D4jTGKnzuSpzWxu4YxfQQ==
|
|
||||||
|
|
||||||
react-polyglot@^0.7.0:
|
react-polyglot@^0.7.0:
|
||||||
version "0.7.1"
|
version "0.7.1"
|
||||||
resolved "https://registry.yarnpkg.com/react-polyglot/-/react-polyglot-0.7.1.tgz#c11702243e154d41d2d3fcbc745f05b040ab0a50"
|
resolved "https://registry.yarnpkg.com/react-polyglot/-/react-polyglot-0.7.1.tgz#c11702243e154d41d2d3fcbc745f05b040ab0a50"
|
||||||
@ -15042,7 +15029,19 @@ react-popper@^1.3.7:
|
|||||||
typed-styles "^0.0.7"
|
typed-styles "^0.0.7"
|
||||||
warning "^4.0.2"
|
warning "^4.0.2"
|
||||||
|
|
||||||
react-redux@^4.0.0, react-redux@^7.2.0:
|
react-redux@^4.0.0:
|
||||||
|
version "4.4.10"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-4.4.10.tgz#ad57bd1db00c2d0aa7db992b360ce63dd0b80ec5"
|
||||||
|
integrity sha512-tjL0Bmpkj75Td0k+lXlF8Fc8a9GuXFv/3ahUOCXExWs/jhsKiQeTffdH0j5byejCGCRL4tvGFYlrwBF1X/Aujg==
|
||||||
|
dependencies:
|
||||||
|
create-react-class "^15.5.1"
|
||||||
|
hoist-non-react-statics "^3.3.0"
|
||||||
|
invariant "^2.0.0"
|
||||||
|
lodash "^4.17.11"
|
||||||
|
loose-envify "^1.4.0"
|
||||||
|
prop-types "^15.7.2"
|
||||||
|
|
||||||
|
react-redux@^7.2.0:
|
||||||
version "7.2.4"
|
version "7.2.4"
|
||||||
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-7.2.4.tgz#1ebb474032b72d806de2e0519cd07761e222e225"
|
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-7.2.4.tgz#1ebb474032b72d806de2e0519cd07761e222e225"
|
||||||
integrity sha512-hOQ5eOSkEJEXdpIKbnRyl04LhaWabkDPV+Ix97wqQX3T3d2NQ8DUblNXXtNMavc7DpswyQM6xfaN4HQDKNY2JA==
|
integrity sha512-hOQ5eOSkEJEXdpIKbnRyl04LhaWabkDPV+Ix97wqQX3T3d2NQ8DUblNXXtNMavc7DpswyQM6xfaN4HQDKNY2JA==
|
||||||
|
Loading…
x
Reference in New Issue
Block a user