@measured/puck 0.20.0-canary.77cef35d → 0.20.0-canary.7d869af1
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/{chunk-APXUWZWW.mjs → chunk-FNRZXWXT.mjs} +3567 -3902
- package/dist/index.css +259 -384
- package/dist/index.d.mts +3 -6
- package/dist/index.d.ts +3 -6
- package/dist/index.js +1786 -2114
- package/dist/index.mjs +5 -5
- package/dist/no-external.css +472 -601
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +1785 -2116
- package/dist/no-external.mjs +1 -5
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/{walk-tree-yh0Fsxem.d.mts → walk-tree-B57SgEEc.d.mts} +5 -10
- package/dist/{walk-tree-yh0Fsxem.d.ts → walk-tree-B57SgEEc.d.ts} +5 -10
- package/package.json +1 -1
package/dist/no-external.mjs
CHANGED
|
@@ -11,14 +11,12 @@ import {
|
|
|
11
11
|
Label,
|
|
12
12
|
Puck,
|
|
13
13
|
Render,
|
|
14
|
-
blocksPlugin,
|
|
15
14
|
createUsePuck,
|
|
16
|
-
outlinePlugin,
|
|
17
15
|
overrideKeys,
|
|
18
16
|
renderContext,
|
|
19
17
|
useGetPuck,
|
|
20
18
|
usePuck
|
|
21
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FNRZXWXT.mjs";
|
|
22
20
|
import {
|
|
23
21
|
init_react_import,
|
|
24
22
|
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-
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
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-
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
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