diff --git a/package-lock.json b/package-lock.json index fd2019bd9..ac05ab1bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -742,6 +742,16 @@ "integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==", "dev": true }, + "@types/debounce": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@types/debounce/-/debounce-1.2.0.tgz", + "integrity": "sha512-bWG5wapaWgbss9E238T0R6bfo5Fh3OkeoSt245CM7JJwVwpw6MEBCbIxLq5z8KzsE3uJhzcIuQkyiZmzV3M/Dw==" + }, + "@types/debug": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.5.tgz", + "integrity": "sha512-Q1y515GcOdTHgagaVFhHnIFQ38ygs/kmxdNpvpou+raI9UO3YZcHDngBSYKQklcKlvA7iuQlmIKbzvmxcOE9CQ==" + }, "@types/events": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", @@ -759,6 +769,16 @@ "@types/node": "*" } }, + "@types/is-hotkey": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@types/is-hotkey/-/is-hotkey-0.1.1.tgz", + "integrity": "sha512-QzVKww91fJv/KzARJBS/Im5GS2A8iE64E1HxOed72EmYOvPLG4PBw77QCIUjFl7VwWB3G/SVrxsHedJD/wtn1A==" + }, + "@types/lodash": { + "version": "4.14.149", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.149.tgz", + "integrity": "sha512-ijGqzZt/b7BfzcK9vTrS6MFljQRPn5BFWOx8oE0GYxribu6uV+aA9zZuXI1zc/etK9E8nrgdoF2+LgUw7+9tJQ==" + }, "@types/minimatch": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", @@ -4084,6 +4104,11 @@ } } }, + "compute-scroll-into-view": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-1.0.11.tgz", + "integrity": "sha512-uUnglJowSe0IPmWOdDtrlHXof5CTIJitfJEyITHBW6zDVOGu9Pjk5puaLM73SLcwak0L4hEjO7Td88/a6P5i7A==" + }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -4541,6 +4566,11 @@ "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", "dev": true }, + "debounce": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.0.tgz", + "integrity": "sha512-mYtLl1xfZLi1m4RtQYlZgJUNQjl4ZxVnHzIR8nLLgi4q1YT8o/WM+MK/f8yfcc9s5Ir5zRaPZyZU6xs1Syoocg==" + }, "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -7641,11 +7671,6 @@ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, - "get-document": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-document/-/get-document-1.0.0.tgz", - "integrity": "sha1-SCG85m8cJMsDMWAr5strEsTwHEs=" - }, "get-func-name": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", @@ -7681,14 +7706,6 @@ "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", "dev": true }, - "get-window": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/get-window/-/get-window-1.1.2.tgz", - "integrity": "sha512-yjWpFcy9fjhLQHW1dPtg9ga4pmizLY8y4ZSHdGrAQ1NU277MRhnGnnLPxe19X8W5lWVsCZz++5xEuNozWMVmTw==", - "requires": { - "get-document": "1" - } - }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -9080,6 +9097,14 @@ "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", "dev": true }, + "is-plain-object": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz", + "integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==", + "requires": { + "isobject": "^4.0.0" + } + }, "is-png": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-png/-/is-png-2.0.0.tgz", @@ -9191,11 +9216,6 @@ "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", "dev": true }, - "is-window": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-window/-/is-window-1.0.2.tgz", - "integrity": "sha1-LIlspT25feRdPDMTOmXYyfVjSA0=" - }, "is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", @@ -9219,10 +9239,10 @@ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" }, - "isomorphic-base64": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/isomorphic-base64/-/isomorphic-base64-1.0.2.tgz", - "integrity": "sha1-9Caq6CVpuopOxcpzrSGkSrHueAM=" + "isobject": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz", + "integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==" }, "isstream": { "version": "0.1.2", @@ -12759,11 +12779,6 @@ } } }, - "react-immutable-proptypes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/react-immutable-proptypes/-/react-immutable-proptypes-2.1.0.tgz", - "integrity": "sha1-Aj1vObsVyXwHHp5g0A0TbqxfoLQ=" - }, "react-input-autosize": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/react-input-autosize/-/react-input-autosize-2.2.2.tgz", @@ -13708,6 +13723,14 @@ "ajv-keywords": "^3.1.0" } }, + "scroll-into-view-if-needed": { + "version": "2.2.20", + "resolved": "https://registry.npmjs.org/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.20.tgz", + "integrity": "sha512-P9kYMrhi9f6dvWwTGpO5I3HgjSU/8Mts7xL3lkoH5xlewK7O9Obdc5WmMCzppln7bCVGNmf3qfoZXrpCeyNJXw==", + "requires": { + "compute-scroll-into-view": "1.0.11" + } + }, "scss-tokenizer": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", @@ -13751,11 +13774,6 @@ } } }, - "selection-is-backward": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/selection-is-backward/-/selection-is-backward-1.0.0.tgz", - "integrity": "sha1-l6VGMxiKURq6ZBn8XB+pG0Z+a+E=" - }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", @@ -14036,14 +14054,6 @@ } } }, - "slate-base64-serializer": { - "version": "0.2.111", - "resolved": "https://registry.npmjs.org/slate-base64-serializer/-/slate-base64-serializer-0.2.111.tgz", - "integrity": "sha512-pEsbxz4msVSCCCkn7rX+lHXxUj/oddcR4VsIYwWeQQLm9Uw7Ovxja4rQ/hVFcQqoU2DIjITRwBR9pv3RyS+PZQ==", - "requires": { - "isomorphic-base64": "^1.0.2" - } - }, "slate-collapse-on-escape": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/slate-collapse-on-escape/-/slate-collapse-on-escape-0.8.1.tgz", @@ -14052,23 +14062,6 @@ "to-pascal-case": "^1.0.0" } }, - "slate-dev-environment": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/slate-dev-environment/-/slate-dev-environment-0.2.2.tgz", - "integrity": "sha512-JZ09llrRQu6JUsLJCUlGC0lB1r1qIAabAkSd454iyYBq6lDuY//Bypi3Jo8yzIfzZ4+mRLdQvl9e8MbeM9l48Q==", - "requires": { - "is-in-browser": "^1.1.3" - } - }, - "slate-hotkeys": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/slate-hotkeys/-/slate-hotkeys-0.2.9.tgz", - "integrity": "sha512-y+C/s5vJEmBxo8fIqHmUcdViGwALL/A6Qow3sNG1OHYD5SI11tC2gfYtGbPh+2q0H7O4lufffCmFsP5bMaDHqA==", - "requires": { - "is-hotkey": "0.1.4", - "slate-dev-environment": "^0.2.2" - } - }, "slate-html-serializer": { "version": "0.8.6", "resolved": "https://registry.npmjs.org/slate-html-serializer/-/slate-html-serializer-0.8.6.tgz", @@ -14082,69 +14075,44 @@ "resolved": "https://registry.npmjs.org/slate-plain-serializer/-/slate-plain-serializer-0.7.6.tgz", "integrity": "sha512-PHCV8RDulthgE5BnySf1PqjG6UEwXYSPjfe++FToeSZRAApd/MHTcMyvQ/m1GdliP/yEWN1X3+TUyO42QlNvRg==" }, - "slate-prop-types": { - "version": "0.5.41", - "resolved": "https://registry.npmjs.org/slate-prop-types/-/slate-prop-types-0.5.41.tgz", - "integrity": "sha512-fLcXlugO9btF5b/by+dA+n8fn2mET75VGWltqFNxGdl6ncyBtrGspWA7mLVRFSqQWOS/Ig4A3URCRumOBBCUfQ==" - }, "slate-react": { - "version": "0.22.9", - "resolved": "https://registry.npmjs.org/slate-react/-/slate-react-0.22.9.tgz", - "integrity": "sha512-+2kRlgCCZld5i38PtmF4s3DmmD4DS6sO6ng26UlSfpG6g9gn9v9na7Gi0CtHAjuQrtLCv2wAC00GZbPIb/jnYw==", - "requires": { - "debug": "^3.1.0", - "get-window": "^1.1.1", - "is-window": "^1.0.2", - "lodash": "^4.1.1", - "memoize-one": "^4.0.0", - "prop-types": "^15.5.8", - "react-immutable-proptypes": "^2.1.0", - "selection-is-backward": "^1.0.0", - "slate-base64-serializer": "^0.2.111", - "slate-dev-environment": "^0.2.2", - "slate-hotkeys": "^0.2.9", - "slate-plain-serializer": "^0.7.10", - "slate-prop-types": "^0.5.41", - "slate-react-placeholder": "^0.2.8", - "tiny-invariant": "^1.0.1", - "tiny-warning": "^0.0.3" + "version": "0.50.0", + "resolved": "https://registry.npmjs.org/slate-react/-/slate-react-0.50.0.tgz", + "integrity": "sha512-R55B8Vy4wMxbhNV6Kip87JHPI2eBjSEodBIt6DLsFx4ixxa6ihgd9Ky7aE5JmT3dSEUL7ldgNJXzLceEvjgYTQ==", + "requires": { + "@types/debounce": "^1.2.0", + "@types/debug": "^4.1.5", + "@types/is-hotkey": "^0.1.1", + "@types/lodash": "^4.14.149", + "@types/react": "^16.9.13", + "debounce": "^1.2.0", + "direction": "^1.0.3", + "is-hotkey": "^0.1.6", + "is-plain-object": "^3.0.0", + "scroll-into-view-if-needed": "^2.2.20" }, "dependencies": { - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "@types/react": { + "version": "16.9.13", + "resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.13.tgz", + "integrity": "sha512-LikzRslbiufJYHyzbHSW0GrAiff8QYLMBFeZmSxzCYGXKxi8m/1PHX+rsVOwhr7mJNq+VIu2Dhf7U6mjFERK6w==", "requires": { - "ms": "^2.1.1" + "@types/prop-types": "*", + "csstype": "^2.2.0" } }, - "memoize-one": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-4.0.3.tgz", - "integrity": "sha512-QmpUu4KqDmX0plH4u+tf0riMc1KHE1+lw95cMrLlXQAFOx/xnBtwhZ52XJxd9X2O6kwKBqX32kmhbhlobD0cuw==" - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "slate-plain-serializer": { - "version": "0.7.10", - "resolved": "https://registry.npmjs.org/slate-plain-serializer/-/slate-plain-serializer-0.7.10.tgz", - "integrity": "sha512-/QvMCQ0F3NzbnuoW+bxsLIChPdRgxBjQeGhYhpRGTVvlZCLOmfDvavhN6fHsuEwkvdwOmocNF30xT1WVlmibYg==" + "direction": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/direction/-/direction-1.0.3.tgz", + "integrity": "sha512-8bHRqMt4w/kND19KBksE4NOJo+gIOPuiZfxQvbd6xikfKbuNBYBdLIw0hA/4lWzBaDpwpW+Olmg1BjD9+0LU2w==" }, - "tiny-warning": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-0.0.3.tgz", - "integrity": "sha512-r0SSA5Y5IWERF9Xh++tFPx0jITBgGggOsRLDWWew6YRw/C2dr4uNO1fw1vanrBmHsICmPyMLNBZboTlxUmUuaA==" + "is-hotkey": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-hotkey/-/is-hotkey-0.1.6.tgz", + "integrity": "sha512-1+hMr0GLPM0M49UDRt9RgE8i+SM29UY4AGRP6sGz6fThOVXqSrEvTMakolhHMcVizJnPNAoMpEmE+Oi1k2NrZQ==" } } }, - "slate-react-placeholder": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/slate-react-placeholder/-/slate-react-placeholder-0.2.8.tgz", - "integrity": "sha512-CZZSg5usE2ZY/AYg06NVcL9Wia6hD/Mg0w4D4e9rPh6hkkFJg8LZXYMRz+6Q4v1dqHmzRsZ2Ixa0jRuiKXsMaQ==" - }, "slate-soft-break": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/slate-soft-break/-/slate-soft-break-0.9.0.tgz", diff --git a/package.json b/package.json index e57d4d198..ed16e90bd 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "slate-collapse-on-escape": "0.8.1", "slate-html-serializer": "0.8.6", "slate-plain-serializer": "0.7.6", - "slate-react": "0.22.9", + "slate-react": "0.50.0", "slate-soft-break": "0.9.0", "typeface-roboto": "0.0.75" },