ahdjs 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -3
- package/build/css/index.css +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/types/index.d.ts +6 -2
- package/package.json +1 -1
- package/webpack.config.development.js +97 -0
package/README.md
CHANGED
|
@@ -7,19 +7,39 @@
|
|
|
7
7
|
|
|
8
8
|
### npm Installtion
|
|
9
9
|
```
|
|
10
|
-
npm install
|
|
10
|
+
npm install ahdjs --save
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### yarn Installtion
|
|
14
|
+
```
|
|
15
|
+
yarn add ahdjs
|
|
11
16
|
```
|
|
12
17
|
### app components
|
|
13
18
|
```
|
|
14
19
|
import AHDjs from 'ahdjs';
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
...
|
|
17
21
|
const ahdJS = new AHDjs(undefined, {applicationId: '<Application ID from Back office>'});
|
|
18
22
|
...
|
|
19
23
|
|
|
24
|
+
ahdJS.initializeSiteMap();
|
|
20
25
|
ahdJS.updatePageUrl(props.url, false); <<-- to connect with router
|
|
21
26
|
```
|
|
22
27
|
|
|
28
|
+
### Example
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
let _ahdJs = new AHDjs(undefined, {
|
|
32
|
+
applicationId: "64d2b934c6cfdc96aa3734c5",
|
|
33
|
+
apiHost: "https://ahd.fabbuilder.com",
|
|
34
|
+
});
|
|
35
|
+
_ahdJs.initializeSiteMap();
|
|
36
|
+
|
|
37
|
+
setTimeout(() => {
|
|
38
|
+
_ahdJs.showPageTour("/auth/signin");
|
|
39
|
+
}, 1000);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
|
|
23
43
|
### self-host/cdn
|
|
24
44
|
|
|
25
45
|
```
|