Skip to content

Commit 72d10ef

Browse files
committed
Add pro-editor
1 parent 79433d8 commit 72d10ef

File tree

6 files changed

+250
-9
lines changed

6 files changed

+250
-9
lines changed

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public
2+
src
3+
.gitignore
4+
tsconfig.js
5+
tsconfig.json

packages/react-renderer-demo/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@actions/github": "^5.0.0",
3131
"@data-driven-forms/form-builder": "0.0.13-rc1",
3232
"@data-driven-forms/mui-component-mapper": "*",
33+
"@data-driven-forms/editor-pro": "0.0.2",
3334
"@data-driven-forms/react-form-renderer": "*",
3435
"@emotion/react": "^11.7.1",
3536
"@emotion/styled": "^11.6.0",
@@ -45,6 +46,7 @@
4546
"clsx": "^1.1.1",
4647
"codesandbox": "2.2.3",
4748
"docsearch.js": "^2.6.3",
49+
"evergreen-ui": "^6.9.10",
4850
"firebase-admin": "^10.0.1",
4951
"firebase-functions": "^3.16.0",
5052
"markdown-to-jsx": "^7.1.6",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const editorSchema = [
2+
{
3+
component: 'pro-editor',
4+
linkText: 'Pro Editor',
5+
},
6+
{
7+
component: 'dnd',
8+
linkText: 'Drag and Drop',
9+
},
10+
{
11+
component: 'live-editor',
12+
linkText: 'Live Editor',
13+
},
14+
];
15+
16+
export default editorSchema;

packages/react-renderer-demo/src/components/navigation/schemas/schema.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import mappersSchema from './mappers.schema';
66
import customExamplesSchema from './custom-examples.schema';
77
import providedMappersSchema from './provider-mappers.schema';
88
import utilitiesSchema from './utilities.schema';
9+
import editorSchema from './editor.schema';
910

1011
const schema = [
1112
{
@@ -58,6 +59,12 @@ const schema = [
5859
noRoute: true,
5960
fields: customExamplesSchema,
6061
},
62+
{
63+
title: 'Pro Editor',
64+
link: 'editor',
65+
noRoute: true,
66+
fields: editorSchema,
67+
},
6168
{
6269
linkText: 'Form builder',
6370
link: 'live-editor',
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import CodeExample from '@docs/code-example';
2+
import DocPage from '@docs/doc-page';
3+
import Editor from '@data-driven-forms/editor-pro/editor'
4+
5+
<DocPage>
6+
7+
# Live editor
8+
9+
<Editor />
10+
11+
</DocPage>

0 commit comments

Comments
 (0)