@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.
Files changed (37) hide show
  1. package/dist/{Editor-3COFH5WN.mjs → Editor-7UIJWCPN.mjs} +7 -7
  2. package/dist/{actions-DDpLL_TR.d.mts → actions-BxLinRKD.d.mts} +5 -0
  3. package/dist/{actions-DDpLL_TR.d.ts → actions-BxLinRKD.d.ts} +5 -0
  4. package/dist/{chunk-PUDWMFBH.mjs → chunk-3CGBQNX4.mjs} +1 -1
  5. package/dist/{chunk-BZ4BQZJR.mjs → chunk-647NZJYM.mjs} +3 -3
  6. package/dist/{chunk-FT6UFK7G.mjs → chunk-C2KWANIN.mjs} +1 -1
  7. package/dist/{chunk-AD7BMXAA.mjs → chunk-GIGXMGTZ.mjs} +1 -1
  8. package/dist/{chunk-OIFPBVSF.mjs → chunk-NKHR722W.mjs} +1 -1
  9. package/dist/{chunk-IIRJMJFU.mjs → chunk-NPC7A3V3.mjs} +4 -13
  10. package/dist/{chunk-KX5XDJF6.mjs → chunk-RAMNEU3M.mjs} +1044 -1323
  11. package/dist/{chunk-LRFRIIKG.mjs → chunk-T43H325W.mjs} +21 -122
  12. package/dist/{chunk-BUR5T7IX.mjs → chunk-TFAZFGYZ.mjs} +7 -7
  13. package/dist/{full-QT5KXRDP.mjs → full-PM3VSLYA.mjs} +6 -6
  14. package/dist/{index-BTatdZaE.d.mts → index-BZRpxcwy.d.mts} +1 -1
  15. package/dist/{index-zhUFD8aP.d.ts → index-B_21fGrq.d.ts} +1 -1
  16. package/dist/index.css +411 -517
  17. package/dist/index.d.mts +4 -4
  18. package/dist/index.d.ts +4 -4
  19. package/dist/index.js +846 -1247
  20. package/dist/index.mjs +9 -9
  21. package/dist/internal.d.mts +2 -2
  22. package/dist/internal.d.ts +2 -2
  23. package/dist/{loaded-O4QHGE26.mjs → loaded-5MUU76TF.mjs} +3 -3
  24. package/dist/{loaded-R34BR6I5.mjs → loaded-IIHO4UZS.mjs} +3 -3
  25. package/dist/{loaded-GLBLMTBL.mjs → loaded-ULJY3YN5.mjs} +3 -3
  26. package/dist/no-external.css +411 -517
  27. package/dist/no-external.d.mts +3 -3
  28. package/dist/no-external.d.ts +3 -3
  29. package/dist/no-external.js +846 -1247
  30. package/dist/no-external.mjs +9 -9
  31. package/dist/rsc.d.mts +2 -2
  32. package/dist/rsc.d.ts +2 -2
  33. package/dist/rsc.js +4 -14
  34. package/dist/rsc.mjs +2 -2
  35. package/dist/{walk-tree-Cxbt1UVr.d.mts → walk-tree-BvYigWFL.d.mts} +1 -1
  36. package/dist/{walk-tree-Cnyva5MB.d.ts → walk-tree-Clklc1Ql.d.ts} +1 -1
  37. package/package.json +2 -1
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  EditorInner,
6
6
  LoadedRichTextMenu
7
- } from "./chunk-BZ4BQZJR.mjs";
8
- import "./chunk-BUR5T7IX.mjs";
9
- import "./chunk-FT6UFK7G.mjs";
7
+ } from "./chunk-647NZJYM.mjs";
8
+ import "./chunk-TFAZFGYZ.mjs";
9
+ import "./chunk-C2KWANIN.mjs";
10
10
  import "./chunk-6QJ2HF4O.mjs";
11
- import "./chunk-OIFPBVSF.mjs";
12
- import "./chunk-AD7BMXAA.mjs";
11
+ import "./chunk-NKHR722W.mjs";
12
+ import "./chunk-GIGXMGTZ.mjs";
13
13
  import {
14
14
  useAppStore,
15
15
  useAppStoreApi
16
- } from "./chunk-LRFRIIKG.mjs";
16
+ } from "./chunk-T43H325W.mjs";
17
17
  import "./chunk-M4JDRFYB.mjs";
18
- import "./chunk-IIRJMJFU.mjs";
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>;
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  defaultAppState,
6
6
  resolveComponentData
7
- } from "./chunk-IIRJMJFU.mjs";
7
+ } from "./chunk-NPC7A3V3.mjs";
8
8
  import {
9
9
  get_class_name_factory_default
10
10
  } from "./chunk-Y2EFNT5P.mjs";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  LoadedRichTextMenuInner
3
- } from "./chunk-BUR5T7IX.mjs";
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-LRFRIIKG.mjs";
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-QT5KXRDP.mjs").then((m) => ({
103
+ () => import("./full-PM3VSLYA.mjs").then((m) => ({
104
104
  default: m.LoadedRichTextMenuFull
105
105
  }))
106
106
  );
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  List,
3
3
  ListOrdered
4
- } from "./chunk-LRFRIIKG.mjs";
4
+ } from "./chunk-T43H325W.mjs";
5
5
  import {
6
6
  init_react_import
7
7
  } from "./chunk-M6W7YEVX.mjs";
@@ -5,7 +5,7 @@ import {
5
5
  Heading4,
6
6
  Heading5,
7
7
  Heading6
8
- } from "./chunk-LRFRIIKG.mjs";
8
+ } from "./chunk-T43H325W.mjs";
9
9
  import {
10
10
  init_react_import
11
11
  } from "./chunk-M6W7YEVX.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  AlignJustify,
4
4
  AlignLeft,
5
5
  AlignRight
6
- } from "./chunk-LRFRIIKG.mjs";
6
+ } from "./chunk-T43H325W.mjs";
7
7
  import {
8
8
  init_react_import
9
9
  } from "./chunk-M6W7YEVX.mjs";
@@ -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
- current: {
126
- width: defaultViewports[0].width,
127
- height: defaultViewports[0].height || "auto"
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