Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-customize-token-input

Package Overview
Dependencies
Maintainers
1
Versions
32
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.6.0-beta.0 to 2.6.0

9

lib/hooks/useTokenCreatorRef.d.ts

@@ -1,10 +0,9 @@

/// <reference types="react" />
import type { TokenCreatorRef } from '../TokenCreator';
declare function useTokenCreatorRef(): {
tokenCreatorRef: import("react").RefObject<TokenCreatorRef>;
focusTokenCreator: (options?: FocusOptions | undefined) => void;
setCreatorValue: (value: string) => void;
getCreatorValue: () => string;
createTokens: (value?: string | undefined) => void;
focusTokenCreator: (options?: FocusOptions) => void;
setCreatorValue: (value: import("../types/mix").InputString) => void;
getCreatorValue: () => import("../types/mix").InputString;
createTokens: (value?: import("../types/mix").InputString) => void;
};
export default useTokenCreatorRef;

@@ -1,2 +0,1 @@

/// <reference types="react" />
export interface TokenInputFocusHandler {

@@ -3,0 +2,0 @@ (e?: React.FocusEvent<HTMLInputElement>): void;

@@ -1,2 +0,1 @@

/// <reference types="react" />
import type { TokenMeta, Index } from '../types/token';

@@ -3,0 +2,0 @@ export interface SetTokenActivated<ET> {

@@ -1,5 +0,5 @@

import TokenInput, { type TokenInputRef, type TokenInputProps } from './TokenInput';
import type { TokenProps } from './Token';
import { JS__TOKEN__DELETE_BUTTON__CLASS_NAME, KEY_DOWN_HANDLER_CONFIG_OPTION, DEFAULT_SEPARATORS } from './constants';
export { TokenInputRef, TokenInputProps, TokenProps, JS__TOKEN__DELETE_BUTTON__CLASS_NAME, DEFAULT_SEPARATORS, KEY_DOWN_HANDLER_CONFIG_OPTION, };
import TokenInput from './TokenInput';
export type { TokenInputRef, TokenInputProps } from './TokenInput';
export type { TokenProps } from './Token';
export { JS__TOKEN__DELETE_BUTTON__CLASS_NAME, KEY_DOWN_HANDLER_CONFIG_OPTION, DEFAULT_SEPARATORS, } from './constants';
export default TokenInput;
/*! For license information please see index.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["token-input"]=t(require("react")):e.TokenInput=t(e.React)}(this,(e=>(()=>{var t={550:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(442)),a=r(n(90));t.default=function(){return o.default.createElement("div",{"data-component-name":"CloseIcon",role:"img",className:a.default["delete-button__close-icon"],"aria-hidden":"true"})}},184:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(442)),a=r(n(942)),u=r(n(550)),l=r(n(90)),i=n(224);t.default=function(e){var t,n=e.onRenderContent;return o.default.createElement("span",{"data-component-name":"DeleteButton",role:"button",className:(0,a.default)(i.JS__TOKEN__DELETE_BUTTON__CLASS_NAME,l.default["token__delete-button"]),"aria-hidden":"true"},null!==(t=null==n?void 0:n())&&void 0!==t?t:o.default.createElement(u.default,null))}},2:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){var o;return o=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==r(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return l(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(442)),f=c(n(942)),d=c(n(132)),p=c(n(504)),y=c(n(184)),b=n(224),v=c(n(90)),h=function(e){e.stopPropagation()};t.default=function(e){var t,n,r=e.readOnly,u=e.tokenValue,l=e.tokenMeta,i=e.onGetClassName,c=e.onGetDisplayLabel,_=e.onRenderDeleteButtonContent,m=e.onGetIsEditable,k=e.onGetEditableValue,O=e.onGetErrorMessage,T=e.onBuildTokenValue,E=e.onEditStart,g=e.onEditEnd,S=e.onDelete,C=(0,s.useRef)(null),A=(t=(0,s.useState)(b.DEFAULT_INPUT_INIT_VALUE),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),I=A[0],j=A[1],w=l.activated,D=l.error,N=(0,s.useMemo)((function(){return m(u,l)}),[m,u,l]),P=(0,s.useCallback)((function(){var e=k(u,l);j(e),E()}),[j,u,l,k,E]);(0,s.useEffect)((function(){var e=C.current;w&&e&&e.getInput().focus()}),[w]);var M=(0,s.useCallback)((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).reset,t=void 0!==e&&e,n=0===I.length;if(t||n)g();else{var r=T(I);g(r)}}),[I,T,g]),V=(0,s.useCallback)((function(e){e.stopPropagation(),r||(e.target.closest(".".concat(v.default.token," .").concat(b.JS__TOKEN__DELETE_BUTTON__CLASS_NAME))?S():N&&P())}),[r,N,S,P]),L=(0,s.useCallback)((function(e){var t=e.target.value;j(t)}),[j]),F=(0,s.useCallback)((function(e){(0,p.default)(e,{onEscape:function(){return M({reset:!0})},onEnter:function(){return M()}})}),[M]),R=(0,s.useCallback)((function(){M()}),[M]),U=(0,s.useMemo)((function(){return(0,f.default)(null==i?void 0:i(u,l),v.default.token,o(o(o(o({},v.default["token--read-only"],r),v.default["token--editable"],N&&!r),v.default["token--active"],w),v.default["token--error"],D&&!w))}),[i,r,N,w,D,u,l]),B=(0,s.useMemo)((function(){var e=O(u,l);return"string"==typeof e?e:void 0}),[O,u,l]);return w?s.default.createElement("div",{"data-component-name":"Token",role:"presentation",className:U,onClick:h},s.default.createElement("div",{className:v.default["autosized-wrapper"]},s.default.createElement(d.default,{ref:C,value:I,onChange:L,onKeyDown:F,onBlur:R}))):s.default.createElement("div",{"data-component-name":"Token",role:"presentation",className:U,onClick:V,title:B},s.default.createElement("div",{className:v.default["token__label-wrapper"]},c(u,l)),!r&&s.default.createElement(y.default,{onRenderContent:_}))}},663:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2));t.default=o.default},62:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=u(n(442)),c=l(n(132)),s=l(n(504)),f=l(n(741)),d=n(224),p=l(n(90)),y=(0,i.forwardRef)((function(e,t){var n,o,a=e.placeholder,u=e.disableCreateOnBlur,l=e.autoFocus,y=e.onFocus,b=e.onBlur,v=e.onKeyDown,h=e.separators,_=e.specialKeyDown,m=e.onInputValueChange,k=e.onPreprocess,O=e.onBuildTokenValue,T=e.onNewTokenValuesAppend,E=e.onLastTokenDelete,g=(0,i.useRef)(null),S=(n=(0,i.useState)(d.DEFAULT_INPUT_INIT_VALUE),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(n,o)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),C=S[0],A=S[1],I=(0,i.useMemo)((function(){return new RegExp(h.join("|"))}),[h]),j=(0,i.useCallback)((function(e){A(e),null==m||m(e,C)}),[m,C,A]),w=(0,i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;if(0!==e.trim().length){var t=e.split(I).filter((function(e){return e.trim().length>0})),n=k(t).map((function(e){return O(e)}));T(n),j(d.DEFAULT_INPUT_INIT_VALUE)}}),[C,I,k,O,T,j]),D=(0,i.useCallback)((function(e){var t=e.target.value;I.test(t)?w(t):j(t)}),[I,w,j]),N=(0,f.default)({specialKeyDownConfig:_,inputInitValue:d.DEFAULT_INPUT_INIT_VALUE,inputValue:C,onLastTokenDelete:E,handleInputValueUpdate:j,handleTokensCreate:w}),P=N.handleBackspaceKeyDown,M=N.handleTabKeyDown,V=N.handleEnterKeyDown,L=N.handleEscapeKeyDown,F=(0,i.useCallback)((function(e){(0,s.default)(e,{onBackspace:P,onTab:M,onEnter:V,onEscape:L}),null==v||v(e)}),[v,P,M,V,L]),R=(0,i.useCallback)((function(e){u||w(C),b(e)}),[u,w,C,b]),U=(0,i.useCallback)((function(e){e.preventDefault();var t=e.clipboardData.getData("text");w(t)}),[w]);return(0,i.useImperativeHandle)(t,(function(){return{focus:function(e){var t;return null===(t=g.current)||void 0===t?void 0:t.getInput().focus(e)},setValue:j,getValue:function(){return C},createTokens:w}}),[j,C,w]),i.default.createElement("div",{className:p.default["autosized-wrapper"]},i.default.createElement(c.default,{ref:g,autoFocus:l,placeholder:a,value:C,onChange:D,onKeyDown:F,onPaste:U,onFocus:y,onBlur:R}))}));t.default=y},602:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){var o;return o=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==r(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&l(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var d=c(n(442)),p=f(n(942)),y=f(n(62)),b=f(n(663)),v=f(n(433)),h=f(n(445)),_=f(n(822)),m=f(n(332)),k=f(n(391)),O=f(n(402)),T=f(n(666)),E=f(n(479)),g=f(n(662)),S=f(n(198)),C=n(224),A=f(n(90)),I=(0,d.forwardRef)((function(e,t){var n=e.className,r=e.placeholder,u=e.readOnly,l=void 0!==u&&u,i=e.autoFocus,c=void 0!==i&&i,f=e.disableCreateOnBlur,I=e.tokenValues,j=e.separators,w=void 0===j?C.DEFAULT_SEPARATORS:j,D=e.specialKeyDown,N=void 0===D?C.DEFAULT_SPECIAL_KEY_DOWN_CONFIG:D,P=e.onInputValueChange,M=e.onPreprocess,V=e.onTokenValueValidate,L=void 0===V?O.default:V,F=e.onTokenValuesChange,R=e.onBuildTokenValue,U=void 0===R?T.default:R,B=e.customizeTokenComponent,W=e.onGetTokenClassName,K=e.onGetTokenDisplayLabel,x=void 0===K?g.default:K,G=e.onRenderTokenDeleteButtonContent,H=e.onGetIsTokenEditable,z=void 0===H?E.default:H,Y=e.onGetTokenEditableValue,J=void 0===Y?g.default:Y,$=e.onGetTokenErrorMessage,q=void 0===$?S.default:$,Q=e.onCreatorFocus,X=e.onCreatorBlur,Z=e.onCreatorKeyDown,ee=s(e,["className","placeholder","readOnly","autoFocus","disableCreateOnBlur","tokenValues","separators","specialKeyDown","onInputValueChange","onPreprocess","onTokenValueValidate","onTokenValuesChange","onBuildTokenValue","customizeTokenComponent","onGetTokenClassName","onGetTokenDisplayLabel","onRenderTokenDeleteButtonContent","onGetIsTokenEditable","onGetTokenEditableValue","onGetTokenErrorMessage","onCreatorFocus","onCreatorBlur","onCreatorKeyDown"]),te=(0,v.default)({onCreatorFocus:Q,onCreatorBlur:X}),ne=te.isTokenInputFocused,re=te.handleTokenInputFocus,oe=te.handleTokenInputBlur,ae=te.handleCreatorFocus,ue=te.handleCreatorBlur,le=(0,h.default)(),ie=le.tokenCreatorRef,ce=le.focusTokenCreator,se=le.setCreatorValue,fe=le.getCreatorValue,de=le.createTokens,pe=(0,_.default)({tokenValues:I,onTokenValueValidate:L}),ye=pe.hasInvalidToken,be=pe.internalTokenValues,ve=pe.tokenMetas,he=pe.setTokenActivated,_e=(0,m.default)({tokenValues:I,onTokenValuesChange:F,setTokenActivated:he,handleTokenInputFocus:re,handleTokenInputBlur:oe}),me=_e.handleTokenEditStart,ke=_e.handleTokenEditEnd,Oe=(0,k.default)({tokenValues:I,onTokenValuesChange:F,focusTokenCreator:ce}),Te=Oe.handleTokenDelete,Ee=Oe.handleLastTokenDelete,ge=(0,d.useCallback)((function(e){if(0!==e.length){var t=[].concat(a(I),a(e));null==F||F(t)}}),[I,F]),Se=(0,d.useCallback)((function(e){if("function"!=typeof M)return e;var t=M(e);if(!0!==Array.isArray(t))throw new Error("onPreprocess should return an array of values");return t}),[M]),Ce=(0,d.useCallback)((function(){return ce()}),[ce]),Ae=B||b.default;return(0,d.useImperativeHandle)(t,(function(){return{focus:ce,setCreatorValue:se,getCreatorValue:fe,createTokens:de}}),[ce,se,fe,de]),d.default.createElement("div",Object.assign({"data-component-name":"TokenInput"},ee,{className:(0,p.default)(n,A.default.container,o(o({},A.default["container--focused"],ne),A.default["container--errors"],ye)),onClick:Ce,role:"presentation"}),d.default.createElement("div",{className:A.default["token-list"]},be.map((function(e,t){var n=ve[t],r=n.key;return d.default.createElement(Ae,{key:r,readOnly:l,tokenValue:e,tokenMeta:n,onGetClassName:W,onGetDisplayLabel:x,onRenderDeleteButtonContent:G,onGetIsEditable:z,onGetEditableValue:J,onGetErrorMessage:q,onBuildTokenValue:U,onEditStart:me(t),onEditEnd:ke(t),onDelete:Te(t)})}))),!l&&d.default.createElement(y.default,{ref:ie,placeholder:r,autoFocus:c,disableCreateOnBlur:f,onFocus:ae,onBlur:ue,onKeyDown:Z,separators:w,specialKeyDown:N,onInputValueChange:P,onPreprocess:Se,onBuildTokenValue:U,onNewTokenValuesAppend:ge,onLastTokenDelete:Ee}))}));t.default=I},224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_INPUT_INIT_VALUE=t.JS__TOKEN__DELETE_BUTTON__CLASS_NAME=t.DEFAULT_SPECIAL_KEY_DOWN_CONFIG=t.KEY_DOWN_HANDLER_CONFIG_OPTION=t.DEFAULT_SEPARATORS=void 0,t.DEFAULT_SEPARATORS=[",",";","\n","\r","\r\n"],t.KEY_DOWN_HANDLER_CONFIG_OPTION=Object.freeze({OFF:0,ON:1}),t.DEFAULT_SPECIAL_KEY_DOWN_CONFIG={onBackspace:t.KEY_DOWN_HANDLER_CONFIG_OPTION.ON,onTab:t.KEY_DOWN_HANDLER_CONFIG_OPTION.OFF,onEnter:t.KEY_DOWN_HANDLER_CONFIG_OPTION.ON,onEscape:t.KEY_DOWN_HANDLER_CONFIG_OPTION.ON},t.JS__TOKEN__DELETE_BUTTON__CLASS_NAME="js__token__delete-button",t.DEFAULT_INPUT_INIT_VALUE=""},741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(442),o=n(224),a=function(e){var t=e.keyDownHandlerConfig,n=e.predefinedHandler;1==(t===o.KEY_DOWN_HANDLER_CONFIG_OPTION.ON)&&n()};t.default=function(e){var t=e.specialKeyDownConfig,n=e.inputInitValue,u=e.inputValue,l=e.onLastTokenDelete,i=e.handleInputValueUpdate,c=e.handleTokensCreate,s=Object.assign(Object.assign({},o.DEFAULT_SPECIAL_KEY_DOWN_CONFIG),t),f=s.onBackspace,d=s.onTab,p=s.onEnter,y=s.onEscape;return{handleBackspaceKeyDown:(0,r.useCallback)((function(){a({keyDownHandlerConfig:f,predefinedHandler:function(){0===u.length&&l()}})}),[f,u,l]),handleTabKeyDown:(0,r.useCallback)((function(e){a({keyDownHandlerConfig:d,predefinedHandler:function(){e.preventDefault(),c(u)}})}),[d,u,c]),handleEnterKeyDown:(0,r.useCallback)((function(){a({keyDownHandlerConfig:p,predefinedHandler:function(){c(u)}})}),[p,u,c]),handleEscapeKeyDown:(0,r.useCallback)((function(){a({keyDownHandlerConfig:y,predefinedHandler:function(){i(n)}})}),[y,n,i])}}},445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(442),o=n(224);t.default=function(){var e=(0,r.useRef)(null),t=(0,r.useCallback)((function(t){var n;return null===(n=e.current)||void 0===n?void 0:n.focus(t)}),[]),n=(0,r.useCallback)((function(t){var n;return null===(n=e.current)||void 0===n?void 0:n.setValue(t)}),[]),a=(0,r.useCallback)((function(){var t,n;return null!==(n=null===(t=e.current)||void 0===t?void 0:t.getValue())&&void 0!==n?n:o.DEFAULT_INPUT_INIT_VALUE}),[]),u=(0,r.useCallback)((function(t){var n;return null===(n=e.current)||void 0===n?void 0:n.createTokens(t)}),[]);return{tokenCreatorRef:e,focusTokenCreator:t,setCreatorValue:n,getCreatorValue:a,createTokens:u}}},391:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=n(442);t.default=function(e){var t=e.tokenValues,n=e.onTokenValuesChange,a=e.focusTokenCreator,u=(0,o.useCallback)((function(e){var o,u=function(e){if(Array.isArray(e))return r(e)}(o=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u.splice(e,1),null==n||n(u),a()}),[t,n,a]);return{handleTokenDelete:(0,o.useCallback)((function(e){return function(){u(e)}}),[u]),handleLastTokenDelete:(0,o.useCallback)((function(){u(-1)}),[u])}}},332:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=n(442);t.default=function(e){var t=e.tokenValues,n=e.onTokenValuesChange,a=e.setTokenActivated,u=e.handleTokenInputFocus,l=e.handleTokenInputBlur;return{handleTokenEditStart:(0,o.useCallback)((function(e){return function(){a(e,!0),u()}}),[a,u]),handleTokenEditEnd:(0,o.useCallback)((function(e){return function(o){if(a(e,!1),l(),void 0!==o){var u=function(e){if(Array.isArray(e))return r(e)}(i=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u[e]=o,null==n||n(u)}var i}}),[t,n,a,l])}}},433:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=n(442);t.default=function(e){var t,n,a=e.onCreatorFocus,u=e.onCreatorBlur,l=(t=(0,o.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=l[0],c=l[1],s=(0,o.useCallback)((function(){c(!0)}),[]),f=(0,o.useCallback)((function(){c(!1)}),[]),d=(0,o.useCallback)((function(e){s(),null==a||a(e)}),[a,s]),p=(0,o.useCallback)((function(e){f(),null==u||u(e)}),[u,f]);return{isTokenInputFocused:i,handleTokenInputFocus:s,handleTokenInputBlur:f,handleCreatorFocus:d,handleCreatorBlur:p}}},972:(e,t,n)=>{"use strict";function r(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var a=n(442);t.default=function(){var e,t,n=(e=(0,a.useState)([]),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=n[0],l=n[1],i=(0,a.useCallback)((function(e,t){if(e>=u.length)throw new Error("setTokenActivated out of tokenMetas scope; targetIndex ".concat(e,"; tokenMetas.length ").concat(u.length));var n=function(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(u);n[e].activated=t,l(n)}),[u]);return{tokenMetas:u,setTokenMetas:l,setTokenActivated:i}}},822:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(442),i=u(n(972)),c=u(n(531));t.default=function(e){var t=e.tokenValues,n=e.onTokenValueValidate,u=(0,i.default)(),s=u.tokenMetas,f=u.setTokenMetas,d=u.setTokenActivated,p=r((0,l.useState)(!1),2),y=p[0],b=p[1],v=r((0,l.useState)([]),2),h=v[0],_=v[1];return(0,l.useLayoutEffect)((function(){var e,r=!1,u=t.map((function(e,o){var a=n(e,o,t),u=(0,c.default)(a,e,o);return u.error&&!u.activated&&(r=!0),u}));_(function(e){if(Array.isArray(e))return a(e)}(e=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f(u),b(r)}),[t,n,f]),{hasInvalidToken:y,internalTokenValues:h,tokenMetas:s,setTokenActivated:d}}},129:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_DOWN_HANDLER_CONFIG_OPTION=t.DEFAULT_SEPARATORS=t.JS__TOKEN__DELETE_BUTTON__CLASS_NAME=void 0;var o=r(n(602)),a=n(224);Object.defineProperty(t,"JS__TOKEN__DELETE_BUTTON__CLASS_NAME",{enumerable:!0,get:function(){return a.JS__TOKEN__DELETE_BUTTON__CLASS_NAME}}),Object.defineProperty(t,"KEY_DOWN_HANDLER_CONFIG_OPTION",{enumerable:!0,get:function(){return a.KEY_DOWN_HANDLER_CONFIG_OPTION}}),Object.defineProperty(t,"DEFAULT_SEPARATORS",{enumerable:!0,get:function(){return a.DEFAULT_SEPARATORS}}),t.default=o.default},531:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return{key:"".concat(JSON.stringify(t),"-").concat(Date.now(),"-").concat(n),activated:!1,error:e}}},666:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.trim()}},479:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!0}},662:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"".concat(e)}},198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t.error;if("string"==typeof n)return n}},402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},504:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(526));t.default=function(e,t){var n=t.onBackspace,r=t.onTab,a=t.onEnter,u=t.onEscape;switch((0,o.default)(e.nativeEvent).key){case"Backspace":null==n||n(e);break;case"Tab":null==r||r(e);break;case"Enter":null==a||a(e);break;case"Escape":null==u||u(e)}}},526:function(e){e.exports=(()=>{"use strict";var e,t={};return e=t,Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var t=e.key;return 229===e.keyCode&&(t="Process"),{key:t}},t})()},90:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={container:"token-input-container","container--focused":"token-input-container--focused","container--errors":"token-input-container--errors","autosized-wrapper":"token-input-autosized-wrapper","token-list":"token-input-token-list",token:"token-input-token","token--error":"token-input-token--error","token--read-only":"token-input-token--read-only","token--editable":"token-input-token--editable","token--active":"token-input-token--active","token__label-wrapper":"token-input-token__label-wrapper","token__delete-button":"token-input-token__delete-button","delete-button__close-icon":"token-input-delete-button__close-icon"}},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,u){if(u!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(442),u=i(a),l=i(n(556));function i(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},s=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],f=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||p(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(f(e,this.sizer),this.placeHolderSizer&&f(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?u.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){s.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,u.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),u.default.createElement("input",r({},o,{ref:this.inputRef})),u.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?u.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(a.Component);y.propTypes={className:l.default.string,defaultValue:l.default.any,extraWidth:l.default.oneOfType([l.default.number,l.default.string]),id:l.default.string,injectStyles:l.default.bool,inputClassName:l.default.string,inputRef:l.default.func,inputStyle:l.default.object,minWidth:l.default.oneOfType([l.default.number,l.default.string]),onAutosize:l.default.func,onChange:l.default.func,placeholder:l.default.string,placeholderIsMinWidth:l.default.bool,style:l.default.object,value:l.default.any},y.defaultProps={minWidth:1,injectStyles:!0},t.default=y},442:t=>{"use strict";t.exports=e},942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=u(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=u(t,n));return t}function u(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e].call(a.exports,a,a.exports,r),a.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(129)})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["token-input"]=t(require("react")):e.TokenInput=t(e.React)}(this,(e=>(()=>{var t={550:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(442)),a=r(n(90));t.default=function(){return o.default.createElement("div",{"data-component-name":"CloseIcon",role:"img",className:a.default["delete-button__close-icon"],"aria-hidden":"true"})}},184:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(442)),a=r(n(942)),u=r(n(550)),l=r(n(90)),i=n(224);t.default=function(e){var t,n=e.onRenderContent;return o.default.createElement("span",{"data-component-name":"DeleteButton",role:"button",className:(0,a.default)(i.JS__TOKEN__DELETE_BUTTON__CLASS_NAME,l.default["token__delete-button"]),"aria-hidden":"true"},null!==(t=null==n?void 0:n())&&void 0!==t?t:o.default.createElement(u.default,null))}},2:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return l(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(442)),f=c(n(942)),d=c(n(132)),p=c(n(504)),y=c(n(184)),v=n(224),b=c(n(90)),h=function(e){e.stopPropagation()};t.default=function(e){var t,n,r=e.readOnly,u=e.tokenValue,l=e.tokenMeta,i=e.onGetClassName,c=e.onGetDisplayLabel,_=e.onRenderDeleteButtonContent,m=e.onGetIsEditable,k=e.onGetEditableValue,O=e.onGetErrorMessage,T=e.onBuildTokenValue,E=e.onEditStart,g=e.onEditEnd,S=e.onDelete,C=(0,s.useRef)(null),A=(t=(0,s.useState)(v.DEFAULT_INPUT_INIT_VALUE),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),I=A[0],D=A[1],j=l.activated,N=l.error,w=(0,s.useMemo)((function(){return m(u,l)}),[m,u,l]),P=(0,s.useCallback)((function(){var e=k(u,l);D(e),E()}),[D,u,l,k,E]);(0,s.useEffect)((function(){var e=C.current;j&&e&&e.getInput().focus()}),[j]);var M=(0,s.useCallback)((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).reset,t=void 0!==e&&e,n=0===I.length;if(t||n)g();else{var r=T(I);g(r)}}),[I,T,g]),V=(0,s.useCallback)((function(e){e.stopPropagation(),r||(e.target.closest(".".concat(b.default.token," .").concat(v.JS__TOKEN__DELETE_BUTTON__CLASS_NAME))?S():w&&P())}),[r,w,S,P]),L=(0,s.useCallback)((function(e){var t=e.target.value;D(t)}),[D]),F=(0,s.useCallback)((function(e){(0,p.default)(e,{onEscape:function(){return M({reset:!0})},onEnter:function(){return M()}})}),[M]),R=(0,s.useCallback)((function(){M()}),[M]),U=(0,s.useMemo)((function(){return(0,f.default)(null==i?void 0:i(u,l),b.default.token,o(o(o(o({},b.default["token--read-only"],r),b.default["token--editable"],w&&!r),b.default["token--active"],j),b.default["token--error"],N&&!j))}),[i,r,w,j,N,u,l]),B=(0,s.useMemo)((function(){var e=O(u,l);return"string"==typeof e?e:void 0}),[O,u,l]);return j?s.default.createElement("div",{"data-component-name":"Token",role:"presentation",className:U,onClick:h},s.default.createElement("div",{className:b.default["autosized-wrapper"]},s.default.createElement(d.default,{ref:C,value:I,onChange:L,onKeyDown:F,onBlur:R}))):s.default.createElement("div",{"data-component-name":"Token",role:"presentation",className:U,onClick:V,title:B},s.default.createElement("div",{className:b.default["token__label-wrapper"]},c(u,l)),!r&&s.default.createElement(y.default,{onRenderContent:_}))}},663:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2));t.default=o.default},62:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=u(n(442)),c=l(n(132)),s=l(n(504)),f=l(n(741)),d=n(224),p=l(n(90)),y=(0,i.forwardRef)((function(e,t){var n,o,a=e.placeholder,u=e.disableCreateOnBlur,l=e.autoFocus,y=e.onFocus,v=e.onBlur,b=e.onKeyDown,h=e.separators,_=e.specialKeyDown,m=e.onInputValueChange,k=e.onPreprocess,O=e.onBuildTokenValue,T=e.onNewTokenValuesAppend,E=e.onLastTokenDelete,g=(0,i.useRef)(null),S=(n=(0,i.useState)(d.DEFAULT_INPUT_INIT_VALUE),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(n,o)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),C=S[0],A=S[1],I=(0,i.useMemo)((function(){return new RegExp(h.join("|"))}),[h]),D=(0,i.useCallback)((function(e){A(e),null==m||m(e,C)}),[m,C,A]),j=(0,i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;if(0!==e.trim().length){var t=e.split(I).filter((function(e){return e.trim().length>0})),n=k(t).map((function(e){return O(e)}));T(n),D(d.DEFAULT_INPUT_INIT_VALUE)}}),[C,I,k,O,T,D]),N=(0,i.useCallback)((function(e){var t=e.target.value;I.test(t)?j(t):D(t)}),[I,j,D]),w=(0,f.default)({specialKeyDownConfig:_,inputInitValue:d.DEFAULT_INPUT_INIT_VALUE,inputValue:C,onLastTokenDelete:E,handleInputValueUpdate:D,handleTokensCreate:j}),P=w.handleBackspaceKeyDown,M=w.handleTabKeyDown,V=w.handleEnterKeyDown,L=w.handleEscapeKeyDown,F=(0,i.useCallback)((function(e){(0,s.default)(e,{onBackspace:P,onTab:M,onEnter:V,onEscape:L}),null==b||b(e)}),[b,P,M,V,L]),R=(0,i.useCallback)((function(e){u||j(C),v(e)}),[u,j,C,v]),U=(0,i.useCallback)((function(e){e.preventDefault();var t=e.clipboardData.getData("text");j(t)}),[j]);return(0,i.useImperativeHandle)(t,(function(){return{focus:function(e){var t;return null===(t=g.current)||void 0===t?void 0:t.getInput().focus(e)},setValue:D,getValue:function(){return C},createTokens:j}}),[D,C,j]),i.default.createElement("div",{className:p.default["autosized-wrapper"]},i.default.createElement(c.default,{ref:g,autoFocus:l,placeholder:a,value:C,onChange:N,onKeyDown:F,onPaste:U,onFocus:y,onBlur:R}))}));t.default=y},602:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&l(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var d=c(n(442)),p=f(n(942)),y=f(n(62)),v=f(n(663)),b=f(n(433)),h=f(n(445)),_=f(n(822)),m=f(n(332)),k=f(n(391)),O=f(n(402)),T=f(n(666)),E=f(n(479)),g=f(n(662)),S=f(n(198)),C=n(224),A=f(n(90)),I=(0,d.forwardRef)((function(e,t){var n=e.className,r=e.placeholder,u=e.readOnly,l=void 0!==u&&u,i=e.autoFocus,c=void 0!==i&&i,f=e.disableCreateOnBlur,I=e.tokenValues,D=e.separators,j=void 0===D?C.DEFAULT_SEPARATORS:D,N=e.specialKeyDown,w=void 0===N?C.DEFAULT_SPECIAL_KEY_DOWN_CONFIG:N,P=e.onInputValueChange,M=e.onPreprocess,V=e.onTokenValueValidate,L=void 0===V?O.default:V,F=e.onTokenValuesChange,R=e.onBuildTokenValue,U=void 0===R?T.default:R,B=e.customizeTokenComponent,W=e.onGetTokenClassName,K=e.onGetTokenDisplayLabel,x=void 0===K?g.default:K,G=e.onRenderTokenDeleteButtonContent,H=e.onGetIsTokenEditable,z=void 0===H?E.default:H,Y=e.onGetTokenEditableValue,J=void 0===Y?g.default:Y,$=e.onGetTokenErrorMessage,q=void 0===$?S.default:$,Q=e.onCreatorFocus,X=e.onCreatorBlur,Z=e.onCreatorKeyDown,ee=s(e,["className","placeholder","readOnly","autoFocus","disableCreateOnBlur","tokenValues","separators","specialKeyDown","onInputValueChange","onPreprocess","onTokenValueValidate","onTokenValuesChange","onBuildTokenValue","customizeTokenComponent","onGetTokenClassName","onGetTokenDisplayLabel","onRenderTokenDeleteButtonContent","onGetIsTokenEditable","onGetTokenEditableValue","onGetTokenErrorMessage","onCreatorFocus","onCreatorBlur","onCreatorKeyDown"]),te=(0,b.default)({onCreatorFocus:Q,onCreatorBlur:X}),ne=te.isTokenInputFocused,re=te.handleTokenInputFocus,oe=te.handleTokenInputBlur,ae=te.handleCreatorFocus,ue=te.handleCreatorBlur,le=(0,h.default)(),ie=le.tokenCreatorRef,ce=le.focusTokenCreator,se=le.setCreatorValue,fe=le.getCreatorValue,de=le.createTokens,pe=(0,_.default)({tokenValues:I,onTokenValueValidate:L}),ye=pe.hasInvalidToken,ve=pe.internalTokenValues,be=pe.tokenMetas,he=pe.setTokenActivated,_e=(0,m.default)({tokenValues:I,onTokenValuesChange:F,setTokenActivated:he,handleTokenInputFocus:re,handleTokenInputBlur:oe}),me=_e.handleTokenEditStart,ke=_e.handleTokenEditEnd,Oe=(0,k.default)({tokenValues:I,onTokenValuesChange:F,focusTokenCreator:ce}),Te=Oe.handleTokenDelete,Ee=Oe.handleLastTokenDelete,ge=(0,d.useCallback)((function(e){if(0!==e.length){var t=[].concat(a(I),a(e));null==F||F(t)}}),[I,F]),Se=(0,d.useCallback)((function(e){if("function"!=typeof M)return e;var t=M(e);if(!0!==Array.isArray(t))throw new Error("onPreprocess should return an array of values");return t}),[M]),Ce=(0,d.useCallback)((function(){return ce()}),[ce]),Ae=B||v.default;return(0,d.useImperativeHandle)(t,(function(){return{focus:ce,setCreatorValue:se,getCreatorValue:fe,createTokens:de}}),[ce,se,fe,de]),d.default.createElement("div",Object.assign({"data-component-name":"TokenInput"},ee,{className:(0,p.default)(n,A.default.container,o(o({},A.default["container--focused"],ne),A.default["container--errors"],ye)),onClick:Ce,role:"presentation"}),d.default.createElement("div",{className:A.default["token-list"]},ve.map((function(e,t){var n=be[t],r=n.key;return d.default.createElement(Ae,{key:r,readOnly:l,tokenValue:e,tokenMeta:n,onGetClassName:W,onGetDisplayLabel:x,onRenderDeleteButtonContent:G,onGetIsEditable:z,onGetEditableValue:J,onGetErrorMessage:q,onBuildTokenValue:U,onEditStart:me(t),onEditEnd:ke(t),onDelete:Te(t)})}))),!l&&d.default.createElement(y.default,{ref:ie,placeholder:r,autoFocus:c,disableCreateOnBlur:f,onFocus:ae,onBlur:ue,onKeyDown:Z,separators:j,specialKeyDown:w,onInputValueChange:P,onPreprocess:Se,onBuildTokenValue:U,onNewTokenValuesAppend:ge,onLastTokenDelete:Ee}))}));t.default=I},224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_INPUT_INIT_VALUE=t.JS__TOKEN__DELETE_BUTTON__CLASS_NAME=t.DEFAULT_SPECIAL_KEY_DOWN_CONFIG=t.KEY_DOWN_HANDLER_CONFIG_OPTION=t.DEFAULT_SEPARATORS=void 0,t.DEFAULT_SEPARATORS=[",",";","\n","\r","\r\n"],t.KEY_DOWN_HANDLER_CONFIG_OPTION=Object.freeze({OFF:0,ON:1}),t.DEFAULT_SPECIAL_KEY_DOWN_CONFIG={onBackspace:t.KEY_DOWN_HANDLER_CONFIG_OPTION.ON,onTab:t.KEY_DOWN_HANDLER_CONFIG_OPTION.OFF,onEnter:t.KEY_DOWN_HANDLER_CONFIG_OPTION.ON,onEscape:t.KEY_DOWN_HANDLER_CONFIG_OPTION.ON},t.JS__TOKEN__DELETE_BUTTON__CLASS_NAME="js__token__delete-button",t.DEFAULT_INPUT_INIT_VALUE=""},741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(442),o=n(224),a=function(e){var t=e.keyDownHandlerConfig,n=e.predefinedHandler;1==(t===o.KEY_DOWN_HANDLER_CONFIG_OPTION.ON)&&n()};t.default=function(e){var t=e.specialKeyDownConfig,n=e.inputInitValue,u=e.inputValue,l=e.onLastTokenDelete,i=e.handleInputValueUpdate,c=e.handleTokensCreate,s=Object.assign(Object.assign({},o.DEFAULT_SPECIAL_KEY_DOWN_CONFIG),t),f=s.onBackspace,d=s.onTab,p=s.onEnter,y=s.onEscape;return{handleBackspaceKeyDown:(0,r.useCallback)((function(){a({keyDownHandlerConfig:f,predefinedHandler:function(){0===u.length&&l()}})}),[f,u,l]),handleTabKeyDown:(0,r.useCallback)((function(e){a({keyDownHandlerConfig:d,predefinedHandler:function(){e.preventDefault(),c(u)}})}),[d,u,c]),handleEnterKeyDown:(0,r.useCallback)((function(){a({keyDownHandlerConfig:p,predefinedHandler:function(){c(u)}})}),[p,u,c]),handleEscapeKeyDown:(0,r.useCallback)((function(){a({keyDownHandlerConfig:y,predefinedHandler:function(){i(n)}})}),[y,n,i])}}},445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(442),o=n(224);t.default=function(){var e=(0,r.useRef)(null),t=(0,r.useCallback)((function(t){var n;return null===(n=e.current)||void 0===n?void 0:n.focus(t)}),[]),n=(0,r.useCallback)((function(t){var n;return null===(n=e.current)||void 0===n?void 0:n.setValue(t)}),[]),a=(0,r.useCallback)((function(){var t,n;return null!==(n=null===(t=e.current)||void 0===t?void 0:t.getValue())&&void 0!==n?n:o.DEFAULT_INPUT_INIT_VALUE}),[]),u=(0,r.useCallback)((function(t){var n;return null===(n=e.current)||void 0===n?void 0:n.createTokens(t)}),[]);return{tokenCreatorRef:e,focusTokenCreator:t,setCreatorValue:n,getCreatorValue:a,createTokens:u}}},391:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=n(442);t.default=function(e){var t=e.tokenValues,n=e.onTokenValuesChange,a=e.focusTokenCreator,u=(0,o.useCallback)((function(e){var o,u=function(e){if(Array.isArray(e))return r(e)}(o=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u.splice(e,1),null==n||n(u),a()}),[t,n,a]);return{handleTokenDelete:(0,o.useCallback)((function(e){return function(){u(e)}}),[u]),handleLastTokenDelete:(0,o.useCallback)((function(){u(-1)}),[u])}}},332:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=n(442);t.default=function(e){var t=e.tokenValues,n=e.onTokenValuesChange,a=e.setTokenActivated,u=e.handleTokenInputFocus,l=e.handleTokenInputBlur;return{handleTokenEditStart:(0,o.useCallback)((function(e){return function(){a(e,!0),u()}}),[a,u]),handleTokenEditEnd:(0,o.useCallback)((function(e){return function(o){if(a(e,!1),l(),void 0!==o){var u=function(e){if(Array.isArray(e))return r(e)}(i=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u[e]=o,null==n||n(u)}var i}}),[t,n,a,l])}}},433:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=n(442);t.default=function(e){var t,n,a=e.onCreatorFocus,u=e.onCreatorBlur,l=(t=(0,o.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=l[0],c=l[1],s=(0,o.useCallback)((function(){c(!0)}),[]),f=(0,o.useCallback)((function(){c(!1)}),[]),d=(0,o.useCallback)((function(e){s(),null==a||a(e)}),[a,s]),p=(0,o.useCallback)((function(e){f(),null==u||u(e)}),[u,f]);return{isTokenInputFocused:i,handleTokenInputFocus:s,handleTokenInputBlur:f,handleCreatorFocus:d,handleCreatorBlur:p}}},972:(e,t,n)=>{"use strict";function r(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var a=n(442);t.default=function(){var e,t,n=(e=(0,a.useState)([]),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=n[0],l=n[1],i=(0,a.useCallback)((function(e,t){if(e>=u.length)throw new Error("setTokenActivated out of tokenMetas scope; targetIndex ".concat(e,"; tokenMetas.length ").concat(u.length));var n=function(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(u);n[e].activated=t,l(n)}),[u]);return{tokenMetas:u,setTokenMetas:l,setTokenActivated:i}}},822:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(442),i=u(n(972)),c=u(n(531));t.default=function(e){var t=e.tokenValues,n=e.onTokenValueValidate,u=(0,i.default)(),s=u.tokenMetas,f=u.setTokenMetas,d=u.setTokenActivated,p=r((0,l.useState)(!1),2),y=p[0],v=p[1],b=r((0,l.useState)([]),2),h=b[0],_=b[1];return(0,l.useLayoutEffect)((function(){var e,r=!1,u=t.map((function(e,o){var a=n(e,o,t),u=(0,c.default)(a,e,o);return u.error&&!u.activated&&(r=!0),u}));_(function(e){if(Array.isArray(e))return a(e)}(e=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f(u),v(r)}),[t,n,f]),{hasInvalidToken:y,internalTokenValues:h,tokenMetas:s,setTokenActivated:d}}},129:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SEPARATORS=t.KEY_DOWN_HANDLER_CONFIG_OPTION=t.JS__TOKEN__DELETE_BUTTON__CLASS_NAME=void 0;var o=r(n(602)),a=n(224);Object.defineProperty(t,"JS__TOKEN__DELETE_BUTTON__CLASS_NAME",{enumerable:!0,get:function(){return a.JS__TOKEN__DELETE_BUTTON__CLASS_NAME}}),Object.defineProperty(t,"KEY_DOWN_HANDLER_CONFIG_OPTION",{enumerable:!0,get:function(){return a.KEY_DOWN_HANDLER_CONFIG_OPTION}}),Object.defineProperty(t,"DEFAULT_SEPARATORS",{enumerable:!0,get:function(){return a.DEFAULT_SEPARATORS}}),t.default=o.default},531:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return{key:"".concat(JSON.stringify(t),"-").concat(Date.now(),"-").concat(n),activated:!1,error:e}}},666:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.trim()}},479:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!0}},662:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"".concat(e)}},198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t.error;if("string"==typeof n)return n}},402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},504:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(526));t.default=function(e,t){var n=t.onBackspace,r=t.onTab,a=t.onEnter,u=t.onEscape;switch((0,o.default)(e.nativeEvent).key){case"Backspace":null==n||n(e);break;case"Tab":null==r||r(e);break;case"Enter":null==a||a(e);break;case"Escape":null==u||u(e)}}},526:function(e){e.exports=(()=>{"use strict";var e,t={};return e=t,Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var t=e.key;return 229===e.keyCode&&(t="Process"),{key:t}},t})()},90:(e,t,n)=>{"use strict";n.r(t),n.d(t,{"autosized-wrapper":()=>r,container:()=>o,"container--errors":()=>a,"container--focused":()=>u,"delete-button__close-icon":()=>l,token:()=>i,"token--active":()=>c,"token--editable":()=>s,"token--error":()=>f,"token--read-only":()=>d,"token-list":()=>p,"token__delete-button":()=>y,"token__label-wrapper":()=>v});var r="token-input-autosized-wrapper",o="token-input-container",a="token-input-container--errors",u="token-input-container--focused",l="token-input-delete-button__close-icon",i="token-input-token",c="token-input-token--active",s="token-input-token--editable",f="token-input-token--error",d="token-input-token--read-only",p="token-input-token-list",y="token-input-token__delete-button",v="token-input-token__label-wrapper"},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,u){if(u!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(442),u=i(a),l=i(n(556));function i(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},s=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],f=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||p(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(f(e,this.sizer),this.placeHolderSizer&&f(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?u.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){s.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,u.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),u.default.createElement("input",r({},o,{ref:this.inputRef})),u.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?u.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(a.Component);y.propTypes={className:l.default.string,defaultValue:l.default.any,extraWidth:l.default.oneOfType([l.default.number,l.default.string]),id:l.default.string,injectStyles:l.default.bool,inputClassName:l.default.string,inputRef:l.default.func,inputStyle:l.default.object,minWidth:l.default.oneOfType([l.default.number,l.default.string]),onAutosize:l.default.func,onChange:l.default.func,placeholder:l.default.string,placeholderIsMinWidth:l.default.bool,style:l.default.object,value:l.default.any},y.defaultProps={minWidth:1,injectStyles:!0},t.default=y},442:t=>{"use strict";t.exports=e},942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=u(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=u(t,n));return t}function u(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e].call(a.exports,a,a.exports,r),a.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(129)})()));
//# sourceMappingURL=index.js.map

@@ -9,2 +9,2 @@ /*!

/*! react-customize-token-input v2.6.0-beta.0 | (c) 2018 Mark Lin. | MIT | https://github.com/seawind543/react-token-input */
/*! react-customize-token-input v2.6.0 | (c) 2018 Mark Lin. | MIT | https://github.com/seawind543/react-token-input */

@@ -1,3 +0,3 @@

import Token, { type TokenProps } from './Token';
export { TokenProps };
import Token from './Token';
export type { TokenProps } from './Token';
export default Token;

@@ -41,4 +41,4 @@ import React, { type CSSProperties, type ReactElement } from 'react';

declare const WrappedTokenInput: <VT = string, ET = string>(p: TokenInputProps<VT, ET> & {
ref?: React.ForwardedRef<TokenInputRef> | undefined;
ref?: React.ForwardedRef<TokenInputRef>;
}) => ReturnType<typeof TokenInput>;
export default WrappedTokenInput;
import type { Index, TokenMeta } from '../types/token';
declare const buildTokenMeta: <VT, ET>(customizeError: import("../types/mix").Nullish | ET, value: VT, index: Index) => TokenMeta<ET>;
declare const buildTokenMeta: <VT, ET>(customizeError: TokenMeta<ET>["error"], value: VT, index: Index) => TokenMeta<ET>;
export default buildTokenMeta;
{
"name": "react-customize-token-input",
"version": "2.6.0-beta.0",
"version": "2.6.0",
"description": "A react token (tag) input component. Allow customize data structure and Look & Feel",
"keywords": [
"react",
"token",
"tag",
"token input",
"tag input",
"preprocess",
"inline edit",
"customize",
"customize data structure",
"customize render"
],
"main": "lib/index.js",

@@ -18,5 +30,6 @@ "types": "lib/index.d.ts",

"build:examples": "cd examples; webpack",
"lint": "yarn run lint:eslint && yarn run lint:style",
"lint": "yarn run lint:eslint && yarn run lint:style && yarn run lint:type",
"lint:eslint": "eslint --max-warnings 0 --ext .jsx,.js,.tsx,.ts src examples",
"lint:style": "stylelint --custom-syntax postcss-scss '**/*.scss' --fix",
"lint:type": "tsc --noEmit true",
"test": "jest --coverage",

@@ -32,14 +45,2 @@ "dev": "cd examples; webpack && webpack serve"

"license": "MIT",
"keywords": [
"react",
"token",
"tag",
"token input",
"tag input",
"preprocess",
"inline edit",
"customize",
"customize data structure",
"customize render"
],
"peerDependencies": {

@@ -54,58 +55,57 @@ "react": "^16.10.2 || ^17.0.0 || ^18.0.0"

"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/eslint-parser": "^7.23.10",
"@babel/eslint-plugin": "^7.23.5",
"@babel/preset-env": "^7.23.9",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@testing-library/react-hooks": "^8.0.1",
"@babel/core": "^7.24.9",
"@babel/eslint-parser": "^7.24.8",
"@babel/eslint-plugin": "^7.24.7",
"@babel/preset-env": "^7.24.8",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.0",
"@types/jest": "^29.5.12",
"@types/react-input-autosize": "^2.2.4",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"babel-loader": "^9.1.3",
"css-loader": "^6.10.0",
"css-minimizer-webpack-plugin": "^6.0.0",
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "^7.0.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-webpack-plugin": "^4.0.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-webpack-plugin": "^4.2.0",
"html-webpack-plugin": "^5.6.0",
"jest": "29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mini-css-extract-plugin": "^2.8.0",
"mini-css-extract-plugin": "^2.9.0",
"mockdate": "^3.0.5",
"node-sass": "^9.0.0",
"postcss": "^8.4.35",
"postcss-loader": "^8.1.0",
"postcss-preset-env": "^9.4.0",
"prettier": "^3.2.5",
"postcss": "^8.4.40",
"postcss-loader": "^8.1.1",
"postcss-preset-env": "^9.6.0",
"prettier": "^3.3.3",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react": "^18.3.1",
"react-dev-utils": "^12.0.1",
"react-dom": "^18.2.0",
"sass-loader": "^14.1.1",
"style-loader": "^3.3.4",
"stylelint": "^16.2.1",
"stylelint-config-recess-order": "^4.6.0",
"stylelint-config-standard-scss": "^13.0.0",
"react-dom": "^18.3.1",
"sass-loader": "^15.0.0",
"style-loader": "^4.0.0",
"stylelint": "^16.7.0",
"stylelint-config-recess-order": "^5.0.1",
"stylelint-config-standard-scss": "^13.1.0",
"stylelint-order": "^6.0.4",
"stylelint-prettier": "^5.0.0",
"stylelint-scss": "^6.1.0",
"stylelint-selector-bem-pattern": "^3.0.1",
"stylelint-webpack-plugin": "^5.0.0",
"stylelint-prettier": "^5.0.2",
"stylelint-selector-bem-pattern": "^4.0.0",
"stylelint-webpack-plugin": "^5.0.1",
"ts-loader": "^9.5.1",
"typed-scss-modules": "^8.0.0",
"typescript": "^5.3.3",
"webpack": "^5.90.3",
"typed-scss-modules": "^8.0.1",
"typescript": "^5.5.4",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.11.1"
"webpack-dev-server": "^5.0.4"
}
}

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

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