@measured/puck 0.19.1 → 0.20.0-canary.755737e8

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/rsc.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as Config, U as UserGenerics, M as Metadata } from './walk-tree-DrJNb8b-.mjs';
3
- export { af as migrate, ah as resolveAllData, ag as transformProps, w as walkTree } from './walk-tree-DrJNb8b-.mjs';
2
+ import { a as Config, U as UserGenerics, M as Metadata } from './walk-tree-6PP75PCU.mjs';
3
+ export { af as migrate, ah as resolveAllData, ag as transformProps, w as walkTree } from './walk-tree-6PP75PCU.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 { a as Config, U as UserGenerics, M as Metadata } from './walk-tree-DrJNb8b-.js';
3
- export { af as migrate, ah as resolveAllData, ag as transformProps, w as walkTree } from './walk-tree-DrJNb8b-.js';
2
+ import { a as Config, U as UserGenerics, M as Metadata } from './walk-tree-6PP75PCU.js';
3
+ export { af as migrate, ah as resolveAllData, ag as transformProps, w as walkTree } from './walk-tree-6PP75PCU.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, }: {
@@ -353,12 +353,12 @@ type BuiltinTypes = Date | RegExp | Error | Function | symbol | null | undefined
353
353
  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 ? {
354
354
  [K in keyof T]: WithDeepSlots<T[K], SlotType>;
355
355
  } : T;
356
-
357
356
  type RenderFunc<Props extends {
358
357
  [key: string]: any;
359
358
  } = {
360
359
  children: ReactNode;
361
360
  }> = (props: Props) => ReactElement;
361
+
362
362
  declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "components", "componentItem", "outline", "puck", "preview"];
363
363
  type OverrideKey = (typeof overrideKeys)[number];
364
364
  type OverridesGeneric<Shape extends {
@@ -443,7 +443,11 @@ type IframeConfig = {
443
443
  };
444
444
  type OnAction<UserData extends Data = Data> = (action: PuckAction, appState: AppState<UserData>, prevAppState: AppState<UserData>) => void;
445
445
  type Plugin = {
446
- overrides: Partial<Overrides>;
446
+ name?: string;
447
+ label?: string;
448
+ icon?: ReactNode;
449
+ render?: () => ReactElement;
450
+ overrides?: Partial<Overrides>;
447
451
  };
448
452
  type History<D = any> = {
449
453
  state: D;
@@ -353,12 +353,12 @@ type BuiltinTypes = Date | RegExp | Error | Function | symbol | null | undefined
353
353
  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 ? {
354
354
  [K in keyof T]: WithDeepSlots<T[K], SlotType>;
355
355
  } : T;
356
-
357
356
  type RenderFunc<Props extends {
358
357
  [key: string]: any;
359
358
  } = {
360
359
  children: ReactNode;
361
360
  }> = (props: Props) => ReactElement;
361
+
362
362
  declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "components", "componentItem", "outline", "puck", "preview"];
363
363
  type OverrideKey = (typeof overrideKeys)[number];
364
364
  type OverridesGeneric<Shape extends {
@@ -443,7 +443,11 @@ type IframeConfig = {
443
443
  };
444
444
  type OnAction<UserData extends Data = Data> = (action: PuckAction, appState: AppState<UserData>, prevAppState: AppState<UserData>) => void;
445
445
  type Plugin = {
446
- overrides: Partial<Overrides>;
446
+ name?: string;
447
+ label?: string;
448
+ icon?: ReactNode;
449
+ render?: () => ReactElement;
450
+ overrides?: Partial<Overrides>;
447
451
  };
448
452
  type History<D = any> = {
449
453
  state: D;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.19.1",
3
+ "version": "0.20.0-canary.755737e8",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",