Skip to content

Commit cab277e

Browse files
authored
Merge pull request #1092 from usablica/babel-ie11
fix(babel): updating the browser support
2 parents 646c80c + 3518bde commit cab277e

File tree

7 files changed

+50
-32
lines changed

7 files changed

+50
-32
lines changed

.babelrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![](https://data.jsdelivr.com/v1/package/npm/intro.js/badge)](https://www.jsdelivr.com/package/npm/intro.js)
55
[![npm](https://img.shields.io/npm/dm/intro.js)](https://www.jsdelivr.com/package/npm/intro.js)
66

7-
> Better introductions for websites and features with a step-by-step guide for your projects.
7+
> Lightweight, user-friendly onboarding tour library
88
99
## Where to get
1010
You can obtain your local copy of Intro.js from:
@@ -61,22 +61,6 @@ Now you can run this command to minify all static resources:
6161

6262
npm run build
6363

64-
## Instant IntroJs
65-
66-
Want to learn faster and easier? Here we have **Instant IntroJs**, Packt Publishing.
67-
68-
<p align="center">
69-
<a target='_blank' href="https://www.packtpub.com/eu/application-development/instant-introjs-instant">
70-
<img src='https://www.packtpub.com/media/catalog/product/cache/4cdce5a811acc0d2926d7f857dceb83b/2/5/2517os_instant20introjs20starter.jpg' />
71-
</a>
72-
</p>
73-
74-
<p align="center">
75-
<a target='_blank' href="https://www.packtpub.com/eu/application-development/instant-introjs-instant">Buy and Download</a>
76-
</p>
77-
78-
## <a href="https://github.com/usablica/intro.js/blob/master/changelog.md">Release History</a>
79-
8064
## Contributors ✨
8165

8266
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->

babel.config.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
"env": {
3+
test: {
4+
presets: [
5+
[
6+
"@babel/env",
7+
{
8+
targets: {
9+
browsers: "> 0.5%, ie >= 11"
10+
}
11+
}
12+
]
13+
]
14+
}
15+
},
16+
"presets": [
17+
[
18+
"@babel/env",
19+
{
20+
targets: {
21+
browsers: "> 0.5%, ie >= 11"
22+
},
23+
modules: false,
24+
useBuiltIns: "usage",
25+
forceAllTransforms: true,
26+
corejs: {
27+
version: 3,
28+
proposals: false
29+
}
30+
}
31+
]
32+
]
33+
}

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intro.js",
3-
"description": "A better way for new feature introduction and step-by-step users guide for your website and project.",
3+
"description": "Lightweight, user-friendly onboarding tour library",
44
"keywords": ["demo", "intro", "introduction"],
55
"homepage": "http://introjs.com",
66
"author": "Afshin Mehrabani",

component.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "intro.js",
33
"repo": "usablica/intro.js",
4-
"description": "Better introductions for websites and features with a step-by-step guide for your projects",
5-
"version": "2.9.3",
4+
"description": "Lightweight, user-friendly onboarding tour library",
5+
"version": "3.1.0",
66
"main": "intro.js",
77
"scripts": [
88
"intro.js"

package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
22
"name": "intro.js",
3-
"description": "Better introductions for websites and features with a step-by-step guide for your projects",
4-
"version": "3.0.1",
3+
"version": "3.1.0",
4+
"description": "Lightweight, user-friendly onboarding tour library",
5+
"keywords": [
6+
"onboarding",
7+
"tour",
8+
"introjs",
9+
"intro",
10+
"guide",
11+
"walkthrough"
12+
],
513
"author": "Afshin Mehrabani <[email protected]>",
6-
"homepage": "http://introjs.com",
14+
"homepage": "https://introjs.com",
715
"repository": {
816
"type": "git",
917
"url": "https://github.com/usablica/intro.js"

src/core/introForElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default function introForElement(targetElm, group) {
102102
if (step > 0) {
103103
introItems[step - 1] = {
104104
element: currentElement,
105-
title: currentElement.getAttribute("data-title"),
105+
title: currentElement.getAttribute("data-title") || '',
106106
intro: currentElement.getAttribute("data-intro"),
107107
step: parseInt(currentElement.getAttribute("data-step"), 10),
108108
tooltipClass: currentElement.getAttribute("data-tooltipclass"),
@@ -148,7 +148,7 @@ export default function introForElement(targetElm, group) {
148148

149149
introItems[nextStep] = {
150150
element: currentElement,
151-
title: currentElement.getAttribute("data-title"),
151+
title: currentElement.getAttribute("data-title") || '',
152152
intro: currentElement.getAttribute("data-intro"),
153153
step: nextStep + 1,
154154
tooltipClass: currentElement.getAttribute("data-tooltipclass"),

0 commit comments

Comments
 (0)