@reacteditor/core 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/{Editor-KXEVJBNG.mjs → Editor-GK6JTUPD.mjs} +7 -7
- package/dist/{actions-2L-1hQ7r.d.mts → actions-C0LX6bI4.d.mts} +2 -1
- package/dist/{actions-2L-1hQ7r.d.ts → actions-C0LX6bI4.d.ts} +2 -1
- package/dist/{chunk-LRFRIIKG.mjs → chunk-56I7ST5F.mjs} +1 -1
- package/dist/{chunk-DU757QEH.mjs → chunk-74TOLW7F.mjs} +1561 -1266
- package/dist/{chunk-IIRJMJFU.mjs → chunk-ERNSJXVF.mjs} +1 -0
- package/dist/{chunk-TI3KC54Y.mjs → chunk-II42EKFK.mjs} +47 -1
- package/dist/{chunk-AD7BMXAA.mjs → chunk-MJJPWASL.mjs} +1 -1
- package/dist/{chunk-U7VW3V3W.mjs → chunk-TGVAC3JP.mjs} +9 -9
- package/dist/{chunk-FT6UFK7G.mjs → chunk-X4EUZIHA.mjs} +1 -1
- package/dist/{chunk-OIFPBVSF.mjs → chunk-XLVEWZWT.mjs} +1 -1
- package/dist/{chunk-AJWRDM22.mjs → chunk-YBG2RYVF.mjs} +5 -5
- package/dist/{full-ZFZZ626B.mjs → full-IUPXFMQP.mjs} +6 -6
- package/dist/{index-BXuSeNez.d.mts → index-DMbFEg8G.d.mts} +1 -1
- package/dist/{index-BNsSzMCj.d.ts → index-DmThy7vE.d.ts} +1 -1
- package/dist/index.css +109 -109
- package/dist/index.d.mts +155 -17
- package/dist/index.d.ts +155 -17
- package/dist/index.js +1080 -731
- package/dist/index.mjs +31 -15
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/{loaded-GLBLMTBL.mjs → loaded-BT7NIVEO.mjs} +3 -3
- package/dist/{loaded-O4QHGE26.mjs → loaded-HVOKDVC3.mjs} +3 -3
- package/dist/{loaded-R34BR6I5.mjs → loaded-YFYCF5F4.mjs} +3 -3
- package/dist/nextjs.d.mts +38 -0
- package/dist/nextjs.d.ts +38 -0
- package/dist/nextjs.js +65 -0
- package/dist/nextjs.mjs +30 -0
- package/dist/no-external.css +109 -109
- package/dist/no-external.d.mts +4 -4
- package/dist/no-external.d.ts +4 -4
- package/dist/no-external.js +1080 -731
- package/dist/no-external.mjs +31 -15
- package/dist/remix.d.mts +33 -0
- package/dist/remix.d.ts +33 -0
- package/dist/remix.js +65 -0
- package/dist/remix.mjs +30 -0
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +49 -0
- package/dist/rsc.mjs +6 -2
- package/dist/{walk-tree-C9GrSWsR.d.ts → walk-tree-5oDs6qOL.d.mts} +33 -2
- package/dist/{walk-tree-4C3ODO3X.d.mts → walk-tree-B1q6t5Jp.d.ts} +33 -2
- package/package.json +17 -6
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ React Editor is an open-source, visual editor for your react components. You can
|
|
|
4
4
|
|
|
5
5
|
React Editor is a fork from [Puck](https://github.com/puckeditor), which is the foundation for this project.
|
|
6
6
|
|
|
7
|
-
React Editor is [licensed under MIT](https://github.com/
|
|
7
|
+
React Editor is [licensed under MIT](https://github.com/reacteditor/editor?tab=MIT-1-ov-file#readme).
|
|
8
8
|
|
|
9
9
|
## Quick start
|
|
10
10
|
|
|
@@ -63,7 +63,7 @@ export function Page() {
|
|
|
63
63
|
|
|
64
64
|
## Recipes
|
|
65
65
|
|
|
66
|
-
Use `create-react-editor` to quickly spin up a a pre-configured app based on our provided [recipes](https://github.com/
|
|
66
|
+
Use `create-react-editor` to quickly spin up a a pre-configured app based on our provided [recipes](https://github.com/reacteditor/editor/tree/main/recipes):
|
|
67
67
|
|
|
68
68
|
```sh
|
|
69
69
|
npx create-react-editor my-app
|
|
@@ -71,15 +71,15 @@ npx create-react-editor my-app
|
|
|
71
71
|
|
|
72
72
|
Available recipes include:
|
|
73
73
|
|
|
74
|
-
- [**next**](https://github.com/
|
|
75
|
-
- [**remix**](https://github.com/
|
|
76
|
-
- [**react-router**](https://github.com/
|
|
74
|
+
- [**next**](https://github.com/reacteditor/editor/tree/main/recipes/next): Next.js example, using App Router and static page generation
|
|
75
|
+
- [**remix**](https://github.com/reacteditor/editor/tree/main/recipes/remix): Remix Run v2 example, using dynamic routes at root-level
|
|
76
|
+
- [**react-router**](https://github.com/reacteditor/editor/tree/main/recipes/react-router): React Router v7 app example, using dynamic routes to create pages at any level
|
|
77
77
|
|
|
78
78
|
## Get support
|
|
79
79
|
|
|
80
|
-
If you have any questions about React Editor, please open a [GitHub issue](https://github.com/
|
|
80
|
+
If you have any questions about React Editor, please open a [GitHub issue](https://github.com/reacteditor/editor/issues).
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
## License
|
|
84
84
|
|
|
85
|
-
[MIT License](https://github.com/
|
|
85
|
+
[MIT License](https://github.com/reacteditor/editor/license.MD)
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
EditorInner,
|
|
6
6
|
LoadedRichTextMenu
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YBG2RYVF.mjs";
|
|
8
|
+
import "./chunk-TGVAC3JP.mjs";
|
|
9
|
+
import "./chunk-X4EUZIHA.mjs";
|
|
8
10
|
import "./chunk-6QJ2HF4O.mjs";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-AD7BMXAA.mjs";
|
|
12
|
-
import "./chunk-FT6UFK7G.mjs";
|
|
11
|
+
import "./chunk-XLVEWZWT.mjs";
|
|
12
|
+
import "./chunk-MJJPWASL.mjs";
|
|
13
13
|
import {
|
|
14
14
|
useAppStore,
|
|
15
15
|
useAppStoreApi
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-56I7ST5F.mjs";
|
|
17
17
|
import "./chunk-M4JDRFYB.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-ERNSJXVF.mjs";
|
|
19
19
|
import "./chunk-Y2EFNT5P.mjs";
|
|
20
20
|
import "./chunk-JIXMPJZA.mjs";
|
|
21
21
|
import {
|
|
@@ -562,6 +562,7 @@ type ArrayState = {
|
|
|
562
562
|
type UiState = {
|
|
563
563
|
leftSideBarVisible: boolean;
|
|
564
564
|
rightSideBarVisible: boolean;
|
|
565
|
+
navBarVisible: boolean;
|
|
565
566
|
leftSideBarWidth?: number | null;
|
|
566
567
|
rightSideBarWidth?: number | null;
|
|
567
568
|
mobilePanelExpanded?: boolean;
|
|
@@ -856,4 +857,4 @@ type EditorAction = {
|
|
|
856
857
|
recordHistory?: boolean;
|
|
857
858
|
} & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
|
|
858
859
|
|
|
859
|
-
export { type EditorComponent as $, type AppState as A, type BaseData as B, type Config as C, type Data as D, type EditorAction as E, type Fields as F, type ComponentConfigExtensions as G, type History as H, type IframeConfig as I, type ComponentConfigParams as J, type ComponentDataMap as K, type ComponentDataOptionalId as L, type Metadata as M, type ComponentMetadata as N, type OnAction as O, type PrivateAppState as P, type ConfigParams as Q, type
|
|
860
|
+
export { type EditorComponent as $, type AppState as A, type BaseData as B, type Config as C, type Data as D, type EditorAction as E, type Fields as F, type ComponentConfigExtensions as G, type History as H, type IframeConfig as I, type ComponentConfigParams as J, type ComponentDataMap as K, type ComponentDataOptionalId as L, type Metadata as M, type ComponentMetadata as N, type OnAction as O, type PrivateAppState as P, type ConfigParams as Q, type RootDataWithProps as R, type CustomField as S, type CustomFieldRender as T, type UserGenerics as U, type Viewports as V, type WithId as W, type DefaultRootProps as X, type DefaultRootRenderProps as Y, type Direction as Z, type DragAxis as _, type Permissions as a, type EditorContext as a0, type EditorMetadata as a1, type ExternalField as a2, type ExternalFieldWithAdaptor as a3, type ExtractConfigParams as a4, type ExtractField as a5, type FieldMetadata as a6, type FieldRenderFunctions as a7, type FieldTransformFn as a8, type FieldTransformFnParams as a9, type ItemWithId as aa, type MappedItem as ab, type NumberField as ac, type ObjectField as ad, type OverrideKey as ae, type RadioField as af, type RichText as ag, type RootConfig as ah, type RootDataWithoutProps as ai, type SelectField as aj, type Slot as ak, type SlotComponent as al, type SlotField as am, type TextField as an, type TextareaField as ao, type Viewport as ap, type WithChildren as aq, type WithEditorProps as ar, type WithSlotProps as as, overrideKeys as at, type ComponentData as b, type ResolveDataTrigger as c, type Plugin as d, type Overrides as e, type UiState as f, type ComponentConfig as g, type FieldTransforms as h, type RichtextField as i, type Content as j, type DefaultComponents as k, type DefaultComponentProps as l, type DefaultRootFieldProps as m, type RootData as n, type Field as o, type FieldProps as p, type InitialHistory as q, type ItemSelector as r, type PluginInternal as s, type Adaptor as t, type ArrayField as u, type ArrayState as v, type AsFieldProps as w, type BaseField as x, type CacheOpts as y, type ColorField as z };
|
|
@@ -562,6 +562,7 @@ type ArrayState = {
|
|
|
562
562
|
type UiState = {
|
|
563
563
|
leftSideBarVisible: boolean;
|
|
564
564
|
rightSideBarVisible: boolean;
|
|
565
|
+
navBarVisible: boolean;
|
|
565
566
|
leftSideBarWidth?: number | null;
|
|
566
567
|
rightSideBarWidth?: number | null;
|
|
567
568
|
mobilePanelExpanded?: boolean;
|
|
@@ -856,4 +857,4 @@ type EditorAction = {
|
|
|
856
857
|
recordHistory?: boolean;
|
|
857
858
|
} & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
|
|
858
859
|
|
|
859
|
-
export { type EditorComponent as $, type AppState as A, type BaseData as B, type Config as C, type Data as D, type EditorAction as E, type Fields as F, type ComponentConfigExtensions as G, type History as H, type IframeConfig as I, type ComponentConfigParams as J, type ComponentDataMap as K, type ComponentDataOptionalId as L, type Metadata as M, type ComponentMetadata as N, type OnAction as O, type PrivateAppState as P, type ConfigParams as Q, type
|
|
860
|
+
export { type EditorComponent as $, type AppState as A, type BaseData as B, type Config as C, type Data as D, type EditorAction as E, type Fields as F, type ComponentConfigExtensions as G, type History as H, type IframeConfig as I, type ComponentConfigParams as J, type ComponentDataMap as K, type ComponentDataOptionalId as L, type Metadata as M, type ComponentMetadata as N, type OnAction as O, type PrivateAppState as P, type ConfigParams as Q, type RootDataWithProps as R, type CustomField as S, type CustomFieldRender as T, type UserGenerics as U, type Viewports as V, type WithId as W, type DefaultRootProps as X, type DefaultRootRenderProps as Y, type Direction as Z, type DragAxis as _, type Permissions as a, type EditorContext as a0, type EditorMetadata as a1, type ExternalField as a2, type ExternalFieldWithAdaptor as a3, type ExtractConfigParams as a4, type ExtractField as a5, type FieldMetadata as a6, type FieldRenderFunctions as a7, type FieldTransformFn as a8, type FieldTransformFnParams as a9, type ItemWithId as aa, type MappedItem as ab, type NumberField as ac, type ObjectField as ad, type OverrideKey as ae, type RadioField as af, type RichText as ag, type RootConfig as ah, type RootDataWithoutProps as ai, type SelectField as aj, type Slot as ak, type SlotComponent as al, type SlotField as am, type TextField as an, type TextareaField as ao, type Viewport as ap, type WithChildren as aq, type WithEditorProps as ar, type WithSlotProps as as, overrideKeys as at, type ComponentData as b, type ResolveDataTrigger as c, type Plugin as d, type Overrides as e, type UiState as f, type ComponentConfig as g, type FieldTransforms as h, type RichtextField as i, type Content as j, type DefaultComponents as k, type DefaultComponentProps as l, type DefaultRootFieldProps as m, type RootData as n, type Field as o, type FieldProps as p, type InitialHistory as q, type ItemSelector as r, type PluginInternal as s, type Adaptor as t, type ArrayField as u, type ArrayState as v, type AsFieldProps as w, type BaseField as x, type CacheOpts as y, type ColorField as z };
|