@vicinae/api 0.14.0 → 0.14.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.
@@ -21,10 +21,12 @@ const TextField = ({ ref, ...props }) => {
21
21
  (0, use_imperative_form_handle_1.useImperativeFormHandle)(ref);
22
22
  return ((0, jsx_runtime_1.jsx)("text-field", { ...wrapFormItemProps(props) }));
23
23
  };
24
- const PasswordField = ({ ...props }) => {
24
+ const PasswordField = ({ ref, ...props }) => {
25
+ (0, use_imperative_form_handle_1.useImperativeFormHandle)(ref);
25
26
  return (0, jsx_runtime_1.jsx)("password-field", { ...props });
26
27
  };
27
- const DatePicker = ({ ...props }) => {
28
+ const DatePicker = ({ ref, ...props }) => {
29
+ (0, use_imperative_form_handle_1.useImperativeFormHandle)(ref);
28
30
  return (0, jsx_runtime_1.jsx)("date-picker-field", { ...props });
29
31
  };
30
32
  const Checkbox = ({ ref, ...props }) => {
@@ -33,8 +35,9 @@ const Checkbox = ({ ref, ...props }) => {
33
35
  };
34
36
  //FIXME: we probably need to reuse the existing dropdown in
35
37
  // a smarter way.
36
- const DropdownRoot = ({ children, ...props }) => {
38
+ const DropdownRoot = ({ ref, children, ...props }) => {
37
39
  // FIXME: testing stuff, we need to generalize this to all form items
40
+ (0, use_imperative_form_handle_1.useImperativeFormHandle)(ref);
38
41
  return ((0, jsx_runtime_1.jsx)("dropdown-field", { ...wrapFormItemProps(props), children: children }));
39
42
  };
40
43
  const Dropdown = Object.assign(DropdownRoot, {
@@ -50,10 +53,12 @@ const TagPickerItem = ({ icon, ...props }) => {
50
53
  const TagPicker = Object.assign(TagPickerRoot, {
51
54
  Item: TagPickerItem
52
55
  });
53
- const TextArea = (props) => {
56
+ const TextArea = ({ ref, ...props }) => {
57
+ (0, use_imperative_form_handle_1.useImperativeFormHandle)(ref);
54
58
  return ((0, jsx_runtime_1.jsx)("text-area-field", { ...wrapFormItemProps(props) }));
55
59
  };
56
- const FilePicker = (props) => {
60
+ const FilePicker = ({ ref, ...props }) => {
61
+ (0, use_imperative_form_handle_1.useImperativeFormHandle)(ref);
57
62
  return ((0, jsx_runtime_1.jsx)("file-picker-field", { ...wrapFormItemProps(props) }));
58
63
  };
59
64
  const Description = (props) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vicinae/api",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "TypeScript SDK to build Vicinae extensions",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",