Comparing version 4.0.0-alpha to 4.0.1-alpha
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
import { FormChangePayload, FormContextType, FormSubmitPayload, FormValues, InitialState } from './types'; | ||
@@ -2,0 +3,0 @@ export declare type Child = JSX.Element | string | null | undefined; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useForm = exports.Form = void 0; | ||
const react_1 = require("react"); | ||
const react_1 = __importStar(require("react")); | ||
const FormContext = (0, react_1.createContext)({ | ||
@@ -155,2 +178,1 @@ initialValues: {}, | ||
exports.default = Form; | ||
//# sourceMappingURL=../src/dist/Form.js.map |
@@ -16,5 +16,8 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useField = exports.Form = exports.useForm = void 0; | ||
const Form_1 = require("./Form"); | ||
const Form_1 = __importDefault(require("./Form")); | ||
var Form_2 = require("./Form"); | ||
@@ -24,5 +27,4 @@ Object.defineProperty(exports, "useForm", { enumerable: true, get: function () { return Form_2.useForm; } }); | ||
var useField_1 = require("./useField"); | ||
Object.defineProperty(exports, "useField", { enumerable: true, get: function () { return useField_1.default; } }); | ||
Object.defineProperty(exports, "useField", { enumerable: true, get: function () { return __importDefault(useField_1).default; } }); | ||
__exportStar(require("./types"), exports); | ||
exports.default = Form_1.default; | ||
//# sourceMappingURL=../src/dist/index.js.map |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
export declare type GenericObject = Record<string, any>; | ||
@@ -2,0 +3,0 @@ export declare type FieldValue = string | boolean | number | GenericObject | Date | null | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=../src/dist/types.js.map |
@@ -28,3 +28,3 @@ "use strict"; | ||
const lastDependantUpdated = (0, react_1.useMemo)(() => { | ||
if ((dependsOn === null || dependsOn === void 0 ? void 0 : dependsOn.indexOf(lastUpdate.fieldName || '')) > -1) { | ||
if ((dependsOn === null || dependsOn === void 0 ? void 0 : dependsOn.indexOf((lastUpdate === null || lastUpdate === void 0 ? void 0 : lastUpdate.fieldName) || '')) || -1 > -1) { | ||
return Date.now(); | ||
@@ -102,2 +102,1 @@ } | ||
exports.default = useField; | ||
//# sourceMappingURL=../src/dist/useField.js.map |
@@ -19,2 +19,1 @@ "use strict"; | ||
exports.EMAIL_VALIDATION = EMAIL_VALIDATION; | ||
//# sourceMappingURL=../src/dist/validations.js.map |
{ | ||
"name": "formact", | ||
"version": "4.0.0-alpha", | ||
"version": "4.0.1-alpha", | ||
"description": "Context for React form components with validation", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28282
449
0