@reacteditor/core 0.0.6 → 0.0.7
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-YNFB7B6Z.mjs → Editor-OSAG52QF.mjs} +9 -9
- package/dist/{actions-CQmL3wwa.d.mts → actions-BDMhAtxP.d.mts} +2 -1
- package/dist/{actions-CQmL3wwa.d.ts → actions-BDMhAtxP.d.ts} +2 -1
- package/dist/{chunk-CRF2GWQA.mjs → chunk-AAK2555H.mjs} +3 -3
- package/dist/{chunk-6LG4Q4HO.mjs → chunk-EEQGJ6FH.mjs} +1 -1
- package/dist/{chunk-VOLQMQPK.mjs → chunk-IIRJMJFU.mjs} +1 -1
- package/dist/{chunk-BRDUM7MJ.mjs → chunk-JUC25FB7.mjs} +7 -7
- package/dist/{chunk-UB2DES2O.mjs → chunk-M4JDRFYB.mjs} +8 -6
- package/dist/{chunk-DB4R5IWG.mjs → chunk-RNRHREWH.mjs} +3 -3
- package/dist/{chunk-275EJPEB.mjs → chunk-TI3KC54Y.mjs} +18 -18
- package/dist/{chunk-HCFEY5Y7.mjs → chunk-W5I2Z7QS.mjs} +249 -24
- package/dist/{chunk-Z6IIVDFY.mjs → chunk-XI7YTBCP.mjs} +1 -1
- package/dist/{chunk-WGPCLAZR.mjs → chunk-ZLSPSBV3.mjs} +1 -1
- package/dist/{full-24FOTNTB.mjs → full-IHV5BO2L.mjs} +8 -8
- package/dist/{index-BOP2qNVA.d.mts → index-BwLKseT7.d.mts} +1 -1
- package/dist/{index-_G46lHpL.d.ts → index-DkYXZRPz.d.ts} +1 -1
- package/dist/index.d.mts +35 -8
- package/dist/index.d.ts +35 -8
- package/dist/index.js +284 -52
- package/dist/index.mjs +14 -14
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +7 -5
- package/dist/internal.mjs +2 -2
- package/dist/{loaded-6NPDD7SF.mjs → loaded-3NPQWYKN.mjs} +5 -5
- package/dist/{loaded-BQVZGQG2.mjs → loaded-FTSXIONQ.mjs} +5 -5
- package/dist/{loaded-6IBSSOXD.mjs → loaded-YTQOQIUU.mjs} +5 -5
- package/dist/no-external.d.mts +4 -4
- package/dist/no-external.d.ts +4 -4
- package/dist/no-external.js +284 -52
- package/dist/no-external.mjs +14 -14
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.mjs +3 -3
- package/dist/{walk-tree-DxSkPLnl.d.ts → walk-tree-BweEZ37Y.d.ts} +1 -1
- package/dist/{walk-tree-Dwv3c_9M.d.mts → walk-tree-LcQXXDqe.d.mts} +1 -1
- package/package.json +1 -1
- package/dist/{chunk-GAUBBDIR.mjs → chunk-JIXMPJZA.mjs} +37 -37
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 { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-BDMhAtxP.mjs';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-LcQXXDqe.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 { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-BDMhAtxP.js';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BweEZ37Y.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
package/dist/rsc.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
transformProps,
|
|
6
6
|
useRichtextProps,
|
|
7
7
|
useSlots
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TI3KC54Y.mjs";
|
|
9
9
|
import "./chunk-6QJ2HF4O.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-IIRJMJFU.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
12
|
import {
|
|
13
13
|
rootAreaId,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
rootZone,
|
|
16
16
|
setupZone,
|
|
17
17
|
walkTree
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JIXMPJZA.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__spreadProps,
|
|
21
21
|
__spreadValues,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config, D as Data, W as WithId, U as UserGenerics, a as Content, b as ComponentData, c as DefaultComponents, d as DefaultComponentProps, e as DefaultRootFieldProps, M as Metadata, R as RootData } from './actions-
|
|
1
|
+
import { C as Config, D as Data, W as WithId, U as UserGenerics, a as Content, b as ComponentData, c as DefaultComponents, d as DefaultComponentProps, e as DefaultRootFieldProps, M as Metadata, R as RootData } from './actions-BDMhAtxP.js';
|
|
2
2
|
|
|
3
3
|
type MigrationOptions<UserConfig extends Config> = {
|
|
4
4
|
migrateDynamicZonesForComponent?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config, D as Data, W as WithId, U as UserGenerics, a as Content, b as ComponentData, c as DefaultComponents, d as DefaultComponentProps, e as DefaultRootFieldProps, M as Metadata, R as RootData } from './actions-
|
|
1
|
+
import { C as Config, D as Data, W as WithId, U as UserGenerics, a as Content, b as ComponentData, c as DefaultComponents, d as DefaultComponentProps, e as DefaultRootFieldProps, M as Metadata, R as RootData } from './actions-BDMhAtxP.mjs';
|
|
2
2
|
|
|
3
3
|
type MigrationOptions<UserConfig extends Config> = {
|
|
4
4
|
migrateDynamicZonesForComponent?: {
|
package/package.json
CHANGED
|
@@ -210,6 +210,43 @@ var rootAreaId = "root";
|
|
|
210
210
|
var rootZone = "default-zone";
|
|
211
211
|
var rootDroppableId = `${rootAreaId}:${rootZone}`;
|
|
212
212
|
|
|
213
|
+
// lib/data/to-component.ts
|
|
214
|
+
init_react_import();
|
|
215
|
+
var toComponent = (item) => {
|
|
216
|
+
return "type" in item ? item : __spreadProps(__spreadValues({}, item), {
|
|
217
|
+
props: __spreadProps(__spreadValues({}, item.props), { id: "root" }),
|
|
218
|
+
type: "root"
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
// lib/data/walk-app-state.ts
|
|
223
|
+
init_react_import();
|
|
224
|
+
|
|
225
|
+
// lib/data/for-related-zones.ts
|
|
226
|
+
init_react_import();
|
|
227
|
+
|
|
228
|
+
// lib/get-zone-id.ts
|
|
229
|
+
init_react_import();
|
|
230
|
+
var getZoneId = (zoneCompound) => {
|
|
231
|
+
if (!zoneCompound) {
|
|
232
|
+
return [];
|
|
233
|
+
}
|
|
234
|
+
if (zoneCompound && zoneCompound.indexOf(":") > -1) {
|
|
235
|
+
return zoneCompound.split(":");
|
|
236
|
+
}
|
|
237
|
+
return [rootDroppableId, zoneCompound];
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
// lib/data/for-related-zones.ts
|
|
241
|
+
function forRelatedZones(item, data, cb, path = []) {
|
|
242
|
+
Object.entries(data.zones || {}).forEach(([zoneCompound, content]) => {
|
|
243
|
+
const [parentId] = getZoneId(zoneCompound);
|
|
244
|
+
if (parentId === item.props.id) {
|
|
245
|
+
cb(path, zoneCompound, content);
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
|
|
213
250
|
// lib/data/flatten-node.ts
|
|
214
251
|
init_react_import();
|
|
215
252
|
import flat from "flat";
|
|
@@ -267,43 +304,6 @@ var expandNode = (node) => {
|
|
|
267
304
|
});
|
|
268
305
|
};
|
|
269
306
|
|
|
270
|
-
// lib/data/to-component.ts
|
|
271
|
-
init_react_import();
|
|
272
|
-
var toComponent = (item) => {
|
|
273
|
-
return "type" in item ? item : __spreadProps(__spreadValues({}, item), {
|
|
274
|
-
props: __spreadProps(__spreadValues({}, item.props), { id: "root" }),
|
|
275
|
-
type: "root"
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
// lib/data/walk-app-state.ts
|
|
280
|
-
init_react_import();
|
|
281
|
-
|
|
282
|
-
// lib/data/for-related-zones.ts
|
|
283
|
-
init_react_import();
|
|
284
|
-
|
|
285
|
-
// lib/get-zone-id.ts
|
|
286
|
-
init_react_import();
|
|
287
|
-
var getZoneId = (zoneCompound) => {
|
|
288
|
-
if (!zoneCompound) {
|
|
289
|
-
return [];
|
|
290
|
-
}
|
|
291
|
-
if (zoneCompound && zoneCompound.indexOf(":") > -1) {
|
|
292
|
-
return zoneCompound.split(":");
|
|
293
|
-
}
|
|
294
|
-
return [rootDroppableId, zoneCompound];
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
// lib/data/for-related-zones.ts
|
|
298
|
-
function forRelatedZones(item, data, cb, path = []) {
|
|
299
|
-
Object.entries(data.zones || {}).forEach(([zoneCompound, content]) => {
|
|
300
|
-
const [parentId] = getZoneId(zoneCompound);
|
|
301
|
-
if (parentId === item.props.id) {
|
|
302
|
-
cb(path, zoneCompound, content);
|
|
303
|
-
}
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
|
|
307
307
|
// lib/data/walk-app-state.ts
|
|
308
308
|
function walkAppState(state, config, mapContent = (content) => content, mapNodeOrSkip = (item) => item) {
|
|
309
309
|
var _a;
|