@reacteditor/core 0.0.13 → 0.0.15
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-3COFH5WN.mjs → Editor-7UIJWCPN.mjs} +7 -7
- package/dist/{actions-DDpLL_TR.d.mts → actions-BxLinRKD.d.mts} +5 -0
- package/dist/{actions-DDpLL_TR.d.ts → actions-BxLinRKD.d.ts} +5 -0
- package/dist/{chunk-PUDWMFBH.mjs → chunk-3CGBQNX4.mjs} +1 -1
- package/dist/{chunk-BZ4BQZJR.mjs → chunk-647NZJYM.mjs} +3 -3
- package/dist/{chunk-FT6UFK7G.mjs → chunk-C2KWANIN.mjs} +1 -1
- package/dist/{chunk-AD7BMXAA.mjs → chunk-GIGXMGTZ.mjs} +1 -1
- package/dist/{chunk-OIFPBVSF.mjs → chunk-NKHR722W.mjs} +1 -1
- package/dist/{chunk-IIRJMJFU.mjs → chunk-NPC7A3V3.mjs} +4 -13
- package/dist/{chunk-KX5XDJF6.mjs → chunk-RAMNEU3M.mjs} +1044 -1323
- package/dist/{chunk-LRFRIIKG.mjs → chunk-T43H325W.mjs} +21 -122
- package/dist/{chunk-BUR5T7IX.mjs → chunk-TFAZFGYZ.mjs} +7 -7
- package/dist/{full-QT5KXRDP.mjs → full-PM3VSLYA.mjs} +6 -6
- package/dist/{index-BTatdZaE.d.mts → index-BZRpxcwy.d.mts} +1 -1
- package/dist/{index-zhUFD8aP.d.ts → index-B_21fGrq.d.ts} +1 -1
- package/dist/index.css +411 -517
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +846 -1247
- package/dist/index.mjs +9 -9
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/{loaded-O4QHGE26.mjs → loaded-5MUU76TF.mjs} +3 -3
- package/dist/{loaded-R34BR6I5.mjs → loaded-IIHO4UZS.mjs} +3 -3
- package/dist/{loaded-GLBLMTBL.mjs → loaded-ULJY3YN5.mjs} +3 -3
- package/dist/no-external.css +411 -517
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +846 -1247
- 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 +4 -14
- package/dist/rsc.mjs +2 -2
- package/dist/{walk-tree-Cxbt1UVr.d.mts → walk-tree-BvYigWFL.d.mts} +1 -1
- package/dist/{walk-tree-Cnyva5MB.d.ts → walk-tree-Clklc1Ql.d.ts} +1 -1
- package/package.json +2 -1
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
EditorInner,
|
|
6
6
|
LoadedRichTextMenu
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-647NZJYM.mjs";
|
|
8
|
+
import "./chunk-TFAZFGYZ.mjs";
|
|
9
|
+
import "./chunk-C2KWANIN.mjs";
|
|
10
10
|
import "./chunk-6QJ2HF4O.mjs";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-NKHR722W.mjs";
|
|
12
|
+
import "./chunk-GIGXMGTZ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
useAppStore,
|
|
15
15
|
useAppStoreApi
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-T43H325W.mjs";
|
|
17
17
|
import "./chunk-M4JDRFYB.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-NPC7A3V3.mjs";
|
|
19
19
|
import "./chunk-Y2EFNT5P.mjs";
|
|
20
20
|
import "./chunk-JIXMPJZA.mjs";
|
|
21
21
|
import {
|
|
@@ -580,6 +580,11 @@ type UiState = {
|
|
|
580
580
|
rightSideBarVisible: boolean;
|
|
581
581
|
leftSideBarWidth?: number | null;
|
|
582
582
|
rightSideBarWidth?: number | null;
|
|
583
|
+
/** Runtime: when true, the canvas overlays the entire editor area
|
|
584
|
+
* (sidebars stay mounted underneath). Toggled by the BrowserBar fullscreen
|
|
585
|
+
* button. Distinct from the static `fullScreenCanvas` Editor prop, which
|
|
586
|
+
* removes canvas padding for a chromeless render. */
|
|
587
|
+
canvasFullScreen?: boolean;
|
|
583
588
|
mobilePanelExpanded?: boolean;
|
|
584
589
|
itemSelector: ItemSelector | null;
|
|
585
590
|
arrayState: Record<string, ArrayState | undefined>;
|
|
@@ -580,6 +580,11 @@ type UiState = {
|
|
|
580
580
|
rightSideBarVisible: boolean;
|
|
581
581
|
leftSideBarWidth?: number | null;
|
|
582
582
|
rightSideBarWidth?: number | null;
|
|
583
|
+
/** Runtime: when true, the canvas overlays the entire editor area
|
|
584
|
+
* (sidebars stay mounted underneath). Toggled by the BrowserBar fullscreen
|
|
585
|
+
* button. Distinct from the static `fullScreenCanvas` Editor prop, which
|
|
586
|
+
* removes canvas padding for a chromeless render. */
|
|
587
|
+
canvasFullScreen?: boolean;
|
|
583
588
|
mobilePanelExpanded?: boolean;
|
|
584
589
|
itemSelector: ItemSelector | null;
|
|
585
590
|
arrayState: Record<string, ArrayState | undefined>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoadedRichTextMenuInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TFAZFGYZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
styles_module_default
|
|
6
6
|
} from "./chunk-6QJ2HF4O.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useAppStore,
|
|
9
9
|
useAppStoreApi
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T43H325W.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-PM3VSLYA.mjs").then((m) => ({
|
|
104
104
|
default: m.LoadedRichTextMenuFull
|
|
105
105
|
}))
|
|
106
106
|
);
|
|
@@ -9,14 +9,6 @@ import {
|
|
|
9
9
|
init_react_import
|
|
10
10
|
} from "./chunk-M6W7YEVX.mjs";
|
|
11
11
|
|
|
12
|
-
// components/ViewportControls/default-viewports.ts
|
|
13
|
-
init_react_import();
|
|
14
|
-
var defaultViewports = [
|
|
15
|
-
{ width: 360, height: "auto", icon: "Smartphone", label: "Small" },
|
|
16
|
-
{ width: 768, height: "auto", icon: "Tablet", label: "Medium" },
|
|
17
|
-
{ width: "100%", height: "auto", icon: "Monitor", label: "Desktop" }
|
|
18
|
-
];
|
|
19
|
-
|
|
20
12
|
// lib/resolve-component-data.ts
|
|
21
13
|
init_react_import();
|
|
22
14
|
|
|
@@ -116,16 +108,16 @@ var defaultAppState = {
|
|
|
116
108
|
ui: {
|
|
117
109
|
leftSideBarVisible: true,
|
|
118
110
|
rightSideBarVisible: true,
|
|
111
|
+
canvasFullScreen: false,
|
|
119
112
|
arrayState: {},
|
|
120
113
|
itemSelector: null,
|
|
121
114
|
componentList: {},
|
|
122
115
|
isDragging: false,
|
|
123
116
|
previewMode: "edit",
|
|
124
117
|
viewports: {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
},
|
|
118
|
+
// Default to the tablet viewport (the middle option) so the canvas
|
|
119
|
+
// opens at a comfortable preview width on most screens.
|
|
120
|
+
current: { width: 768, height: "auto" },
|
|
129
121
|
options: [],
|
|
130
122
|
controlsVisible: true
|
|
131
123
|
},
|
|
@@ -139,7 +131,6 @@ var defaultAppState = {
|
|
|
139
131
|
};
|
|
140
132
|
|
|
141
133
|
export {
|
|
142
|
-
defaultViewports,
|
|
143
134
|
getChanged,
|
|
144
135
|
resolveComponentData,
|
|
145
136
|
defaultAppState
|