Socket
Socket
Sign inDemoInstall

typeit-react

Package Overview
Dependencies
292
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 2.0.0-rc.0

dist/helpers/isVoidElement.d.ts

53

package.json
{
"name": "typeit-react",
"version": "0.1.3",
"version": "2.0.0-rc.0",
"description": "React component for the most versatile JavaScript animated typing utility on the planet.",
"homepage": "https://typeitjs.com",
"main": "dist/typeit-react.min.js",
"module": "dist/typeit-react.es.min.js",
"main": "dist/index.umd.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"scripts": {
"watch": "NODE_ENV=development rollup -c -w",
"build": "NODE_ENV=production rollup -c",
"precommit": "pretty-quick --staged",
"build": "microbundle -i src/index.tsx -o dist/index.js --name TypeIt --no-sourcemap --jsx React.createElement && scripts/banner",
"watch": "microbundle -i src/index.tsx -o dist/index.js --name TypeIt --format umd --no-sourcemap --jsx React.createElement watch",
"prettier": "prettier --write \"**/*.{md,js}\"",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install"
},

@@ -37,28 +38,26 @@ "files": [

"author": "Alex MacArthur <alex@macarthur.me> (https://macarthur.me)",
"license": "GPL-2.0",
"license": "GPL-3.0",
"dependencies": {
"@types/react": "^16.9.19",
"typeit": "^7.0.3"
"@types/react": "^17.0.18",
"npm-check-updates": "^11.8.3"
},
"peerDependencies": {
"react": "^16.12.0",
"react-dom": "^16.12.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@babel/preset-react": "^7.8.3",
"@rollup/plugin-node-resolve": "^7.1.1",
"babel-loader": "^8.0.6",
"husky": "^4.2.1",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"rollup": "^1.31.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-terser": "^5.2.0",
"rollup-plugin-typescript": "^1.0.1",
"tslib": "^1.10.0",
"typescript": "^3.7.5"
"@babel/preset-typescript": "^7.15.0",
"concurrently": "^6.2.1",
"husky": "^7.0.1",
"jest": "^27.0.6",
"jest-cli": "^27.0.6",
"lint-staged": "^11.1.2",
"microbundle": "^0.13.3",
"prettier": "^2.3.2",
"typeit": "^8.0.0-rc.1",
"typescript": "^4.3.5"
},
"lint-staged": {
"*.{js,css,md}": "prettier --write"
}
}

@@ -7,3 +7,3 @@ # TypeIt - React

Use this component in an open source or personal project for free. For commercial projects, the following licenses are available. A single license will cover use of this component, as well as TypeItJS itself.
Using TypeIt for an open source or personal project is completely free is licensed under [GPLv3](https://www.gnu.org/licenses/quick-guide-gplv3.html). To use it in a commercial project, however, a paid license is required.

@@ -72,3 +72,3 @@ - Single Commercial License - [Purchase Here](https://typeitjs.com/checkout/limited)

speed: 10,
waitUntilVisible: true
waitUntilVisible: true,
}}

@@ -83,3 +83,3 @@ />

Out of the box, a `span` element is used to contain the typing animation. To choose your own element, use the `element` prop.
Out of the box, a `span` element is used to contain the typing animation. To choose your own element, use the `as` prop.

@@ -92,3 +92,3 @@ ```javascript

<div className="App">
<TypeIt element={"h3"}>This will be typed in an H3 tag.</TypeIt>
<TypeIt as={"h3"}>This will be typed in an H3 tag.</TypeIt>
</div>

@@ -107,9 +107,4 @@ );

<TypeIt
getBeforeInit={instance => {
instance
.type("Hi, I'm Alxe")
.pause(750)
.delete(2)
.pause(500)
.type("ex!");
getBeforeInit={(instance) => {
instance.type("Hi, I'm Alxe").pause(750).delete(2).pause(500).type("ex!");

@@ -148,3 +143,3 @@ // Remember to return it!

options={{ loop: true }}
getAfterInit={instance => {
getAfterInit={(instance) => {
setInstance(instance);

@@ -164,5 +159,1 @@ return instance;

If you're working with a custom implementation of TypeIt and would like some help, I'm available for hire. [Get in touch!](https://macarthur.me/contact)
## License
[GPL-2.0](https://github.com/alexmacarthur/typeit/blob/master/LICENSE) © Alex MacArthur

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc