Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.

Commit 3e3e82d

Browse files
Merge pull request #9 from alexmacarthur/upgrade-to-v8
Update TypeIt to v8rc.
2 parents 42d5db5 + db188c7 commit 3e3e82d

File tree

7 files changed

+3826
-2160
lines changed

7 files changed

+3826
-2160
lines changed

README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The official React component for [TypeIt](https://github.com/alexmacarthur/typei
44

55
## License Options
66

7-
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.
7+
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.
88

99
- Single Commercial License - [Purchase Here](https://typeitjs.com/checkout/limited)
1010
- Extended Commercial License - [Purchase Here](https://typeitjs.com/checkout/unlimited)
@@ -68,7 +68,7 @@ export default () => {
6868
options={{
6969
strings: ["This will be typed!"],
7070
speed: 10,
71-
waitUntilVisible: true
71+
waitUntilVisible: true,
7272
}}
7373
/>
7474
</div>
@@ -100,13 +100,8 @@ TypeIt comes with a set of [special methods](https://typeitjs.com/docs#instance-
100100
import TypeIt from "typeit-react";
101101

102102
<TypeIt
103-
getBeforeInit={instance => {
104-
instance
105-
.type("Hi, I'm Alxe")
106-
.pause(750)
107-
.delete(2)
108-
.pause(500)
109-
.type("ex!");
103+
getBeforeInit={(instance) => {
104+
instance.type("Hi, I'm Alxe").pause(750).delete(2).pause(500).type("ex!");
110105

111106
// Remember to return it!
112107
return instance;
@@ -140,7 +135,7 @@ export default () => {
140135

141136
<TypeIt
142137
options={{ loop: true }}
143-
getAfterInit={instance => {
138+
getAfterInit={(instance) => {
144139
setInstance(instance);
145140
return instance;
146141
}}
@@ -155,7 +150,3 @@ export default () => {
155150
## Need Help?
156151

157152
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)
158-
159-
## License
160-
161-
[GPL-2.0](https://github.com/alexmacarthur/typeit/blob/master/LICENSE) © Alex MacArthur

babel.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ module.exports = {
44
"@babel/preset-env",
55
{
66
targets: {
7-
browsers: ["> 2%", "Last 2 versions"]
8-
}
9-
}
7+
browsers: ["> 2%", "Last 2 versions"],
8+
},
9+
},
1010
],
11-
"@babel/preset-react"
12-
]
11+
"@babel/preset-react",
12+
],
1313
};

dist/typeit-react.es.min.js

Lines changed: 2 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typeit-react.min.js

Lines changed: 2 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)