@reacteditor/core 0.0.12 → 0.0.14
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-GK6JTUPD.mjs → Editor-J7XDD77B.mjs} +7 -7
- package/dist/{actions-C0LX6bI4.d.mts → actions-BxLinRKD.d.mts} +22 -2
- package/dist/{actions-C0LX6bI4.d.ts → actions-BxLinRKD.d.ts} +22 -2
- package/dist/{chunk-II42EKFK.mjs → chunk-4L7H4JV4.mjs} +1 -1
- package/dist/{chunk-YBG2RYVF.mjs → chunk-5QKQ3LQJ.mjs} +3 -3
- package/dist/{chunk-ERNSJXVF.mjs → chunk-FTVOCMGV.mjs} +1 -1
- package/dist/{chunk-OKTANBAI.mjs → chunk-IFFNAAXW.mjs} +75 -30
- package/dist/{chunk-56I7ST5F.mjs → chunk-JHURG5NN.mjs} +1 -1
- package/dist/{chunk-TGVAC3JP.mjs → chunk-Q667J2EG.mjs} +7 -7
- package/dist/{chunk-XLVEWZWT.mjs → chunk-RGC274VM.mjs} +1 -1
- package/dist/{chunk-X4EUZIHA.mjs → chunk-RQZQMS6E.mjs} +1 -1
- package/dist/{chunk-MJJPWASL.mjs → chunk-TG2KTWSB.mjs} +1 -1
- package/dist/{full-IUPXFMQP.mjs → full-T5SGODJ2.mjs} +6 -6
- package/dist/{index-DMbFEg8G.d.mts → index-BZRpxcwy.d.mts} +1 -1
- package/dist/{index-DmThy7vE.d.ts → index-B_21fGrq.d.ts} +1 -1
- package/dist/index.css +35 -28
- package/dist/index.d.mts +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +69 -24
- package/dist/index.mjs +9 -9
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/{loaded-YFYCF5F4.mjs → loaded-6YKSFCCD.mjs} +3 -3
- package/dist/{loaded-HVOKDVC3.mjs → loaded-DUBT6SP5.mjs} +3 -3
- package/dist/{loaded-BT7NIVEO.mjs → loaded-ZQCRSG65.mjs} +3 -3
- package/dist/no-external.css +35 -28
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +69 -24
- package/dist/no-external.mjs +9 -9
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +1 -1
- package/dist/rsc.mjs +2 -2
- package/dist/{walk-tree-5oDs6qOL.d.mts → walk-tree-BvYigWFL.d.mts} +1 -1
- package/dist/{walk-tree-B1q6t5Jp.d.ts → walk-tree-Clklc1Ql.d.ts} +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2789,7 +2789,7 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2789
2789
|
}
|
|
2790
2790
|
|
|
2791
2791
|
/* css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/BrowserBar/styles.module.css/#css-module-data */
|
|
2792
|
-
.
|
|
2792
|
+
._BrowserBar_coofe_1 {
|
|
2793
2793
|
align-items: center;
|
|
2794
2794
|
background: var(--editor-surface-panel);
|
|
2795
2795
|
border: 1px solid var(--editor-border-subtle);
|
|
@@ -2800,7 +2800,7 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2800
2800
|
padding: 8px 10px;
|
|
2801
2801
|
width: 100%;
|
|
2802
2802
|
}
|
|
2803
|
-
._BrowserBar-
|
|
2803
|
+
._BrowserBar-urlTrigger_coofe_16 {
|
|
2804
2804
|
align-items: center;
|
|
2805
2805
|
background: var(--editor-surface-sunken);
|
|
2806
2806
|
border: 1px solid var(--editor-border-subtle);
|
|
@@ -2817,21 +2817,21 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2817
2817
|
width: 100%;
|
|
2818
2818
|
}
|
|
2819
2819
|
@media (hover: hover) and (pointer: fine) {
|
|
2820
|
-
._BrowserBar-
|
|
2820
|
+
._BrowserBar-urlTrigger_coofe_16:hover {
|
|
2821
2821
|
background: var(--editor-surface-hover);
|
|
2822
2822
|
border-color: var(--editor-border-default);
|
|
2823
2823
|
}
|
|
2824
2824
|
}
|
|
2825
|
-
._BrowserBar-
|
|
2825
|
+
._BrowserBar-urlTrigger_coofe_16:focus-within {
|
|
2826
2826
|
border-color: var(--editor-border-default);
|
|
2827
2827
|
box-shadow: var(--editor-ring);
|
|
2828
2828
|
outline: none;
|
|
2829
2829
|
}
|
|
2830
|
-
._BrowserBar-
|
|
2830
|
+
._BrowserBar-urlIcon_coofe_46 {
|
|
2831
2831
|
color: var(--editor-text-tertiary);
|
|
2832
2832
|
flex-shrink: 0;
|
|
2833
2833
|
}
|
|
2834
|
-
._BrowserBar-
|
|
2834
|
+
._BrowserBar-urlText_coofe_51 {
|
|
2835
2835
|
color: var(--editor-text-primary);
|
|
2836
2836
|
display: inline-flex;
|
|
2837
2837
|
flex: 1;
|
|
@@ -2842,35 +2842,36 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2842
2842
|
text-overflow: ellipsis;
|
|
2843
2843
|
white-space: nowrap;
|
|
2844
2844
|
}
|
|
2845
|
-
._BrowserBar-
|
|
2845
|
+
._BrowserBar-urlInput_coofe_63 {
|
|
2846
2846
|
color: var(--editor-text-primary);
|
|
2847
2847
|
flex: 1;
|
|
2848
2848
|
min-width: 0;
|
|
2849
2849
|
}
|
|
2850
|
-
._BrowserBar-
|
|
2850
|
+
._BrowserBar-itemPath_coofe_69 {
|
|
2851
2851
|
color: var(--editor-text-primary);
|
|
2852
2852
|
flex-shrink: 0;
|
|
2853
2853
|
}
|
|
2854
|
-
._BrowserBar-
|
|
2854
|
+
._BrowserBar-itemTitle_coofe_74 {
|
|
2855
2855
|
color: var(--editor-text-tertiary);
|
|
2856
2856
|
margin-left: auto;
|
|
2857
2857
|
overflow: hidden;
|
|
2858
2858
|
text-overflow: ellipsis;
|
|
2859
2859
|
white-space: nowrap;
|
|
2860
2860
|
}
|
|
2861
|
-
._BrowserBar-
|
|
2861
|
+
._BrowserBar-actions_coofe_82 {
|
|
2862
2862
|
align-items: center;
|
|
2863
2863
|
display: flex;
|
|
2864
2864
|
flex-shrink: 0;
|
|
2865
2865
|
gap: 2px;
|
|
2866
|
+
margin-left: auto;
|
|
2866
2867
|
}
|
|
2867
|
-
._BrowserBar-
|
|
2868
|
+
._BrowserBar-deviceIcon_coofe_92 {
|
|
2868
2869
|
color: var(--editor-text-primary);
|
|
2869
2870
|
display: inline-flex;
|
|
2870
2871
|
}
|
|
2871
2872
|
|
|
2872
2873
|
/* css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/Editor/components/Canvas/styles.module.css/#css-module-data */
|
|
2873
|
-
.
|
|
2874
|
+
._EditorCanvas_1aq14_1 {
|
|
2874
2875
|
background: var(--editor-surface-sunken);
|
|
2875
2876
|
display: flex;
|
|
2876
2877
|
grid-area: editor;
|
|
@@ -2880,24 +2881,30 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2880
2881
|
overflow: hidden;
|
|
2881
2882
|
}
|
|
2882
2883
|
@media (min-width: 1198px) {
|
|
2883
|
-
.
|
|
2884
|
+
._EditorCanvas_1aq14_1 {
|
|
2884
2885
|
padding: calc(var(--editor-space-px) * 0.75);
|
|
2885
2886
|
padding-top: calc(var(--editor-space-px) * 0.25);
|
|
2886
2887
|
}
|
|
2887
|
-
.
|
|
2888
|
+
._EditorCanvas_1aq14_1:not(._EditorCanvas_1aq14_1:has(._EditorCanvas-controls_1aq14_17)) {
|
|
2888
2889
|
padding-top: calc(var(--editor-space-px) * 0.75);
|
|
2889
2890
|
}
|
|
2890
2891
|
}
|
|
2891
|
-
._EditorCanvas--
|
|
2892
|
+
._EditorCanvas--fullScreen_1aq14_22 {
|
|
2892
2893
|
padding: 0;
|
|
2893
2894
|
overflow: hidden;
|
|
2894
2895
|
}
|
|
2895
2896
|
@media (min-width: 1198px) {
|
|
2896
|
-
._EditorCanvas--
|
|
2897
|
+
._EditorCanvas--fullScreen_1aq14_22 {
|
|
2897
2898
|
padding: 0;
|
|
2898
2899
|
}
|
|
2899
2900
|
}
|
|
2900
|
-
._EditorCanvas
|
|
2901
|
+
._EditorCanvas--canvasFullScreen_1aq14_42 {
|
|
2902
|
+
position: fixed;
|
|
2903
|
+
inset: 0;
|
|
2904
|
+
z-index: 1000;
|
|
2905
|
+
padding: 0 !important;
|
|
2906
|
+
}
|
|
2907
|
+
._EditorCanvas-inner_1aq14_49 {
|
|
2901
2908
|
display: flex;
|
|
2902
2909
|
height: 100%;
|
|
2903
2910
|
justify-content: center;
|
|
@@ -2905,7 +2912,7 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2905
2912
|
position: relative;
|
|
2906
2913
|
width: 100%;
|
|
2907
2914
|
}
|
|
2908
|
-
._EditorCanvas-
|
|
2915
|
+
._EditorCanvas-rootColumn_1aq14_62 {
|
|
2909
2916
|
box-sizing: content-box;
|
|
2910
2917
|
display: flex;
|
|
2911
2918
|
flex-direction: column;
|
|
@@ -2914,16 +2921,16 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2914
2921
|
transform-origin: top;
|
|
2915
2922
|
}
|
|
2916
2923
|
@media (min-width: 1198px) {
|
|
2917
|
-
._EditorCanvas-
|
|
2924
|
+
._EditorCanvas-rootColumn_1aq14_62 {
|
|
2918
2925
|
min-width: unset;
|
|
2919
2926
|
}
|
|
2920
2927
|
}
|
|
2921
2928
|
@media (prefers-reduced-motion: reduce) {
|
|
2922
|
-
._EditorCanvas-
|
|
2929
|
+
._EditorCanvas-rootColumn_1aq14_62 {
|
|
2923
2930
|
transition: none !important;
|
|
2924
2931
|
}
|
|
2925
2932
|
}
|
|
2926
|
-
._EditorCanvas-
|
|
2933
|
+
._EditorCanvas-root_1aq14_62 {
|
|
2927
2934
|
background: var(--editor-surface-panel);
|
|
2928
2935
|
outline: 1px solid var(--editor-border-subtle);
|
|
2929
2936
|
box-shadow: var(--editor-shadow-lg);
|
|
@@ -2933,15 +2940,15 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2933
2940
|
opacity: 0;
|
|
2934
2941
|
}
|
|
2935
2942
|
@media (prefers-reduced-motion: reduce) {
|
|
2936
|
-
._EditorCanvas-
|
|
2943
|
+
._EditorCanvas-root_1aq14_62 {
|
|
2937
2944
|
transition: none !important;
|
|
2938
2945
|
}
|
|
2939
2946
|
}
|
|
2940
|
-
._EditorCanvas--
|
|
2947
|
+
._EditorCanvas--ready_1aq14_99 ._EditorCanvas-root_1aq14_62 {
|
|
2941
2948
|
pointer-events: unset;
|
|
2942
2949
|
opacity: 1;
|
|
2943
2950
|
}
|
|
2944
|
-
._EditorCanvas-
|
|
2951
|
+
._EditorCanvas-loader_1aq14_104 {
|
|
2945
2952
|
align-items: center;
|
|
2946
2953
|
color: var(--editor-text-tertiary);
|
|
2947
2954
|
display: flex;
|
|
@@ -2952,18 +2959,18 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2952
2959
|
transition: opacity 250ms ease-out;
|
|
2953
2960
|
opacity: 0;
|
|
2954
2961
|
}
|
|
2955
|
-
._EditorCanvas--
|
|
2962
|
+
._EditorCanvas--showLoader_1aq14_116 ._EditorCanvas-loader_1aq14_104 {
|
|
2956
2963
|
opacity: 1;
|
|
2957
2964
|
}
|
|
2958
|
-
._EditorCanvas--
|
|
2965
|
+
._EditorCanvas--showLoader_1aq14_116._EditorCanvas--ready_1aq14_99 ._EditorCanvas-loader_1aq14_104 {
|
|
2959
2966
|
opacity: 0;
|
|
2960
2967
|
transition: none;
|
|
2961
2968
|
}
|
|
2962
|
-
._EditorCanvas-
|
|
2969
|
+
._EditorCanvas-browserBar_1aq14_125 {
|
|
2963
2970
|
flex-shrink: 0;
|
|
2964
2971
|
width: 100%;
|
|
2965
2972
|
}
|
|
2966
|
-
._EditorCanvas-
|
|
2973
|
+
._EditorCanvas-zoomControls_1aq14_130 {
|
|
2967
2974
|
align-items: center;
|
|
2968
2975
|
background: var(--editor-surface-panel);
|
|
2969
2976
|
border: 1px solid var(--editor-border-subtle);
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Data, o as Field, p as FieldProps, C as Config, U as UserGenerics, O as OnAction, f as UiState, d as Plugin, e as Overrides, h as FieldTransforms, M as Metadata, I as IframeConfig, V as Viewports, a as Permissions, E as EditorAction,
|
|
2
|
-
export {
|
|
3
|
-
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-
|
|
1
|
+
import { D as Data, o as Field, p as FieldProps, C as Config, U as UserGenerics, O as OnAction, f as UiState, q as EditorChromeConfig, d as Plugin, e as Overrides, h as FieldTransforms, M as Metadata, I as IframeConfig, V as Viewports, a as Permissions, E as EditorAction, r as InitialHistory, b as ComponentData, l as DefaultComponentProps, m as DefaultRootFieldProps, c as ResolveDataTrigger, s as ItemSelector, t as PluginInternal } from './actions-BxLinRKD.mjs';
|
|
2
|
+
export { u as Adaptor, A as AppState, v as ArrayField, w as ArrayState, x as AsFieldProps, B as BaseData, y as BaseField, z as CacheOpts, G as ColorField, g as ComponentConfig, J as ComponentConfigExtensions, K as ComponentConfigParams, L as ComponentDataMap, N as ComponentDataOptionalId, Q as ComponentMetadata, S as ConfigParams, j as Content, T as CustomField, X as CustomFieldRender, k as DefaultComponents, Y as DefaultRootProps, Z as DefaultRootRenderProps, _ as Direction, $ as DragAxis, a0 as EditorComponent, a1 as EditorContext, a2 as EditorMetadata, a3 as ExternalField, a4 as ExternalFieldWithAdaptor, a5 as ExtractConfigParams, a6 as ExtractField, a7 as FieldMetadata, a8 as FieldRenderFunctions, a9 as FieldTransformFn, aa as FieldTransformFnParams, F as Fields, H as History, ab as ItemWithId, ac as MappedItem, ad as NumberField, ae as ObjectField, af as OverrideKey, ag as RadioField, ah as RichText, i as RichtextField, ai as RootConfig, n as RootData, R as RootDataWithProps, aj as RootDataWithoutProps, ak as SelectField, al as Slot, am as SlotComponent, an as SlotField, ao as TextField, ap as TextareaField, aq as Viewport, ar as WithChildren, as as WithEditorProps, W as WithId, at as WithSlotProps, au as overrideKeys } from './actions-BxLinRKD.mjs';
|
|
3
|
+
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-BvYigWFL.mjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
|
|
7
|
-
import { A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-
|
|
7
|
+
import { A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-BZRpxcwy.mjs';
|
|
8
8
|
import '@tiptap/react';
|
|
9
9
|
import '@tiptap/extension-blockquote';
|
|
10
10
|
import '@tiptap/extension-bold';
|
|
@@ -153,7 +153,7 @@ type EditorPassthroughProps<UserConfig extends Config = Config, G extends UserGe
|
|
|
153
153
|
onPublish?: (data: G["UserData"], route?: string) => void;
|
|
154
154
|
onChange?: (data: G["UserData"]) => void;
|
|
155
155
|
onAction?: OnAction<G["UserData"]>;
|
|
156
|
-
ui?: Partial<UiState>;
|
|
156
|
+
ui?: Partial<UiState> & Partial<EditorChromeConfig>;
|
|
157
157
|
plugins?: Plugin<UserConfig>[];
|
|
158
158
|
overrides?: Partial<Overrides<UserConfig>>;
|
|
159
159
|
fieldTransforms?: FieldTransforms<UserConfig>;
|
|
@@ -288,7 +288,13 @@ type EditorProps<UserConfig extends Config = Config, G extends UserGenerics<User
|
|
|
288
288
|
children?: ReactNode;
|
|
289
289
|
config: UserConfig;
|
|
290
290
|
data: Partial<G["UserData"] | Data>;
|
|
291
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Initial runtime UI state plus static chrome flags (`navBar`,
|
|
293
|
+
* `themeToggle`, `historyControls`, `urlBar`, `deviceToggle`,
|
|
294
|
+
* `fullScreenToggle`). Chrome flags are read once on mount and cannot be
|
|
295
|
+
* toggled via `dispatch` — they live on props, not in AppState.
|
|
296
|
+
*/
|
|
297
|
+
ui?: Partial<UiState> & Partial<EditorChromeConfig>;
|
|
292
298
|
onChange?: (data: G["UserData"]) => void;
|
|
293
299
|
onPublish?: (data: G["UserData"], route?: string) => void;
|
|
294
300
|
onAction?: OnAction<G["UserData"]>;
|
|
@@ -551,4 +557,4 @@ declare const outlinePlugin: () => Plugin;
|
|
|
551
557
|
|
|
552
558
|
declare const legacySideBarPlugin: () => Plugin;
|
|
553
559
|
|
|
554
|
-
export { Action, ActionBar, App, type AppContextValue, type AppEditorProps, type AppMatched, type AppProps, AppProvider, type AppProviderProps, type AppRenderProps, type AppRouterVariant, AutoField, Button, ComponentData, ComponentList, Config, Data, DefaultComponentProps, DefaultRootFieldProps, Drawer, Editor, EditorAction, type EditorApi, type EditorCommands, Field, FieldLabel, FieldProps, FieldTransforms, type GlobalsMap, Group, IconButton, IframeConfig, InitialHistory, type InsertComponentArgs, Label, Metadata, type MoveDestination, OnAction, Overrides, type PageMetadata, type Parent, Permissions, Plugin, Render, ResolveDataTrigger, RichTextMenu, type Route, type RouteKey, Separator, UiState, type UseEditorData, UserGenerics, Viewports, appConfigContext, blocksPlugin, createUseEditor, fieldsPlugin, legacySideBarPlugin, outlinePlugin, pageMetadata, registerOverlayPortal, renderContext, setDeep, useApp, useEditor, useGetEditor, usePropsContext, useRouteParams, useStableValue };
|
|
560
|
+
export { Action, ActionBar, App, type AppContextValue, type AppEditorProps, type AppMatched, type AppProps, AppProvider, type AppProviderProps, type AppRenderProps, type AppRouterVariant, AutoField, Button, ComponentData, ComponentList, Config, Data, DefaultComponentProps, DefaultRootFieldProps, Drawer, Editor, EditorAction, type EditorApi, EditorChromeConfig, type EditorCommands, Field, FieldLabel, FieldProps, FieldTransforms, type GlobalsMap, Group, IconButton, IframeConfig, InitialHistory, type InsertComponentArgs, Label, Metadata, type MoveDestination, OnAction, Overrides, type PageMetadata, type Parent, Permissions, Plugin, Render, ResolveDataTrigger, RichTextMenu, type Route, type RouteKey, Separator, UiState, type UseEditorData, UserGenerics, Viewports, appConfigContext, blocksPlugin, createUseEditor, fieldsPlugin, legacySideBarPlugin, outlinePlugin, pageMetadata, registerOverlayPortal, renderContext, setDeep, useApp, useEditor, useGetEditor, usePropsContext, useRouteParams, useStableValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Data, o as Field, p as FieldProps, C as Config, U as UserGenerics, O as OnAction, f as UiState, d as Plugin, e as Overrides, h as FieldTransforms, M as Metadata, I as IframeConfig, V as Viewports, a as Permissions, E as EditorAction,
|
|
2
|
-
export {
|
|
3
|
-
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-
|
|
1
|
+
import { D as Data, o as Field, p as FieldProps, C as Config, U as UserGenerics, O as OnAction, f as UiState, q as EditorChromeConfig, d as Plugin, e as Overrides, h as FieldTransforms, M as Metadata, I as IframeConfig, V as Viewports, a as Permissions, E as EditorAction, r as InitialHistory, b as ComponentData, l as DefaultComponentProps, m as DefaultRootFieldProps, c as ResolveDataTrigger, s as ItemSelector, t as PluginInternal } from './actions-BxLinRKD.js';
|
|
2
|
+
export { u as Adaptor, A as AppState, v as ArrayField, w as ArrayState, x as AsFieldProps, B as BaseData, y as BaseField, z as CacheOpts, G as ColorField, g as ComponentConfig, J as ComponentConfigExtensions, K as ComponentConfigParams, L as ComponentDataMap, N as ComponentDataOptionalId, Q as ComponentMetadata, S as ConfigParams, j as Content, T as CustomField, X as CustomFieldRender, k as DefaultComponents, Y as DefaultRootProps, Z as DefaultRootRenderProps, _ as Direction, $ as DragAxis, a0 as EditorComponent, a1 as EditorContext, a2 as EditorMetadata, a3 as ExternalField, a4 as ExternalFieldWithAdaptor, a5 as ExtractConfigParams, a6 as ExtractField, a7 as FieldMetadata, a8 as FieldRenderFunctions, a9 as FieldTransformFn, aa as FieldTransformFnParams, F as Fields, H as History, ab as ItemWithId, ac as MappedItem, ad as NumberField, ae as ObjectField, af as OverrideKey, ag as RadioField, ah as RichText, i as RichtextField, ai as RootConfig, n as RootData, R as RootDataWithProps, aj as RootDataWithoutProps, ak as SelectField, al as Slot, am as SlotComponent, an as SlotField, ao as TextField, ap as TextareaField, aq as Viewport, ar as WithChildren, as as WithEditorProps, W as WithId, at as WithSlotProps, au as overrideKeys } from './actions-BxLinRKD.js';
|
|
3
|
+
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-Clklc1Ql.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
|
|
7
|
-
import { A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-
|
|
7
|
+
import { A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-B_21fGrq.js';
|
|
8
8
|
import '@tiptap/react';
|
|
9
9
|
import '@tiptap/extension-blockquote';
|
|
10
10
|
import '@tiptap/extension-bold';
|
|
@@ -153,7 +153,7 @@ type EditorPassthroughProps<UserConfig extends Config = Config, G extends UserGe
|
|
|
153
153
|
onPublish?: (data: G["UserData"], route?: string) => void;
|
|
154
154
|
onChange?: (data: G["UserData"]) => void;
|
|
155
155
|
onAction?: OnAction<G["UserData"]>;
|
|
156
|
-
ui?: Partial<UiState>;
|
|
156
|
+
ui?: Partial<UiState> & Partial<EditorChromeConfig>;
|
|
157
157
|
plugins?: Plugin<UserConfig>[];
|
|
158
158
|
overrides?: Partial<Overrides<UserConfig>>;
|
|
159
159
|
fieldTransforms?: FieldTransforms<UserConfig>;
|
|
@@ -288,7 +288,13 @@ type EditorProps<UserConfig extends Config = Config, G extends UserGenerics<User
|
|
|
288
288
|
children?: ReactNode;
|
|
289
289
|
config: UserConfig;
|
|
290
290
|
data: Partial<G["UserData"] | Data>;
|
|
291
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Initial runtime UI state plus static chrome flags (`navBar`,
|
|
293
|
+
* `themeToggle`, `historyControls`, `urlBar`, `deviceToggle`,
|
|
294
|
+
* `fullScreenToggle`). Chrome flags are read once on mount and cannot be
|
|
295
|
+
* toggled via `dispatch` — they live on props, not in AppState.
|
|
296
|
+
*/
|
|
297
|
+
ui?: Partial<UiState> & Partial<EditorChromeConfig>;
|
|
292
298
|
onChange?: (data: G["UserData"]) => void;
|
|
293
299
|
onPublish?: (data: G["UserData"], route?: string) => void;
|
|
294
300
|
onAction?: OnAction<G["UserData"]>;
|
|
@@ -551,4 +557,4 @@ declare const outlinePlugin: () => Plugin;
|
|
|
551
557
|
|
|
552
558
|
declare const legacySideBarPlugin: () => Plugin;
|
|
553
559
|
|
|
554
|
-
export { Action, ActionBar, App, type AppContextValue, type AppEditorProps, type AppMatched, type AppProps, AppProvider, type AppProviderProps, type AppRenderProps, type AppRouterVariant, AutoField, Button, ComponentData, ComponentList, Config, Data, DefaultComponentProps, DefaultRootFieldProps, Drawer, Editor, EditorAction, type EditorApi, type EditorCommands, Field, FieldLabel, FieldProps, FieldTransforms, type GlobalsMap, Group, IconButton, IframeConfig, InitialHistory, type InsertComponentArgs, Label, Metadata, type MoveDestination, OnAction, Overrides, type PageMetadata, type Parent, Permissions, Plugin, Render, ResolveDataTrigger, RichTextMenu, type Route, type RouteKey, Separator, UiState, type UseEditorData, UserGenerics, Viewports, appConfigContext, blocksPlugin, createUseEditor, fieldsPlugin, legacySideBarPlugin, outlinePlugin, pageMetadata, registerOverlayPortal, renderContext, setDeep, useApp, useEditor, useGetEditor, usePropsContext, useRouteParams, useStableValue };
|
|
560
|
+
export { Action, ActionBar, App, type AppContextValue, type AppEditorProps, type AppMatched, type AppProps, AppProvider, type AppProviderProps, type AppRenderProps, type AppRouterVariant, AutoField, Button, ComponentData, ComponentList, Config, Data, DefaultComponentProps, DefaultRootFieldProps, Drawer, Editor, EditorAction, type EditorApi, EditorChromeConfig, type EditorCommands, Field, FieldLabel, FieldProps, FieldTransforms, type GlobalsMap, Group, IconButton, IframeConfig, InitialHistory, type InsertComponentArgs, Label, Metadata, type MoveDestination, OnAction, Overrides, type PageMetadata, type Parent, Permissions, Plugin, Render, ResolveDataTrigger, RichTextMenu, type Route, type RouteKey, Separator, UiState, type UseEditorData, UserGenerics, Viewports, appConfigContext, blocksPlugin, createUseEditor, fieldsPlugin, legacySideBarPlugin, outlinePlugin, pageMetadata, registerOverlayPortal, renderContext, setDeep, useApp, useEditor, useGetEditor, usePropsContext, useRouteParams, useStableValue };
|
package/dist/index.js
CHANGED
|
@@ -3165,7 +3165,7 @@ var init_default_app_state = __esm({
|
|
|
3165
3165
|
ui: {
|
|
3166
3166
|
leftSideBarVisible: true,
|
|
3167
3167
|
rightSideBarVisible: true,
|
|
3168
|
-
|
|
3168
|
+
canvasFullScreen: false,
|
|
3169
3169
|
arrayState: {},
|
|
3170
3170
|
itemSelector: null,
|
|
3171
3171
|
componentList: {},
|
|
@@ -13286,7 +13286,7 @@ function ComboboxEmpty(_a) {
|
|
|
13286
13286
|
|
|
13287
13287
|
// css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/BrowserBar/styles.module.css#css-module
|
|
13288
13288
|
init_react_import();
|
|
13289
|
-
var styles_module_default29 = { "BrowserBar": "
|
|
13289
|
+
var styles_module_default29 = { "BrowserBar": "_BrowserBar_coofe_1", "BrowserBar-urlTrigger": "_BrowserBar-urlTrigger_coofe_16", "BrowserBar-urlIcon": "_BrowserBar-urlIcon_coofe_46", "BrowserBar-urlText": "_BrowserBar-urlText_coofe_51", "BrowserBar-urlInput": "_BrowserBar-urlInput_coofe_63", "BrowserBar-itemPath": "_BrowserBar-itemPath_coofe_69", "BrowserBar-itemTitle": "_BrowserBar-itemTitle_coofe_74", "BrowserBar-actions": "_BrowserBar-actions_coofe_82", "BrowserBar-deviceIcon": "_BrowserBar-deviceIcon_coofe_92" };
|
|
13290
13290
|
|
|
13291
13291
|
// components/BrowserBar/index.tsx
|
|
13292
13292
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
@@ -13304,21 +13304,19 @@ var BrowserBar = ({
|
|
|
13304
13304
|
onViewportChange
|
|
13305
13305
|
}) => {
|
|
13306
13306
|
const { routes, currentRoute, onRouteChange } = usePropsContext();
|
|
13307
|
+
const chrome = useChromeConfig();
|
|
13307
13308
|
const viewports = useAppStore((s) => s.state.ui.viewports);
|
|
13308
13309
|
const dispatch = useAppStore((s) => s.dispatch);
|
|
13309
|
-
const
|
|
13310
|
-
|
|
13311
|
-
|
|
13310
|
+
const isFullScreen = useAppStore(
|
|
13311
|
+
(s) => {
|
|
13312
|
+
var _a;
|
|
13313
|
+
return (_a = s.state.ui.canvasFullScreen) != null ? _a : false;
|
|
13314
|
+
}
|
|
13312
13315
|
);
|
|
13313
|
-
const isFullScreen = !leftSideBarVisible && !rightSideBarVisible;
|
|
13314
13316
|
const toggleFullScreen = () => {
|
|
13315
|
-
const next = !isFullScreen;
|
|
13316
13317
|
dispatch({
|
|
13317
13318
|
type: "setUi",
|
|
13318
|
-
ui: {
|
|
13319
|
-
leftSideBarVisible: !next,
|
|
13320
|
-
rightSideBarVisible: !next
|
|
13321
|
-
}
|
|
13319
|
+
ui: { canvasFullScreen: !isFullScreen }
|
|
13322
13320
|
});
|
|
13323
13321
|
};
|
|
13324
13322
|
const activeDevice = (0, import_react87.useMemo)(() => {
|
|
@@ -13341,8 +13339,11 @@ var BrowserBar = ({
|
|
|
13341
13339
|
if (!next || next === currentRoute) return;
|
|
13342
13340
|
void (onRouteChange == null ? void 0 : onRouteChange(next));
|
|
13343
13341
|
};
|
|
13342
|
+
if (!chrome.showUrlBar && !chrome.showDeviceToggle && !chrome.showFullScreenToggle) {
|
|
13343
|
+
return null;
|
|
13344
|
+
}
|
|
13344
13345
|
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: getClassName36(), children: [
|
|
13345
|
-
showRoutePicker ? /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
13346
|
+
chrome.showUrlBar && (showRoutePicker ? /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
13346
13347
|
Combobox,
|
|
13347
13348
|
{
|
|
13348
13349
|
items: routes,
|
|
@@ -13386,9 +13387,9 @@ var BrowserBar = ({
|
|
|
13386
13387
|
) : /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: getClassName36("urlTrigger"), children: [
|
|
13387
13388
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Globe, { className: getClassName36("urlIcon"), size: 14 }),
|
|
13388
13389
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: getClassName36("urlText"), children: "/" })
|
|
13389
|
-
] }),
|
|
13390
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: getClassName36("actions"), children: [
|
|
13391
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
13390
|
+
] })),
|
|
13391
|
+
(chrome.showDeviceToggle || chrome.showFullScreenToggle) && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: getClassName36("actions"), children: [
|
|
13392
|
+
chrome.showDeviceToggle && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
13392
13393
|
IconButton,
|
|
13393
13394
|
{
|
|
13394
13395
|
type: "button",
|
|
@@ -13397,7 +13398,7 @@ var BrowserBar = ({
|
|
|
13397
13398
|
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: getClassName36("deviceIcon"), children: activeDevice === "desktop" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Monitor, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Smartphone, { size: 16 }) })
|
|
13398
13399
|
}
|
|
13399
13400
|
),
|
|
13400
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
13401
|
+
chrome.showFullScreenToggle && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
13401
13402
|
IconButton,
|
|
13402
13403
|
{
|
|
13403
13404
|
type: "button",
|
|
@@ -13412,7 +13413,7 @@ var BrowserBar = ({
|
|
|
13412
13413
|
|
|
13413
13414
|
// css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/Editor/components/Canvas/styles.module.css#css-module
|
|
13414
13415
|
init_react_import();
|
|
13415
|
-
var styles_module_default30 = { "EditorCanvas": "
|
|
13416
|
+
var styles_module_default30 = { "EditorCanvas": "_EditorCanvas_1aq14_1", "EditorCanvas-controls": "_EditorCanvas-controls_1aq14_17", "EditorCanvas--fullScreen": "_EditorCanvas--fullScreen_1aq14_22", "EditorCanvas--canvasFullScreen": "_EditorCanvas--canvasFullScreen_1aq14_42", "EditorCanvas-inner": "_EditorCanvas-inner_1aq14_49", "EditorCanvas-rootColumn": "_EditorCanvas-rootColumn_1aq14_62", "EditorCanvas-root": "_EditorCanvas-root_1aq14_62", "EditorCanvas--ready": "_EditorCanvas--ready_1aq14_99", "EditorCanvas-loader": "_EditorCanvas-loader_1aq14_104", "EditorCanvas--showLoader": "_EditorCanvas--showLoader_1aq14_116", "EditorCanvas-browserBar": "_EditorCanvas-browserBar_1aq14_125", "EditorCanvas-zoomControls": "_EditorCanvas-zoomControls_1aq14_130" };
|
|
13416
13417
|
|
|
13417
13418
|
// components/Editor/components/Canvas/index.tsx
|
|
13418
13419
|
init_lib();
|
|
@@ -13483,6 +13484,12 @@ var Canvas = () => {
|
|
|
13483
13484
|
}))
|
|
13484
13485
|
);
|
|
13485
13486
|
const viewports = useAppStore((s) => s.state.ui.viewports);
|
|
13487
|
+
const canvasFullScreen = useAppStore(
|
|
13488
|
+
(s) => {
|
|
13489
|
+
var _a2;
|
|
13490
|
+
return (_a2 = s.state.ui.canvasFullScreen) != null ? _a2 : false;
|
|
13491
|
+
}
|
|
13492
|
+
);
|
|
13486
13493
|
const [canvasZoom, setCanvasZoom] = (0, import_react89.useState)(1);
|
|
13487
13494
|
const zoomIn = () => setCanvasZoom((z) => Math.min(z + ZOOM_STEP, MAX_ZOOM));
|
|
13488
13495
|
const zoomOut = () => setCanvasZoom((z) => Math.max(z - ZOOM_STEP, MIN_ZOOM));
|
|
@@ -13618,7 +13625,8 @@ var Canvas = () => {
|
|
|
13618
13625
|
className: getClassName37({
|
|
13619
13626
|
ready: status === "READY" || !iframe.enabled || !iframe.waitForStyles,
|
|
13620
13627
|
showLoader,
|
|
13621
|
-
fullScreen: fullScreenCanvas
|
|
13628
|
+
fullScreen: fullScreenCanvas,
|
|
13629
|
+
canvasFullScreen
|
|
13622
13630
|
}),
|
|
13623
13631
|
onClick: (e) => {
|
|
13624
13632
|
const el = e.target;
|
|
@@ -14156,6 +14164,7 @@ var getPluginTabClassName = get_class_name_factory_default("EditorPluginTab", st
|
|
|
14156
14164
|
var FieldSideBarToolbar = () => {
|
|
14157
14165
|
const appStore = useAppStoreApi();
|
|
14158
14166
|
const { onPublish, currentRoute } = usePropsContext();
|
|
14167
|
+
const chrome = useChromeConfig();
|
|
14159
14168
|
const back = useAppStore((s) => s.history.back);
|
|
14160
14169
|
const forward = useAppStore((s) => s.history.forward);
|
|
14161
14170
|
const hasFuture = useAppStore((s) => s.history.hasFuture());
|
|
@@ -14164,7 +14173,7 @@ var FieldSideBarToolbar = () => {
|
|
|
14164
14173
|
(s) => s.overrides.headerActions || DefaultOverride
|
|
14165
14174
|
);
|
|
14166
14175
|
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: getClassName43("fieldSideBarToolbar"), children: [
|
|
14167
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: getClassName43("fieldSideBarHistory"), children: [
|
|
14176
|
+
chrome.showHistoryControls ? /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: getClassName43("fieldSideBarHistory"), children: [
|
|
14168
14177
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
14169
14178
|
IconButton,
|
|
14170
14179
|
{
|
|
@@ -14185,7 +14194,7 @@ var FieldSideBarToolbar = () => {
|
|
|
14185
14194
|
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Redo2, { size: 18 })
|
|
14186
14195
|
}
|
|
14187
14196
|
)
|
|
14188
|
-
] }),
|
|
14197
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", {}),
|
|
14189
14198
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: getClassName43("fieldSideBarActions"), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CustomHeaderActions, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
14190
14199
|
Button,
|
|
14191
14200
|
{
|
|
@@ -14238,7 +14247,8 @@ var Layout = ({ children }) => {
|
|
|
14238
14247
|
const rightSideBarVisible = useAppStore(
|
|
14239
14248
|
(s) => s.state.ui.rightSideBarVisible
|
|
14240
14249
|
);
|
|
14241
|
-
const
|
|
14250
|
+
const chrome = useChromeConfig();
|
|
14251
|
+
const navBarVisible = chrome.showNavBar;
|
|
14242
14252
|
const instanceId = useAppStore((s) => s.instanceId);
|
|
14243
14253
|
const {
|
|
14244
14254
|
width: leftWidth,
|
|
@@ -14480,7 +14490,7 @@ var Layout = ({ children }) => {
|
|
|
14480
14490
|
Nav,
|
|
14481
14491
|
{
|
|
14482
14492
|
items: pluginItems,
|
|
14483
|
-
footer: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
14493
|
+
footer: chrome.showThemeToggle ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
14484
14494
|
IconButton,
|
|
14485
14495
|
{
|
|
14486
14496
|
type: "button",
|
|
@@ -14488,7 +14498,7 @@ var Layout = ({ children }) => {
|
|
|
14488
14498
|
onClick: toggleTheme,
|
|
14489
14499
|
children: themeIcon
|
|
14490
14500
|
}
|
|
14491
|
-
)
|
|
14501
|
+
) : void 0
|
|
14492
14502
|
}
|
|
14493
14503
|
) }),
|
|
14494
14504
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
@@ -14577,11 +14587,45 @@ var Layout = ({ children }) => {
|
|
|
14577
14587
|
|
|
14578
14588
|
// components/Editor/index.tsx
|
|
14579
14589
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
14590
|
+
var CHROME_KEYS = [
|
|
14591
|
+
"showNavBar",
|
|
14592
|
+
"showThemeToggle",
|
|
14593
|
+
"showHistoryControls",
|
|
14594
|
+
"showUrlBar",
|
|
14595
|
+
"showDeviceToggle",
|
|
14596
|
+
"showFullScreenToggle"
|
|
14597
|
+
];
|
|
14598
|
+
var DEFAULT_CHROME = {
|
|
14599
|
+
showNavBar: true,
|
|
14600
|
+
showThemeToggle: true,
|
|
14601
|
+
showHistoryControls: true,
|
|
14602
|
+
showUrlBar: true,
|
|
14603
|
+
showDeviceToggle: true,
|
|
14604
|
+
showFullScreenToggle: true
|
|
14605
|
+
};
|
|
14606
|
+
var splitUiConfig = (ui) => {
|
|
14607
|
+
const runtime = {};
|
|
14608
|
+
const chrome = {};
|
|
14609
|
+
if (!ui) return { runtime, chrome };
|
|
14610
|
+
for (const [key, value] of Object.entries(ui)) {
|
|
14611
|
+
if (CHROME_KEYS.includes(key)) {
|
|
14612
|
+
chrome[key] = value;
|
|
14613
|
+
} else {
|
|
14614
|
+
runtime[key] = value;
|
|
14615
|
+
}
|
|
14616
|
+
}
|
|
14617
|
+
return { runtime, chrome };
|
|
14618
|
+
};
|
|
14580
14619
|
var propsContext = (0, import_react95.createContext)({});
|
|
14581
14620
|
function PropsProvider(props) {
|
|
14582
14621
|
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(propsContext.Provider, { value: props, children: props.children });
|
|
14583
14622
|
}
|
|
14584
14623
|
var usePropsContext = () => (0, import_react95.useContext)(propsContext);
|
|
14624
|
+
var useChromeConfig = () => {
|
|
14625
|
+
const { ui } = usePropsContext();
|
|
14626
|
+
const { chrome } = splitUiConfig(ui);
|
|
14627
|
+
return __spreadValues(__spreadValues({}, DEFAULT_CHROME), chrome);
|
|
14628
|
+
};
|
|
14585
14629
|
function EditorProvider({ children }) {
|
|
14586
14630
|
const {
|
|
14587
14631
|
config,
|
|
@@ -14609,7 +14653,8 @@ function EditorProvider({ children }) {
|
|
|
14609
14653
|
);
|
|
14610
14654
|
const [generatedAppState] = (0, import_react95.useState)(() => {
|
|
14611
14655
|
var _a, _b, _c, _d, _e, _f;
|
|
14612
|
-
const
|
|
14656
|
+
const { runtime: initialUiRuntime } = splitUiConfig(initialUi);
|
|
14657
|
+
const initial = __spreadValues(__spreadValues({}, defaultAppState.ui), initialUiRuntime);
|
|
14613
14658
|
let clientUiState = {};
|
|
14614
14659
|
if (Object.keys((initialData == null ? void 0 : initialData.root) || {}).length > 0 && !((_a = initialData == null ? void 0 : initialData.root) == null ? void 0 : _a.props)) {
|
|
14615
14660
|
console.warn(
|
package/dist/index.mjs
CHANGED
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
usePropsContext,
|
|
26
26
|
useRouteParams,
|
|
27
27
|
useStableValue
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-IFFNAAXW.mjs";
|
|
29
|
+
import "./chunk-5QKQ3LQJ.mjs";
|
|
30
30
|
import {
|
|
31
31
|
Action,
|
|
32
32
|
ActionBar,
|
|
@@ -35,21 +35,21 @@ import {
|
|
|
35
35
|
Label,
|
|
36
36
|
RichTextMenu,
|
|
37
37
|
Separator
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-Q667J2EG.mjs";
|
|
39
|
+
import "./chunk-RQZQMS6E.mjs";
|
|
40
40
|
import {
|
|
41
41
|
getRouteProps,
|
|
42
42
|
migrate,
|
|
43
43
|
resolveAllData,
|
|
44
44
|
resolveRouteFromString,
|
|
45
45
|
transformProps
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-4L7H4JV4.mjs";
|
|
47
47
|
import "./chunk-6QJ2HF4O.mjs";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-RGC274VM.mjs";
|
|
49
|
+
import "./chunk-TG2KTWSB.mjs";
|
|
50
|
+
import "./chunk-JHURG5NN.mjs";
|
|
51
51
|
import "./chunk-M4JDRFYB.mjs";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-FTVOCMGV.mjs";
|
|
53
53
|
import "./chunk-Y2EFNT5P.mjs";
|
|
54
54
|
import {
|
|
55
55
|
walkTree
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
|
-
import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, E as EditorAction } from './actions-
|
|
3
|
-
import { A as AppStore } from './index-
|
|
2
|
+
import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, E as EditorAction } from './actions-BxLinRKD.mjs';
|
|
3
|
+
import { A as AppStore } from './index-BZRpxcwy.mjs';
|
|
4
4
|
import '@tiptap/react';
|
|
5
5
|
import '@tiptap/extension-blockquote';
|
|
6
6
|
import '@tiptap/extension-bold';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
|
-
import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, E as EditorAction } from './actions-
|
|
3
|
-
import { A as AppStore } from './index-
|
|
2
|
+
import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, E as EditorAction } from './actions-BxLinRKD.js';
|
|
3
|
+
import { A as AppStore } from './index-B_21fGrq.js';
|
|
4
4
|
import '@tiptap/react';
|
|
5
5
|
import '@tiptap/extension-blockquote';
|
|
6
6
|
import '@tiptap/extension-bold';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useHeadingOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TG2KTWSB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Heading,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JHURG5NN.mjs";
|
|
9
9
|
import "./chunk-M4JDRFYB.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-FTVOCMGV.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
12
|
import "./chunk-JIXMPJZA.mjs";
|
|
13
13
|
import {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useListOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RQZQMS6E.mjs";
|
|
4
4
|
import {
|
|
5
5
|
List,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JHURG5NN.mjs";
|
|
9
9
|
import "./chunk-M4JDRFYB.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-FTVOCMGV.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
12
|
import "./chunk-JIXMPJZA.mjs";
|
|
13
13
|
import {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RGC274VM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AlignLeft,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JHURG5NN.mjs";
|
|
9
9
|
import "./chunk-M4JDRFYB.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-FTVOCMGV.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
12
|
import "./chunk-JIXMPJZA.mjs";
|
|
13
13
|
import {
|