@measured/puck-plugin-heading-analyzer 0.14.0-canary.adac562 → 0.14.0-canary.cbdf66d

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -8
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -5,6 +5,11 @@ type ItemSelector = {
5
5
  zone?: string;
6
6
  };
7
7
 
8
+ type FieldOption = {
9
+ label: string;
10
+ value: string | number | boolean;
11
+ };
12
+ type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
8
13
  type BaseField = {
9
14
  label?: string;
10
15
  };
@@ -21,17 +26,11 @@ type TextareaField = BaseField & {
21
26
  };
22
27
  type SelectField = BaseField & {
23
28
  type: "select";
24
- options: {
25
- label: string;
26
- value: string | number | boolean;
27
- }[];
29
+ options: FieldOptions;
28
30
  };
29
31
  type RadioField = BaseField & {
30
32
  type: "radio";
31
- options: {
32
- label: string;
33
- value: string | number | boolean;
34
- }[];
33
+ options: FieldOptions;
35
34
  };
36
35
  type ArrayField<Props extends {
37
36
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.14.0-canary.adac562",
3
+ "version": "0.14.0-canary.cbdf66d",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -18,7 +18,7 @@
18
18
  "dist"
19
19
  ],
20
20
  "devDependencies": {
21
- "@measured/puck": "^0.14.0-canary.adac562",
21
+ "@measured/puck": "^0.14.0-canary.cbdf66d",
22
22
  "@types/react": "^18.2.0",
23
23
  "@types/react-dom": "^18.2.0",
24
24
  "eslint": "^7.32.0",