@measured/puck 0.20.0-canary.7ec3c0b9 → 0.20.0-canary.82bd49a3

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.
@@ -11,16 +11,14 @@ import {
11
11
  Label,
12
12
  Puck,
13
13
  Render,
14
- blocksPlugin,
15
14
  createUsePuck,
16
- outlinePlugin,
17
15
  overrideKeys,
18
16
  registerOverlayPortal,
19
17
  renderContext,
20
18
  setDeep,
21
19
  useGetPuck,
22
20
  usePuck
23
- } from "./chunk-RYWII4GP.mjs";
21
+ } from "./chunk-AQUDTV7N.mjs";
24
22
  import {
25
23
  init_react_import,
26
24
  migrate,
@@ -44,10 +42,8 @@ export {
44
42
  Label,
45
43
  Puck,
46
44
  Render,
47
- blocksPlugin,
48
45
  createUsePuck,
49
46
  migrate,
50
- outlinePlugin,
51
47
  overrideKeys,
52
48
  registerOverlayPortal,
53
49
  renderContext,
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 './walk-tree-yh0Fsxem.mjs';
3
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-yh0Fsxem.mjs';
2
+ import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-B57SgEEc.mjs';
3
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-B57SgEEc.mjs';
4
4
  import 'react';
5
5
 
6
6
  declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
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 './walk-tree-yh0Fsxem.js';
3
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-yh0Fsxem.js';
2
+ import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-B57SgEEc.js';
3
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-B57SgEEc.js';
4
4
  import 'react';
5
5
 
6
6
  declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
@@ -284,7 +284,6 @@ type Metadata = {
284
284
  type ItemWithId = {
285
285
  _arrayId: string;
286
286
  _originalIndex: number;
287
- _currentIndex: number;
288
287
  };
289
288
  type ArrayState = {
290
289
  items: ItemWithId[];
@@ -350,11 +349,6 @@ type BuiltinTypes = Date | RegExp | Error | Function | symbol | null | undefined
350
349
  type WithDeepSlots<T, SlotType = T> = T extends Slot ? SlotType : T extends (infer U)[] ? Array<WithDeepSlots<U, SlotType>> : T extends (infer U)[] ? WithDeepSlots<U, SlotType>[] : T extends BuiltinTypes ? T : T extends object ? {
351
350
  [K in keyof T]: WithDeepSlots<T[K], SlotType>;
352
351
  } : T;
353
- type RenderFunc<Props extends {
354
- [key: string]: any;
355
- } = {
356
- children: ReactNode;
357
- }> = (props: Props) => ReactElement;
358
352
 
359
353
  type MapFnParams<ThisField = Field> = {
360
354
  value: any;
@@ -373,6 +367,11 @@ type FieldTransforms = Partial<{
373
367
  [FieldType in Field["type"]]: FieldTransformFn<ExtractField<FieldType>>;
374
368
  }>;
375
369
 
370
+ type RenderFunc<Props extends {
371
+ [key: string]: any;
372
+ } = {
373
+ children: ReactNode;
374
+ }> = (props: Props) => ReactElement;
376
375
  declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
377
376
  type OverrideKey = (typeof overrideKeys)[number];
378
377
  type OverridesGeneric<Shape extends {
@@ -469,10 +468,6 @@ type IframeConfig = {
469
468
  };
470
469
  type OnAction<UserData extends Data = Data> = (action: PuckAction, appState: AppState<UserData>, prevAppState: AppState<UserData>) => void;
471
470
  type Plugin = {
472
- name?: string;
473
- label?: string;
474
- icon?: ReactNode;
475
- render?: () => ReactElement;
476
471
  overrides?: Partial<Overrides>;
477
472
  fieldTransforms?: FieldTransforms;
478
473
  };
@@ -284,7 +284,6 @@ type Metadata = {
284
284
  type ItemWithId = {
285
285
  _arrayId: string;
286
286
  _originalIndex: number;
287
- _currentIndex: number;
288
287
  };
289
288
  type ArrayState = {
290
289
  items: ItemWithId[];
@@ -350,11 +349,6 @@ type BuiltinTypes = Date | RegExp | Error | Function | symbol | null | undefined
350
349
  type WithDeepSlots<T, SlotType = T> = T extends Slot ? SlotType : T extends (infer U)[] ? Array<WithDeepSlots<U, SlotType>> : T extends (infer U)[] ? WithDeepSlots<U, SlotType>[] : T extends BuiltinTypes ? T : T extends object ? {
351
350
  [K in keyof T]: WithDeepSlots<T[K], SlotType>;
352
351
  } : T;
353
- type RenderFunc<Props extends {
354
- [key: string]: any;
355
- } = {
356
- children: ReactNode;
357
- }> = (props: Props) => ReactElement;
358
352
 
359
353
  type MapFnParams<ThisField = Field> = {
360
354
  value: any;
@@ -373,6 +367,11 @@ type FieldTransforms = Partial<{
373
367
  [FieldType in Field["type"]]: FieldTransformFn<ExtractField<FieldType>>;
374
368
  }>;
375
369
 
370
+ type RenderFunc<Props extends {
371
+ [key: string]: any;
372
+ } = {
373
+ children: ReactNode;
374
+ }> = (props: Props) => ReactElement;
376
375
  declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
377
376
  type OverrideKey = (typeof overrideKeys)[number];
378
377
  type OverridesGeneric<Shape extends {
@@ -469,10 +468,6 @@ type IframeConfig = {
469
468
  };
470
469
  type OnAction<UserData extends Data = Data> = (action: PuckAction, appState: AppState<UserData>, prevAppState: AppState<UserData>) => void;
471
470
  type Plugin = {
472
- name?: string;
473
- label?: string;
474
- icon?: ReactNode;
475
- render?: () => ReactElement;
476
471
  overrides?: Partial<Overrides>;
477
472
  fieldTransforms?: FieldTransforms;
478
473
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.20.0-canary.7ec3c0b9",
3
+ "version": "0.20.0-canary.82bd49a3",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",