@measured/puck-plugin-heading-analyzer 0.14.0-canary.712fb8e → 0.14.0-canary.83be956
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +18 -2
- package/dist/index.js +652 -75662
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
@@ -1,10 +1,18 @@
|
|
1
|
-
import {
|
1
|
+
import { ReactNode, ReactElement } from 'react';
|
2
2
|
|
3
3
|
type ItemSelector = {
|
4
4
|
index: number;
|
5
5
|
zone?: string;
|
6
6
|
};
|
7
7
|
|
8
|
+
type iconTypes = "Smartphone" | "Monitor" | "Tablet";
|
9
|
+
type Viewport = {
|
10
|
+
width: number;
|
11
|
+
height?: number | "auto";
|
12
|
+
label?: string;
|
13
|
+
icon?: iconTypes | ReactNode;
|
14
|
+
};
|
15
|
+
|
8
16
|
type FieldOption = {
|
9
17
|
label: string;
|
10
18
|
value: string | number | boolean;
|
@@ -85,7 +93,7 @@ type ExternalField<Props extends {
|
|
85
93
|
}) => Promise<any[] | null>;
|
86
94
|
mapProp?: (value: any) => Props;
|
87
95
|
mapRow?: (value: any) => Record<string, string | number>;
|
88
|
-
getItemSummary
|
96
|
+
getItemSummary?: (item: Props, index?: number) => string;
|
89
97
|
showSearch?: boolean;
|
90
98
|
initialQuery?: string;
|
91
99
|
filterFields?: Record<string, Field>;
|
@@ -130,6 +138,14 @@ type UiState = {
|
|
130
138
|
expanded?: boolean;
|
131
139
|
}>;
|
132
140
|
isDragging: boolean;
|
141
|
+
viewports: {
|
142
|
+
current: {
|
143
|
+
width: number;
|
144
|
+
height: number | "auto";
|
145
|
+
};
|
146
|
+
controlsVisible: boolean;
|
147
|
+
options: Viewport[];
|
148
|
+
};
|
133
149
|
};
|
134
150
|
|
135
151
|
type InputProps<F = Field<any>> = {
|