react-customize-token-input
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0
import type { InputString } from '../types/mix'; | ||
import type { SpecialKeyDownConfig } from '../types/specialKeyDown'; | ||
declare type ParameterType = { | ||
declare type Params = { | ||
specialKeyDownConfig: SpecialKeyDownConfig; | ||
@@ -11,3 +11,3 @@ inputInitValue: InputString; | ||
}; | ||
declare function usePredefinedKeyDownHandlers({ specialKeyDownConfig, inputInitValue, inputValue, onLastTokenDelete, handleInputValueUpdate, handleTokensCreate, }: ParameterType): { | ||
declare function usePredefinedKeyDownHandlers({ specialKeyDownConfig, inputInitValue, inputValue, onLastTokenDelete, handleInputValueUpdate, handleTokensCreate, }: Params): { | ||
handleBackspaceKeyDown: () => void; | ||
@@ -14,0 +14,0 @@ handleTabKeyDown: (keyDownEvent: KeyboardEvent) => void; |
import type { TokenIndex } from '../types/token'; | ||
import type { OnTokenValuesChange } from '../types/interfaces'; | ||
declare type ParameterType<ValueType> = { | ||
declare type Params<ValueType> = { | ||
tokenValues: ValueType[]; | ||
@@ -8,3 +8,3 @@ onTokenValuesChange?: OnTokenValuesChange<ValueType>; | ||
}; | ||
declare function useTokenDelete<ValueType>({ tokenValues, onTokenValuesChange, focusTokenCreator, }: ParameterType<ValueType>): { | ||
declare function useTokenDelete<ValueType>({ tokenValues, onTokenValuesChange, focusTokenCreator, }: Params<ValueType>): { | ||
handleTokenDelete: (targetIndex: TokenIndex) => () => void; | ||
@@ -11,0 +11,0 @@ handleLastTokenDelete: () => void; |
@@ -7,3 +7,3 @@ import type { OnTokenValuesChange } from '../types/interfaces'; | ||
declare type HandleTokenEditEnd<ValueType> = (targetIndex: TokenIndex) => (newTokenValue?: ValueType) => void; | ||
declare type ParameterType<ValueType, ErrorType> = { | ||
declare type Params<ValueType, ErrorType> = { | ||
tokenValues: ValueType[]; | ||
@@ -15,3 +15,3 @@ onTokenValuesChange?: OnTokenValuesChange<ValueType>; | ||
}; | ||
declare function useTokenEdit<ValueType, ErrorType>({ tokenValues, onTokenValuesChange, setTokenActivated, handleTokenInputFocus, handleTokenInputBlur, }: ParameterType<ValueType, ErrorType>): { | ||
declare function useTokenEdit<ValueType, ErrorType>({ tokenValues, onTokenValuesChange, setTokenActivated, handleTokenInputFocus, handleTokenInputBlur, }: Params<ValueType, ErrorType>): { | ||
handleTokenEditStart: HandleTokenEditStart; | ||
@@ -18,0 +18,0 @@ handleTokenEditEnd: HandleTokenEditEnd<ValueType>; |
import type { OnTokenValueValidate } from '../types/interfaces'; | ||
declare type ParameterType<ValueType, ErrorType> = { | ||
declare type Params<ValueType, ErrorType> = { | ||
tokenValues: ValueType[]; | ||
onTokenValueValidate: OnTokenValueValidate<ValueType, ErrorType>; | ||
}; | ||
declare function useTokensUpdate<ValueType, ErrorType>({ tokenValues, onTokenValueValidate, }: ParameterType<ValueType, ErrorType>): { | ||
declare function useTokensUpdate<ValueType, ErrorType>({ tokenValues, onTokenValueValidate, }: Params<ValueType, ErrorType>): { | ||
hasInvalidToken: boolean; | ||
@@ -8,0 +8,0 @@ internalTokenValues: ValueType[]; |
@@ -9,2 +9,2 @@ /*! | ||
/*! react-customize-token-input v2.0.0-beta.1 | (c) 2022 Mark Lin. | MIT | https://github.com/seawind543/react-token-input */ | ||
/*! react-customize-token-input v2.0.0 | (c) 2022 Mark Lin. | MIT | https://github.com/seawind543/react-token-input */ |
{ | ||
"name": "react-customize-token-input", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0", | ||
"description": "A react token (tag) input component. Allow customize data structure and Look & Feel", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
1
172540