New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mstform

Package Overview
Dependencies
Maintainers
2
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mstform - npm Package Compare versions

Comparing version 1.30.0 to 1.31.0

6

dist/src/accessor-base.d.ts
import { ExternalMessages } from "./validationMessages";
import { FormState } from "./state";
import { AnyFormState } from "./state";
import { ValidateOptions } from "./validate-options";

@@ -14,5 +14,6 @@ import { IAccessor, IParentAccessor } from "./interfaces";

protected _isRequired: boolean;
private _isEnabled;
externalErrors: ExternalMessages;
externalWarnings: ExternalMessages;
abstract get state(): FormState<any, any, any>;
abstract get state(): AnyFormState;
abstract get path(): string;

@@ -35,2 +36,3 @@ abstract get addMode(): boolean;

get hidden(): boolean;
get enabled(): boolean;
get required(): boolean;

@@ -37,0 +39,0 @@ get inputAllowed(): boolean;

@@ -17,2 +17,3 @@ import { IAnyModelType, Instance } from "mobx-state-tree";

required?: boolean;
enabled?: boolean;
};

@@ -19,0 +20,0 @@ declare type ValidationInfo = {

import { IReactionDisposer } from "mobx";
import { Field, ProcessOptions } from "./form";
import { FormState } from "./state";
import { AnyFormState } from "./state";
import { ValidateOptions } from "./validate-options";
import { IReferences } from "./references";
import { IAccessor, IFormAccessor } from "./interfaces";
import { IAccessor, IAnyFormAccessor } from "./interfaces";
import { AccessorBase } from "./accessor-base";
export declare class FieldAccessor<R, V> extends AccessorBase implements IAccessor {
state: FormState<any, any, any>;
state: AnyFormState;
field: Field<R, V>;

@@ -16,3 +16,3 @@ name: string;

references: IReferences<any, any, any>;
constructor(state: FormState<any, any, any>, field: Field<R, V>, parent: IFormAccessor<any, any, any>, name: string);
constructor(state: AnyFormState, field: Field<R, V>, parent: IAnyFormAccessor, name: string);
get path(): string;

@@ -19,0 +19,0 @@ dispose(): void;

import { FormDefinition, Group } from "./form";
import { FormState } from "./state";
import { AnyFormState } from "./state";
import { FormAccessorBase } from "./form-accessor-base";
export declare class GroupAccessor<D extends FormDefinition<any>> {
state: FormState<any, any, any>;
state: AnyFormState;
definition: D;
parent: FormAccessorBase<any, any, any>;
group: Group<D>;
constructor(state: FormState<any, any, any>, definition: D, parent: FormAccessorBase<any, any, any>, group: Group<D>);
constructor(state: AnyFormState, definition: D, parent: FormAccessorBase<any, any, any>, group: Group<D>);
get isValid(): boolean;

@@ -11,0 +11,0 @@ get isWarningFree(): boolean;

@@ -7,3 +7,3 @@ import { Instance, IAnyModelType } from "mobx-state-tree";

import { AccessUpdate } from "./backend";
import { FormState } from "./state";
import { AnyFormState } from "./state";
export interface IAccessor {

@@ -26,3 +26,3 @@ path: string;

parent: IParentAccessor;
state: FormState<any, any, any>;
state: AnyFormState;
validate(options?: ValidateOptions): boolean;

@@ -65,1 +65,2 @@ isValid: boolean;

export declare type IAnySubFormAccessor = ISubFormAccessor<any, any, any>;
export declare type IAnyFormAccessor = IFormAccessor<any, any, any>;
import { IAnyModelType, Instance } from "mobx-state-tree";
import { FormDefinition, RepeatingForm, GroupDefinition } from "./form";
import { FormState } from "./state";
import { AnyFormState } from "./state";
import { AccessorBase } from "./accessor-base";
import { ValidateOptions } from "./validate-options";
import { ExternalMessages } from "./validationMessages";
import { IAccessor, IRepeatingFormIndexedAccessor, IRepeatingFormAccessor, IFormAccessor } from "./interfaces";
import { IAccessor, IRepeatingFormIndexedAccessor, IRepeatingFormAccessor, IAnyFormAccessor } from "./interfaces";
export declare class RepeatingFormAccessor<D extends FormDefinition<M>, G extends GroupDefinition<D>, M extends IAnyModelType> extends AccessorBase implements IRepeatingFormAccessor<D, G, M> {
state: FormState<any, any, any>;
state: AnyFormState;
repeatingForm: RepeatingForm<D, G>;
parent: IFormAccessor<any, any, any>;
parent: IAnyFormAccessor;
name: string;

@@ -16,3 +16,3 @@ repeatingFormIndexedAccessors: Map<number, IRepeatingFormIndexedAccessor<D, G, M>>;

externalWarnings: ExternalMessages;
constructor(state: FormState<any, any, any>, repeatingForm: RepeatingForm<D, G>, parent: IFormAccessor<any, any, any>, name: string);
constructor(state: AnyFormState, repeatingForm: RepeatingForm<D, G>, parent: IAnyFormAccessor, name: string);
get path(): string;

@@ -19,0 +19,0 @@ get value(): Instance<M>[];

import { IAnyModelType, Instance } from "mobx-state-tree";
import { FormDefinition, GroupDefinition } from "./form";
import { FormState } from "./state";
import { AnyFormState } from "./state";
import { FormAccessorBase } from "./form-accessor-base";
import { IRepeatingFormIndexedAccessor, IRepeatingFormAccessor } from "./interfaces";
export declare class RepeatingFormIndexedAccessor<D extends FormDefinition<M>, G extends GroupDefinition<D>, M extends IAnyModelType> extends FormAccessorBase<D, G, M> implements IRepeatingFormIndexedAccessor<D, G, M> {
state: FormState<any, any, any>;
state: AnyFormState;
parent: IRepeatingFormAccessor<D, G, M>;
index: number;
constructor(state: FormState<any, any, any>, definition: D, groupDefinition: G | undefined, parent: IRepeatingFormAccessor<D, G, M>, index: number);
constructor(state: AnyFormState, definition: D, groupDefinition: G | undefined, parent: IRepeatingFormAccessor<D, G, M>, index: number);
clear(): void;

@@ -12,0 +12,0 @@ get path(): string;

@@ -10,3 +10,3 @@ import { IAnyModelType, Instance } from "mobx-state-tree";

import { Validation } from "./validationMessages";
import { IAccessor, IFormAccessor, IRepeatingFormAccessor, ISubFormAccessor } from "./interfaces";
import { IAccessor, IFormAccessor, IAnyFormAccessor, IRepeatingFormAccessor, ISubFormAccessor } from "./interfaces";
export interface AccessorAllows {

@@ -48,2 +48,3 @@ (accessor: IAccessor): boolean;

isRequired?: AccessorAllows;
isEnabled?: AccessorAllows;
getError?: ErrorOrWarning;

@@ -73,2 +74,3 @@ getWarning?: ErrorOrWarning;

isRequiredFunc: AccessorAllows;
isEnabledFunc: AccessorAllows;
getErrorFunc: ErrorOrWarning;

@@ -86,8 +88,8 @@ getWarningFunc: ErrorOrWarning;

_onPatchDisposer: IDisposer;
constructor(form: Form<M, D, G>, node: Instance<M>, { addMode, isDisabled, isHidden, isReadOnly, isRequired, getError, getWarning, backend, extraValidation, validation, focus, blur, update, context, converterOptions, requiredError, addModeDefaults, }?: FormStateOptions<M>);
constructor(form: Form<M, D, G>, node: Instance<M>, { addMode, isDisabled, isHidden, isReadOnly, isRequired, isEnabled, getError, getWarning, backend, extraValidation, validation, focus, blur, update, context, converterOptions, requiredError, addModeDefaults, }?: FormStateOptions<M>);
get state(): this;
get context(): any;
dispose(): void;
createRepeatingFormAccessor(repeatingForm: RepeatingForm<any, any>, parent: IFormAccessor<any, any, any>, name: string): IRepeatingFormAccessor<any, any, any>;
createSubFormAccessor(definition: any, groupDefinition: any, parent: IFormAccessor<any, any, any>, name: string): ISubFormAccessor<any, any, any>;
createRepeatingFormAccessor(repeatingForm: RepeatingForm<any, any>, parent: IAnyFormAccessor, name: string): IRepeatingFormAccessor<any, any, any>;
createSubFormAccessor(definition: any, groupDefinition: any, parent: IAnyFormAccessor, name: string): ISubFormAccessor<any, any, any>;
get path(): string;

@@ -114,2 +116,3 @@ get value(): Instance<M>;

}
export declare type AnyFormState = FormState<any, any, any>;
export {};
import { IAnyModelType, Instance } from "mobx-state-tree";
import { FormDefinition, GroupDefinition } from "./form";
import { FormState } from "./state";
import { AnyFormState } from "./state";
import { FormAccessorBase } from "./form-accessor-base";
import { ISubFormAccessor, IFormAccessor } from "./interfaces";
import { ISubFormAccessor, IAnyFormAccessor } from "./interfaces";
export declare class SubFormAccessor<D extends FormDefinition<M>, G extends GroupDefinition<D>, M extends IAnyModelType> extends FormAccessorBase<D, G, M> implements ISubFormAccessor<D, G, M> {
state: FormState<any, any, any>;
parent: IFormAccessor<any, any, any>;
state: AnyFormState;
parent: IAnyFormAccessor;
name: string;
constructor(state: FormState<any, any, any>, definition: D, groupDefinition: G | undefined, parent: IFormAccessor<any, any, any>, name: string);
constructor(state: AnyFormState, definition: D, groupDefinition: G | undefined, parent: IAnyFormAccessor, name: string);
get path(): string;

@@ -12,0 +12,0 @@ get value(): Instance<M>;

{
"name": "mstform",
"version": "1.30.0",
"version": "1.31.0",
"description": "mobx-state-tree powered forms",

@@ -5,0 +5,0 @@ "main": "dist/mstform.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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