@reacteditor/core 0.0.13 → 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-3COFH5WN.mjs → Editor-7UIJWCPN.mjs} +7 -7
- package/dist/{actions-DDpLL_TR.d.mts → actions-BxLinRKD.d.mts} +5 -0
- package/dist/{actions-DDpLL_TR.d.ts → actions-BxLinRKD.d.ts} +5 -0
- package/dist/{chunk-PUDWMFBH.mjs → chunk-3CGBQNX4.mjs} +1 -1
- package/dist/{chunk-BZ4BQZJR.mjs → chunk-647NZJYM.mjs} +3 -3
- package/dist/{chunk-FT6UFK7G.mjs → chunk-C2KWANIN.mjs} +1 -1
- package/dist/{chunk-AD7BMXAA.mjs → chunk-GIGXMGTZ.mjs} +1 -1
- package/dist/{chunk-OIFPBVSF.mjs → chunk-NKHR722W.mjs} +1 -1
- package/dist/{chunk-IIRJMJFU.mjs → chunk-NPC7A3V3.mjs} +4 -13
- package/dist/{chunk-KX5XDJF6.mjs → chunk-RAMNEU3M.mjs} +1044 -1323
- package/dist/{chunk-LRFRIIKG.mjs → chunk-T43H325W.mjs} +21 -122
- package/dist/{chunk-BUR5T7IX.mjs → chunk-TFAZFGYZ.mjs} +7 -7
- package/dist/{full-QT5KXRDP.mjs → full-PM3VSLYA.mjs} +6 -6
- package/dist/{index-BTatdZaE.d.mts → index-BZRpxcwy.d.mts} +1 -1
- package/dist/{index-zhUFD8aP.d.ts → index-B_21fGrq.d.ts} +1 -1
- package/dist/index.css +411 -517
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +846 -1247
- package/dist/index.mjs +9 -9
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/{loaded-O4QHGE26.mjs → loaded-5MUU76TF.mjs} +3 -3
- package/dist/{loaded-R34BR6I5.mjs → loaded-IIHO4UZS.mjs} +3 -3
- package/dist/{loaded-GLBLMTBL.mjs → loaded-ULJY3YN5.mjs} +3 -3
- package/dist/no-external.css +411 -517
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +846 -1247
- package/dist/no-external.mjs +9 -9
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +4 -14
- package/dist/rsc.mjs +2 -2
- package/dist/{walk-tree-Cxbt1UVr.d.mts → walk-tree-BvYigWFL.d.mts} +1 -1
- package/dist/{walk-tree-Cnyva5MB.d.ts → walk-tree-Clklc1Ql.d.ts} +1 -1
- 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.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './actions-
|
|
3
|
-
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-BxLinRKD.mjs';
|
|
3
|
+
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-BvYigWFL.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
package/dist/rsc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './actions-
|
|
3
|
-
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-BxLinRKD.js';
|
|
3
|
+
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-Clklc1Ql.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
package/dist/rsc.js
CHANGED
|
@@ -1145,31 +1145,21 @@ 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: {
|
|
1161
1151
|
leftSideBarVisible: true,
|
|
1162
1152
|
rightSideBarVisible: true,
|
|
1153
|
+
canvasFullScreen: false,
|
|
1163
1154
|
arrayState: {},
|
|
1164
1155
|
itemSelector: null,
|
|
1165
1156
|
componentList: {},
|
|
1166
1157
|
isDragging: false,
|
|
1167
1158
|
previewMode: "edit",
|
|
1168
1159
|
viewports: {
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
},
|
|
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" },
|
|
1173
1163
|
options: [],
|
|
1174
1164
|
controlsVisible: true
|
|
1175
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,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config, D as Data, W as WithId, U as UserGenerics, j as Content, b as ComponentData, k as DefaultComponents, l as DefaultComponentProps, m as DefaultRootFieldProps, M as Metadata, n as RootData } from './actions-
|
|
1
|
+
import { C as Config, D as Data, W as WithId, U as UserGenerics, j as Content, b as ComponentData, k as DefaultComponents, l as DefaultComponentProps, m as DefaultRootFieldProps, M as Metadata, n as RootData } from './actions-BxLinRKD.mjs';
|
|
2
2
|
|
|
3
3
|
type GetRoutePropsOptions = {
|
|
4
4
|
/** Defaults to "/editor". Pass null to skip editor-prefix handling. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config, D as Data, W as WithId, U as UserGenerics, j as Content, b as ComponentData, k as DefaultComponents, l as DefaultComponentProps, m as DefaultRootFieldProps, M as Metadata, n as RootData } from './actions-
|
|
1
|
+
import { C as Config, D as Data, W as WithId, U as UserGenerics, j as Content, b as ComponentData, k as DefaultComponents, l as DefaultComponentProps, m as DefaultRootFieldProps, M as Metadata, n as RootData } from './actions-BxLinRKD.js';
|
|
2
2
|
|
|
3
3
|
type GetRoutePropsOptions = {
|
|
4
4
|
/** Defaults to "/editor". Pass null to skip editor-prefix handling. */
|
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"
|