New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-mix-tag-input

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-mix-tag-input - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

dist/index.css

26

dist/index.d.ts

@@ -1,1 +0,25 @@

export * from './MixTagInput';
import React, { HTMLAttributes } from 'react';
type Tag = {
type: 'tag'
label: string
classes?: string
}
type MixInputValue = string | Tag
interface MixInputProps extends HTMLAttributes<HTMLDivElement> {
value?: MixInputValue[]
multiline?: boolean
onChange?: (value: MixInputValue[]) => void
}
interface MixInputRef {
inputRef: HTMLDivElement | null
insertContent: (newContent: MixInputValue) => void
getValue: () => MixInputValue[]
}
declare const MixInput: React.ForwardRefExoticComponent<MixInputProps & React.RefAttributes<MixInputRef>>;
export { MixInput as default };

90

package.json
{
"private": false,
"name": "react-mix-tag-input",
"version": "1.0.3",
"version": "1.0.4",
"description": "A simple react component for inputting tags with a mix of text",
"module": "dist/MixTagInput.mjs",
"main": "dist/MixTagInput.umd.js",
"module": "dist/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./dist/index.css": "./dist/index.css"
},
"files": [
"dist"
],
"exports": {
".": {
"import": "./dist/MixTagInput.mjs",
"require": "./dist/MixTagInput.umd.js"
}
},
"scripts": {
"test": "jest",
"build:clean": "rimraf build",
"build:rollup": "rollup -c",
"build": "npm-run-all build:clean build:rollup",
"vbuild": "vite build",
"test": "vitest --watch=false",
"test:watch": "vitest --watch",
"test:ui": "vitest --ui",
"coverage": "vitest run --coverage",
"build": "tsup",
"lint:ts": "eslint ./src --ext .ts,.tsx --config .eslintrc --fix",

@@ -28,6 +31,9 @@ "lint:styles": "stylelint \"**/*.css\" --fix",

"format": "prettier --write .",
"semantic-release": "semantic-release",
"release": "semantic-release",
"sb": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"engines": {
"node": ">=12"
},
"keywords": [

@@ -48,6 +54,2 @@ "mix-tag-input",

"devDependencies": {
"@rollup/plugin-commonjs": "^24.1.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-terser": "^0.4.1",
"@rollup/plugin-typescript": "^11.1.0",
"@semantic-release/commit-analyzer": "^9.0.2",

@@ -58,17 +60,17 @@ "@semantic-release/git": "^10.0.1",

"@semantic-release/release-notes-generator": "^11.0.1",
"@storybook/addon-essentials": "7.0.7",
"@storybook/addon-interactions": "7.0.7",
"@storybook/addon-links": "7.0.7",
"@storybook/addon-mdx-gfm": "7.0.7",
"@storybook/blocks": "7.0.7",
"@storybook/react": "7.0.7",
"@storybook/react-vite": "^7.0.7",
"@storybook/addon-essentials": "7.0.11",
"@storybook/addon-interactions": "7.0.11",
"@storybook/addon-links": "7.0.11",
"@storybook/addon-mdx-gfm": "7.0.11",
"@storybook/blocks": "7.0.11",
"@storybook/react": "7.0.11",
"@storybook/react-vite": "^7.0.11",
"@storybook/testing-library": "0.1.0",
"@testing-library/react": "^14.0.0",
"@total-typescript/ts-reset": "^0.4.2",
"@types/jest": "^29.5.1",
"@types/react": "^18.2.0",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"eslint": "^8.39.0",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",

@@ -79,18 +81,10 @@ "eslint-plugin-prettier": "^4.2.1",

"eslint-plugin-simple-import-sort": "^10.0.0",
"jest": "^29.5.0",
"jest-css-modules": "^2.1.0",
"jest-environment-jsdom": "^29.5.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.23",
"prettier": "^2.8.8",
"prop-types": "15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.0",
"rollup": "^3.21.2",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"semantic-release": "^21.0.2",
"storybook": "7.0.7",
"stylelint": "^15.6.0",
"storybook": "7.0.11",
"stylelint": "^15.6.1",
"stylelint-config-idiomatic-order": "^9.0.0",

@@ -101,7 +95,13 @@ "stylelint-config-prettier": "^9.0.5",

"stylelint-prettier": "^3.0.0",
"ts-jest": "^29.1.0",
"tslib": "^2.5.0",
"tsup": "^6.7.0",
"typescript": "^5.0.4",
"vite": "^4.3.4",
"vite-tsconfig-paths": "^4.2.0"
"vite": "^4.3.5",
"vitest": "^0.31.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@vitest/coverage-c8": "^0.31.0",
"@vitest/ui": "latest",
"jsdom": "latest"
},

@@ -108,0 +108,0 @@ "bugs": {

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