@reacteditor/core 0.0.15 → 0.0.16

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.
@@ -25,8 +25,8 @@ import {
25
25
  usePropsContext,
26
26
  useRouteParams,
27
27
  useStableValue
28
- } from "./chunk-RAMNEU3M.mjs";
29
- import "./chunk-647NZJYM.mjs";
28
+ } from "./chunk-3NSI5XES.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-TFAZFGYZ.mjs";
39
- import "./chunk-C2KWANIN.mjs";
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-3CGBQNX4.mjs";
46
+ } from "./chunk-4L7H4JV4.mjs";
47
47
  import "./chunk-6QJ2HF4O.mjs";
48
- import "./chunk-NKHR722W.mjs";
49
- import "./chunk-GIGXMGTZ.mjs";
50
- import "./chunk-T43H325W.mjs";
48
+ import "./chunk-RGC274VM.mjs";
49
+ import "./chunk-TG2KTWSB.mjs";
50
+ import "./chunk-JHURG5NN.mjs";
51
51
  import "./chunk-M4JDRFYB.mjs";
52
- import "./chunk-NPC7A3V3.mjs";
52
+ import "./chunk-FTVOCMGV.mjs";
53
53
  import "./chunk-Y2EFNT5P.mjs";
54
54
  import {
55
55
  walkTree
package/dist/rsc.js CHANGED
@@ -1145,6 +1145,16 @@ init_react_import();
1145
1145
 
1146
1146
  // store/default-app-state.ts
1147
1147
  init_react_import();
1148
+
1149
+ // components/ViewportControls/default-viewports.ts
1150
+ init_react_import();
1151
+ var defaultViewports = [
1152
+ { width: 360, height: "auto", icon: "Smartphone", label: "Small" },
1153
+ { width: 768, height: "auto", icon: "Tablet", label: "Medium" },
1154
+ { width: "100%", height: "auto", icon: "Monitor", label: "Desktop" }
1155
+ ];
1156
+
1157
+ // store/default-app-state.ts
1148
1158
  var defaultAppState = {
1149
1159
  data: { content: [], root: {}, zones: {} },
1150
1160
  ui: {
@@ -1157,9 +1167,10 @@ var defaultAppState = {
1157
1167
  isDragging: false,
1158
1168
  previewMode: "edit",
1159
1169
  viewports: {
1160
- // Default to the tablet viewport (the middle option) so the canvas
1161
- // opens at a comfortable preview width on most screens.
1162
- current: { width: 768, height: "auto" },
1170
+ current: {
1171
+ width: defaultViewports[0].width,
1172
+ height: defaultViewports[0].height || "auto"
1173
+ },
1163
1174
  options: [],
1164
1175
  controlsVisible: true
1165
1176
  },
package/dist/rsc.mjs CHANGED
@@ -7,9 +7,9 @@ import {
7
7
  transformProps,
8
8
  useRichtextProps,
9
9
  useSlots
10
- } from "./chunk-3CGBQNX4.mjs";
10
+ } from "./chunk-4L7H4JV4.mjs";
11
11
  import "./chunk-6QJ2HF4O.mjs";
12
- import "./chunk-NPC7A3V3.mjs";
12
+ import "./chunk-FTVOCMGV.mjs";
13
13
  import "./chunk-Y2EFNT5P.mjs";
14
14
  import {
15
15
  rootAreaId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reacteditor/core",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "The open-source visual editor for React",
5
5
  "author": "Rami Bitar <rami@frontend.co>",
6
6
  "repository": "reacteditor/editor",
@@ -145,7 +145,6 @@
145
145
  "happy-dom": "^20.0.10",
146
146
  "object-hash": "^3.0.0",
147
147
  "react-hotkeys-hook": "^4.6.1",
148
- "react-zoom-pan-pinch": "^4.0.3",
149
148
  "use-debounce": "^9.0.4",
150
149
  "uuid": "^9.0.1",
151
150
  "zustand": "^5.0.3"