tsv2-library 0.3.50 → 0.3.51

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.
@@ -14,6 +14,7 @@ interface TSFormContext<T> {
14
14
  handleSubmit: FormContext['handleSubmit'];
15
15
  setValues: FormContext['setValues'];
16
16
  setFieldValue: FormContext['setFieldValue'];
17
+ errors: FormContext['errors'];
17
18
  }
18
19
  declare const useForm: <T>() => TSFormContext<T>;
19
20
  declare const useField: <T>(path: MaybeRefOrGetter<string>, rules?: MaybeRef<RuleExpression<T>>, opts?: Partial<FieldOptions<T>> | undefined) => FieldContext<T>;
@@ -19,6 +19,10 @@ export type ImageCompressorPayload = {
19
19
  };
20
20
 
21
21
  export interface ImageCompressorProps {
22
+ /**
23
+ * @default normal
24
+ */
25
+ type?: 'inline-table' | 'normal';
22
26
  /**
23
27
  * Specify the input type, wether single ro multiple image input.
24
28
  *
@@ -124,6 +128,10 @@ export type ImageCompressorEmits = {
124
128
  */
125
129
  'apply': [value: ImageCompressorPayload];
126
130
  'update:defaultImage': [index?: number];
131
+ /**
132
+ * Emits on every changes in `field.value`
133
+ */
134
+ 'update:fieldValue': [value?: File[]];
127
135
  /**
128
136
  * On delete button clicked.
129
137
  *