@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.
- package/dist/{Editor-7UIJWCPN.mjs → Editor-J7XDD77B.mjs} +7 -7
- package/dist/{chunk-RAMNEU3M.mjs → chunk-3NSI5XES.mjs} +1387 -1097
- package/dist/{chunk-3CGBQNX4.mjs → chunk-4L7H4JV4.mjs} +1 -1
- package/dist/{chunk-647NZJYM.mjs → chunk-5QKQ3LQJ.mjs} +3 -3
- package/dist/{chunk-NPC7A3V3.mjs → chunk-FTVOCMGV.mjs} +13 -3
- package/dist/{chunk-T43H325W.mjs → chunk-JHURG5NN.mjs} +122 -21
- package/dist/{chunk-TFAZFGYZ.mjs → chunk-Q667J2EG.mjs} +7 -7
- package/dist/{chunk-NKHR722W.mjs → chunk-RGC274VM.mjs} +1 -1
- package/dist/{chunk-C2KWANIN.mjs → chunk-RQZQMS6E.mjs} +1 -1
- package/dist/{chunk-GIGXMGTZ.mjs → chunk-TG2KTWSB.mjs} +1 -1
- package/dist/{full-PM3VSLYA.mjs → full-T5SGODJ2.mjs} +6 -6
- package/dist/index.css +530 -471
- package/dist/index.js +1271 -859
- package/dist/index.mjs +9 -9
- package/dist/{loaded-IIHO4UZS.mjs → loaded-6YKSFCCD.mjs} +3 -3
- package/dist/{loaded-5MUU76TF.mjs → loaded-DUBT6SP5.mjs} +3 -3
- package/dist/{loaded-ULJY3YN5.mjs → loaded-ZQCRSG65.mjs} +3 -3
- package/dist/no-external.css +530 -471
- package/dist/no-external.js +1271 -859
- package/dist/no-external.mjs +9 -9
- package/dist/rsc.js +14 -3
- package/dist/rsc.mjs +2 -2
- package/package.json +1 -2
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-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-
|
|
39
|
-
import "./chunk-
|
|
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-
|
|
46
|
+
} from "./chunk-4L7H4JV4.mjs";
|
|
47
47
|
import "./chunk-6QJ2HF4O.mjs";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-RGC274VM.mjs";
|
|
49
|
+
import "./chunk-TG2KTWSB.mjs";
|
|
50
|
+
import "./chunk-JHURG5NN.mjs";
|
|
51
51
|
import "./chunk-M4JDRFYB.mjs";
|
|
52
|
-
import "./chunk-
|
|
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
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
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-
|
|
10
|
+
} from "./chunk-4L7H4JV4.mjs";
|
|
11
11
|
import "./chunk-6QJ2HF4O.mjs";
|
|
12
|
-
import "./chunk-
|
|
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.
|
|
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"
|