@reacteditor/core 0.0.14 → 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.
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  EditorInner,
6
6
  LoadedRichTextMenu
7
- } from "./chunk-5QKQ3LQJ.mjs";
8
- import "./chunk-Q667J2EG.mjs";
9
- import "./chunk-RQZQMS6E.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-RGC274VM.mjs";
12
- import "./chunk-TG2KTWSB.mjs";
11
+ import "./chunk-NKHR722W.mjs";
12
+ import "./chunk-GIGXMGTZ.mjs";
13
13
  import {
14
14
  useAppStore,
15
15
  useAppStoreApi
16
- } from "./chunk-JHURG5NN.mjs";
16
+ } from "./chunk-T43H325W.mjs";
17
17
  import "./chunk-M4JDRFYB.mjs";
18
- import "./chunk-FTVOCMGV.mjs";
18
+ import "./chunk-NPC7A3V3.mjs";
19
19
  import "./chunk-Y2EFNT5P.mjs";
20
20
  import "./chunk-JIXMPJZA.mjs";
21
21
  import {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  defaultAppState,
6
6
  resolveComponentData
7
- } from "./chunk-FTVOCMGV.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-Q667J2EG.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-JHURG5NN.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-T5SGODJ2.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-JHURG5NN.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-JHURG5NN.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-JHURG5NN.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
 
@@ -123,10 +115,9 @@ var defaultAppState = {
123
115
  isDragging: false,
124
116
  previewMode: "edit",
125
117
  viewports: {
126
- current: {
127
- width: defaultViewports[0].width,
128
- height: defaultViewports[0].height || "auto"
129
- },
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" },
130
121
  options: [],
131
122
  controlsVisible: true
132
123
  },
@@ -140,7 +131,6 @@ var defaultAppState = {
140
131
  };
141
132
 
142
133
  export {
143
- defaultViewports,
144
134
  getChanged,
145
135
  resolveComponentData,
146
136
  defaultAppState