@measured/puck-plugin-heading-analyzer 0.14.0-canary.3df6d96 → 0.14.0-canary.4c77ac5
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.ts +20 -2
- package/dist/index.js +3828 -1453
- 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;
|
@@ -43,6 +51,8 @@ type ArrayField<Props extends {
|
|
43
51
|
};
|
44
52
|
defaultItemProps?: Props[0];
|
45
53
|
getItemSummary?: (item: Props[0], index?: number) => string;
|
54
|
+
max?: number;
|
55
|
+
min?: number;
|
46
56
|
};
|
47
57
|
type ObjectField<Props extends {
|
48
58
|
[key: string]: any;
|
@@ -51,7 +61,7 @@ type ObjectField<Props extends {
|
|
51
61
|
}> = BaseField & {
|
52
62
|
type: "object";
|
53
63
|
objectFields: {
|
54
|
-
[SubPropName in keyof Props
|
64
|
+
[SubPropName in keyof Props]: Field<Props[SubPropName]>;
|
55
65
|
};
|
56
66
|
};
|
57
67
|
type Adaptor<AdaptorParams = {}, TableShape extends Record<string, any> = {}, PropShape = TableShape> = {
|
@@ -128,6 +138,14 @@ type UiState = {
|
|
128
138
|
expanded?: boolean;
|
129
139
|
}>;
|
130
140
|
isDragging: boolean;
|
141
|
+
viewports: {
|
142
|
+
current: {
|
143
|
+
width: number;
|
144
|
+
height: number | "auto";
|
145
|
+
};
|
146
|
+
controlsVisible: boolean;
|
147
|
+
options: Viewport[];
|
148
|
+
};
|
131
149
|
};
|
132
150
|
|
133
151
|
type InputProps<F = Field<any>> = {
|