@reacteditor/core 0.0.7 → 0.0.9

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 (33) hide show
  1. package/dist/{Editor-OSAG52QF.mjs → Editor-KXEVJBNG.mjs} +6 -6
  2. package/dist/{actions-BDMhAtxP.d.mts → actions-2L-1hQ7r.d.mts} +6 -2
  3. package/dist/{actions-BDMhAtxP.d.ts → actions-2L-1hQ7r.d.ts} +6 -2
  4. package/dist/{chunk-EEQGJ6FH.mjs → chunk-AD7BMXAA.mjs} +1 -1
  5. package/dist/{chunk-RNRHREWH.mjs → chunk-AJWRDM22.mjs} +3 -3
  6. package/dist/{chunk-W5I2Z7QS.mjs → chunk-DU757QEH.mjs} +733 -617
  7. package/dist/{chunk-ZLSPSBV3.mjs → chunk-FT6UFK7G.mjs} +1 -1
  8. package/dist/{chunk-AAK2555H.mjs → chunk-LRFRIIKG.mjs} +3 -1
  9. package/dist/{chunk-XI7YTBCP.mjs → chunk-OIFPBVSF.mjs} +1 -1
  10. package/dist/{chunk-JUC25FB7.mjs → chunk-U7VW3V3W.mjs} +7 -7
  11. package/dist/{full-IHV5BO2L.mjs → full-ZFZZ626B.mjs} +5 -5
  12. package/dist/{index-DkYXZRPz.d.ts → index-BNsSzMCj.d.ts} +2 -1
  13. package/dist/{index-BwLKseT7.d.mts → index-BXuSeNez.d.mts} +2 -1
  14. package/dist/index.css +99 -26
  15. package/dist/index.d.mts +5 -4
  16. package/dist/index.d.ts +5 -4
  17. package/dist/index.js +1224 -1103
  18. package/dist/index.mjs +7 -7
  19. package/dist/internal.d.mts +2 -2
  20. package/dist/internal.d.ts +2 -2
  21. package/dist/{loaded-FTSXIONQ.mjs → loaded-GLBLMTBL.mjs} +2 -2
  22. package/dist/{loaded-YTQOQIUU.mjs → loaded-O4QHGE26.mjs} +2 -2
  23. package/dist/{loaded-3NPQWYKN.mjs → loaded-R34BR6I5.mjs} +2 -2
  24. package/dist/no-external.css +99 -26
  25. package/dist/no-external.d.mts +3 -3
  26. package/dist/no-external.d.ts +3 -3
  27. package/dist/no-external.js +1224 -1103
  28. package/dist/no-external.mjs +7 -7
  29. package/dist/rsc.d.mts +2 -2
  30. package/dist/rsc.d.ts +2 -2
  31. package/dist/{walk-tree-LcQXXDqe.d.mts → walk-tree-4C3ODO3X.d.mts} +1 -1
  32. package/dist/{walk-tree-BweEZ37Y.d.ts → walk-tree-C9GrSWsR.d.ts} +1 -1
  33. package/package.json +1 -1
@@ -4,16 +4,16 @@ import {
4
4
  import {
5
5
  EditorInner,
6
6
  LoadedRichTextMenu
7
- } from "./chunk-RNRHREWH.mjs";
7
+ } from "./chunk-AJWRDM22.mjs";
8
8
  import "./chunk-6QJ2HF4O.mjs";
9
- import "./chunk-JUC25FB7.mjs";
10
- import "./chunk-XI7YTBCP.mjs";
11
- import "./chunk-EEQGJ6FH.mjs";
12
- import "./chunk-ZLSPSBV3.mjs";
9
+ import "./chunk-U7VW3V3W.mjs";
10
+ import "./chunk-OIFPBVSF.mjs";
11
+ import "./chunk-AD7BMXAA.mjs";
12
+ import "./chunk-FT6UFK7G.mjs";
13
13
  import {
14
14
  useAppStore,
15
15
  useAppStoreApi
16
- } from "./chunk-AAK2555H.mjs";
16
+ } from "./chunk-LRFRIIKG.mjs";
17
17
  import "./chunk-M4JDRFYB.mjs";
18
18
  import "./chunk-IIRJMJFU.mjs";
19
19
  import "./chunk-Y2EFNT5P.mjs";
@@ -212,6 +212,10 @@ interface SelectField extends BaseField {
212
212
  type: "select";
213
213
  options: FieldOptions;
214
214
  }
