rc-field-form
Advanced tools
Comparing version 1.32.2 to 1.33.0
@@ -1,3 +0,2 @@ | ||
import type { FormInstance } from '.'; | ||
import type { NamePath, Store, WatchOptions } from './interface'; | ||
import type { FormInstance, NamePath, Store, WatchOptions } from './interface'; | ||
type ReturnPromise<T> = T extends Promise<infer ValueType> ? ValueType : never; | ||
@@ -4,0 +3,0 @@ type GetGeneric<TForm extends FormInstance> = ReturnPromise<ReturnType<TForm['validateFields']>>; |
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
import { FieldContext } from '.'; | ||
import warning from "rc-util/es/warning"; | ||
import { HOOK_MARK } from './FieldContext'; | ||
import FieldContext, { HOOK_MARK } from './FieldContext'; | ||
import { useState, useContext, useEffect, useRef, useMemo } from 'react'; | ||
@@ -6,0 +5,0 @@ import { getNamePath, getValue } from './utils/valueUtil'; |
@@ -1,3 +0,2 @@ | ||
import type { FormInstance } from '.'; | ||
import type { NamePath, Store, WatchOptions } from './interface'; | ||
import type { FormInstance, NamePath, Store, WatchOptions } from './interface'; | ||
type ReturnPromise<T> = T extends Promise<infer ValueType> ? ValueType : never; | ||
@@ -4,0 +3,0 @@ type GetGeneric<TForm extends FormInstance> = ReturnPromise<ReturnType<TForm['validateFields']>>; |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; | ||
@@ -10,5 +11,4 @@ Object.defineProperty(exports, "__esModule", { | ||
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); | ||
var _ = require("."); | ||
var _warning = _interopRequireDefault(require("rc-util/lib/warning")); | ||
var _FieldContext = require("./FieldContext"); | ||
var _FieldContext = _interopRequireWildcard(require("./FieldContext")); | ||
var _react = require("react"); | ||
@@ -50,3 +50,3 @@ var _valueUtil = require("./utils/valueUtil"); | ||
valueStrRef.current = valueStr; | ||
var fieldContext = (0, _react.useContext)(_.FieldContext); | ||
var fieldContext = (0, _react.useContext)(_FieldContext.default); | ||
var formInstance = form || fieldContext; | ||
@@ -53,0 +53,0 @@ var isValidForm = formInstance && formInstance._init; |
{ | ||
"name": "rc-field-form", | ||
"version": "1.32.2", | ||
"version": "1.33.0", | ||
"description": "React Form Component", | ||
@@ -5,0 +5,0 @@ "typings": "es/index.d.ts", |
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
257477
6218