ahdjs 0.0.31 → 0.0.33

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.
@@ -12,6 +12,7 @@ declare class AHD extends GuideChimp {
12
12
  initializeSiteMap(refetch: boolean): Promise<void>;
13
13
  getHelpContent(url: string, refetch: boolean): Promise<any>;
14
14
  showPageTour(url: string, refetch: boolean): Promise<void>;
15
+ showAppBanner(url: string, refetch: boolean): Promise<any>;
15
16
  fetchFaqs(slug: any): Promise<any>;
16
17
  showPageBeacons(url: string, refetch: boolean): Promise<void>;
17
18
  showPageHighlights(url: string, refetch: boolean, force?: boolean): Promise<void>;
@@ -22,6 +23,7 @@ declare class AHD extends GuideChimp {
22
23
  private getApplicabeDataForUrl;
23
24
  private fetchAndCacheHighlightsData;
24
25
  private fetchAndCacheTourData;
26
+ private fetchAndCacheBannerData;
25
27
  private fetchAndCachePageVisitsData;
26
28
  private updateVisitorStats;
27
29
  private markPageVisited;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ahdjs",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/types/index.d.ts",
package/testing.html CHANGED
@@ -212,24 +212,27 @@
212
212
  },
213
213
  ];
214
214
  const AHDjs = window.AHDjs.default;
215
- let _ahdJs = new AHDjs(undefined, {
216
- applicationId: "651c857ff482b36117dc1757",
217
- apiHost: "https://ahd.fabbuilder.com",
215
+ let _ahdJs = new AHDjs(undefined, {
216
+ applicationId: "6655bc2b30a6760d8f897581",
217
+ apiHost: "https://pagepilot.fabbuilder.com",
218
218
  });
219
219
  _ahdJs.initializeSiteMap();
220
220
 
221
221
  setTimeout(() => {
222
- _ahdJs.clearCachedData()
222
+ _ahdJs.clearCachedData();
223
223
  }, 50000);
224
224
 
225
225
  // _ahdJs.start();
226
- _ahdJs.showPageTour("/auth/signin");
227
- _ahdJs.fetchFaqs('/user');
228
- _ahdJs.showPageBeacons("/auth/signin");
226
+ _ahdJs.showPageTour("/slug");
227
+ _ahdJs.showAppBanner().then((banner) => {
228
+ alert(JSON.stringify(banner));
229
+ });
230
+
231
+ _ahdJs.fetchFaqs("/help-support");
232
+ _ahdJs.showPageBeacons("beacon-labs64");
229
233
  //_ahdJs.showPageFAQs("/auth/signin");
230
234
  // _ahdJs.showPageHelpDrawer("/auth/signin");
231
235
  // _ahdJs.showInformation(beacons);
232
- debugger;
233
236
  //_ahdJs.updatePageUrl("/testing.html");
234
237
  // _ahdJs.start();
235
238
  // setTimeout(() => {