@felte/core
Advanced tools
Comparing version 1.3.9 to 1.4.0
@@ -82,5 +82,3 @@ import { getFormDefaultValues, _merge, _cloneDeep, debounce, _defaultsDeep, isFormControl, _get, getPath, isSelectElement, shouldIgnore, getInputTextOrNumber, _set, isInputElement, _isPlainObject, _unset, isElement, getFormControls } from '@felte/common'; | ||
else { | ||
const selectedOptions = Array.from(target.options) | ||
.filter((opt) => opt.selected) | ||
.map((opt) => opt.value); | ||
const selectedOptions = Array.from(target.selectedOptions).map((opt) => opt.value); | ||
data.update(($data) => { | ||
@@ -87,0 +85,0 @@ return _set($data, getPath(target), selectedOptions); |
@@ -30,3 +30,3 @@ import { __rest } from './external/.pnpm/@rollup_plugin-typescript@10.0.1_rollup@3.25.1_tslib@2.5.3_typescript@4.9.5/external/tslib/tslib.es6.js'; | ||
if (_isPlainObject(prop)) | ||
return deepSetKey(prop); | ||
return deepRemoveKey(prop); | ||
if (Array.isArray(prop)) { | ||
@@ -38,3 +38,3 @@ if (prop.length === 0 || prop.every((p) => typeof p === 'string')) | ||
return p; | ||
const _a = deepSetKey(p), field = __rest(_a, ["key"]); | ||
const _a = deepRemoveKey(p), field = __rest(_a, ["key"]); | ||
return field; | ||
@@ -41,0 +41,0 @@ }); |
@@ -63,3 +63,3 @@ import { _get, _set, _isPlainObject, deepSet, createId, setForm, _cloneDeep, _merge, deepSome, isFormControl, _update, _unset } from '@felte/common'; | ||
let initialValues = deepSetKey(((_a = config.initialValues) !== null && _a !== void 0 ? _a : {})); | ||
const { data, touched, errors, warnings, isDirty, isSubmitting, interacted, } = stores; | ||
const { data, touched, errors, warnings, isDirty, isSubmitting, interacted } = stores; | ||
const setData = createSetHelper(data.update); | ||
@@ -170,3 +170,3 @@ const setTouched = createSetHelper(touched.update); | ||
var _a, _b, _c, _d, _e, _f, _g; | ||
const { createErrorEvent, createSubmitEvent, createSuccessEvent, } = createEventConstructors(); | ||
const { createErrorEvent, createSubmitEvent, createSuccessEvent } = createEventConstructors(); | ||
const submitEvent = createSubmitEvent(); | ||
@@ -207,2 +207,3 @@ formNode === null || formNode === void 0 ? void 0 : formNode.dispatchEvent(submitEvent); | ||
const context = { | ||
event, | ||
setFields, | ||
@@ -209,0 +210,0 @@ setData, |
{ | ||
"name": "@felte/core", | ||
"version": "1.3.9", | ||
"version": "1.4.0", | ||
"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.6" | ||
"@felte/common": "1.1.7" | ||
}, | ||
@@ -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
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
399906
2943
+ Added@felte/common@1.1.7(transitive)
- Removed@felte/common@1.1.6(transitive)
Updated@felte/common@1.1.7