@guidelytech/sdk-core 0.4.0 → 0.5.0
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/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1311,7 +1311,7 @@ var loadRecorder = async () => (await import("./recorder.cjs")).recorder;
|
|
|
1311
1311
|
|
|
1312
1312
|
// src/client.ts
|
|
1313
1313
|
var SDK_NAME = "@guidelytech/sdk-core";
|
|
1314
|
-
var SDK_VERSION = "0.
|
|
1314
|
+
var SDK_VERSION = "0.5.0";
|
|
1315
1315
|
var DEFAULT_API_URL = "https://api.guidely.app";
|
|
1316
1316
|
var PAGE_SCOPED = /* @__PURE__ */ new Set(["page_load", "url_match", "element_click", "element_visible", "delay"]);
|
|
1317
1317
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -2442,6 +2442,7 @@ var GuidelyClient = class _GuidelyClient {
|
|
|
2442
2442
|
config: rc,
|
|
2443
2443
|
guides: this.config.guides.map((g) => ({ id: g.id, key: g.key, name: g.name, kind: g.kind })),
|
|
2444
2444
|
search: (q) => this.searchResourceCenter(q),
|
|
2445
|
+
audienceIds: () => this.state.audienceIds,
|
|
2445
2446
|
loadArticle: (id) => this.loadArticle(id),
|
|
2446
2447
|
onStartGuide: (id) => this.startGuide(id),
|
|
2447
2448
|
onOpenChecklist: (id) => this.openChecklist(id),
|
|
@@ -2486,6 +2487,7 @@ var GuidelyClient = class _GuidelyClient {
|
|
|
2486
2487
|
pageUrl: () => this.collectUrls() ? location.href : void 0
|
|
2487
2488
|
}),
|
|
2488
2489
|
resourceCenter: this.config.resourceCenter,
|
|
2490
|
+
audienceIds: () => this.state.audienceIds,
|
|
2489
2491
|
guides: this.config.guides.map((g) => ({ id: g.id, key: g.key, name: g.name, kind: g.kind })),
|
|
2490
2492
|
onStartGuide: (idOrKey) => this.startGuide(idOrKey),
|
|
2491
2493
|
onOpenChecklist: (id) => this.openChecklist(id),
|