typeit-react
Advanced tools
Comparing version 2.7.0 to 2.7.1
import React from "react"; | ||
import { TypeItOptions } from "typeit"; | ||
import type { TypeIt as ITypeIt } from "typeit"; | ||
import { Options, default as TypeItCore } from "typeit"; | ||
export interface TypeItProps { | ||
as?: keyof JSX.IntrinsicElements; | ||
options?: TypeItOptions; | ||
options?: Options; | ||
children?: React.ReactNode; | ||
getBeforeInit?: (instance: ITypeIt) => Function; | ||
getAfterInit?: (instance: ITypeIt) => Function; | ||
getBeforeInit?: (instance: TypeItCore) => TypeItCore; | ||
getAfterInit?: (instance: TypeItCore) => TypeItCore; | ||
[key: string]: any; | ||
@@ -11,0 +10,0 @@ } |
@@ -351,3 +351,5 @@ var __defProp = Object.defineProperty; | ||
const generateHash = () => Math.random().toString().substring(2, 9); | ||
const isInput = (el) => "value" in el; | ||
const isInput = (el) => { | ||
return "value" in el; | ||
}; | ||
let getAllChars = (element) => { | ||
@@ -354,0 +356,0 @@ if (isInput(element)) { |
{ | ||
"name": "typeit-react", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "React component for the most versatile JavaScript animated typing utility on the planet.", | ||
@@ -14,3 +14,3 @@ "homepage": "https://typeitjs.com", | ||
"prettier": "prettier --write \"**/*.{md,js}\"", | ||
"test": "echo \"Error: no test specified\" && exit 0", | ||
"test": "vitest run src", | ||
"prepare": "npm run build" | ||
@@ -44,11 +44,16 @@ }, | ||
"react-dom": ">=18.2.0", | ||
"typeit": "^8.8.0" | ||
"typeit": "^8.8.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@types/react": "^18.2.38", | ||
"terser": "^5.24.0", | ||
"typescript": "^5.3.2", | ||
"vite": "^5.0.2" | ||
"@testing-library/jest-dom": "^6.2.0", | ||
"@testing-library/react": "^14.1.2", | ||
"@types/react": "^18.2.47", | ||
"jsdom": "^23.2.0", | ||
"terser": "^5.26.0", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.11", | ||
"vitest": "^1.2.0", | ||
"vitest-dom": "^0.1.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
61058
10
1212
1
0
10
Updatedtypeit@^8.8.3