@measured/puck-plugin-heading-analyzer 0.21.0-canary.d32e582b → 0.21.0-canary.e310a175

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.css CHANGED
@@ -1,18 +1,162 @@
1
1
  /* css-module:/home/runner/work/puck/puck/packages/plugin-heading-analyzer/src/HeadingAnalyzer.module.css/#css-module-data */
2
- ._HeadingAnalyzer_yg0s7_1 {
2
+ ._HeadingAnalyzer_116v6_1 {
3
3
  display: block;
4
- padding: 16px;
5
4
  }
6
- ._HeadingAnalyzer-cssWarning_yg0s7_6 {
5
+ ._HeadingAnalyzer-cssWarning_116v6_5 {
7
6
  display: none !important;
8
7
  }
9
- ._HeadingAnalyzerItem_yg0s7_10 {
8
+ ._HeadingAnalyzerItem_116v6_9 {
10
9
  display: inline;
11
10
  }
12
- ._HeadingAnalyzerItem--missing_yg0s7_14 {
11
+ ._HeadingAnalyzerItem--missing_116v6_13 {
13
12
  color: var(--puck-color-red-04);
14
13
  }
15
14
 
15
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css/#css-module-data */
16
+ ._SidebarSection_8boj8_1 {
17
+ display: flex;
18
+ position: relative;
19
+ flex-direction: column;
20
+ color: var(--puck-color-black);
21
+ }
22
+ ._SidebarSection_8boj8_1:last-of-type {
23
+ flex-grow: 1;
24
+ }
25
+ ._SidebarSection-title_8boj8_12 {
26
+ background: var(--puck-color-white);
27
+ padding: 16px;
28
+ border-bottom: 1px solid var(--puck-color-grey-09);
29
+ border-top: 1px solid var(--puck-color-grey-09);
30
+ overflow-x: auto;
31
+ }
32
+ ._SidebarSection--noBorderTop_8boj8_20 > ._SidebarSection-title_8boj8_12 {
33
+ border-top: 0px;
34
+ }
35
+ ._SidebarSection-content_8boj8_24 {
36
+ padding: 16px;
37
+ }
38
+ ._SidebarSection--noPadding_8boj8_28 > ._SidebarSection-content_8boj8_24 {
39
+ padding: 0px;
40
+ }
41
+ ._SidebarSection--noPadding_8boj8_28 > ._SidebarSection-content_8boj8_24:last-child {
42
+ padding-bottom: 4px;
43
+ }
44
+ ._SidebarSection_8boj8_1:last-of-type ._SidebarSection-content_8boj8_24 {
45
+ border-bottom: none;
46
+ flex-grow: 1;
47
+ }
48
+ ._SidebarSection-breadcrumbLabel_8boj8_41 {
49
+ background: none;
50
+ border: 0;
51
+ border-radius: 2px;
52
+ color: var(--puck-color-azure-04);
53
+ cursor: pointer;
54
+ font: inherit;
55
+ flex-shrink: 0;
56
+ padding: 0;
57
+ transition: color 50ms ease-in;
58
+ }
59
+ ._SidebarSection-breadcrumbLabel_8boj8_41:focus-visible {
60
+ outline: 2px solid var(--puck-color-azure-05);
61
+ outline-offset: 2px;
62
+ }
63
+ @media (hover: hover) and (pointer: fine) {
64
+ ._SidebarSection-breadcrumbLabel_8boj8_41:hover {
65
+ color: var(--puck-color-azure-03);
66
+ transition: none;
67
+ }
68
+ }
69
+ ._SidebarSection-breadcrumbLabel_8boj8_41:active {
70
+ color: var(--puck-color-azure-02);
71
+ transition: none;
72
+ }
73
+ ._SidebarSection-breadcrumbs_8boj8_70 {
74
+ align-items: center;
75
+ display: flex;
76
+ gap: 4px;
77
+ }
78
+ ._SidebarSection-breadcrumb_8boj8_41 {
79
+ align-items: center;
80
+ display: flex;
81
+ gap: 4px;
82
+ }
83
+ ._SidebarSection-heading_8boj8_82 {
84
+ padding-inline-end: 16px;
85
+ }
86
+ ._SidebarSection-loadingOverlay_8boj8_86 {
87
+ background: var(--puck-color-white);
88
+ display: flex;
89
+ justify-content: center;
90
+ align-items: center;
91
+ height: 100%;
92
+ width: 100%;
93
+ top: 0;
94
+ position: absolute;
95
+ z-index: 1;
96
+ pointer-events: all;
97
+ box-sizing: border-box;
98
+ opacity: 0.8;
99
+ }
100
+
101
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css/#css-module-data */
102
+ ._Heading_qxrry_1 {
103
+ display: block;
104
+ color: var(--puck-color-black);
105
+ font-weight: 700;
106
+ margin: 0;
107
+ }
108
+ ._Heading_qxrry_1 b {
109
+ font-weight: 700;
110
+ }
111
+ ._Heading--xxxxl_qxrry_12 {
112
+ font-size: var(--puck-font-size-xxxxl);
113
+ letter-spacing: 0.08ch;
114
+ font-weight: 800;
115
+ }
116
+ ._Heading--xxxl_qxrry_18 {
117
+ font-size: var(--puck-font-size-xxxl);
118
+ }
119
+ ._Heading--xxl_qxrry_22 {
120
+ font-size: var(--puck-font-size-xxl);
121
+ }
122
+ ._Heading--xl_qxrry_26 {
123
+ font-size: var(--puck-font-size-xl);
124
+ }
125
+ ._Heading--l_qxrry_30 {
126
+ font-size: var(--puck-font-size-l);
127
+ }
128
+ ._Heading--m_qxrry_34 {
129
+ font-size: var(--puck-font-size-m);
130
+ }
131
+ ._Heading--s_qxrry_38 {
132
+ font-size: var(--puck-font-size-s);
133
+ }
134
+ ._Heading--xs_qxrry_42 {
135
+ font-size: var(--puck-font-size-xs);
136
+ }
137
+
138
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Loader/styles.module.css/#css-module-data */
139
+ @keyframes _loader-animation_nacdm_1 {
140
+ 0% {
141
+ transform: rotate(0deg) scale(1);
142
+ }
143
+ 50% {
144
+ transform: rotate(180deg) scale(0.8);
145
+ }
146
+ 100% {
147
+ transform: rotate(360deg) scale(1);
148
+ }
149
+ }
150
+ ._Loader_nacdm_13 {
151
+ background: transparent;
152
+ border-radius: 100%;
153
+ border: 2px solid currentColor;
154
+ border-bottom-color: transparent;
155
+ display: inline-block;
156
+ animation: _loader-animation_nacdm_1 1s 0s infinite linear;
157
+ animation-fill-mode: both;
158
+ }
159
+
16
160
  /* css-module:/home/runner/work/puck/puck/packages/core/components/OutlineList/styles.module.css/#css-module-data */
17
161
  ._OutlineList_w4lzv_1 {
18
162
  color: var(--puck-color-grey-03);
package/dist/index.d.mts CHANGED
@@ -72,7 +72,7 @@ type Adaptor<AdaptorParams = {}, TableShape extends Record<string, any> = {}, Pr
72
72
  fetchList: (adaptorParams?: AdaptorParams) => Promise<TableShape[] | null>;
73
73
  mapProp?: (value: TableShape) => PropShape;
74
74
  };
75
- type NotUndefined<T> = T extends undefined ? Record<string, any> : T;
75
+ type NotUndefined<T> = T extends undefined ? never : T;
76
76
  type ExternalFieldWithAdaptor<Props extends any = {
77
77
  [key: string]: any;
78
78
  }> = BaseField & {
@@ -82,10 +82,14 @@ type ExternalFieldWithAdaptor<Props extends any = {
82
82
  adaptorParams?: object;
83
83
  getItemSummary: (item: NotUndefined<Props>, index?: number) => string;
84
84
  };
85
+ type CacheOpts = {
86
+ enabled?: boolean;
87
+ };
85
88
  type ExternalField<Props extends any = {
86
89
  [key: string]: any;
87
90
  }> = BaseField & {
88
91
  type: "external";
92
+ cache?: CacheOpts;
89
93
  placeholder?: string;
90
94
  fetchList: (params: {
91
95
  query: string;
@@ -122,7 +126,7 @@ type SlotField = BaseField & {
122
126
  };
123
127
  type Field<ValueType = any, UserField extends {} = {}> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<ValueType extends {
124
128
  [key: string]: any;
125
- }[] ? ValueType : {}[], UserField> | ObjectField<ValueType, UserField> | ExternalField<ValueType> | ExternalFieldWithAdaptor<ValueType> | CustomField<ValueType> | SlotField;
129
+ }[] ? ValueType : never, UserField> | ObjectField<ValueType, UserField> | ExternalField<ValueType> | ExternalFieldWithAdaptor<ValueType> | CustomField<ValueType> | SlotField;
126
130
  type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps, UserField extends {} = {}> = {
127
131
  [PropName in keyof Omit<ComponentProps, "editMode">]: UserField extends {
128
132
  type: PropertyKey;
@@ -210,6 +214,7 @@ UserField extends BaseField = {}> = {
210
214
  fields: Fields<FieldProps>;
211
215
  lastFields: Fields<FieldProps>;
212
216
  lastData: DataShape | null;
217
+ metadata: Metadata;
213
218
  appState: AppState;
214
219
  parent: ComponentData | null;
215
220
  }) => Promise<Fields<FieldProps>> | Fields<FieldProps>;
@@ -249,7 +254,7 @@ type ConfigInternal<Props extends DefaultComponents = DefaultComponents, RootPro
249
254
  root?: RootConfigInternal<RootProps, UserField>;
250
255
  };
251
256
  type DefaultComponents = Record<string, any>;
252
- type Config<PropsOrParams extends LeftOrExactRight<PropsOrParams, DefaultComponents, ConfigParams> = DefaultComponents | ConfigParams, RootProps extends DefaultComponentProps = DefaultComponentProps, CategoryName extends string = string> = PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, never> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number]> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, infer ParamFields> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], ParamFields[keyof ParamFields] & BaseField> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, any> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], {}> : ConfigInternal<PropsOrParams, RootProps, CategoryName>;
257
+ type Config<PropsOrParams extends LeftOrExactRight<PropsOrParams, DefaultComponents, ConfigParams> = DefaultComponents | ConfigParams, RootProps extends DefaultComponentProps = any, CategoryName extends string = string> = PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, never> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number]> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, infer ParamFields> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], ParamFields[keyof ParamFields] & BaseField> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, any> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], {}> : ConfigInternal<PropsOrParams, RootProps, CategoryName>;
253
258
  type ExtractConfigParams<UserConfig extends ConfigInternal> = UserConfig extends ConfigInternal<infer PropsOrParams, infer RootProps, infer CategoryName, infer UserField> ? {
254
259
  props: PropsOrParams;
255
260
  rootProps: RootProps & DefaultRootFieldProps;
@@ -301,7 +306,6 @@ type Metadata = {
301
306
  type ItemWithId = {
302
307
  _arrayId: string;
303
308
  _originalIndex: number;
304
- _currentIndex: number;
305
309
  };
306
310
  type ArrayState = {
307
311
  items: ItemWithId[];
@@ -312,7 +316,6 @@ type UiState = {
312
316
  rightSideBarVisible: boolean;
313
317
  leftSideBarWidth?: number | null;
314
318
  rightSideBarWidth?: number | null;
315
- mobilePanelExpanded?: boolean;
316
319
  itemSelector: ItemSelector | null;
317
320
  arrayState: Record<string, ArrayState | undefined>;
318
321
  previewMode: "interactive" | "edit";
@@ -325,7 +328,7 @@ type UiState = {
325
328
  isDragging: boolean;
326
329
  viewports: {
327
330
  current: {
328
- width: number | "100%";
331
+ width: number;
329
332
  height: number | "auto";
330
333
  };
331
334
  controlsVisible: boolean;
@@ -334,9 +337,6 @@ type UiState = {
334
337
  field: {
335
338
  focus?: string | null;
336
339
  };
337
- plugin: {
338
- current: string | null;
339
- };
340
340
  };
341
341
  type AppState<UserData extends Data = Data> = {
342
342
  data: UserData;
@@ -370,7 +370,7 @@ type BuiltinTypes = Date | RegExp | Error | Function | symbol | null | undefined
370
370
  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 ? {
371
371
  [K in keyof T]: WithDeepSlots<T[K], SlotType>;
372
372
  } : T;
373
- type ConfigParams<Components extends DefaultComponents = DefaultComponents, RootProps extends DefaultComponentProps = DefaultComponentProps, CategoryNames extends string[] = string[], UserFields extends FieldsExtension = FieldsExtension> = {
373
+ type ConfigParams<Components extends DefaultComponents = DefaultComponents, RootProps extends DefaultComponentProps = any, CategoryNames extends string[] = string[], UserFields extends FieldsExtension = FieldsExtension> = {
374
374
  components?: Components;
375
375
  root?: RootProps;
376
376
  categories?: CategoryNames;
@@ -386,11 +386,6 @@ type LeftOrExactRight<Union, Left, Right> = (Left & Union extends Right ? Exact<
386
386
  type AssertHasValue<T, True = T, False = never> = [keyof T] extends [
387
387
  never
388
388
  ] ? False : True;
389
- type RenderFunc<Props extends {
390
- [key: string]: any;
391
- } = {
392
- children: ReactNode;
393
- }> = (props: Props) => ReactElement;
394
389
 
395
390
  type MapFnParams<ThisField = Field> = {
396
391
  value: any;
@@ -414,6 +409,11 @@ G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>, UserField extends
414
409
  [Type in UserField["type"]]: FieldTransformFn<ExtractField<UserField, Type>>;
415
410
  }>;
416
411
 
412
+ type RenderFunc<Props extends {
413
+ [key: string]: any;
414
+ } = {
415
+ children: ReactNode;
416
+ }> = (props: Props) => ReactElement;
417
417
  declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
418
418
  type OverrideKey = (typeof overrideKeys)[number];
419
419
  type OverridesGeneric<Shape extends {
@@ -484,7 +484,7 @@ type DragAxis = "dynamic" | "y" | "x";
484
484
 
485
485
  type iconTypes = "Smartphone" | "Monitor" | "Tablet";
486
486
  type Viewport = {
487
- width: number | "100%";
487
+ width: number;
488
488
  height?: number | "auto";
489
489
  label?: string;
490
490
  icon?: iconTypes | ReactNode;
@@ -498,13 +498,8 @@ type Permissions = {
498
498
  insert: boolean;
499
499
  } & Record<string, boolean>;
500
500
  type Plugin<UserConfig extends Config = Config> = {
501
- name?: string;
502
- label?: string;
503
- icon?: ReactNode;
504
- render?: () => ReactElement;
505
501
  overrides?: Partial<Overrides<UserConfig>>;
506
502
  fieldTransforms?: FieldTransforms<UserConfig>;
507
- mobilePanelHeight?: "toggle" | "min-content";
508
503
  };
509
504
  type Slot<Props extends {
510
505
  [key: string]: DefaultComponentProps;
package/dist/index.d.ts CHANGED
@@ -72,7 +72,7 @@ type Adaptor<AdaptorParams = {}, TableShape extends Record<string, any> = {}, Pr
72
72
  fetchList: (adaptorParams?: AdaptorParams) => Promise<TableShape[] | null>;
73
73
  mapProp?: (value: TableShape) => PropShape;
74
74
  };
75
- type NotUndefined<T> = T extends undefined ? Record<string, any> : T;
75
+ type NotUndefined<T> = T extends undefined ? never : T;
76
76
  type ExternalFieldWithAdaptor<Props extends any = {
77
77
  [key: string]: any;
78
78
  }> = BaseField & {
@@ -82,10 +82,14 @@ type ExternalFieldWithAdaptor<Props extends any = {
82
82
  adaptorParams?: object;
83
83
  getItemSummary: (item: NotUndefined<Props>, index?: number) => string;
84
84
  };
85
+ type CacheOpts = {
86
+ enabled?: boolean;
87
+ };
85
88
  type ExternalField<Props extends any = {
86
89
  [key: string]: any;
87
90
  }> = BaseField & {
88
91
  type: "external";
92
+ cache?: CacheOpts;
89
93
  placeholder?: string;
90
94
  fetchList: (params: {
91
95
  query: string;
@@ -122,7 +126,7 @@ type SlotField = BaseField & {
122
126
  };
123
127
  type Field<ValueType = any, UserField extends {} = {}> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<ValueType extends {
124
128
  [key: string]: any;
125
- }[] ? ValueType : {}[], UserField> | ObjectField<ValueType, UserField> | ExternalField<ValueType> | ExternalFieldWithAdaptor<ValueType> | CustomField<ValueType> | SlotField;
129
+ }[] ? ValueType : never, UserField> | ObjectField<ValueType, UserField> | ExternalField<ValueType> | ExternalFieldWithAdaptor<ValueType> | CustomField<ValueType> | SlotField;
126
130
  type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps, UserField extends {} = {}> = {
127
131
  [PropName in keyof Omit<ComponentProps, "editMode">]: UserField extends {
128
132
  type: PropertyKey;
@@ -210,6 +214,7 @@ UserField extends BaseField = {}> = {
210
214
  fields: Fields<FieldProps>;
211
215
  lastFields: Fields<FieldProps>;
212
216
  lastData: DataShape | null;
217
+ metadata: Metadata;
213
218
  appState: AppState;
214
219
  parent: ComponentData | null;
215
220
  }) => Promise<Fields<FieldProps>> | Fields<FieldProps>;
@@ -249,7 +254,7 @@ type ConfigInternal<Props extends DefaultComponents = DefaultComponents, RootPro
249
254
  root?: RootConfigInternal<RootProps, UserField>;
250
255
  };
251
256
  type DefaultComponents = Record<string, any>;
252
- type Config<PropsOrParams extends LeftOrExactRight<PropsOrParams, DefaultComponents, ConfigParams> = DefaultComponents | ConfigParams, RootProps extends DefaultComponentProps = DefaultComponentProps, CategoryName extends string = string> = PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, never> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number]> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, infer ParamFields> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], ParamFields[keyof ParamFields] & BaseField> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, any> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], {}> : ConfigInternal<PropsOrParams, RootProps, CategoryName>;
257
+ type Config<PropsOrParams extends LeftOrExactRight<PropsOrParams, DefaultComponents, ConfigParams> = DefaultComponents | ConfigParams, RootProps extends DefaultComponentProps = any, CategoryName extends string = string> = PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, never> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number]> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, infer ParamFields> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], ParamFields[keyof ParamFields] & BaseField> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, any> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], {}> : ConfigInternal<PropsOrParams, RootProps, CategoryName>;
253
258
  type ExtractConfigParams<UserConfig extends ConfigInternal> = UserConfig extends ConfigInternal<infer PropsOrParams, infer RootProps, infer CategoryName, infer UserField> ? {
254
259
  props: PropsOrParams;
255
260
  rootProps: RootProps & DefaultRootFieldProps;
@@ -301,7 +306,6 @@ type Metadata = {
301
306
  type ItemWithId = {
302
307
  _arrayId: string;
303
308
  _originalIndex: number;
304
- _currentIndex: number;
305
309
  };
306
310
  type ArrayState = {
307
311
  items: ItemWithId[];
@@ -312,7 +316,6 @@ type UiState = {
312
316
  rightSideBarVisible: boolean;
313
317
  leftSideBarWidth?: number | null;
314
318
  rightSideBarWidth?: number | null;
315
- mobilePanelExpanded?: boolean;
316
319
  itemSelector: ItemSelector | null;
317
320
  arrayState: Record<string, ArrayState | undefined>;
318
321
  previewMode: "interactive" | "edit";
@@ -325,7 +328,7 @@ type UiState = {
325
328
  isDragging: boolean;
326
329
  viewports: {
327
330
  current: {
328
- width: number | "100%";
331
+ width: number;
329
332
  height: number | "auto";
330
333
  };
331
334
  controlsVisible: boolean;
@@ -334,9 +337,6 @@ type UiState = {
334
337
  field: {
335
338
  focus?: string | null;
336
339
  };
337
- plugin: {
338
- current: string | null;
339
- };
340
340
  };
341
341
  type AppState<UserData extends Data = Data> = {
342
342
  data: UserData;
@@ -370,7 +370,7 @@ type BuiltinTypes = Date | RegExp | Error | Function | symbol | null | undefined
370
370
  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 ? {
371
371
  [K in keyof T]: WithDeepSlots<T[K], SlotType>;
372
372
  } : T;
373
- type ConfigParams<Components extends DefaultComponents = DefaultComponents, RootProps extends DefaultComponentProps = DefaultComponentProps, CategoryNames extends string[] = string[], UserFields extends FieldsExtension = FieldsExtension> = {
373
+ type ConfigParams<Components extends DefaultComponents = DefaultComponents, RootProps extends DefaultComponentProps = any, CategoryNames extends string[] = string[], UserFields extends FieldsExtension = FieldsExtension> = {
374
374
  components?: Components;
375
375
  root?: RootProps;
376
376
  categories?: CategoryNames;
@@ -386,11 +386,6 @@ type LeftOrExactRight<Union, Left, Right> = (Left & Union extends Right ? Exact<
386
386
  type AssertHasValue<T, True = T, False = never> = [keyof T] extends [
387
387
  never
388
388
  ] ? False : True;
389
- type RenderFunc<Props extends {
390
- [key: string]: any;
391
- } = {
392
- children: ReactNode;
393
- }> = (props: Props) => ReactElement;
394
389
 
395
390
  type MapFnParams<ThisField = Field> = {
396
391
  value: any;
@@ -414,6 +409,11 @@ G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>, UserField extends
414
409
  [Type in UserField["type"]]: FieldTransformFn<ExtractField<UserField, Type>>;
415
410
  }>;
416
411
 
412
+ type RenderFunc<Props extends {
413
+ [key: string]: any;
414
+ } = {
415
+ children: ReactNode;
416
+ }> = (props: Props) => ReactElement;
417
417
  declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
418
418
  type OverrideKey = (typeof overrideKeys)[number];
419
419
  type OverridesGeneric<Shape extends {
@@ -484,7 +484,7 @@ type DragAxis = "dynamic" | "y" | "x";
484
484
 
485
485
  type iconTypes = "Smartphone" | "Monitor" | "Tablet";
486
486
  type Viewport = {
487
- width: number | "100%";
487
+ width: number;
488
488
  height?: number | "auto";
489
489
  label?: string;
490
490
  icon?: iconTypes | ReactNode;
@@ -498,13 +498,8 @@ type Permissions = {
498
498
  insert: boolean;
499
499
  } & Record<string, boolean>;
500
500
  type Plugin<UserConfig extends Config = Config> = {
501
- name?: string;
502
- label?: string;
503
- icon?: ReactNode;
504
- render?: () => ReactElement;
505
501
  overrides?: Partial<Overrides<UserConfig>>;
506
502
  fieldTransforms?: FieldTransforms<UserConfig>;
507
- mobilePanelHeight?: "toggle" | "min-content";
508
503
  };
509
504
  type Slot<Props extends {
510
505
  [key: string]: DefaultComponentProps;