chore: update dependencies (#681)

This commit is contained in:
Daniel Lautzenheiser 2023-04-04 16:03:13 -04:00 committed by GitHub
parent d0ecae310c
commit f43911f24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 2211 additions and 1814 deletions

View File

@ -23,7 +23,7 @@
"devDependencies": { "devDependencies": {
"all-contributors-cli": "6.24.0", "all-contributors-cli": "6.24.0",
"husky": "8.0.3", "husky": "8.0.3",
"lerna": "6.5.1", "lerna": "6.6.1",
"lint-staged": "13.2.0", "lint-staged": "13.2.0",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0" "react-dom": "18.2.0"

View File

@ -44,7 +44,7 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "7.21.0", "@babel/cli": "7.21.0",
"@babel/core": "7.21.3", "@babel/core": "7.21.4",
"@babel/plugin-proposal-class-properties": "7.18.6", "@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-export-default-from": "7.18.10", "@babel/plugin-proposal-export-default-from": "7.18.10",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6", "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
@ -52,17 +52,17 @@
"@babel/plugin-proposal-object-rest-spread": "7.20.7", "@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/plugin-proposal-optional-chaining": "7.21.0", "@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/plugin-syntax-dynamic-import": "7.8.3", "@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/preset-env": "7.20.2", "@babel/preset-env": "7.21.4",
"@babel/preset-react": "7.18.6", "@babel/preset-react": "7.18.6",
"@babel/preset-typescript": "7.21.0", "@babel/preset-typescript": "7.21.4",
"@emotion/eslint-plugin": "11.10.0", "@emotion/eslint-plugin": "11.10.0",
"@emotion/jest": "11.10.5", "@emotion/jest": "11.10.5",
"@types/node": "18.11.18", "@types/node": "18.15.11",
"@types/react": "18.0.28", "@types/react": "18.0.33",
"@types/react-dom": "18.0.11", "@types/react-dom": "18.0.11",
"@typescript-eslint/eslint-plugin": "5.55.0", "@typescript-eslint/eslint-plugin": "5.57.1",
"@typescript-eslint/parser": "5.55.0", "@typescript-eslint/parser": "5.57.1",
"autoprefixer": "10.4.13", "autoprefixer": "10.4.14",
"babel-core": "7.0.0-bridge.0", "babel-core": "7.0.0-bridge.0",
"babel-loader": "9.1.2", "babel-loader": "9.1.2",
"babel-plugin-emotion": "11.0.0", "babel-plugin-emotion": "11.0.0",
@ -76,25 +76,25 @@
"cross-env": "7.0.3", "cross-env": "7.0.3",
"css-loader": "6.7.3", "css-loader": "6.7.3",
"dotenv": "16.0.3", "dotenv": "16.0.3",
"eslint": "8.36.0", "eslint": "8.37.0",
"eslint-import-resolver-typescript": "3.5.3", "eslint-import-resolver-typescript": "3.5.4",
"eslint-plugin-cypress": "2.12.1", "eslint-plugin-cypress": "2.13.2",
"eslint-plugin-import": "2.27.5", "eslint-plugin-import": "2.27.5",
"eslint-plugin-prettier": "4.2.1", "eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.2", "eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-unicorn": "46.0.0", "eslint-plugin-unicorn": "46.0.0",
"mini-css-extract-plugin": "2.7.2", "mini-css-extract-plugin": "2.7.5",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"postcss": "8.4.21", "postcss": "8.4.21",
"postcss-scss": "4.0.6", "postcss-scss": "4.0.6",
"prettier": "2.8.4", "prettier": "2.8.7",
"source-map-loader": "4.0.1", "source-map-loader": "4.0.1",
"style-loader": "3.3.2", "style-loader": "3.3.2",
"to-string-loader": "1.2.0", "to-string-loader": "1.2.0",
"tsconfig-paths-webpack-plugin": "4.0.1", "tsconfig-paths-webpack-plugin": "4.0.1",
"typescript": "4.9.5", "typescript": "5.0.3",
"webpack": "5.76.2", "webpack": "5.77.0",
"webpack-cli": "5.0.1" "webpack-cli": "5.0.1"
}, },
"publishConfig": { "publishConfig": {

View File

@ -50,12 +50,12 @@
"@babel/eslint-parser": "7.21.3", "@babel/eslint-parser": "7.21.3",
"@babel/runtime": "7.21.0", "@babel/runtime": "7.21.0",
"@codemirror/autocomplete": "6.4.2", "@codemirror/autocomplete": "6.4.2",
"@codemirror/commands": "6.2.1", "@codemirror/commands": "6.2.2",
"@codemirror/language": "6.6.0", "@codemirror/language": "6.6.0",
"@codemirror/language-data": "6.1.0", "@codemirror/language-data": "6.2.0",
"@codemirror/legacy-modes": "6.3.1", "@codemirror/legacy-modes": "6.3.2",
"@codemirror/lint": "6.2.0", "@codemirror/lint": "6.2.0",
"@codemirror/search": "6.2.3", "@codemirror/search": "6.3.0",
"@codemirror/state": "6.2.0", "@codemirror/state": "6.2.0",
"@codemirror/theme-one-dark": "6.1.1", "@codemirror/theme-one-dark": "6.1.1",
"@codemirror/view": "6.9.3", "@codemirror/view": "6.9.3",
@ -70,9 +70,9 @@
"@lezer/common": "1.0.2", "@lezer/common": "1.0.2",
"@mdx-js/mdx": "2.3.0", "@mdx-js/mdx": "2.3.0",
"@mdx-js/react": "2.3.0", "@mdx-js/react": "2.3.0",
"@mui/base": "5.0.0-alpha.122", "@mui/base": "5.0.0-alpha.124",
"@mui/material": "5.11.13", "@mui/material": "5.11.16",
"@mui/system": "5.11.13", "@mui/system": "5.11.16",
"@mui/x-date-pickers": "5.0.20", "@mui/x-date-pickers": "5.0.20",
"@reduxjs/toolkit": "1.9.3", "@reduxjs/toolkit": "1.9.3",
"@styled-icons/bootstrap": "10.47.0", "@styled-icons/bootstrap": "10.47.0",
@ -83,25 +83,25 @@
"@styled-icons/material-rounded": "10.47.0", "@styled-icons/material-rounded": "10.47.0",
"@styled-icons/remix-editor": "10.46.0", "@styled-icons/remix-editor": "10.46.0",
"@styled-icons/simple-icons": "10.46.0", "@styled-icons/simple-icons": "10.46.0",
"@udecode/plate": "19.7.0", "@udecode/plate": "20.6.0",
"@udecode/plate-juice": "20.0.0", "@udecode/plate-juice": "20.4.0",
"@udecode/plate-serializer-md": "20.0.0", "@udecode/plate-serializer-md": "20.4.1",
"@uiw/codemirror-extensions-langs": "4.19.9", "@uiw/codemirror-extensions-langs": "4.19.11",
"@uiw/react-codemirror": "4.19.9", "@uiw/react-codemirror": "4.19.11",
"ajv": "8.12.0", "ajv": "8.12.0",
"ajv-errors": "3.0.0", "ajv-errors": "3.0.0",
"ajv-keywords": "5.1.0", "ajv-keywords": "5.1.0",
"buffer": "6.0.3", "buffer": "6.0.3",
"clean-stack": "5.1.0", "clean-stack": "5.2.0",
"codemirror": "6.0.1", "codemirror": "6.0.1",
"common-tags": "1.8.2", "common-tags": "1.8.2",
"copy-text-to-clipboard": "3.1.0", "copy-text-to-clipboard": "3.1.0",
"create-react-class": "15.7.0", "create-react-class": "15.7.0",
"date-fns": "2.29.3", "date-fns": "2.29.3",
"deepmerge": "4.3.0", "deepmerge": "4.3.1",
"diacritics": "1.3.0", "diacritics": "1.3.0",
"escape-html": "1.0.3", "escape-html": "1.0.3",
"eslint-config-prettier": "8.7.0", "eslint-config-prettier": "8.8.0",
"eslint-plugin-babel": "5.3.1", "eslint-plugin-babel": "5.3.1",
"fuzzy": "0.1.3", "fuzzy": "0.1.3",
"globby": "13.1.3", "globby": "13.1.3",
@ -110,7 +110,7 @@
"graphql-tag": "2.12.6", "graphql-tag": "2.12.6",
"gray-matter": "4.0.3", "gray-matter": "4.0.3",
"history": "5.3.0", "history": "5.3.0",
"immer": "9.0.19", "immer": "9.0.21",
"ini": "3.0.1", "ini": "3.0.1",
"is-hotkey": "0.2.0", "is-hotkey": "0.2.0",
"js-base64": "3.7.5", "js-base64": "3.7.5",
@ -118,7 +118,7 @@
"jwt-decode": "3.1.2", "jwt-decode": "3.1.2",
"localforage": "1.10.0", "localforage": "1.10.0",
"lodash": "4.17.21", "lodash": "4.17.21",
"minimatch": "7.4.2", "minimatch": "8.0.3",
"moment": "2.29.4", "moment": "2.29.4",
"node-polyglot": "2.5.0", "node-polyglot": "2.5.0",
"ol": "7.3.0", "ol": "7.3.0",
@ -133,11 +133,10 @@
"react-is": "18.2.0", "react-is": "18.2.0",
"react-polyglot": "0.7.2", "react-polyglot": "0.7.2",
"react-redux": "8.0.5", "react-redux": "8.0.5",
"react-router-dom": "6.9.0", "react-router-dom": "6.10.0",
"react-scroll-sync": "0.11.0", "react-scroll-sync": "0.11.0",
"react-textarea-autosize": "8.4.0",
"react-topbar-progress-indicator": "4.1.1", "react-topbar-progress-indicator": "4.1.1",
"react-virtualized-auto-sizer": "1.0.7", "react-virtualized-auto-sizer": "1.0.11",
"react-waypoint": "10.3.0", "react-waypoint": "10.3.0",
"react-window": "1.8.8", "react-window": "1.8.8",
"remark-gfm": "3.0.1", "remark-gfm": "3.0.1",
@ -147,10 +146,10 @@
"sanitize-filename": "1.6.3", "sanitize-filename": "1.6.3",
"scheduler": "0.23.0", "scheduler": "0.23.0",
"semaphore": "1.1.0", "semaphore": "1.1.0",
"slate": "0.91.4", "slate": "0.93.0",
"slate-history": "0.86.0", "slate-history": "0.93.0",
"slate-hyperscript": "0.77.0", "slate-hyperscript": "0.77.0",
"slate-react": "0.91.10", "slate-react": "0.93.0",
"stream-browserify": "3.0.0", "stream-browserify": "3.0.0",
"styled-components": "5.3.9", "styled-components": "5.3.9",
"symbol-observable": "4.0.0", "symbol-observable": "4.0.0",
@ -171,7 +170,7 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "7.21.0", "@babel/cli": "7.21.0",
"@babel/core": "7.21.3", "@babel/core": "7.21.4",
"@babel/plugin-proposal-class-properties": "7.18.6", "@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-export-default-from": "7.18.10", "@babel/plugin-proposal-export-default-from": "7.18.10",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6", "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
@ -179,14 +178,14 @@
"@babel/plugin-proposal-object-rest-spread": "7.20.7", "@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/plugin-proposal-optional-chaining": "7.21.0", "@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/plugin-syntax-dynamic-import": "7.8.3", "@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/preset-env": "7.20.2", "@babel/preset-env": "7.21.4",
"@babel/preset-react": "7.18.6", "@babel/preset-react": "7.18.6",
"@babel/preset-typescript": "7.21.0", "@babel/preset-typescript": "7.21.4",
"@emotion/eslint-plugin": "11.10.0", "@emotion/eslint-plugin": "11.10.0",
"@emotion/jest": "11.10.5", "@emotion/jest": "11.10.5",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10", "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@simbathesailor/use-what-changed": "2.0.0", "@simbathesailor/use-what-changed": "2.0.0",
"@testing-library/dom": "9.0.1", "@testing-library/dom": "9.2.0",
"@testing-library/jest-dom": "5.16.5", "@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "14.0.0", "@testing-library/react": "14.0.0",
"@testing-library/user-event": "14.4.3", "@testing-library/user-event": "14.4.3",
@ -194,14 +193,14 @@
"@types/create-react-class": "15.6.3", "@types/create-react-class": "15.6.3",
"@types/fs-extra": "11.0.1", "@types/fs-extra": "11.0.1",
"@types/is-hotkey": "0.1.7", "@types/is-hotkey": "0.1.7",
"@types/jest": "29.4.2", "@types/jest": "29.5.0",
"@types/js-yaml": "4.0.5", "@types/js-yaml": "4.0.5",
"@types/jwt-decode": "2.2.1", "@types/jwt-decode": "2.2.1",
"@types/lodash": "4.14.191", "@types/lodash": "4.14.191",
"@types/minimatch": "5.1.2", "@types/minimatch": "5.1.2",
"@types/node": "18.11.18", "@types/node": "18.15.11",
"@types/node-fetch": "2.6.2", "@types/node-fetch": "2.6.3",
"@types/react": "18.0.28", "@types/react": "18.0.33",
"@types/react-color": "3.0.6", "@types/react-color": "3.0.6",
"@types/react-dom": "18.0.11", "@types/react-dom": "18.0.11",
"@types/react-virtualized-auto-sizer": "1.0.1", "@types/react-virtualized-auto-sizer": "1.0.1",
@ -209,9 +208,9 @@
"@types/styled-components": "5.1.26", "@types/styled-components": "5.1.26",
"@types/url-join": "4.0.1", "@types/url-join": "4.0.1",
"@types/uuid": "9.0.1", "@types/uuid": "9.0.1",
"@typescript-eslint/eslint-plugin": "5.55.0", "@typescript-eslint/eslint-plugin": "5.57.1",
"@typescript-eslint/parser": "5.55.0", "@typescript-eslint/parser": "5.57.1",
"autoprefixer": "10.4.13", "autoprefixer": "10.4.14",
"axios": "1.3.4", "axios": "1.3.4",
"babel-core": "7.0.0-bridge.0", "babel-core": "7.0.0-bridge.0",
"babel-loader": "9.1.2", "babel-loader": "9.1.2",
@ -229,45 +228,45 @@
"cross-env": "7.0.3", "cross-env": "7.0.3",
"css-loader": "6.7.3", "css-loader": "6.7.3",
"dotenv": "16.0.3", "dotenv": "16.0.3",
"eslint": "8.36.0", "eslint": "8.37.0",
"eslint-import-resolver-typescript": "3.5.3", "eslint-import-resolver-typescript": "3.5.4",
"eslint-plugin-cypress": "2.12.1", "eslint-plugin-cypress": "2.13.2",
"eslint-plugin-import": "2.27.5", "eslint-plugin-import": "2.27.5",
"eslint-plugin-prettier": "4.2.1", "eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.2", "eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-unicorn": "46.0.0", "eslint-plugin-unicorn": "46.0.0",
"execa": "7.1.1", "execa": "7.1.1",
"fs-extra": "11.1.0", "fs-extra": "11.1.1",
"gitlab": "14.2.2", "gitlab": "14.2.2",
"http-server": "14.1.1", "http-server": "14.1.1",
"jest": "29.5.0", "jest": "29.5.0",
"jest-environment-jsdom": "29.5.0", "jest-environment-jsdom": "29.5.0",
"js-yaml": "4.1.0", "js-yaml": "4.1.0",
"mini-css-extract-plugin": "2.7.2", "mini-css-extract-plugin": "2.7.5",
"mockserver-client": "5.15.0", "mockserver-client": "5.15.0",
"mockserver-node": "5.15.0", "mockserver-node": "5.15.0",
"ncp": "2.0.0", "ncp": "2.0.0",
"node-fetch": "3.3.1", "node-fetch": "3.3.1",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"postcss": "8.4.21", "postcss": "8.4.21",
"postcss-loader": "7.1.0", "postcss-loader": "7.2.4",
"prettier": "2.8.4", "prettier": "2.8.7",
"process": "0.11.10", "process": "0.11.10",
"react-refresh": "0.14.0", "react-refresh": "0.14.0",
"react-svg-loader": "3.0.3", "react-svg-loader": "3.0.3",
"rimraf": "4.4.0", "rimraf": "4.4.1",
"simple-git": "3.17.0", "simple-git": "3.17.0",
"source-map-loader": "4.0.1", "source-map-loader": "4.0.1",
"style-loader": "3.3.2", "style-loader": "3.3.2",
"tailwindcss": "3.2.4", "tailwindcss": "3.3.1",
"to-string-loader": "1.2.0", "to-string-loader": "1.2.0",
"ts-jest": "29.0.5", "ts-jest": "29.1.0",
"tsconfig-paths-webpack-plugin": "4.0.1", "tsconfig-paths-webpack-plugin": "4.0.1",
"typescript": "4.9.5", "typescript": "5.0.3",
"webpack": "5.76.2", "webpack": "5.77.0",
"webpack-cli": "5.0.1", "webpack-cli": "5.0.1",
"webpack-dev-server": "4.12.0" "webpack-dev-server": "4.13.2"
}, },
"peerDependencies": { "peerDependencies": {
"react": "^18.2.0", "react": "^18.2.0",

View File

@ -137,7 +137,7 @@ const MediaLibraryCardGrid: FC<MediaLibraryCardGridProps> = props => {
return ( return (
<div className="relative w-full h-full"> <div className="relative w-full h-full">
<AutoSizer onResize={handleResize}> <AutoSizer onResize={handleResize}>
{({ height, width }) => { {({ height = 0, width = 0 }) => {
const columnWidthWithGutter = MEDIA_CARD_WIDTH + MEDIA_CARD_MARGIN; const columnWidthWithGutter = MEDIA_CARD_WIDTH + MEDIA_CARD_MARGIN;
const rowHeightWithGutter = MEDIA_CARD_HEIGHT + MEDIA_CARD_MARGIN; const rowHeightWithGutter = MEDIA_CARD_HEIGHT + MEDIA_CARD_MARGIN;
const columnCount = Math.floor( const columnCount = Math.floor(

View File

@ -9,8 +9,9 @@ import {
ELEMENT_H6, ELEMENT_H6,
ELEMENT_PARAGRAPH, ELEMENT_PARAGRAPH,
focusEditor, focusEditor,
someNode,
toggleNodeType,
} from '@udecode/plate'; } from '@udecode/plate';
import { someNode, toggleNodeType } from '@udecode/plate-core';
import React, { useCallback, useMemo, useState } from 'react'; import React, { useCallback, useMemo, useState } from 'react';
import useDebounce from '@staticcms/core/lib/hooks/useDebounce'; import useDebounce from '@staticcms/core/lib/hooks/useDebounce';

View File

@ -1,5 +1,5 @@
import { DataArray as DataArrayIcon } from '@styled-icons/material/DataArray'; import { DataArray as DataArrayIcon } from '@styled-icons/material/DataArray';
import { focusEditor, insertNodes } from '@udecode/plate-core'; import { focusEditor, insertNodes } from '@udecode/plate';
import React, { useCallback, useMemo } from 'react'; import React, { useCallback, useMemo } from 'react';
import Menu from '@staticcms/core/components/common/menu/Menu'; import Menu from '@staticcms/core/components/common/menu/Menu';

View File

@ -1,11 +1,12 @@
import { DEFAULT_COLORS, DEFAULT_CUSTOM_COLORS } from '@udecode/plate';
import { import {
DEFAULT_COLORS,
DEFAULT_CUSTOM_COLORS,
getMark, getMark,
getPluginType, getPluginType,
removeMark, removeMark,
setMarks, setMarks,
usePlateEditorRef, usePlateEditorRef,
} from '@udecode/plate-core'; } from '@udecode/plate';
import React, { useCallback, useEffect, useState } from 'react'; import React, { useCallback, useEffect, useState } from 'react';
import { Transforms } from 'slate'; import { Transforms } from 'slate';
import { ReactEditor } from 'slate-react'; import { ReactEditor } from 'slate-react';

View File

@ -1,10 +1,9 @@
import { ELEMENT_CODE_BLOCK } from '@udecode/plate'; import { ELEMENT_CODE_BLOCK, createPluginFactory } from '@udecode/plate';
import { createPluginFactory } from '@udecode/plate-core';
import deserializeHtmlCodeBlock from './deserializeHtmlCodeBlock'; import deserializeHtmlCodeBlock from './deserializeHtmlCodeBlock';
import type { MdValue } from '@staticcms/markdown'; import type { MdValue } from '@staticcms/markdown';
import type { HotkeyPlugin, PlateEditor } from '@udecode/plate-core'; import type { HotkeyPlugin, PlateEditor } from '@udecode/plate';
/** /**
* Enables support for pre-formatted code blocks. * Enables support for pre-formatted code blocks.

View File

@ -1,6 +1,6 @@
import { ELEMENT_CODE_BLOCK } from '@udecode/plate'; import { ELEMENT_CODE_BLOCK } from '@udecode/plate';
import type { DeserializeHtml } from '@udecode/plate-core'; import type { DeserializeHtml } from '@udecode/plate';
const deserializeHtmlCodeBlock: DeserializeHtml = { const deserializeHtmlCodeBlock: DeserializeHtml = {
rules: [ rules: [

View File

@ -1,11 +1,11 @@
import { createPluginFactory, KEY_DESERIALIZE_HTML, someNode } from '@udecode/plate-core'; import { createPluginFactory, KEY_DESERIALIZE_HTML, someNode } from '@udecode/plate';
import { onKeyDownList } from '@udecode/plate-list'; import { onKeyDownList } from '@udecode/plate-list';
import withList from './withList'; import withList from './withList';
import type { PlateEditor, PlatePlugin } from '@udecode/plate-core';
import type { ListPlugin } from '@udecode/plate-list';
import type { MdValue } from '@staticcms/markdown'; import type { MdValue } from '@staticcms/markdown';
import type { PlateEditor, PlatePlugin } from '@udecode/plate';
import type { ListPlugin } from '@udecode/plate-list';
export const ELEMENT_UL = 'ul'; export const ELEMENT_UL = 'ul';
export const ELEMENT_OL = 'ol'; export const ELEMENT_OL = 'ol';

View File

@ -1,12 +1,12 @@
import { ELEMENT_DEFAULT, getPluginType, isBlockAboveEmpty, mockPlugin } from '@udecode/plate-core'; import { ELEMENT_DEFAULT, getPluginType, isBlockAboveEmpty, mockPlugin } from '@udecode/plate';
import { ELEMENT_LI, getListItemEntry, moveListItemUp, unwrapList } from '@udecode/plate-list'; import { ELEMENT_LI, getListItemEntry, moveListItemUp, unwrapList } from '@udecode/plate-list';
import { onKeyDownResetNode, SIMULATE_BACKSPACE } from '@udecode/plate-reset-node'; import { SIMULATE_BACKSPACE, onKeyDownResetNode } from '@udecode/plate-reset-node';
import insertListItem from './transforms/insertListItem'; import insertListItem from './transforms/insertListItem';
import type { PlateEditor } from '@udecode/plate-core';
import type { ResetNodePlugin } from '@udecode/plate-reset-node';
import type { MdValue } from '@staticcms/markdown'; import type { MdValue } from '@staticcms/markdown';
import type { PlateEditor } from '@udecode/plate';
import type { ResetNodePlugin } from '@udecode/plate-reset-node';
const insertBreakList = (editor: PlateEditor<MdValue>) => { const insertBreakList = (editor: PlateEditor<MdValue>) => {
if (!editor.selection) return; if (!editor.selection) return;

View File

@ -13,12 +13,12 @@ import {
splitNodes, splitNodes,
withoutNormalizing, withoutNormalizing,
wrapNodes, wrapNodes,
} from '@udecode/plate-core'; } from '@udecode/plate';
import { Path, Range } from 'slate'; import { Path, Range } from 'slate';
import { ELEMENT_LI, ELEMENT_LIC } from '../createListPlugin'; import { ELEMENT_LI, ELEMENT_LIC } from '../createListPlugin';
import type { PlateEditor, TElement } from '@udecode/plate-core'; import type { PlateEditor, TElement } from '@udecode/plate';
import type { MdListItemElement, MdValue } from '@staticcms/markdown'; import type { MdListItemElement, MdValue } from '@staticcms/markdown';
/** /**

View File

@ -8,9 +8,9 @@ import {
import insertBreakList from './insertBreakList'; import insertBreakList from './insertBreakList';
import type { PlateEditor, WithPlatePlugin } from '@udecode/plate-core';
import type { ListPlugin } from '@udecode/plate-list';
import type { MdValue } from '@staticcms/markdown'; import type { MdValue } from '@staticcms/markdown';
import type { PlateEditor, WithPlatePlugin } from '@udecode/plate';
import type { ListPlugin } from '@udecode/plate-list';
const withList = ( const withList = (
editor: PlateEditor<MdValue>, editor: PlateEditor<MdValue>,

View File

@ -3,11 +3,11 @@ import {
ELEMENT_TD, ELEMENT_TD,
ELEMENT_TH, ELEMENT_TH,
ELEMENT_TR, ELEMENT_TR,
createPluginFactory,
insertTableColumn, insertTableColumn,
insertTableRow, insertTableRow,
onKeyDownTable, onKeyDownTable,
} from '@udecode/plate'; } from '@udecode/plate';
import { createPluginFactory } from '@udecode/plate-core';
import withTable from './withTable'; import withTable from './withTable';

View File

@ -6,9 +6,8 @@ import {
withSelectionTable, withSelectionTable,
} from '@udecode/plate'; } from '@udecode/plate';
import type { PlateEditor, WithPlatePlugin } from '@udecode/plate-core';
import type { MdValue } from '@staticcms/markdown'; import type { MdValue } from '@staticcms/markdown';
import type { TablePlugin } from '@udecode/plate'; import type { PlateEditor, TablePlugin, WithPlatePlugin } from '@udecode/plate';
const withTable = ( const withTable = (
editor: PlateEditor<MdValue>, editor: PlateEditor<MdValue>,

View File

@ -15,15 +15,15 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "7.21.0", "@babel/cli": "7.21.0",
"@babel/core": "7.21.3", "@babel/core": "7.21.4",
"@babel/plugin-syntax-flow": "7.18.6", "@babel/plugin-syntax-flow": "7.21.4",
"@babel/plugin-transform-react-jsx": "7.21.0", "@babel/plugin-transform-react-jsx": "7.21.0",
"autoprefixer": "10.4.13", "autoprefixer": "10.4.14",
"copy-webpack-plugin": "11.0.0", "copy-webpack-plugin": "11.0.0",
"customize-cra": "1.0.0", "customize-cra": "1.0.0",
"eslint": "8.36.0", "eslint": "8.37.0",
"eslint-import-resolver-typescript": "3.5.3", "eslint-import-resolver-typescript": "3.5.4",
"eslint-plugin-cypress": "2.12.1", "eslint-plugin-cypress": "2.13.2",
"eslint-plugin-import": "2.27.5", "eslint-plugin-import": "2.27.5",
"eslint-plugin-prettier": "4.2.1", "eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.2", "eslint-plugin-react": "7.32.2",
@ -31,11 +31,11 @@
"eslint-plugin-unicorn": "46.0.0", "eslint-plugin-unicorn": "46.0.0",
"postcss": "8.4.21", "postcss": "8.4.21",
"postcss-scss": "4.0.6", "postcss-scss": "4.0.6",
"prettier": "2.8.4", "prettier": "2.8.7",
"react-app-rewired": "2.2.1", "react-app-rewired": "2.2.1",
"react-scripts": "5.0.1", "react-scripts": "5.0.1",
"typescript": "4.9.5", "typescript": "5.0.3",
"webpack": "5.76.2" "webpack": "5.77.0"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [

View File

@ -16,8 +16,8 @@
"dependencies": { "dependencies": {
"@emotion/react": "11.10.6", "@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6", "@emotion/styled": "11.10.6",
"@mui/icons-material": "5.11.11", "@mui/icons-material": "5.11.16",
"@mui/material": "5.11.13", "@mui/material": "5.11.16",
"date-fns": "2.29.3", "date-fns": "2.29.3",
"gray-matter": "4.0.3", "gray-matter": "4.0.3",
"js-yaml": "4.1.0", "js-yaml": "4.1.0",
@ -33,28 +33,28 @@
"yaml": "2.2.1" "yaml": "2.2.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.21.3", "@babel/core": "7.21.4",
"@emotion/eslint-plugin": "11.10.0", "@emotion/eslint-plugin": "11.10.0",
"@next/bundle-analyzer": "13.2.4", "@next/bundle-analyzer": "13.2.4",
"@next/eslint-plugin-next": "13.2.4", "@next/eslint-plugin-next": "13.2.4",
"@types/js-yaml": "4.0.5", "@types/js-yaml": "4.0.5",
"@types/node": "18.11.18", "@types/node": "18.15.11",
"@types/prettier": "2.7.2", "@types/prettier": "2.7.2",
"@types/prismjs": "1.26.0", "@types/prismjs": "1.26.0",
"@types/react": "18.0.28", "@types/react": "18.0.33",
"@types/react-dom": "18.0.11", "@types/react-dom": "18.0.11",
"@typescript-eslint/eslint-plugin": "5.55.0", "@typescript-eslint/eslint-plugin": "5.57.1",
"@typescript-eslint/parser": "5.55.0", "@typescript-eslint/parser": "5.57.1",
"@babel/eslint-parser": "7.21.3", "@babel/eslint-parser": "7.21.3",
"eslint": "8.36.0", "eslint": "8.37.0",
"eslint-config-next": "13.2.4", "eslint-config-next": "13.2.4",
"eslint-config-prettier": "8.7.0", "eslint-config-prettier": "8.8.0",
"eslint-plugin-babel": "5.3.1", "eslint-plugin-babel": "5.3.1",
"eslint-plugin-unicorn": "46.0.0", "eslint-plugin-unicorn": "46.0.0",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"prettier": "2.8.4", "prettier": "2.8.7",
"typescript": "4.9.5", "typescript": "5.0.3",
"webpack": "5.76.2" "webpack": "5.77.0"
}, },
"lint-staged": { "lint-staged": {
"*.ts": "prettier --write", "*.ts": "prettier --write",

3812
yarn.lock

File diff suppressed because it is too large Load Diff