ahdjs 0.0.20 → 0.0.21

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 CHANGED
@@ -2,10 +2,36 @@
2
2
 
3
3
  <a href="https://www.npmjs.com/package/@hodgef/ts-library-boilerplate-basic"><img src="https://badgen.net/npm/v/@hodgef/ts-library-boilerplate-basic?color=blue" alt="npm version"></a> <a href="https://github.com/hodgef/ts-library-boilerplate"><img src="https://img.shields.io/github/last-commit/hodgef/ts-library-boilerplate" alt="latest commit"></a> <a href="https://github.com/hodgef/ts-library-boilerplate-basic/actions"><img alt="Build Status" src="https://github.com/hodgef/ts-library-boilerplate-basic/workflows/Build/badge.svg?color=green" /></a> <a href="https://github.com/hodgef/ts-library-boilerplate-basic/actions"> <img alt="Publish Status" src="https://github.com/hodgef/ts-library-boilerplate-basic/workflows/Publish/badge.svg?color=green" /></a>
4
4
 
5
- <strong>For a plain Javascript alternative, check out [js-library-boilerplate-basic](https://github.com/hodgef/js-library-boilerplate-basic).</strong>
5
+ # To get started
6
6
 
7
- </div>
8
7
 
8
+ ### npm Installtion
9
+ ```
10
+ npm install @ishaan-puniani/ahdjs
11
+ ```
12
+ ### app components
13
+ ```
14
+ import AHDjs from 'ahdjs';
15
+ const libraryInstance = new MyLibrary();
16
+
17
+ const ahdJS = new AHDjs(undefined, {applicationId: '<Application ID from Back office>'});
18
+ ...
19
+
20
+ ahdJS.updatePageUrl(props.url, false); <<-- to connect with router
21
+ ```
22
+
23
+ ### self-host/cdn
24
+
25
+ ```
26
+ <script src="build/index.js"></script>
27
+
28
+ const AHDjs = window.AHDjs.default;
29
+ const ahdJS = new AHDjs();
30
+ ...
31
+ ```
32
+
33
+
34
+ # For development and contribution
9
35
  ## ⭐️ Features
10
36
 
11
37
  - Webpack 5
@@ -20,7 +46,8 @@
20
46
  ## 📦 Getting Started
21
47
 
22
48
  ```
23
- git clone https://github.com/hodgef/ts-library-boilerplate-basic.git myLibrary
49
+ git clone https://github.com/ishaan-puniani/ahdjs.git
50
+ cd ahdjs
24
51
  npm install
25
52
  ```
26
53
 
@@ -37,28 +64,6 @@ npm install
37
64
  1. `npm publish`
38
65
  2. Your users can include your library as usual
39
66
 
40
- ### npm
41
-
42
- ```
43
- import MyLibrary from 'my-library';
44
- const libraryInstance = new MyLibrary();
45
- ...
46
- ```
47
-
48
- ### self-host/cdn
49
-
50
- ```
51
- <script src="build/index.js"></script>
52
-
53
- const MyLibrary = window.MyLibrary.default;
54
- const libraryInstance = new MyLibrary();
55
- ...
56
- ```
57
-
58
67
  ## ✅ Libraries built with this boilerplate
59
68
 
60
69
  > Made a library using this starter kit? Share it here by [submitting a pull request](https://github.com/hodgef/ts-library-boilerplate-basic/pulls)!
61
-
62
- - [simple-keyboard](https://github.com/hodgef/simple-keyboard) - Javascript Virtual Keyboard
63
- - [react-simple-keyboard](https://github.com/hodgef/react-simple-keyboard) - React Virtual Keyboard
64
- - [simple-keyboard-layouts](https://github.com/hodgef/simple-keyboard-layouts) - Keyboard layouts for simple-keyboard
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * ahdjs v0.0.20
3
+ * ahdjs v0.0.21
4
4
  *
5
5
  *
6
6
  * Copyright (c) Ishaan Puniani (https://github.com/ishaan-puniani) and project contributors.
package/build/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * ahdjs v0.0.20
3
+ * ahdjs v0.0.21
4
4
  *
5
5
  *
6
6
  * Copyright (c) Ishaan Puniani (https://github.com/ishaan-puniani) and project contributors.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ahdjs",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/types/index.d.ts",
package/testing.html CHANGED
@@ -6,12 +6,20 @@
6
6
  <body>
7
7
  <div class="tour-container">
8
8
  User input: <input id="user-input" /> <br /><br />
9
- <div id="try-and-buy" class="tour-section">Try & Buy</div>
9
+ <div id="try-and-buy" class="tour-section" data-ahd="create-new-entity">
10
+ Try & Buy
11
+ </div>
10
12
  <div id="subscription" class="tour-section">Subscription</div>
11
13
  <div id="pricing-table" class="tour-section" data-ahd="heading">
12
14
  Pricing Table
13
15
  </div>
14
- <div id="multi-feature" class="tour-section">Multi-Feature</div>
16
+ <div
17
+ id="multi-feature"
18
+ class="tour-section"
19
+ data-ahd="add-fields-application"
20
+ >
21
+ Multi-Feature
22
+ </div>
15
23
  <div id="node-locked" class="tour-section" data-ahd="widget-video">
16
24
  Node-Locked
17
25
  </div>
@@ -20,7 +28,7 @@
20
28
  <script>
21
29
  const tour1 = [
22
30
  {
23
- element: "#user-input",
31
+ element: "#user-input2",
24
32
  title: "Try & Buy",
25
33
  description:
26
34
  "Move to the next step is only possible if user input provided.",
@@ -204,16 +212,27 @@
204
212
  },
205
213
  ];
206
214
  const AHDjs = window.AHDjs.default;
207
- let _ahdJs = new AHDjs("6336128a251dcbda38bd8fe1");
208
- // _ahdJs.beacons(beacons);
215
+ let _ahdJs = new AHDjs(undefined, {
216
+ applicationId: "64d2b934c6cfdc96aa3734c5",
217
+ apiHost: "http://localhost:8080/ahd",
218
+ });
219
+ _ahdJs.initializeSiteMap();
220
+
221
+ setTimeout(() => {
222
+ // _ahdJs.clearCachedData()
223
+ }, 50000);
224
+
225
+ // _ahdJs.start();
226
+ _ahdJs.showPageTour("/auth/signin");
227
+ // _ahdJs.showPageBeacons("/configurator/view/xxxx");
209
228
  // _ahdJs.showInformation(beacons);
210
229
  debugger;
211
- _ahdJs.updatePageUrl("/testing.html");
230
+ //_ahdJs.updatePageUrl("/testing.html");
212
231
  // _ahdJs.start();
213
- setTimeout(() => {
214
- // _ahdJs.updatePageUrl("/testing.html");
215
- _ahdJs.beacons();
216
- }, 10000);
232
+ // setTimeout(() => {
233
+ // // _ahdJs.updatePageUrl("/testing.html");
234
+ // _ahdJs.beacons();
235
+ // }, 10000);
217
236
  // setTimeout(async () => {
218
237
  // await _ahdJs.stop();
219
238
  // debugger;