Skip to content

Commit

Permalink
feat: deprecate useEditArticleEdtor
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Mar 8, 2024
1 parent 864db23 commit 87102dc
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 518 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@matters/matters-editor",
"version": "0.2.2",
"version": "0.2.3",
"description": "Editor for matters.news",
"author": "https://github.com/thematters",
"homepage": "https://github.com/thematters/matters-editor",
Expand All @@ -9,7 +9,7 @@
"url": "git@github.com:thematters/matters-editor.git"
},
"engines": {
"node": ">=16.14 <17.0"
"node": ">=16.14 <19.0"
},
"license": "MIT",
"type": "module",
Expand Down
30 changes: 0 additions & 30 deletions src/editors/EditArticle.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions src/editors/extensions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ import { Link } from './link'
import { Mention, MentionSuggestion } from './mention'
import { Bold } from './bold'
import { HorizontalRule } from './horizontalRule'
import { ReadOnlyFigureImage } from './readOnlyFigureImage'
import { ReadOnlyFigureAudio } from './readOnlyFigureAudio'
import { ReadOnlyFigureEmbed } from './readOnlyFigureEmbed'

export * from './figureAudio'
export * from './figureEmbed'
export * from './figureImage'
export * from './readOnlyFigureAudio'
export * from './readOnlyFigureEmbed'
export * from './readOnlyFigureImage'
export * from './link'
export * from './horizontalRule'
export * from './mention'
Expand Down Expand Up @@ -97,24 +91,6 @@ export const makeArticleEditorExtensions = ({
return extensions
}

export const makeEditArticleEditorExtensions = ({
placeholder,
mentionSuggestion,
}: MakeArticleEditorExtensionsProps) => {
const extensions = [
...baseArticleExtensions(placeholder),
ReadOnlyFigureImage,
ReadOnlyFigureAudio,
ReadOnlyFigureEmbed,
]

if (mentionSuggestion) {
extensions.push(Mention.configure({ suggestion: mentionSuggestion }))
}

return extensions
}

/**
* Comment
*/
Expand Down
91 changes: 0 additions & 91 deletions src/editors/extensions/readOnlyFigureAudio.ts

This file was deleted.

Loading

0 comments on commit 87102dc

Please sign in to comment.