Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@katachi-forms/vue

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@katachi-forms/vue - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

37

dist/katachi-vue.d.ts
import { AnyZodObject } from 'zod';
import { BaseFormConfiguration } from '@katachi-forms/core';
import { Field } from '@katachi-forms/core';

@@ -18,3 +19,6 @@ import { FieldConfiguration } from '@katachi-forms/core';

isModified: () => boolean;
getErrors: () => string[];
getErrors: (options?: {
limit?: number | undefined;
asString?: boolean | undefined;
} | undefined) => string | string[];
addError: (error: string) => void;

@@ -38,3 +42,7 @@ addErrors: (errors: string[]) => void;

export declare const useKatachiForm: <FormSchema extends AnyZodObject>(schema: FormSchema, configuration?: FormConfiguration<FormSchema> | undefined) => Ref< {
export declare const useKatachiForm: <FormSchema extends AnyZodObject | z.ZodEffects<AnyZodObject, {
[x: string]: any;
}, {
[x: string]: any;
}>>(schema: FormSchema, configuration?: FormConfiguration<FormSchema> | undefined) => Ref< {
getFields: () => { [key in keyof z.TypeOf<FormSchema>]: Field<z.TypeOf<FormSchema>[key]>; };

@@ -44,17 +52,20 @@ getField: (name: string | number | symbol) => { [key_1 in keyof z.TypeOf<FormSchema>]: Field<z.TypeOf<FormSchema>[key_1]>; }[keyof z.TypeOf<FormSchema>];

getSchema: () => FormSchema;
getConfiguration: () => { [key_2 in keyof z.TypeOf<FormSchema>]?: FieldConfiguration<z.TypeOf<FormSchema>[key_2]> | undefined; };
getConfiguration: () => BaseFormConfiguration<FormSchema>;
getValue: (name: string | keyof z.TypeOf<FormSchema>) => z.TypeOf<FormSchema>[keyof z.TypeOf<FormSchema>] | null;
getValues: () => z.TypeOf<FormSchema>;
setValue: (name: string | keyof z.TypeOf<FormSchema>, value: z.TypeOf<FormSchema>[keyof z.TypeOf<FormSchema>]) => void;
setInitialValues: (values: Partial<{ [key_3 in string | keyof z.TypeOf<FormSchema>]: z.TypeOf<FormSchema>[key_3]; }>, overrideCurrentValues?: boolean | undefined) => void;
setValues: (values: Partial<{ [key_4 in string | keyof z.TypeOf<FormSchema>]: z.TypeOf<FormSchema>[key_4]; }>) => void;
getErrors: (name?: string | keyof z.TypeOf<FormSchema> | undefined) => string[] | { [key_5 in string | keyof z.TypeOf<FormSchema>]?: string[] | undefined; };
addErrors: (errors: Partial<{ [key_6 in string | keyof z.TypeOf<FormSchema>]: string | string[]; }>) => void;
setErrors: (errors: Partial<{ [key_7 in string | keyof z.TypeOf<FormSchema>]: string | string[]; }>) => void;
setInitialValues: (values: Partial<{ [key_2 in string | keyof z.TypeOf<FormSchema>]: z.TypeOf<FormSchema>[key_2]; }>, overrideCurrentValues?: boolean | undefined) => void;
setValues: (values: Partial<{ [key_3 in string | keyof z.TypeOf<FormSchema>]: z.TypeOf<FormSchema>[key_3]; }>) => void;
getErrors: (name?: string | keyof z.TypeOf<FormSchema> | undefined, options?: {
limit?: number | undefined;
asString?: boolean | undefined;
} | undefined) => string | string[] | { [key_4 in string | keyof z.TypeOf<FormSchema>]?: string[] | undefined; };
addErrors: (errors: Partial<{ [key_5 in string | keyof z.TypeOf<FormSchema>]: string | string[]; }>) => void;
setErrors: (errors: Partial<{ [key_6 in string | keyof z.TypeOf<FormSchema>]: string | string[]; }>) => void;
clearErrors: (mode?: "include" | "exclude" | undefined, applyToFields?: (string | keyof z.TypeOf<FormSchema>)[] | undefined) => void;
hasError: () => boolean;
getWarnings: (name?: string | keyof z.TypeOf<FormSchema> | undefined) => string[] | { [key_8 in keyof z.TypeOf<FormSchema>]?: string[] | undefined; };
addWarnings: (warnings: Partial<{ [key_9 in string | keyof z.TypeOf<FormSchema>]: string | string[]; }>) => void;
setWarnings: (warnings: Partial<{ [key_10 in string | keyof z.TypeOf<FormSchema>]: string | string[]; }>) => void;
hasWarning: () => boolean;
hasError: (name?: string | keyof z.TypeOf<FormSchema> | undefined) => boolean;
getWarnings: (name?: string | keyof z.TypeOf<FormSchema> | undefined) => string[] | { [key_7 in keyof z.TypeOf<FormSchema>]?: string[] | undefined; };
addWarnings: (warnings: Partial<{ [key_8 in string | keyof z.TypeOf<FormSchema>]: string | string[]; }>) => void;
setWarnings: (warnings: Partial<{ [key_9 in string | keyof z.TypeOf<FormSchema>]: string | string[]; }>) => void;
hasWarning: (name?: string | keyof z.TypeOf<FormSchema> | undefined) => boolean;
isModified: () => boolean;

@@ -61,0 +72,0 @@ validate: () => boolean;

{
"name": "@katachi-forms/vue",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",

@@ -20,3 +20,3 @@ "files": [

"dependencies": {
"@katachi-forms/core": "^0.0.2"
"@katachi-forms/core": "^0.0.3"
},

@@ -23,0 +23,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc