Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SlateEditor] Update editor packages #2205

Merged
merged 5 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"resolutions": {
"@types/react": "18.0.26",
"@types/react-dom": "18.0.10",
"@types/history": "4.7.11"
"@types/history": "4.7.11",
"@types/node": "18.19.31"
},
"devDependencies": {
"@types/node": "18.19.31",
Expand Down
2 changes: 1 addition & 1 deletion uui-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"chalk": "4.1.2",
"cross-spawn": "7.0.3",
"fs-extra": "11.2.0",
"postcss": "8.4.35",
"postcss": "8.4.38",
"postcss-scss": "^4.0.6",
"rollup": "4.14.2",
"rollup-plugin-postcss-modules": "2.1.1",
Expand Down
54 changes: 27 additions & 27 deletions uui-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,44 +16,44 @@
"@epam/uui": "5.7.2",
"@epam/uui-components": "5.7.2",
"@epam/uui-core": "5.7.2",
"@udecode/plate-autoformat": "25.0.1",
"@udecode/plate-basic-marks": "25.0.1",
"@udecode/plate-block-quote": "25.0.1",
"@udecode/plate-break": "25.0.1",
"@udecode/plate-caption": "25.0.1",
"@udecode/plate-common": "25.0.1",
"@udecode/plate-core": "25.0.1",
"@udecode/plate-font": "25.0.1",
"@udecode/plate-heading": "25.0.1",
"@udecode/plate-juice": "25.0.1",
"@udecode/plate-link": "26.0.4",
"@udecode/plate-list": "25.0.1",
"@udecode/plate-media": "25.0.1",
"@udecode/plate-paragraph": "25.0.1",
"@udecode/plate-reset-node": "25.0.1",
"@udecode/plate-resizable": "26.0.5",
"@udecode/plate-serializer-docx": "26.0.5",
"@udecode/plate-serializer-html": "25.0.1",
"@udecode/plate-serializer-md": "26.0.4",
"@udecode/plate-table": "26.0.5",
"@udecode/plate-horizontal-rule": "25.0.1",
"@udecode/plate-autoformat": "31.0.0",
"@udecode/plate-basic-marks": "31.0.0",
"@udecode/plate-block-quote": "31.0.0",
"@udecode/plate-break": "31.0.0",
"@udecode/plate-caption": "31.0.0",
"@udecode/plate-common": "31.3.2",
"@udecode/plate-core": "31.3.2",
"@udecode/plate-font": "31.0.0",
"@udecode/plate-heading": "31.0.0",
"@udecode/plate-horizontal-rule": "31.0.0",
"@udecode/plate-juice": "31.0.0",
"@udecode/plate-link": "31.0.0",
"@udecode/plate-list": "31.1.3",
"@udecode/plate-media": "31.0.0",
"@udecode/plate-paragraph": "31.0.0",
"@udecode/plate-reset-node": "31.0.0",
"@udecode/plate-resizable": "31.0.0",
"@udecode/plate-serializer-docx": "31.4.1",
"@udecode/plate-serializer-html": "31.1.0",
"@udecode/plate-serializer-md": "31.4.0",
"@udecode/plate-table": "31.4.1",
"@udecode/slate": "31.0.0",
"classnames": "2.2.6",
"get-video-id": "3.1.3",
"lodash.debounce": "4.0.8",
"lodash.invert": "4.3.0",
"react-popper": "2.3.0",
"remark-parse": "9.0.0",
"slate": "0.94.1",
"slate-history": "0.93.0",
"slate-hyperscript": "0.81.3",
"slate-react": "0.99.0",
"slate": "0.103.0",
"slate-history": "0.100.0",
"slate-hyperscript": "0.100.0",
"slate-react": "0.102.0",
"unified": "9.2.2"
},
"devDependencies": {
"@types/lodash.debounce": "4.0.7",
"@types/lodash.invert": "4.3.7",
"@types/slate": "0.47.15",
"@udecode/slate": "25.0.0"
"@types/slate": "0.47.15"
},
"peerDependencies": {
"react": ">=16.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ exports[`serialization should serialize markdown 1`] = `

Unlikely to most Rich-Text editors, Slate uses JSON data model instead of HTML, which allows it to embed any entities, like arbitrary React components. For example, this checkbox, is a custom react component (check [source here](https://github.com/epam/UUI/blob/main/uui-editor/src/plugins/toDoListPlugin/ToDoItem.tsx)):
An item
\`We include HTML to Slate JSON converter, which is also used to convert pasted HTML.\`
We include HTML to Slate JSON converter, which is also used to convert pasted HTML.
## Out of the box components
### Basic layout

Expand Down
6 changes: 3 additions & 3 deletions uui-editor/src/__tests__/serialization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
codeBlockPlugin,
} from '../plugins';
import { defaultPlugins } from '../defaultPlugins';
import { createPlateEditor } from '@udecode/plate-core';
import { createPlateEditor, PlatePlugin } from '@udecode/plate-core';
import { createTempEditor } from '../helpers';
import { expectedSlateValue, inputMarkdowValue, editorValueMock } from './data/md-serialization';

Expand All @@ -35,9 +35,9 @@ export const createClipboardData = (html: string, rtf?: string): DataTransfer =>
getData: (format: string) => (format === 'text/html' ? html : rtf),
} as any);

const plugins = [
const plugins: PlatePlugin[] = [
...baseMarksPlugin(),
...defaultPlugins,
baseMarksPlugin(),
headerPlugin(),
colorPlugin(),
superscriptPlugin(),
Expand Down
2 changes: 0 additions & 2 deletions uui-editor/src/md-serializer/index.ts

This file was deleted.

261 changes: 0 additions & 261 deletions uui-editor/src/md-serializer/serialize.ts

This file was deleted.

Loading
Loading