@puckeditor/core 0.22.1 → 0.23.0-canary.20671fd7
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-MXSH3OSX.mjs → Editor-BJP5AFD5.mjs} +9 -9
- package/dist/{chunk-HRNJ42TO.mjs → chunk-25QAPMLH.mjs} +1 -1
- package/dist/{chunk-VOB4L2BJ.mjs → chunk-BMRBP3ET.mjs} +3 -3
- package/dist/{chunk-2AATV7NG.mjs → chunk-EYJW64M2.mjs} +21 -10
- package/dist/{chunk-DATOBXTJ.mjs → chunk-HB4CVO3I.mjs} +15 -8
- package/dist/{chunk-54LFCIWQ.mjs → chunk-JHNG6XYK.mjs} +122 -7
- package/dist/{chunk-FKYOVZNF.mjs → chunk-JNJJ2M57.mjs} +2 -2
- package/dist/{chunk-BVKXFA4V.mjs → chunk-MU6IPW26.mjs} +27 -12
- package/dist/{chunk-6PIQFZBM.mjs → chunk-Q6WCB6GM.mjs} +297 -160
- package/dist/{chunk-74HKFKJU.mjs → chunk-QHQD3BMI.mjs} +7 -5
- package/dist/{chunk-73XKHVBN.mjs → chunk-WQV7W7OC.mjs} +37 -22
- package/dist/{chunk-GR7NLT4T.mjs → chunk-WUO7D6OQ.mjs} +1 -1
- package/dist/{full-7JVAMOPS.mjs → full-7ONH7UPJ.mjs} +8 -8
- package/dist/{index-ClzBCbx_.d.mts → index-De5Tn61v.d.mts} +85 -1
- package/dist/{index-B1b1cFug.d.ts → index-t7c1w81O.d.ts} +85 -1
- package/dist/index.d.mts +20 -5
- package/dist/index.d.ts +20 -5
- package/dist/index.js +500 -154
- package/dist/index.mjs +11 -11
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +7 -5
- package/dist/internal.mjs +2 -2
- package/dist/{loaded-HECCGJKO.mjs → loaded-35D7XAOE.mjs} +5 -5
- package/dist/{loaded-B7563MDT.mjs → loaded-6YDNF4HS.mjs} +5 -5
- package/dist/{loaded-EFZRGV2Y.mjs → loaded-PF5Y4VWH.mjs} +5 -5
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +500 -154
- package/dist/no-external.mjs +11 -11
- package/dist/rsc.js +7 -5
- package/dist/rsc.mjs +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -17,20 +17,20 @@ import {
|
|
|
17
17
|
setDeep,
|
|
18
18
|
useGetPuck,
|
|
19
19
|
usePuck
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-Q6WCB6GM.mjs";
|
|
21
|
+
import "./chunk-BMRBP3ET.mjs";
|
|
22
22
|
import {
|
|
23
23
|
migrate,
|
|
24
24
|
resolveAllData,
|
|
25
25
|
transformProps
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JNJJ2M57.mjs";
|
|
27
27
|
import "./chunk-H635BA2V.mjs";
|
|
28
28
|
import {
|
|
29
29
|
RichTextMenu
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-WQV7W7OC.mjs";
|
|
31
|
+
import "./chunk-EYJW64M2.mjs";
|
|
32
|
+
import "./chunk-MU6IPW26.mjs";
|
|
33
|
+
import "./chunk-HB4CVO3I.mjs";
|
|
34
34
|
import {
|
|
35
35
|
Action,
|
|
36
36
|
ActionBar,
|
|
@@ -38,13 +38,13 @@ import {
|
|
|
38
38
|
IconButton,
|
|
39
39
|
Label,
|
|
40
40
|
Separator
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-JHNG6XYK.mjs";
|
|
42
|
+
import "./chunk-25QAPMLH.mjs";
|
|
43
|
+
import "./chunk-WUO7D6OQ.mjs";
|
|
44
44
|
import "./chunk-Y2EFNT5P.mjs";
|
|
45
45
|
import {
|
|
46
46
|
walkTree
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-QHQD3BMI.mjs";
|
|
48
48
|
import {
|
|
49
49
|
init_react_import
|
|
50
50
|
} from "./chunk-M6W7YEVX.mjs";
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
2
|
import { D as Data, a as AppState, Y as OnAction, a2 as PrivateAppState, a3 as PuckAction } from './actions-Csn3gOP8.mjs';
|
|
3
|
-
import { A as AppStore } from './index-
|
|
3
|
+
import { A as AppStore } from './index-De5Tn61v.mjs';
|
|
4
4
|
import '@tiptap/react';
|
|
5
5
|
import '@tiptap/extension-blockquote';
|
|
6
6
|
import '@tiptap/extension-bold';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
2
|
import { D as Data, a as AppState, Y as OnAction, a2 as PrivateAppState, a3 as PuckAction } from './actions-Csn3gOP8.js';
|
|
3
|
-
import { A as AppStore } from './index-
|
|
3
|
+
import { A as AppStore } from './index-t7c1w81O.js';
|
|
4
4
|
import '@tiptap/react';
|
|
5
5
|
import '@tiptap/extension-blockquote';
|
|
6
6
|
import '@tiptap/extension-bold';
|
package/dist/internal.js
CHANGED
|
@@ -177,10 +177,11 @@ var walkObject = ({
|
|
|
177
177
|
getPropPath,
|
|
178
178
|
config,
|
|
179
179
|
recurseSlots,
|
|
180
|
-
ownedFields
|
|
180
|
+
ownedFields,
|
|
181
|
+
keysToWalk: providedKeys
|
|
181
182
|
}) => {
|
|
182
|
-
const keys = Object.keys(value);
|
|
183
|
-
if (ownedFields) {
|
|
183
|
+
const keys = providedKeys != null ? providedKeys : Object.keys(value);
|
|
184
|
+
if (!providedKeys && ownedFields) {
|
|
184
185
|
for (const fieldName in fields) {
|
|
185
186
|
const fieldType = fields[fieldName].type;
|
|
186
187
|
if (fieldType !== "slot" && mappers[fieldType] && !(fieldName in value)) {
|
|
@@ -214,7 +215,7 @@ var walkObject = ({
|
|
|
214
215
|
}
|
|
215
216
|
return flatten(newProps);
|
|
216
217
|
};
|
|
217
|
-
function mapFields(item, mappers, config, recurseSlots = false, shouldDefaultSlots = true) {
|
|
218
|
+
function mapFields(item, mappers, config, recurseSlots = false, shouldDefaultSlots = true, fieldsToMap) {
|
|
218
219
|
var _a, _b, _c, _d, _e;
|
|
219
220
|
const itemType = "type" in item ? item.type : "root";
|
|
220
221
|
const componentConfig = itemType === "root" ? config.root : (_a = config.components) == null ? void 0 : _a[itemType];
|
|
@@ -226,7 +227,8 @@ function mapFields(item, mappers, config, recurseSlots = false, shouldDefaultSlo
|
|
|
226
227
|
getPropPath: (k) => k,
|
|
227
228
|
config,
|
|
228
229
|
recurseSlots,
|
|
229
|
-
ownedFields: true
|
|
230
|
+
ownedFields: true,
|
|
231
|
+
keysToWalk: fieldsToMap
|
|
230
232
|
});
|
|
231
233
|
if (isPromise(newProps)) {
|
|
232
234
|
return newProps.then((resolvedProps) => __spreadProps(__spreadValues({}, item), {
|
package/dist/internal.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useListOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HB4CVO3I.mjs";
|
|
4
4
|
import {
|
|
5
5
|
List,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-JHNG6XYK.mjs";
|
|
9
|
+
import "./chunk-25QAPMLH.mjs";
|
|
10
|
+
import "./chunk-WUO7D6OQ.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QHQD3BMI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
init_react_import
|
|
15
15
|
} from "./chunk-M6W7YEVX.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useHeadingOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MU6IPW26.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Heading,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-JHNG6XYK.mjs";
|
|
9
|
+
import "./chunk-25QAPMLH.mjs";
|
|
10
|
+
import "./chunk-WUO7D6OQ.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QHQD3BMI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
init_react_import
|
|
15
15
|
} from "./chunk-M6W7YEVX.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EYJW64M2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AlignLeft,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-JHNG6XYK.mjs";
|
|
9
|
+
import "./chunk-25QAPMLH.mjs";
|
|
10
|
+
import "./chunk-WUO7D6OQ.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QHQD3BMI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
init_react_import
|
|
15
15
|
} from "./chunk-M6W7YEVX.mjs";
|
package/dist/no-external.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { A as Adaptor, a as AppState, b as ArrayField, c as ArrayState, d as AsFieldProps, B as BaseData, e as BaseField, C as CacheOpts, f as ComponentConfig, g as ComponentConfigExtensions, h as ComponentConfigParams, i as ComponentData, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, m as Config, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, D as Data, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction, x as DragAxis, E as ExternalField, z as ExternalFieldWithAdaptor, F as ExtractConfigParams, G as ExtractField, H as Field, I as FieldMetadata, J as FieldProps, K as FieldRenderFunctions, L as FieldTransformFn, M as FieldTransformFnParams, N as FieldTransforms, O as Fields, P as History, Q as IframeConfig, R as InitialHistory, T as ItemWithId, U as MappedItem, V as Metadata, W as NumberField, X as ObjectField, Y as OnAction, Z as OverrideKey, _ as Overrides, $ as Permissions, a0 as Plugin, a3 as PuckAction, a4 as PuckComponent, a5 as PuckContext, a6 as PuckMetadata, a7 as RadioField, a8 as ResolveDataTrigger, a9 as RichText, aa as RichtextField, ab as RootConfig, ac as RootData, ad as RootDataWithProps, ae as RootDataWithoutProps, af as SelectField, ag as Slot, ah as SlotComponent, ai as SlotField, aj as TextField, ak as TextareaField, al as UiState, am as UserGenerics, an as Viewport, ao as Viewports, ap as WithChildren, aq as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-Csn3gOP8.mjs';
|
|
2
|
-
export {
|
|
2
|
+
export { D as Dictionary } from './index-De5Tn61v.mjs';
|
|
3
|
+
export { Action, ActionBar, AutoField, BlocksPluginProps, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, OutlinePluginProps, Puck, PuckApi, Render, RichTextMenu, Separator, UsePuckData, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.mjs';
|
|
3
4
|
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BrW9VQ_t.mjs';
|
|
4
5
|
import 'react';
|
|
5
6
|
import '@tiptap/react';
|
|
@@ -18,4 +19,3 @@ import '@tiptap/extension-strike';
|
|
|
18
19
|
import '@tiptap/extension-text-align';
|
|
19
20
|
import '@tiptap/extension-underline';
|
|
20
21
|
import 'react/jsx-runtime';
|
|
21
|
-
import './index-ClzBCbx_.mjs';
|
package/dist/no-external.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { A as Adaptor, a as AppState, b as ArrayField, c as ArrayState, d as AsFieldProps, B as BaseData, e as BaseField, C as CacheOpts, f as ComponentConfig, g as ComponentConfigExtensions, h as ComponentConfigParams, i as ComponentData, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, m as Config, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, D as Data, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction, x as DragAxis, E as ExternalField, z as ExternalFieldWithAdaptor, F as ExtractConfigParams, G as ExtractField, H as Field, I as FieldMetadata, J as FieldProps, K as FieldRenderFunctions, L as FieldTransformFn, M as FieldTransformFnParams, N as FieldTransforms, O as Fields, P as History, Q as IframeConfig, R as InitialHistory, T as ItemWithId, U as MappedItem, V as Metadata, W as NumberField, X as ObjectField, Y as OnAction, Z as OverrideKey, _ as Overrides, $ as Permissions, a0 as Plugin, a3 as PuckAction, a4 as PuckComponent, a5 as PuckContext, a6 as PuckMetadata, a7 as RadioField, a8 as ResolveDataTrigger, a9 as RichText, aa as RichtextField, ab as RootConfig, ac as RootData, ad as RootDataWithProps, ae as RootDataWithoutProps, af as SelectField, ag as Slot, ah as SlotComponent, ai as SlotField, aj as TextField, ak as TextareaField, al as UiState, am as UserGenerics, an as Viewport, ao as Viewports, ap as WithChildren, aq as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-Csn3gOP8.js';
|
|
2
|
-
export {
|
|
2
|
+
export { D as Dictionary } from './index-t7c1w81O.js';
|
|
3
|
+
export { Action, ActionBar, AutoField, BlocksPluginProps, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, OutlinePluginProps, Puck, PuckApi, Render, RichTextMenu, Separator, UsePuckData, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.js';
|
|
3
4
|
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CWrsBHHe.js';
|
|
4
5
|
import 'react';
|
|
5
6
|
import '@tiptap/react';
|
|
@@ -18,4 +19,3 @@ import '@tiptap/extension-strike';
|
|
|
18
19
|
import '@tiptap/extension-text-align';
|
|
19
20
|
import '@tiptap/extension-underline';
|
|
20
21
|
import 'react/jsx-runtime';
|
|
21
|
-
import './index-B1b1cFug.js';
|