@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.
@@ -25,8 +25,8 @@ import {
25
25
  usePropsContext,
26
26
  useRouteParams,
27
27
  useStableValue
28
- } from "./chunk-IFFNAAXW.mjs";
29
- import "./chunk-5QKQ3LQJ.mjs";
28
+ } from "./chunk-RAMNEU3M.mjs";
29
+ import "./chunk-647NZJYM.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-Q667J2EG.mjs";
39
- import "./chunk-RQZQMS6E.mjs";
38
+ } from "./chunk-TFAZFGYZ.mjs";
39
+ import "./chunk-C2KWANIN.mjs";
40
40
  import {
41
41
  getRouteProps,
42
42
  migrate,
43
43
  resolveAllData,
44
44
  resolveRouteFromString,
45
45
  transformProps
46
- } from "./chunk-4L7H4JV4.mjs";
46
+ } from "./chunk-3CGBQNX4.mjs";
47
47
  import "./chunk-6QJ2HF4O.mjs";
48
- import "./chunk-RGC274VM.mjs";
49
- import "./chunk-TG2KTWSB.mjs";
50
- import "./chunk-JHURG5NN.mjs";
48
+ import "./chunk-NKHR722W.mjs";
49
+ import "./chunk-GIGXMGTZ.mjs";
50
+ import "./chunk-T43H325W.mjs";
51
51
  import "./chunk-M4JDRFYB.mjs";
52
- import "./chunk-FTVOCMGV.mjs";
52
+ import "./chunk-NPC7A3V3.mjs";
53
53
  import "./chunk-Y2EFNT5P.mjs";
54
54
  import {
55
55
  walkTree
package/dist/rsc.js CHANGED
@@ -1145,16 +1145,6 @@ 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
1158
1148
  var defaultAppState = {
1159
1149
  data: { content: [], root: {}, zones: {} },
1160
1150
  ui: {
@@ -1167,10 +1157,9 @@ var defaultAppState = {
1167
1157
  isDragging: false,
1168
1158
  previewMode: "edit",
1169
1159
  viewports: {
1170
- current: {
1171
- width: defaultViewports[0].width,
1172
- height: defaultViewports[0].height || "auto"
1173
- },
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" },
1174
1163
  options: [],
1175
1164
  controlsVisible: true
1176
1165
  },
package/dist/rsc.mjs CHANGED
@@ -7,9 +7,9 @@ import {
7
7
  transformProps,
8
8
  useRichtextProps,
9
9
  useSlots
10
- } from "./chunk-4L7H4JV4.mjs";
10
+ } from "./chunk-3CGBQNX4.mjs";
11
11
  import "./chunk-6QJ2HF4O.mjs";
12
- import "./chunk-FTVOCMGV.mjs";
12
+ import "./chunk-NPC7A3V3.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.14",
3
+ "version": "0.0.15",
4
4
  "description": "The open-source visual editor for React",
5
5
  "author": "Rami Bitar <rami@frontend.co>",
6
6
  "repository": "reacteditor/editor",
@@ -145,6 +145,7 @@
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",
148
149
  "use-debounce": "^9.0.4",
149
150
  "uuid": "^9.0.1",
150
151
  "zustand": "^5.0.3"