ahdjs 0.0.32 → 0.0.34
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/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 +2 -0
- package/package.json +1 -1
- package/testing.html +11 -8
package/build/types/index.d.ts
CHANGED
|
@@ -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
package/testing.html
CHANGED
|
@@ -212,24 +212,27 @@
|
|
|
212
212
|
},
|
|
213
213
|
];
|
|
214
214
|
const AHDjs = window.AHDjs.default;
|
|
215
|
-
|
|
216
|
-
applicationId: "
|
|
217
|
-
apiHost: "https://
|
|
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("/
|
|
227
|
-
|
|
228
|
-
|
|
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(() => {
|