@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.
- package/dist/{Editor-J7XDD77B.mjs → Editor-7UIJWCPN.mjs} +7 -7
- package/dist/{chunk-4L7H4JV4.mjs → chunk-3CGBQNX4.mjs} +1 -1
- package/dist/{chunk-5QKQ3LQJ.mjs → chunk-647NZJYM.mjs} +3 -3
- package/dist/{chunk-RQZQMS6E.mjs → chunk-C2KWANIN.mjs} +1 -1
- package/dist/{chunk-TG2KTWSB.mjs → chunk-GIGXMGTZ.mjs} +1 -1
- package/dist/{chunk-RGC274VM.mjs → chunk-NKHR722W.mjs} +1 -1
- package/dist/{chunk-FTVOCMGV.mjs → chunk-NPC7A3V3.mjs} +3 -13
- package/dist/{chunk-IFFNAAXW.mjs → chunk-RAMNEU3M.mjs} +1037 -1320
- package/dist/{chunk-JHURG5NN.mjs → chunk-T43H325W.mjs} +21 -122
- package/dist/{chunk-Q667J2EG.mjs → chunk-TFAZFGYZ.mjs} +7 -7
- package/dist/{full-T5SGODJ2.mjs → full-PM3VSLYA.mjs} +6 -6
- package/dist/index.css +411 -524
- package/dist/index.js +834 -1240
- package/dist/index.mjs +9 -9
- package/dist/{loaded-DUBT6SP5.mjs → loaded-5MUU76TF.mjs} +3 -3
- package/dist/{loaded-6YKSFCCD.mjs → loaded-IIHO4UZS.mjs} +3 -3
- package/dist/{loaded-ZQCRSG65.mjs → loaded-ULJY3YN5.mjs} +3 -3
- package/dist/no-external.css +411 -524
- package/dist/no-external.js +834 -1240
- package/dist/no-external.mjs +9 -9
- package/dist/rsc.js +3 -14
- package/dist/rsc.mjs +2 -2
- package/package.json +2 -1
package/dist/no-external.mjs
CHANGED
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
usePropsContext,
|
|
26
26
|
useRouteParams,
|
|
27
27
|
useStableValue
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
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-
|
|
39
|
-
import "./chunk-
|
|
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-
|
|
46
|
+
} from "./chunk-3CGBQNX4.mjs";
|
|
47
47
|
import "./chunk-6QJ2HF4O.mjs";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-NKHR722W.mjs";
|
|
49
|
+
import "./chunk-GIGXMGTZ.mjs";
|
|
50
|
+
import "./chunk-T43H325W.mjs";
|
|
51
51
|
import "./chunk-M4JDRFYB.mjs";
|
|
52
|
-
import "./chunk-
|
|
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
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
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-
|
|
10
|
+
} from "./chunk-3CGBQNX4.mjs";
|
|
11
11
|
import "./chunk-6QJ2HF4O.mjs";
|
|
12
|
-
import "./chunk-
|
|
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.
|
|
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"
|