@puckeditor/core 0.22.2 → 0.23.0-canary.1b6fc858
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-ZZW3KF2T.css → Editor-T7TKW6NT.css} +7 -7
- package/dist/{Editor-MLHOIEVM.mjs → Editor-Z6P5UAVB.mjs} +8 -8
- package/dist/{actions-Csn3gOP8.d.mts → actions-3w-1VzY_.d.mts} +7 -1
- package/dist/{actions-Csn3gOP8.d.ts → actions-3w-1VzY_.d.ts} +7 -1
- package/dist/{chunk-25O24MZR.mjs → chunk-3OLRWMRO.mjs} +37 -22
- package/dist/{chunk-JNJJ2M57.mjs → chunk-3TERNOIP.mjs} +1 -1
- package/dist/{chunk-KJQTOPIV.mjs → chunk-DIYX54ZO.mjs} +136 -7
- package/dist/{chunk-4I2WN43X.mjs → chunk-L73ATZ55.mjs} +15 -8
- package/dist/{chunk-WUO7D6OQ.mjs → chunk-NPAYGEG5.mjs} +1 -0
- package/dist/{chunk-C2H4WQP2.mjs → chunk-OCFR2FFG.mjs} +27 -12
- package/dist/{chunk-CGHMSBNM.mjs → chunk-OQD6Q7CY.mjs} +2048 -798
- package/dist/{chunk-NKDMBWQC.mjs → chunk-OSPG5CWL.mjs} +21 -10
- package/dist/{chunk-PRZEIT36.mjs → chunk-PJYHZPJK.mjs} +3 -3
- package/dist/{chunk-25QAPMLH.mjs → chunk-UAWUZ45G.mjs} +41 -18
- package/dist/{full-YXSOFDYM.mjs → full-67VCA5MX.mjs} +7 -7
- package/dist/{full-S3QQ2IBQ.css → full-AAZK6KLI.css} +7 -7
- package/dist/index-KWLAZybR.d.ts +206 -0
- package/dist/index-l1l-a8tj.d.mts +206 -0
- package/dist/index.css +308 -111
- package/dist/index.d.mts +24 -11
- package/dist/index.d.ts +24 -11
- package/dist/index.js +2353 -810
- package/dist/index.mjs +10 -10
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +40 -18
- package/dist/internal.mjs +1 -1
- package/dist/{loaded-LMF4JLYG.mjs → loaded-4XVG2RKQ.mjs} +4 -4
- package/dist/{loaded-FVWRAJR3.css → loaded-CA3Q7UHH.css} +7 -7
- package/dist/{loaded-IFFZACEG.mjs → loaded-LM723CWI.mjs} +4 -4
- package/dist/{loaded-SJJPEREQ.mjs → loaded-VBJBTUSI.mjs} +4 -4
- package/dist/no-external.css +308 -111
- package/dist/no-external.d.mts +4 -4
- package/dist/no-external.d.ts +4 -4
- package/dist/no-external.js +2353 -810
- package/dist/no-external.mjs +10 -10
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +1 -0
- package/dist/rsc.mjs +2 -2
- package/dist/{walk-tree-CWrsBHHe.d.ts → walk-tree-ConR82Y6.d.ts} +1 -1
- package/dist/{walk-tree-BrW9VQ_t.d.mts → walk-tree-DJMo6GTF.d.mts} +1 -1
- package/package.json +1 -1
- package/dist/index-B1b1cFug.d.ts +0 -117
- package/dist/index-ClzBCbx_.d.mts +0 -117
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction,
|
|
3
|
-
|
|
1
|
+
import { I as Field, K as FieldProps, z as DropZoneProps, m as Config, an as UserGenerics, D as Data, am as UiState, Z as OnAction, a0 as Permissions, a1 as Plugin, $ as Overrides, O as FieldTransforms, a4 as PuckAction, ap as Viewports, R as IframeConfig, x as DndConfig, S as InitialHistory, W as Metadata, a9 as ResolveDataTrigger, T as ItemSelector, i as ComponentData, a2 as PluginInternal } from './actions-3w-1VzY_.mjs';
|
|
2
|
+
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, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction, y as DragAxis, E as ExternalField, F as ExternalFieldWithAdaptor, G as ExtractConfigParams, H as ExtractField, J as FieldMetadata, L as FieldRenderFunctions, M as FieldTransformFn, N as FieldTransformFnParams, P as Fields, Q as History, U as ItemWithId, V as MappedItem, X as NumberField, Y as ObjectField, _ as OverrideKey, a5 as PuckComponent, a6 as PuckContext, a7 as PuckMetadata, a8 as RadioField, aa as RichText, ab as RichtextField, ac as RootConfig, ad as RootData, ae as RootDataWithProps, af as RootDataWithoutProps, ag as SelectField, ah as Slot, ai as SlotComponent, aj as SlotField, ak as TextField, al as TextareaField, ao as Viewport, aq as WithChildren, ar as WithId, as as WithPuckProps, at as WithSlotProps, au as overrideKeys } from './actions-3w-1VzY_.mjs';
|
|
3
|
+
import { D as Dictionary, A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-l1l-a8tj.mjs';
|
|
4
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-DJMo6GTF.mjs';
|
|
4
5
|
import * as react from 'react';
|
|
5
6
|
import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
|
|
6
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import { A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-ClzBCbx_.mjs';
|
|
8
8
|
import '@tiptap/react';
|
|
9
9
|
import '@tiptap/extension-blockquote';
|
|
10
10
|
import '@tiptap/extension-bold';
|
|
@@ -145,11 +145,10 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
|
|
|
145
145
|
headerPath?: string;
|
|
146
146
|
viewports?: Viewports;
|
|
147
147
|
iframe?: IframeConfig;
|
|
148
|
-
dnd?:
|
|
149
|
-
disableAutoScroll?: boolean;
|
|
150
|
-
};
|
|
148
|
+
dnd?: DndConfig;
|
|
151
149
|
initialHistory?: InitialHistory;
|
|
152
150
|
metadata?: Metadata;
|
|
151
|
+
dictionary?: Dictionary;
|
|
153
152
|
height?: CSSProperties["height"];
|
|
154
153
|
_experimentalFullScreenCanvas?: boolean;
|
|
155
154
|
_experimentalVirtualization?: boolean;
|
|
@@ -276,6 +275,7 @@ type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<User
|
|
|
276
275
|
hasPast: boolean;
|
|
277
276
|
hasFuture: boolean;
|
|
278
277
|
};
|
|
278
|
+
dictionary: Dictionary;
|
|
279
279
|
};
|
|
280
280
|
type PuckApi<UserConfig extends Config = Config> = UsePuckData<UserConfig>;
|
|
281
281
|
type UsePuckStore<UserConfig extends Config = Config> = PuckApi<UserConfig>;
|
|
@@ -297,14 +297,27 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
297
297
|
*/
|
|
298
298
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
type BlocksPluginProps = {
|
|
301
|
+
label?: string;
|
|
302
|
+
icon?: ReactNode;
|
|
303
|
+
};
|
|
304
|
+
declare const blocksPlugin: (props?: BlocksPluginProps) => Plugin;
|
|
301
305
|
|
|
302
306
|
declare const fieldsPlugin: (params?: {
|
|
303
307
|
desktopSideBar?: "left" | "right";
|
|
308
|
+
label?: string;
|
|
309
|
+
icon?: ReactNode;
|
|
304
310
|
}) => PluginInternal;
|
|
305
311
|
|
|
306
|
-
|
|
312
|
+
type OutlinePluginProps = {
|
|
313
|
+
label?: string;
|
|
314
|
+
icon?: ReactNode;
|
|
315
|
+
};
|
|
316
|
+
declare const outlinePlugin: (props?: OutlinePluginProps) => Plugin;
|
|
307
317
|
|
|
308
|
-
declare const legacySideBarPlugin: (
|
|
318
|
+
declare const legacySideBarPlugin: (props?: {
|
|
319
|
+
outlineLabel?: string;
|
|
320
|
+
componentsLabel?: string;
|
|
321
|
+
}) => Plugin;
|
|
309
322
|
|
|
310
|
-
export { Action, ActionBar, AutoField, Button, ComponentData, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Group, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RichTextMenu, Separator, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|
|
323
|
+
export { Action, ActionBar, AutoField, type BlocksPluginProps, Button, ComponentData, Config, Data, Dictionary, DndConfig, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Group, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, type OutlinePluginProps, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RichTextMenu, Separator, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction,
|
|
3
|
-
|
|
1
|
+
import { I as Field, K as FieldProps, z as DropZoneProps, m as Config, an as UserGenerics, D as Data, am as UiState, Z as OnAction, a0 as Permissions, a1 as Plugin, $ as Overrides, O as FieldTransforms, a4 as PuckAction, ap as Viewports, R as IframeConfig, x as DndConfig, S as InitialHistory, W as Metadata, a9 as ResolveDataTrigger, T as ItemSelector, i as ComponentData, a2 as PluginInternal } from './actions-3w-1VzY_.js';
|
|
2
|
+
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, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction, y as DragAxis, E as ExternalField, F as ExternalFieldWithAdaptor, G as ExtractConfigParams, H as ExtractField, J as FieldMetadata, L as FieldRenderFunctions, M as FieldTransformFn, N as FieldTransformFnParams, P as Fields, Q as History, U as ItemWithId, V as MappedItem, X as NumberField, Y as ObjectField, _ as OverrideKey, a5 as PuckComponent, a6 as PuckContext, a7 as PuckMetadata, a8 as RadioField, aa as RichText, ab as RichtextField, ac as RootConfig, ad as RootData, ae as RootDataWithProps, af as RootDataWithoutProps, ag as SelectField, ah as Slot, ai as SlotComponent, aj as SlotField, ak as TextField, al as TextareaField, ao as Viewport, aq as WithChildren, ar as WithId, as as WithPuckProps, at as WithSlotProps, au as overrideKeys } from './actions-3w-1VzY_.js';
|
|
3
|
+
import { D as Dictionary, A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-KWLAZybR.js';
|
|
4
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-ConR82Y6.js';
|
|
4
5
|
import * as react from 'react';
|
|
5
6
|
import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
|
|
6
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import { A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-B1b1cFug.js';
|
|
8
8
|
import '@tiptap/react';
|
|
9
9
|
import '@tiptap/extension-blockquote';
|
|
10
10
|
import '@tiptap/extension-bold';
|
|
@@ -145,11 +145,10 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
|
|
|
145
145
|
headerPath?: string;
|
|
146
146
|
viewports?: Viewports;
|
|
147
147
|
iframe?: IframeConfig;
|
|
148
|
-
dnd?:
|
|
149
|
-
disableAutoScroll?: boolean;
|
|
150
|
-
};
|
|
148
|
+
dnd?: DndConfig;
|
|
151
149
|
initialHistory?: InitialHistory;
|
|
152
150
|
metadata?: Metadata;
|
|
151
|
+
dictionary?: Dictionary;
|
|
153
152
|
height?: CSSProperties["height"];
|
|
154
153
|
_experimentalFullScreenCanvas?: boolean;
|
|
155
154
|
_experimentalVirtualization?: boolean;
|
|
@@ -276,6 +275,7 @@ type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<User
|
|
|
276
275
|
hasPast: boolean;
|
|
277
276
|
hasFuture: boolean;
|
|
278
277
|
};
|
|
278
|
+
dictionary: Dictionary;
|
|
279
279
|
};
|
|
280
280
|
type PuckApi<UserConfig extends Config = Config> = UsePuckData<UserConfig>;
|
|
281
281
|
type UsePuckStore<UserConfig extends Config = Config> = PuckApi<UserConfig>;
|
|
@@ -297,14 +297,27 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
297
297
|
*/
|
|
298
298
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
type BlocksPluginProps = {
|
|
301
|
+
label?: string;
|
|
302
|
+
icon?: ReactNode;
|
|
303
|
+
};
|
|
304
|
+
declare const blocksPlugin: (props?: BlocksPluginProps) => Plugin;
|
|
301
305
|
|
|
302
306
|
declare const fieldsPlugin: (params?: {
|
|
303
307
|
desktopSideBar?: "left" | "right";
|
|
308
|
+
label?: string;
|
|
309
|
+
icon?: ReactNode;
|
|
304
310
|
}) => PluginInternal;
|
|
305
311
|
|
|
306
|
-
|
|
312
|
+
type OutlinePluginProps = {
|
|
313
|
+
label?: string;
|
|
314
|
+
icon?: ReactNode;
|
|
315
|
+
};
|
|
316
|
+
declare const outlinePlugin: (props?: OutlinePluginProps) => Plugin;
|
|
307
317
|
|
|
308
|
-
declare const legacySideBarPlugin: (
|
|
318
|
+
declare const legacySideBarPlugin: (props?: {
|
|
319
|
+
outlineLabel?: string;
|
|
320
|
+
componentsLabel?: string;
|
|
321
|
+
}) => Plugin;
|
|
309
322
|
|
|
310
|
-
export { Action, ActionBar, AutoField, Button, ComponentData, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Group, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RichTextMenu, Separator, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|
|
323
|
+
export { Action, ActionBar, AutoField, type BlocksPluginProps, Button, ComponentData, Config, Data, Dictionary, DndConfig, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Group, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, type OutlinePluginProps, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RichTextMenu, Separator, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|