0.5.16 • Published 11 months ago
@springmicro/page v0.5.16
@springmicro/page
Webpage Editor with Slate and other widgets.
Fork of React Page. Original repository: https://github.com/react-page/react-page. The commit that was accessed was https://github.com/react-page/react-page/tree/2463f837858716626ff6892328e760b7fbd14c4d.
Motivation
react-page has dependencies that are outdated; some only work with React 17 and lower. The original repository was referenced when creating this one.
Changes
- All references to
react-dndhave been commented out, but are still searchable within the repository.react-dndv15 was the one used byreact-pageand was incompatible with React 18 mostly due to problems with refs. The references toreact-dndare keep in because we have plans to support drag and drop again, perhaps with@hello-pangea/dnd. - In the redux store, there was a
__nodeCachethat wasn't working so references to that have also been commented out. - Autoform from
uniformswasn't working, so it was replaced byrjsf. Reference file:src\editor\core\components\Cell\PluginControls\index.tsx. The old Autoform code is still here for reference. - Right now, everything is bundled into one package, including dependencies like
react-admin. Several of those will become peer dependencies soon.
Development
- Visit
src/pluginsfor examples on how to implement a plugin. Plugins are types of "blocks" in the editor (i.e. slate rich text, youtube embed, etc.). Also thePluginDraweratsrc\editor\ui\PluginDrawer\index.tsxis where the sidebar is when you add a new plugin.BottomToolbar(src\editor\ui\BottomToolbar\index.tsx) is where the controls are for the active plugin.
Exports
Here are the exposed components and types.
// Value is the editor state.
export type { EditorProps, Value };
// Ra* components are for react-admin. Adapted from https://www.npmjs.com/package/@react-page/react-admin.
export { Editor, RaReactPageInput, RaSelectReferenceInputField };0.5.10
12 months ago
0.5.11
12 months ago
0.5.8
12 months ago
0.5.7
12 months ago
0.5.9
12 months ago
0.5.16
11 months ago
0.5.14
11 months ago
0.5.15
11 months ago
0.5.12
12 months ago
0.5.13
11 months ago
0.3.0
1 year ago
0.5.4
1 year ago
0.5.3
1 year ago
0.3.5
1 year ago
0.5.6
12 months ago
0.5.5
1 year ago
0.5.0
1 year ago
0.4.1
1 year ago
0.3.2
1 year ago
0.4.0
1 year ago
0.5.2
1 year ago
0.3.4
1 year ago
0.5.1
1 year ago
0.2.1
2 years ago
0.2.0
2 years ago
0.2.0-alpha.4
2 years ago
0.2.0-alpha.3
2 years ago