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
18 changed files with 2211 additions and 1814 deletions

View File

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

View File

@ -1,5 +1,5 @@
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 Menu from '@staticcms/core/components/common/menu/Menu';

View File

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

View File

@ -1,10 +1,9 @@
import { ELEMENT_CODE_BLOCK } from '@udecode/plate';
import { createPluginFactory } from '@udecode/plate-core';
import { ELEMENT_CODE_BLOCK, createPluginFactory } from '@udecode/plate';
import deserializeHtmlCodeBlock from './deserializeHtmlCodeBlock';
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.

View File

@ -1,6 +1,6 @@
import { ELEMENT_CODE_BLOCK } from '@udecode/plate';
import type { DeserializeHtml } from '@udecode/plate-core';
import type { DeserializeHtml } from '@udecode/plate';
const deserializeHtmlCodeBlock: DeserializeHtml = {
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 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 { PlateEditor, PlatePlugin } from '@udecode/plate';
import type { ListPlugin } from '@udecode/plate-list';
export const ELEMENT_UL = 'ul';
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 { onKeyDownResetNode, SIMULATE_BACKSPACE } from '@udecode/plate-reset-node';
import { SIMULATE_BACKSPACE, onKeyDownResetNode } from '@udecode/plate-reset-node';
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 { PlateEditor } from '@udecode/plate';
import type { ResetNodePlugin } from '@udecode/plate-reset-node';
const insertBreakList = (editor: PlateEditor<MdValue>) => {
if (!editor.selection) return;

View File

@ -13,12 +13,12 @@ import {
splitNodes,
withoutNormalizing,
wrapNodes,
} from '@udecode/plate-core';
} from '@udecode/plate';
import { Path, Range } from 'slate';
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';
/**

View File

@ -8,9 +8,9 @@ import {
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 { PlateEditor, WithPlatePlugin } from '@udecode/plate';
import type { ListPlugin } from '@udecode/plate-list';
const withList = (
editor: PlateEditor<MdValue>,

View File

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

View File

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