@reacteditor/core 0.0.7 → 0.0.8
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/dist/{Editor-OSAG52QF.mjs → Editor-KXEVJBNG.mjs} +6 -6
- package/dist/{actions-BDMhAtxP.d.mts → actions-2L-1hQ7r.d.mts} +6 -2
- package/dist/{actions-BDMhAtxP.d.ts → actions-2L-1hQ7r.d.ts} +6 -2
- package/dist/{chunk-EEQGJ6FH.mjs → chunk-AD7BMXAA.mjs} +1 -1
- package/dist/{chunk-RNRHREWH.mjs → chunk-AJWRDM22.mjs} +3 -3
- package/dist/{chunk-ZLSPSBV3.mjs → chunk-FT6UFK7G.mjs} +1 -1
- package/dist/{chunk-AAK2555H.mjs → chunk-LRFRIIKG.mjs} +3 -1
- package/dist/{chunk-XI7YTBCP.mjs → chunk-OIFPBVSF.mjs} +1 -1
- package/dist/{chunk-W5I2Z7QS.mjs → chunk-R5DQGUQS.mjs} +717 -603
- package/dist/{chunk-JUC25FB7.mjs → chunk-U7VW3V3W.mjs} +7 -7
- package/dist/{full-IHV5BO2L.mjs → full-ZFZZ626B.mjs} +5 -5
- package/dist/{index-DkYXZRPz.d.ts → index-BNsSzMCj.d.ts} +2 -1
- package/dist/{index-BwLKseT7.d.mts → index-BXuSeNez.d.mts} +2 -1
- package/dist/index.css +99 -26
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1208 -1089
- package/dist/index.mjs +7 -7
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/{loaded-FTSXIONQ.mjs → loaded-GLBLMTBL.mjs} +2 -2
- package/dist/{loaded-YTQOQIUU.mjs → loaded-O4QHGE26.mjs} +2 -2
- package/dist/{loaded-3NPQWYKN.mjs → loaded-R34BR6I5.mjs} +2 -2
- package/dist/no-external.css +99 -26
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +1208 -1089
- package/dist/no-external.mjs +7 -7
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/{walk-tree-LcQXXDqe.d.mts → walk-tree-4C3ODO3X.d.mts} +1 -1
- package/dist/{walk-tree-BweEZ37Y.d.ts → walk-tree-C9GrSWsR.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
EditorInner,
|
|
6
6
|
LoadedRichTextMenu
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AJWRDM22.mjs";
|
|
8
8
|
import "./chunk-6QJ2HF4O.mjs";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
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-
|
|
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
|
|
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
|
|
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 };
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-6QJ2HF4O.mjs";
|
|
4
4
|
import {
|
|
5
5
|
LoadedRichTextMenuInner
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U7VW3V3W.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useAppStore,
|
|
9
9
|
useAppStoreApi
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
103
|
+
() => import("./full-ZFZZ626B.mjs").then((m) => ({
|
|
104
104
|
default: m.LoadedRichTextMenuFull
|
|
105
105
|
}))
|
|
106
106
|
);
|
|
@@ -1141,7 +1141,9 @@ var createAppStore = (initialAppStore) => create2()(
|
|
|
1141
1141
|
fullScreenCanvas: false,
|
|
1142
1142
|
_experimentalVirtualization: false,
|
|
1143
1143
|
metadata: {},
|
|
1144
|
-
fieldTransforms: {}
|
|
1144
|
+
fieldTransforms: {},
|
|
1145
|
+
scrollToComponent: () => {
|
|
1146
|
+
}
|
|
1145
1147
|
}, initialAppStore), {
|
|
1146
1148
|
fields: createFieldsSlice(set, get),
|
|
1147
1149
|
history: createHistorySlice(set, get),
|