@felte/core
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -1,2 +0,2 @@ | ||
import { Readable } from 'svelte/store'; | ||
import { Readable } from '@felte/common'; | ||
type Store<Data> = Readable<Data> | { | ||
@@ -3,0 +3,0 @@ subscribe(subscriber: (value: Data) => void): { |
@@ -1,3 +0,2 @@ | ||
import { Readable } from "svelte/store"; | ||
import { FieldValue, Form, FormConfig, FormConfigWithTransformFn, FormConfigWithoutTransformFn, StoreFactory, Obj, UnknownStores, Stores, KnownStores, Helpers, UnknownHelpers, KnownHelpers, SubmitContext, CreateSubmitHandlerConfig, AssignableErrors } from "@felte/common"; | ||
import { Readable, FieldValue, Form, FormConfig, FormConfigWithTransformFn, FormConfigWithoutTransformFn, StoreFactory, Obj, UnknownStores, Stores, KnownStores, Helpers, UnknownHelpers, KnownHelpers, SubmitContext, CreateSubmitHandlerConfig, AssignableErrors } from "@felte/common"; | ||
type Store<Data> = Readable<Data> | { | ||
@@ -4,0 +3,0 @@ subscribe(subscriber: (value: Data) => void): { |
@@ -1,5 +0,4 @@ | ||
import { StoreFactory, Obj, Keyed, FormConfig, Errors, Touched, ValidationFunction, PartialWritableErrors } from '@felte/common'; | ||
import { Writable, Readable } from 'svelte/store'; | ||
declare function errorFilterer(touchValue?: unknown, errValue?: unknown): any[] | import("@felte/common/dist/types/types-27598f9f").DeepSetResult<Record<string, unknown>, null> | null | undefined; | ||
declare function warningFilterer(touchValue?: unknown, errValue?: unknown): any[] | import("@felte/common/dist/types/types-27598f9f").DeepSetResult<Record<string, unknown>, null> | null | undefined; | ||
import { StoreFactory, Obj, Keyed, FormConfig, Errors, Touched, ValidationFunction, PartialWritableErrors, Writable, Readable } from '@felte/common'; | ||
declare function errorFilterer(touchValue?: unknown, errValue?: unknown): any[] | import("@felte/common/dist/types/types-1a02b559").DeepSetResult<Record<string, unknown>, null> | null | undefined; | ||
declare function warningFilterer(touchValue?: unknown, errValue?: unknown): any[] | import("@felte/common/dist/types/types-1a02b559").DeepSetResult<Record<string, unknown>, null> | null | undefined; | ||
type Readables = Readable<any> | [Readable<any>, ...Array<Readable<any>>] | Array<Readable<any>>; | ||
@@ -21,3 +20,6 @@ type ReadableValues<T> = T extends Readable<infer U> ? [U] : { | ||
warnings: PartialWritableErrors<Data> & StoreExt; | ||
touched: Writable<Touched<Data>> & StoreExt; | ||
touched: Readable<Touched<Data>> & { | ||
set(this: void, value: Touched<Data>): void; | ||
update(this: void, updater: import("@felte/common/dist/types/types-1a02b559").Updater<Touched<Data>>): void; | ||
} & StoreExt; | ||
isValid: Readable<boolean> & { | ||
@@ -27,4 +29,10 @@ update?: ((updater: (v: boolean) => boolean) => void) | undefined; | ||
} & StoreExt; | ||
isSubmitting: Writable<boolean> & StoreExt; | ||
isDirty: Writable<boolean> & StoreExt; | ||
isSubmitting: Readable<boolean> & { | ||
set(this: void, value: boolean): void; | ||
update(this: void, updater: import("@felte/common/dist/types/types-1a02b559").Updater<boolean>): void; | ||
} & StoreExt; | ||
isDirty: Readable<boolean> & { | ||
set(this: void, value: boolean): void; | ||
update(this: void, updater: import("@felte/common/dist/types/types-1a02b559").Updater<boolean>): void; | ||
} & StoreExt; | ||
isValidating: Readable<boolean> & { | ||
@@ -34,3 +42,6 @@ update?: ((updater: (v: boolean) => boolean) => void) | undefined; | ||
} & StoreExt; | ||
interacted: Writable<string | null> & StoreExt; | ||
interacted: Readable<string | null> & { | ||
set(this: void, value: string | null): void; | ||
update(this: void, updater: import("@felte/common/dist/types/types-1a02b559").Updater<string | null>): void; | ||
} & StoreExt; | ||
validateErrors: (data: Data | Keyed<Data>, altValidate?: ValidationFunction<Data> | ValidationFunction<Data>[] | undefined) => Promise<Errors<Data> | undefined>; | ||
@@ -37,0 +48,0 @@ validateWarnings: (data: Data | Keyed<Data>, altWarn?: ValidationFunction<Data> | ValidationFunction<Data>[] | undefined) => Promise<Errors<Data> | undefined>; |
{ | ||
"name": "@felte/core", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Core utility for Felte's integration with front-end frameworks", | ||
@@ -30,3 +30,3 @@ "main": "dist/cjs/index.cjs", | ||
"dependencies": { | ||
"@felte/common": "1.1.2" | ||
"@felte/common": "1.1.3" | ||
}, | ||
@@ -33,0 +33,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
348332
2837
+ Added@felte/common@1.1.3(transitive)
- Removed@felte/common@1.1.2(transitive)
Updated@felte/common@1.1.3