@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.
Files changed (46) hide show
  1. package/README.md +7 -7
  2. package/dist/{Editor-KXEVJBNG.mjs → Editor-GK6JTUPD.mjs} +7 -7
  3. package/dist/{actions-2L-1hQ7r.d.mts → actions-C0LX6bI4.d.mts} +2 -1
  4. package/dist/{actions-2L-1hQ7r.d.ts → actions-C0LX6bI4.d.ts} +2 -1
  5. package/dist/{chunk-LRFRIIKG.mjs → chunk-56I7ST5F.mjs} +1 -1
  6. package/dist/{chunk-DU757QEH.mjs → chunk-74TOLW7F.mjs} +1561 -1266
  7. package/dist/{chunk-IIRJMJFU.mjs → chunk-ERNSJXVF.mjs} +1 -0
  8. package/dist/{chunk-TI3KC54Y.mjs → chunk-II42EKFK.mjs} +47 -1
  9. package/dist/{chunk-AD7BMXAA.mjs → chunk-MJJPWASL.mjs} +1 -1
  10. package/dist/{chunk-U7VW3V3W.mjs → chunk-TGVAC3JP.mjs} +9 -9
  11. package/dist/{chunk-FT6UFK7G.mjs → chunk-X4EUZIHA.mjs} +1 -1
  12. package/dist/{chunk-OIFPBVSF.mjs → chunk-XLVEWZWT.mjs} +1 -1
  13. package/dist/{chunk-AJWRDM22.mjs → chunk-YBG2RYVF.mjs} +5 -5
  14. package/dist/{full-ZFZZ626B.mjs → full-IUPXFMQP.mjs} +6 -6
  15. package/dist/{index-BXuSeNez.d.mts → index-DMbFEg8G.d.mts} +1 -1
  16. package/dist/{index-BNsSzMCj.d.ts → index-DmThy7vE.d.ts} +1 -1
  17. package/dist/index.css +109 -109
  18. package/dist/index.d.mts +155 -17
  19. package/dist/index.d.ts +155 -17
  20. package/dist/index.js +1080 -731
  21. package/dist/index.mjs +31 -15
  22. package/dist/internal.d.mts +2 -2
  23. package/dist/internal.d.ts +2 -2
  24. package/dist/{loaded-GLBLMTBL.mjs → loaded-BT7NIVEO.mjs} +3 -3
  25. package/dist/{loaded-O4QHGE26.mjs → loaded-HVOKDVC3.mjs} +3 -3
  26. package/dist/{loaded-R34BR6I5.mjs → loaded-YFYCF5F4.mjs} +3 -3
  27. package/dist/nextjs.d.mts +38 -0
  28. package/dist/nextjs.d.ts +38 -0
  29. package/dist/nextjs.js +65 -0
  30. package/dist/nextjs.mjs +30 -0
  31. package/dist/no-external.css +109 -109
  32. package/dist/no-external.d.mts +4 -4
  33. package/dist/no-external.d.ts +4 -4
  34. package/dist/no-external.js +1080 -731
  35. package/dist/no-external.mjs +31 -15
  36. package/dist/remix.d.mts +33 -0
  37. package/dist/remix.d.ts +33 -0
  38. package/dist/remix.js +65 -0
  39. package/dist/remix.mjs +30 -0
  40. package/dist/rsc.d.mts +2 -2
  41. package/dist/rsc.d.ts +2 -2
  42. package/dist/rsc.js +49 -0
  43. package/dist/rsc.mjs +6 -2
  44. package/dist/{walk-tree-C9GrSWsR.d.ts → walk-tree-5oDs6qOL.d.mts} +33 -2
  45. package/dist/{walk-tree-4C3ODO3X.d.mts → walk-tree-B1q6t5Jp.d.ts} +33 -2
  46. 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/frontend-inc/react-editor?tab=MIT-1-ov-file#readme).
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/frontend-inc/react-editor/tree/main/recipes):
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/frontend-inc/react-editor/tree/main/recipes/next): Next.js example, using App Router and static page generation
75
- - [**remix**](https://github.com/frontend-inc/react-editor/tree/main/recipes/remix): Remix Run v2 example, using dynamic routes at root-level
76
- - [**react-router**](https://github.com/frontend-inc/react-editor/tree/main/recipes/react-router): React Router v7 app example, using dynamic routes to create pages at any level
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/frontend-inc/react-editor/issues).
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/frontend-inc/react-editor/license.MD)
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-AJWRDM22.mjs";
7
+ } from "./chunk-YBG2RYVF.mjs";
8
+ import "./chunk-TGVAC3JP.mjs";
9
+ import "./chunk-X4EUZIHA.mjs";
8
10
  import "./chunk-6QJ2HF4O.mjs";
9
- import "./chunk-U7VW3V3W.mjs";
10
- import "./chunk-OIFPBVSF.mjs";
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-LRFRIIKG.mjs";
16
+ } from "./chunk-56I7ST5F.mjs";
17
17
  import "./chunk-M4JDRFYB.mjs";
18
- import "./chunk-IIRJMJFU.mjs";
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 RootData 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 Content 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 DefaultComponents as c, type DefaultComponentProps as d, type DefaultRootFieldProps as e, type Permissions as f, type RootDataWithProps as g, type ResolveDataTrigger as h, type Plugin as i, type Overrides as j, type UiState as k, type ComponentConfig as l, type FieldTransforms as m, type RichtextField 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 };
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 RootData 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 Content 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 DefaultComponents as c, type DefaultComponentProps as d, type DefaultRootFieldProps as e, type Permissions as f, type RootDataWithProps as g, type ResolveDataTrigger as h, type Plugin as i, type Overrides as j, type UiState as k, type ComponentConfig as l, type FieldTransforms as m, type RichtextField 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 };
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 };
@@ -8,7 +8,7 @@ import {
8
8
  defaultViewports,
9
9
  getChanged,
10
10
  resolveComponentData
11
- } from "./chunk-IIRJMJFU.mjs";
11
+ } from "./chunk-ERNSJXVF.mjs";
12
12
  import {
13
13
  get_class_name_factory_default
14
14
  } from "./chunk-Y2EFNT5P.mjs";