@measured/puck-plugin-emotion-cache 0.21.0-canary.ec77dd9f → 0.21.0-canary.f3ce0d72
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/index.d.mts +17 -7
- package/dist/index.d.ts +17 -7
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -321,6 +321,7 @@ interface FieldMetadata extends Metadata {
|
|
|
321
321
|
type ItemWithId = {
|
|
322
322
|
_arrayId: string;
|
|
323
323
|
_originalIndex: number;
|
|
324
|
+
_currentIndex: number;
|
|
324
325
|
};
|
|
325
326
|
type ArrayState = {
|
|
326
327
|
items: ItemWithId[];
|
|
@@ -331,6 +332,7 @@ type UiState = {
|
|
|
331
332
|
rightSideBarVisible: boolean;
|
|
332
333
|
leftSideBarWidth?: number | null;
|
|
333
334
|
rightSideBarWidth?: number | null;
|
|
335
|
+
mobilePanelExpanded?: boolean;
|
|
334
336
|
itemSelector: ItemSelector | null;
|
|
335
337
|
arrayState: Record<string, ArrayState | undefined>;
|
|
336
338
|
previewMode: "interactive" | "edit";
|
|
@@ -343,7 +345,7 @@ type UiState = {
|
|
|
343
345
|
isDragging: boolean;
|
|
344
346
|
viewports: {
|
|
345
347
|
current: {
|
|
346
|
-
width: number;
|
|
348
|
+
width: number | "100%";
|
|
347
349
|
height: number | "auto";
|
|
348
350
|
};
|
|
349
351
|
controlsVisible: boolean;
|
|
@@ -352,6 +354,9 @@ type UiState = {
|
|
|
352
354
|
field: {
|
|
353
355
|
focus?: string | null;
|
|
354
356
|
};
|
|
357
|
+
plugin: {
|
|
358
|
+
current: string | null;
|
|
359
|
+
};
|
|
355
360
|
};
|
|
356
361
|
type AppState<UserData extends Data = Data> = {
|
|
357
362
|
data: UserData;
|
|
@@ -395,6 +400,11 @@ type LeftOrExactRight<Union, Left, Right> = (Left & Union extends Right ? Exact<
|
|
|
395
400
|
type AssertHasValue<T, True = T, False = never> = [keyof T] extends [
|
|
396
401
|
never
|
|
397
402
|
] ? False : True;
|
|
403
|
+
type RenderFunc<Props extends {
|
|
404
|
+
[key: string]: any;
|
|
405
|
+
} = {
|
|
406
|
+
children: ReactNode;
|
|
407
|
+
}> = (props: Props) => ReactElement;
|
|
398
408
|
|
|
399
409
|
type MapFnParams<ThisField = Field> = {
|
|
400
410
|
value: any;
|
|
@@ -418,11 +428,6 @@ G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>, UserField extends
|
|
|
418
428
|
[Type in UserField["type"]]: FieldTransformFn<ExtractField<UserField, Type>>;
|
|
419
429
|
}>;
|
|
420
430
|
|
|
421
|
-
type RenderFunc<Props extends {
|
|
422
|
-
[key: string]: any;
|
|
423
|
-
} = {
|
|
424
|
-
children: ReactNode;
|
|
425
|
-
}> = (props: Props) => ReactElement;
|
|
426
431
|
declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
|
|
427
432
|
type OverrideKey = (typeof overrideKeys)[number];
|
|
428
433
|
type OverridesGeneric<Shape extends {
|
|
@@ -493,7 +498,7 @@ type DragAxis = "dynamic" | "y" | "x";
|
|
|
493
498
|
|
|
494
499
|
type iconTypes = "Smartphone" | "Monitor" | "Tablet";
|
|
495
500
|
type Viewport = {
|
|
496
|
-
width: number;
|
|
501
|
+
width: number | "100%";
|
|
497
502
|
height?: number | "auto";
|
|
498
503
|
label?: string;
|
|
499
504
|
icon?: iconTypes | ReactNode;
|
|
@@ -507,8 +512,13 @@ type Permissions = {
|
|
|
507
512
|
insert: boolean;
|
|
508
513
|
} & Record<string, boolean>;
|
|
509
514
|
type Plugin<UserConfig extends Config = Config> = {
|
|
515
|
+
name?: string;
|
|
516
|
+
label?: string;
|
|
517
|
+
icon?: ReactNode;
|
|
518
|
+
render?: () => ReactElement;
|
|
510
519
|
overrides?: Partial<Overrides<UserConfig>>;
|
|
511
520
|
fieldTransforms?: FieldTransforms<UserConfig>;
|
|
521
|
+
mobilePanelHeight?: "toggle" | "min-content";
|
|
512
522
|
};
|
|
513
523
|
type Slot<Props extends {
|
|
514
524
|
[key: string]: DefaultComponentProps;
|
package/dist/index.d.ts
CHANGED
|
@@ -321,6 +321,7 @@ interface FieldMetadata extends Metadata {
|
|
|
321
321
|
type ItemWithId = {
|
|
322
322
|
_arrayId: string;
|
|
323
323
|
_originalIndex: number;
|
|
324
|
+
_currentIndex: number;
|
|
324
325
|
};
|
|
325
326
|
type ArrayState = {
|
|
326
327
|
items: ItemWithId[];
|
|
@@ -331,6 +332,7 @@ type UiState = {
|
|
|
331
332
|
rightSideBarVisible: boolean;
|
|
332
333
|
leftSideBarWidth?: number | null;
|
|
333
334
|
rightSideBarWidth?: number | null;
|
|
335
|
+
mobilePanelExpanded?: boolean;
|
|
334
336
|
itemSelector: ItemSelector | null;
|
|
335
337
|
arrayState: Record<string, ArrayState | undefined>;
|
|
336
338
|
previewMode: "interactive" | "edit";
|
|
@@ -343,7 +345,7 @@ type UiState = {
|
|
|
343
345
|
isDragging: boolean;
|
|
344
346
|
viewports: {
|
|
345
347
|
current: {
|
|
346
|
-
width: number;
|
|
348
|
+
width: number | "100%";
|
|
347
349
|
height: number | "auto";
|
|
348
350
|
};
|
|
349
351
|
controlsVisible: boolean;
|
|
@@ -352,6 +354,9 @@ type UiState = {
|
|
|
352
354
|
field: {
|
|
353
355
|
focus?: string | null;
|
|
354
356
|
};
|
|
357
|
+
plugin: {
|
|
358
|
+
current: string | null;
|
|
359
|
+
};
|
|
355
360
|
};
|
|
356
361
|
type AppState<UserData extends Data = Data> = {
|
|
357
362
|
data: UserData;
|
|
@@ -395,6 +400,11 @@ type LeftOrExactRight<Union, Left, Right> = (Left & Union extends Right ? Exact<
|
|
|
395
400
|
type AssertHasValue<T, True = T, False = never> = [keyof T] extends [
|
|
396
401
|
never
|
|
397
402
|
] ? False : True;
|
|
403
|
+
type RenderFunc<Props extends {
|
|
404
|
+
[key: string]: any;
|
|
405
|
+
} = {
|
|
406
|
+
children: ReactNode;
|
|
407
|
+
}> = (props: Props) => ReactElement;
|
|
398
408
|
|
|
399
409
|
type MapFnParams<ThisField = Field> = {
|
|
400
410
|
value: any;
|
|
@@ -418,11 +428,6 @@ G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>, UserField extends
|
|
|
418
428
|
[Type in UserField["type"]]: FieldTransformFn<ExtractField<UserField, Type>>;
|
|
419
429
|
}>;
|
|
420
430
|
|
|
421
|
-
type RenderFunc<Props extends {
|
|
422
|
-
[key: string]: any;
|
|
423
|
-
} = {
|
|
424
|
-
children: ReactNode;
|
|
425
|
-
}> = (props: Props) => ReactElement;
|
|
426
431
|
declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
|
|
427
432
|
type OverrideKey = (typeof overrideKeys)[number];
|
|
428
433
|
type OverridesGeneric<Shape extends {
|
|
@@ -493,7 +498,7 @@ type DragAxis = "dynamic" | "y" | "x";
|
|
|
493
498
|
|
|
494
499
|
type iconTypes = "Smartphone" | "Monitor" | "Tablet";
|
|
495
500
|
type Viewport = {
|
|
496
|
-
width: number;
|
|
501
|
+
width: number | "100%";
|
|
497
502
|
height?: number | "auto";
|
|
498
503
|
label?: string;
|
|
499
504
|
icon?: iconTypes | ReactNode;
|
|
@@ -507,8 +512,13 @@ type Permissions = {
|
|
|
507
512
|
insert: boolean;
|
|
508
513
|
} & Record<string, boolean>;
|
|
509
514
|
type Plugin<UserConfig extends Config = Config> = {
|
|
515
|
+
name?: string;
|
|
516
|
+
label?: string;
|
|
517
|
+
icon?: ReactNode;
|
|
518
|
+
render?: () => ReactElement;
|
|
510
519
|
overrides?: Partial<Overrides<UserConfig>>;
|
|
511
520
|
fieldTransforms?: FieldTransforms<UserConfig>;
|
|
521
|
+
mobilePanelHeight?: "toggle" | "min-content";
|
|
512
522
|
};
|
|
513
523
|
type Slot<Props extends {
|
|
514
524
|
[key: string]: DefaultComponentProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@measured/puck-plugin-emotion-cache",
|
|
3
|
-
"version": "0.21.0-canary.
|
|
3
|
+
"version": "0.21.0-canary.f3ce0d72",
|
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
5
|
"repository": "measuredco/puck",
|
|
6
6
|
"bugs": "https://github.com/measuredco/puck/issues",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@emotion/react": "^11.13.3",
|
|
27
|
-
"@measured/puck": "^0.21.0-canary.
|
|
27
|
+
"@measured/puck": "^0.21.0-canary.f3ce0d72",
|
|
28
28
|
"@types/minimatch": "3.0.5",
|
|
29
29
|
"@types/react": "^19.0.1",
|
|
30
30
|
"@types/react-dom": "^19.0.2",
|