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

@maskito/core

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maskito/core - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

2

package.json
{
"name": "@maskito/core",
"version": "2.1.0",
"version": "2.2.0",
"description": "The main zero-dependency and framework-agnostic Maskito's package to create an input mask",

@@ -5,0 +5,0 @@ "keywords": [

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

import { ElementState, MaskitoOptions, SelectionRange } from '../../types';
import type { ElementState, MaskitoOptions, SelectionRange } from '../../types';
export declare class MaskModel implements ElementState {

@@ -3,0 +3,0 @@ private readonly initialElementState;

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

import { ElementState, MaskitoOptions } from '../../../types';
import type { ElementState, MaskitoOptions } from '../../../types';
export declare function applyOverwriteMode({ value, selection }: ElementState, newCharacters: string, mode: MaskitoOptions['overwriteMode']): ElementState;
//# sourceMappingURL=apply-overwrite-mode.d.ts.map

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

import { ElementState, MaskitoMaskExpression } from '../../../types';
import type { ElementState, MaskitoMaskExpression } from '../../../types';
export declare function calibrateValueByMask(elementState: ElementState, mask: MaskitoMaskExpression, initialElementState?: ElementState | null): ElementState;
//# sourceMappingURL=calibrate-value-by-mask.d.ts.map

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

import { ElementState } from '../../../types';
import type { ElementState } from '../../../types';
export declare function getLeadingFixedCharacters(mask: Array<RegExp | string>, validatedValuePart: string, newCharacter: string, initialElementState: ElementState | null): string;
//# sourceMappingURL=get-leading-fixed-characters.d.ts.map

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

import { ElementState } from '../../../types';
import type { ElementState } from '../../../types';
export declare function guessValidValueByPattern(elementState: ElementState, mask: Array<RegExp | string>, initialElementState: ElementState | null): ElementState;
//# sourceMappingURL=guess-valid-value-by-pattern.d.ts.map

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

import { ElementState } from '../../../types';
import type { ElementState } from '../../../types';
export declare function guessValidValueByRegExp({ value, selection }: ElementState, maskRegExp: RegExp): ElementState;
//# sourceMappingURL=guess-valid-value-by-reg-exp.d.ts.map

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

import { ElementState, MaskitoMaskExpression } from '../../../types';
import type { ElementState, MaskitoMaskExpression } from '../../../types';
export declare function removeFixedMaskCharacters(initialElementState: ElementState, mask: MaskitoMaskExpression): ElementState;
//# sourceMappingURL=remove-fixed-mask-characters.d.ts.map

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

import { MaskitoMaskExpression } from '../../../types';
import type { MaskitoMaskExpression } from '../../../types';
export declare function validateValueWithMask(value: string, maskExpression: MaskitoMaskExpression): boolean;
//# sourceMappingURL=validate-value-with-mask.d.ts.map

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

import { MaskitoElementPredicate } from '../types';
import type { MaskitoElementPredicate } from '../types';
export declare const MASKITO_DEFAULT_ELEMENT_PREDICATE: MaskitoElementPredicate;
//# sourceMappingURL=default-element-predicate.d.ts.map

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

import { MaskitoOptions } from '../types';
import type { MaskitoOptions } from '../types';
export declare const MASKITO_DEFAULT_OPTIONS: Required<MaskitoOptions>;
//# sourceMappingURL=default-options.d.ts.map
import { MaskHistory } from './classes';
import { ElementState, MaskitoOptions, TypedInputEvent } from './types';
import type { ElementState, MaskitoOptions, TypedInputEvent } from './types';
export declare class Maskito extends MaskHistory {

@@ -4,0 +4,0 @@ private readonly element;

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

import { SelectionRange } from './selection-range';
import type { SelectionRange } from './selection-range';
export interface ElementState {

@@ -3,0 +3,0 @@ readonly value: string;

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

import { ElementState } from './element-state';
import { MaskitoMask } from './mask';
import { MaskitoPostprocessor, MaskitoPreprocessor } from './mask-processors';
import { MaskitoPlugin } from './plugin';
import type { ElementState } from './element-state';
import type { MaskitoMask } from './mask';
import type { MaskitoPostprocessor, MaskitoPreprocessor } from './mask-processors';
import type { MaskitoPlugin } from './plugin';
export interface MaskitoOptions {

@@ -6,0 +6,0 @@ readonly mask: MaskitoMask;

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

import { ElementState } from './element-state';
import type { ElementState } from './element-state';
export type MaskitoPreprocessor = (_: {

@@ -3,0 +3,0 @@ elementState: ElementState;

@@ -1,4 +0,4 @@

import { ElementState } from './element-state';
import type { ElementState } from './element-state';
export type MaskitoMaskExpression = Array<RegExp | string> | RegExp;
export type MaskitoMask = MaskitoMaskExpression | ((elementState: ElementState) => MaskitoMaskExpression);
//# sourceMappingURL=mask.d.ts.map

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

import { MaskitoOptions } from './mask-options';
import type { MaskitoOptions } from './mask-options';
export type MaskitoPlugin = (element: HTMLInputElement | HTMLTextAreaElement, options: Required<MaskitoOptions>) => (() => void) | void;
//# sourceMappingURL=plugin.d.ts.map

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

import { TypedInputEvent } from '../../types';
import type { TypedInputEvent } from '../../types';
export declare class EventListener {

@@ -3,0 +3,0 @@ private readonly element;

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

import { ElementState } from '../../types';
import type { ElementState } from '../../types';
/**

@@ -3,0 +3,0 @@ * Sets value to element, and dispatches input event

@@ -1,4 +0,4 @@

import { ElementState } from '../types';
import type { ElementState } from '../types';
export declare function areElementValuesEqual(sampleState: ElementState, ...states: ElementState[]): boolean;
export declare function areElementStatesEqual(sampleState: ElementState, ...states: ElementState[]): boolean;
//# sourceMappingURL=element-states-equality.d.ts.map

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

import { ElementState, SelectionRange } from '../types';
import type { ElementState, SelectionRange } from '../types';
export declare function getLineSelection({ value, selection }: ElementState, isForward: boolean): SelectionRange;
//# sourceMappingURL=get-line-selection.d.ts.map

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

import { ElementState, SelectionRange } from '../types';
import type { ElementState, SelectionRange } from '../types';
export declare function getNotEmptySelection({ value, selection }: ElementState, isForward: boolean): SelectionRange;
//# sourceMappingURL=get-not-empty-selection.d.ts.map

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

import { ElementState, SelectionRange } from '../types';
import type { ElementState, SelectionRange } from '../types';
export declare function getWordSelection({ value, selection }: ElementState, isForward: boolean): SelectionRange;
//# sourceMappingURL=get-word-selection.d.ts.map

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

import { MaskitoOptions, MaskitoPlugin } from '../types';
import type { MaskitoOptions, MaskitoPlugin } from '../types';
export declare function maskitoInitialCalibrationPlugin(customOptions?: MaskitoOptions): MaskitoPlugin;
//# sourceMappingURL=initial-calibration-plugin.d.ts.map

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

import { MaskitoPostprocessor, MaskitoPreprocessor } from '../types';
import type { MaskitoPostprocessor, MaskitoPreprocessor } from '../types';
/**

@@ -3,0 +3,0 @@ * @internal

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

import { MaskitoPlugin } from '../types';
import type { MaskitoPlugin } from '../types';
export declare function maskitoStrictCompositionPlugin(): MaskitoPlugin;
//# sourceMappingURL=strict-composition-plugin.d.ts.map

@@ -1,4 +0,4 @@

import { ElementState, MaskitoOptions } from '../types';
import type { ElementState, MaskitoOptions } from '../types';
export declare function maskitoTransform(value: string, maskitoOptions: MaskitoOptions): string;
export declare function maskitoTransform(state: ElementState, maskitoOptions: MaskitoOptions): ElementState;
//# sourceMappingURL=transform.d.ts.map

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

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

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

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

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

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