Skip to content

Commit

Permalink
Merge pull request #60 from ashbuilds/fix/editor-feature-import-path
Browse files Browse the repository at this point in the history
fix: editor feature export path and deps update
  • Loading branch information
ashbuilds authored Jan 25, 2025
2 parents a6ad186 + aaa1aa9 commit c5fb752
Show file tree
Hide file tree
Showing 5 changed files with 267 additions and 138 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default buildConfig({


// Add below in Lexical Editor field config
import { PayloadAiPluginLexicalEditorFeature } from '@ai-stack/payloadcms/fields'
import { PayloadAiPluginLexicalEditorFeature } from '@ai-stack/payloadcms'

fields: [
{
Expand All @@ -97,7 +97,13 @@ fields: [
features: ({ rootFeatures }) => {
return [
// ... your existing features
PayloadAiPluginLexicalEditorFeature()
HeadingFeature({ enabledHeadingSizes: ['h1', 'h2', 'h3', 'h4'] }),
InlineToolbarFeature(),
HorizontalRuleFeature(),
OrderedListFeature(),
UnorderedListFeature(),
BlockquoteFeature(),
PayloadAiPluginLexicalEditorFeature() // Add this line
]
},
}),
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai-stack/payloadcms",
"version": "3.2.3-beta",
"version": "3.2.4-beta",
"private": false,
"bugs": "https://github.com/ashbuilds/payload-ai/issues",
"repository": "https://github.com/ashbuilds/payload-ai",
Expand Down Expand Up @@ -63,13 +63,13 @@
"@ai-sdk/provider-utils": "^1.0.17",
"@ai-sdk/ui-utils": "^0.0.27",
"@anthropic-ai/sdk": "^0.24.3",
"@lexical/html": "0.20.0",
"@lexical/html": "^0.21.0",
"ai": "^3.3.20",
"elevenlabs": "^0.8.2",
"get-input-selection": "^1.1.4",
"handlebars": "4.7.8",
"handlebars-async-helpers": "^1.0.6",
"lexical": "^0.20.0",
"lexical": "^0.21.0",
"locale-codes": "^1.3.1",
"lodash.isequal": "^4.5.0",
"openai": "^4.56.1",
Expand Down Expand Up @@ -107,10 +107,10 @@
"typescript-eslint": "^7.18.0"
},
"peerDependencies": {
"@payloadcms/richtext-lexical": "^3.2.1",
"@payloadcms/translations": "^3.2.1",
"@payloadcms/ui": "^3.2.1",
"payload": "^3.2.1"
"@payloadcms/richtext-lexical": "latest",
"@payloadcms/translations": "latest",
"@payloadcms/ui": "latest",
"payload": "latest"
},
"publishConfig": {
"main": "./dist/index.js",
Expand Down
Loading

0 comments on commit c5fb752

Please sign in to comment.