@measured/puck-plugin-heading-analyzer 0.14.0-canary.5bb1708 → 0.14.0-canary.70cf177
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +17 -1
- package/dist/index.js +3954 -1545
- package/package.json +2 -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;
|
@@ -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>> = {
|