Skip to content

Commit

Permalink
package document-editor
Browse files Browse the repository at this point in the history
  • Loading branch information
mingfang committed Apr 2, 2023
1 parent 23d01f3 commit e62a4d7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/fields-document/document-editor/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"main": "dist/keystone-6-fields-document-document-editor.cjs.js",
"module": "dist/keystone-6-fields-document-document-editor.esm.js"
}
10 changes: 8 additions & 2 deletions packages/fields-document/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"module": "./primitives/dist/keystone-6-fields-document-primitives.esm.js",
"default": "./primitives/dist/keystone-6-fields-document-primitives.cjs.js"
},
"./document-editor": {
"module": "./document-editor/dist/keystone-6-fields-document-document-editor.esm.js",
"default": "./document-editor/dist/keystone-6-fields-document-document-editor.cjs.js"
},
"./structure-views": {
"module": "./structure-views/dist/keystone-6-fields-document-structure-views.esm.js",
"default": "./structure-views/dist/keystone-6-fields-document-structure-views.cjs.js"
Expand All @@ -33,15 +37,17 @@
"component-blocks",
"primitives",
"views",
"structure-views"
"structure-views",
"document-editor"
],
"preconstruct": {
"entrypoints": [
"component-blocks.tsx",
"index.ts",
"primitives.ts",
"views.tsx",
"structure-views.tsx"
"structure-views.tsx",
"document-editor.tsx"
]
},
"peerDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions packages/fields-document/src/document-editor.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export {
createDocumentEditor,
DocumentEditor,
Editor,
} from './DocumentEditor';

0 comments on commit e62a4d7

Please sign in to comment.