215
+ interface ColorField extends BaseField {
216
+ type: "color";
217
+ placeholder?: string;
218
+ }
215
219
  interface RadioField extends BaseField {
216
220
  type: "radio";
217
221
  options: FieldOptions;
@@ -322,7 +326,7 @@ interface SlotField extends BaseField {
322
326
  allow?: string[];
323
327
  disallow?: string[];
324
328
  }
325
- type Field<ValueType = any, UserField extends {} = {}> = TextField | RichtextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<ValueType extends {
329
+ type Field<ValueType = any, UserField extends {} = {}> = TextField | RichtextField | NumberField | TextareaField | SelectField | RadioField | ColorField | ArrayField<ValueType extends {
326
330
  [key: string]: any;
327
331
  }[] ? ValueType : never, UserField> | ObjectField<ValueType, UserField> | ExternalField<ValueType> | ExternalFieldWithAdaptor<ValueType> | CustomField<ValueType> | SlotField;
328
332
  type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps, UserField extends {} = {}> = {
@@ -852,4 +856,4 @@ type EditorAction = {
852
856
  recordHistory?: boolean;
853
857
  } & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
854
858
 
855
- export { type EditorContext 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 ComponentConfigParams as G, type History as H, type IframeConfig as I, type ComponentDataMap as J, type ComponentDataOptionalId as K, type ComponentMetadata as L, type Metadata as M, type ConfigParams as N, type OnAction as O, type PrivateAppState as P, type CustomField as Q, type RootData as R, type CustomFieldRender as S, type DefaultRootProps as T, type UserGenerics as U, type Viewports as V, type WithId as W, type DefaultRootRenderProps as X, type Direction as Y, type DragAxis as Z, type EditorComponent as _, type Content as a, type EditorMetadata as a0, type ExternalField as a1, type ExternalFieldWithAdaptor as a2, type ExtractConfigParams as a3, type ExtractField as a4, type FieldMetadata as a5, type FieldRenderFunctions as a6, type FieldTransformFn as a7, type FieldTransformFnParams as a8, type ItemWithId as a9, type MappedItem as aa, type NumberField as ab, type ObjectField as ac, type OverrideKey as ad, type RadioField as ae, type RichText as af, type RootConfig as ag, type RootDataWithoutProps as ah, type SelectField as ai, type Slot as aj, type SlotComponent as ak, type SlotField as al, type TextField as am, type TextareaField as an, type Viewport as ao, type WithChildren as ap, type WithEditorProps as aq, type WithSlotProps as ar, overrideKeys as as, 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 ComponentConfigExtensions as z };
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 };
@@ -212,6 +212,10 @@ interface SelectField extends BaseField {
212
212
  type: "select";
213
213
  options: FieldOptions;
214
214
  }
215
+ interface ColorField extends BaseField {
216
+ type: "color";
217
+ placeholder?: string;
218
+ }
215
219
  interface RadioField extends BaseField {
216
220
  type: "radio";
217
221
  options: FieldOptions;
@@ -322,7 +326,7 @@ interface SlotField extends BaseField {
322
326
  allow?: string[];
323
327
  disallow?: string[];
324
328
  }
325
- type Field<ValueType = any, UserField extends {} = {}> = TextField | RichtextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<ValueType extends {
329
+ type Field<ValueType = any, UserField extends {} = {}> = TextField | RichtextField | NumberField | TextareaField | SelectField | RadioField | ColorField | ArrayField<ValueType extends {
326
330
  [key: string]: any;
327
331
  }[] ? ValueType : never, UserField> | ObjectField<ValueType, UserField> | ExternalField<ValueType> | ExternalFieldWithAdaptor<ValueType> | CustomField<ValueType> | SlotField;
328
332
  type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps, UserField extends {} = {}> = {
@@ -852,4 +856,4 @@ type EditorAction = {
852
856
  recordHistory?: boolean;
853
857
  } & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
854
858
 
855
- export { type EditorContext 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 ComponentConfigParams as G, type History as H, type IframeConfig as I, type ComponentDataMap as J, type ComponentDataOptionalId as K, type ComponentMetadata as L, type Metadata as M, type ConfigParams as N, type OnAction as O, type PrivateAppState as P, type CustomField as Q, type RootData as R, type CustomFieldRender as S, type DefaultRootProps as T, type UserGenerics as U, type Viewports as V, type WithId as W, type DefaultRootRenderProps as X, type Direction as Y, type DragAxis as Z, type EditorComponent as _, type Content as a, type EditorMetadata as a0, type ExternalField as a1, type ExternalFieldWithAdaptor as a2, type ExtractConfigParams as a3, type ExtractField as a4, type FieldMetadata as a5, type FieldRenderFunctions as a6, type FieldTransformFn as a7, type FieldTransformFnParams as a8, type ItemWithId as a9, type MappedItem as aa, type NumberField as ab, type ObjectField as ac, type OverrideKey as ad, type RadioField as ae, type RichText as af, type RootConfig as ag, type RootDataWithoutProps as ah, type SelectField as ai, type Slot as aj, type SlotComponent as ak, type SlotField as al, type TextField as am, type TextareaField as an, type Viewport as ao, type WithChildren as ap, type WithEditorProps as aq, type WithSlotProps as ar, overrideKeys as as, 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 ComponentConfigExtensions as z };
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 };
@@ -5,7 +5,7 @@ import {
5
5
  Heading4,
6
6
  Heading5,
7
7
  Heading6
8
- } from "./chunk-AAK2555H.mjs";
8
+ } from "./chunk-LRFRIIKG.mjs";
9
9
  import {
10
10
  init_react_import
11
11
  } from "./chunk-M6W7YEVX.mjs";
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-6QJ2HF4O.mjs";
4
4
  import {
5
5
  LoadedRichTextMenuInner
6
- } from "./chunk-JUC25FB7.mjs";
6
+ } from "./chunk-U7VW3V3W.mjs";
7
7
  import {
8
8
  useAppStore,
9
9
  useAppStoreApi
10
- } from "./chunk-AAK2555H.mjs";
10
+ } from "./chunk-LRFRIIKG.mjs";
11
11
  import {
12
12
  get_class_name_factory_default
13
13
  } from "./chunk-Y2EFNT5P.mjs";
@@ -100,7 +100,7 @@ init_react_import();
100
100
  import { lazy, Suspense } from "react";
101
101
  import { jsx as jsx2 } from "react/jsx-runtime";
102
102
  var LoadedRichTextMenuFull = lazy(
103
- () => import("./full-IHV5BO2L.mjs").then((m) => ({
103
+ () => import("./full-ZFZZ626B.mjs").then((m) => ({
104
104
  default: m.LoadedRichTextMenuFull
105
105
  }))
106
106
  );