roamjs-components 0.68.0 → 0.68.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "roamjs-components",
3
3
  "description": "Description for roamjs-components",
4
- "version": "0.68.0",
4
+ "version": "0.68.1",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
@@ -22,22 +22,22 @@ declare type RunReturn = {
22
22
  };
23
23
  declare type ButtonAction = {
24
24
  type: "button";
25
- onClick: (e: MouseEvent) => void;
25
+ onClick?: (e: MouseEvent) => void;
26
26
  content: string;
27
27
  };
28
28
  declare type SwitchAction = {
29
29
  type: "switch";
30
- onChange: (e: ChangeEvent) => void;
30
+ onChange?: (e: ChangeEvent) => void;
31
31
  };
32
32
  declare type InputAction = {
33
33
  type: "input";
34
34
  placeholder: string;
35
- onChange: (e: ChangeEvent) => void;
35
+ onChange?: (e: ChangeEvent) => void;
36
36
  };
37
37
  declare type SelectAction = {
38
38
  type: "select";
39
39
  items: string[];
40
- onChange: (e: ChangeEvent) => void;
40
+ onChange?: (e: ChangeEvent) => void;
41
41
  };
42
42
  declare type CustomAction = {
43
43
  type: "reactComponent";