@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.
Files changed (33) hide show
  1. package/dist/{Editor-MXSH3OSX.mjs → Editor-BJP5AFD5.mjs} +9 -9
  2. package/dist/{chunk-HRNJ42TO.mjs → chunk-25QAPMLH.mjs} +1 -1
  3. package/dist/{chunk-VOB4L2BJ.mjs → chunk-BMRBP3ET.mjs} +3 -3
  4. package/dist/{chunk-2AATV7NG.mjs → chunk-EYJW64M2.mjs} +21 -10
  5. package/dist/{chunk-DATOBXTJ.mjs → chunk-HB4CVO3I.mjs} +15 -8
  6. package/dist/{chunk-54LFCIWQ.mjs → chunk-JHNG6XYK.mjs} +122 -7
  7. package/dist/{chunk-FKYOVZNF.mjs → chunk-JNJJ2M57.mjs} +2 -2
  8. package/dist/{chunk-BVKXFA4V.mjs → chunk-MU6IPW26.mjs} +27 -12
  9. package/dist/{chunk-6PIQFZBM.mjs → chunk-Q6WCB6GM.mjs} +297 -160
  10. package/dist/{chunk-74HKFKJU.mjs → chunk-QHQD3BMI.mjs} +7 -5
  11. package/dist/{chunk-73XKHVBN.mjs → chunk-WQV7W7OC.mjs} +37 -22
  12. package/dist/{chunk-GR7NLT4T.mjs → chunk-WUO7D6OQ.mjs} +1 -1
  13. package/dist/{full-7JVAMOPS.mjs → full-7ONH7UPJ.mjs} +8 -8
  14. package/dist/{index-ClzBCbx_.d.mts → index-De5Tn61v.d.mts} +85 -1
  15. package/dist/{index-B1b1cFug.d.ts → index-t7c1w81O.d.ts} +85 -1
  16. package/dist/index.d.mts +20 -5
  17. package/dist/index.d.ts +20 -5
  18. package/dist/index.js +500 -154
  19. package/dist/index.mjs +11 -11
  20. package/dist/internal.d.mts +1 -1
  21. package/dist/internal.d.ts +1 -1
  22. package/dist/internal.js +7 -5
  23. package/dist/internal.mjs +2 -2
  24. package/dist/{loaded-HECCGJKO.mjs → loaded-35D7XAOE.mjs} +5 -5
  25. package/dist/{loaded-B7563MDT.mjs → loaded-6YDNF4HS.mjs} +5 -5
  26. package/dist/{loaded-EFZRGV2Y.mjs → loaded-PF5Y4VWH.mjs} +5 -5
  27. package/dist/no-external.d.mts +2 -2
  28. package/dist/no-external.d.ts +2 -2
  29. package/dist/no-external.js +500 -154
  30. package/dist/no-external.mjs +11 -11
  31. package/dist/rsc.js +7 -5
  32. package/dist/rsc.mjs +3 -3
  33. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { H as Field, J as FieldProps, y as DropZoneProps, m as Config, am as UserGenerics, D as Data, al as UiState, Y as OnAction, $ as Permissions, a0 as Plugin, _ as Overrides, N as FieldTransforms, a3 as PuckAction, ao as Viewports, Q as IframeConfig, R as InitialHistory, V as Metadata, a8 as ResolveDataTrigger, S as ItemSelector, i as ComponentData, a1 as PluginInternal } from './actions-Csn3gOP8.js';
2
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, x as DragAxis, E as ExternalField, z as ExternalFieldWithAdaptor, F as ExtractConfigParams, G as ExtractField, I as FieldMetadata, K as FieldRenderFunctions, L as FieldTransformFn, M as FieldTransformFnParams, O as Fields, P as History, T as ItemWithId, U as MappedItem, W as NumberField, X as ObjectField, Z as OverrideKey, a4 as PuckComponent, a5 as PuckContext, a6 as PuckMetadata, a7 as RadioField, 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, an as Viewport, ap as WithChildren, aq as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-Csn3gOP8.js';
3
+ import { D as Dictionary, A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-t7c1w81O.js';
3
4
  export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CWrsBHHe.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';
@@ -150,6 +150,7 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
150
150
  };
151
151
  initialHistory?: InitialHistory;
152
152
  metadata?: Metadata;
153
+ dictionary?: Dictionary;
153
154
  height?: CSSProperties["height"];
154
155
  _experimentalFullScreenCanvas?: boolean;
155
156
  _experimentalVirtualization?: boolean;
@@ -276,6 +277,7 @@ type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<User
276
277
  hasPast: boolean;
277
278
  hasFuture: boolean;
278
279
  };
280
+ dictionary: Dictionary;
279
281
  };
280
282
  type PuckApi<UserConfig extends Config = Config> = UsePuckData<UserConfig>;
281
283
  type UsePuckStore<UserConfig extends Config = Config> = PuckApi<UserConfig>;
@@ -297,14 +299,27 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
297
299
  */
298
300
  declare function useGetPuck(): () => UsePuckStore<Config>;
299
301
 
300
- declare const blocksPlugin: () => Plugin;
302
+ type BlocksPluginProps = {
303
+ label?: string;
304
+ icon?: ReactNode;
305
+ };
306
+ declare const blocksPlugin: (props?: BlocksPluginProps) => Plugin;
301
307
 
302
308
  declare const fieldsPlugin: (params?: {
303
309
  desktopSideBar?: "left" | "right";
310
+ label?: string;
311
+ icon?: ReactNode;
304
312
  }) => PluginInternal;
305
313
 
306
- declare const outlinePlugin: () => Plugin;
314
+ type OutlinePluginProps = {
315
+ label?: string;
316
+ icon?: ReactNode;
317
+ };
318
+ declare const outlinePlugin: (props?: OutlinePluginProps) => Plugin;
307
319
 
308
- declare const legacySideBarPlugin: () => Plugin;
320
+ declare const legacySideBarPlugin: (props?: {
321
+ outlineLabel?: string;
322
+ componentsLabel?: string;
323
+ }) => Plugin;
309
324
 
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 };
325
+ export { Action, ActionBar, AutoField, type BlocksPluginProps, Button, ComponentData, Config, Data, Dictionary, 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 };