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