@measured/puck-plugin-heading-analyzer 0.14.0-canary.712fb8e → 0.14.0-canary.924c85a

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +17 -1
  2. package/dist/index.js +3972 -1545
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,10 +1,18 @@
1
- import { ReactElement, ReactNode } from 'react';
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>> = {