Socket
Socket
Sign inDemoInstall

react-customize-token-input

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-customize-token-input - npm Package Compare versions

Comparing version 2.0.0-beta.1 to 2.0.0

4

lib/hooks/usePredefinedKeyDownHandlers.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc