@guidelytech/sdk-core 0.4.1 → 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.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { k as GuidelyOptions, c as GuidelyAccount, a as ConsentState, C as Check
|
|
|
6
6
|
export { E as EventQueue, b as EventQueueOptions, n as GuideStepInfo, d as GuidelyEnvironment, o as GuidelyEventName, K as KEYS, f as KeyValueStore, P as PersistedState, p as StorageKind, g as areMutuallyExclusive, q as createStorage, i as isExclusiveGuide, h as isFrequencyEligible, j as isWithinSchedule } from './types-BZ9r3Fs9.cjs';
|
|
7
7
|
|
|
8
8
|
declare const SDK_NAME = "@guidelytech/sdk-core";
|
|
9
|
-
declare const SDK_VERSION = "0.
|
|
9
|
+
declare const SDK_VERSION = "0.5.0";
|
|
10
10
|
declare const DEFAULT_API_URL = "https://api.guidely.app";
|
|
11
11
|
/**
|
|
12
12
|
* Framework-independent Guidely client. Create one per page with {@link createGuidely} or
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { k as GuidelyOptions, c as GuidelyAccount, a as ConsentState, C as Check
|
|
|
6
6
|
export { E as EventQueue, b as EventQueueOptions, n as GuideStepInfo, d as GuidelyEnvironment, o as GuidelyEventName, K as KEYS, f as KeyValueStore, P as PersistedState, p as StorageKind, g as areMutuallyExclusive, q as createStorage, i as isExclusiveGuide, h as isFrequencyEligible, j as isWithinSchedule } from './types-BZ9r3Fs9.js';
|
|
7
7
|
|
|
8
8
|
declare const SDK_NAME = "@guidelytech/sdk-core";
|
|
9
|
-
declare const SDK_VERSION = "0.
|
|
9
|
+
declare const SDK_VERSION = "0.5.0";
|
|
10
10
|
declare const DEFAULT_API_URL = "https://api.guidely.app";
|
|
11
11
|
/**
|
|
12
12
|
* Framework-independent Guidely client. Create one per page with {@link createGuidely} or
|
package/dist/index.js
CHANGED
|
@@ -879,7 +879,7 @@ var loadRecorder = async () => (await import("./recorder.js")).recorder;
|
|
|
879
879
|
|
|
880
880
|
// src/client.ts
|
|
881
881
|
var SDK_NAME = "@guidelytech/sdk-core";
|
|
882
|
-
var SDK_VERSION = "0.
|
|
882
|
+
var SDK_VERSION = "0.5.0";
|
|
883
883
|
var DEFAULT_API_URL = "https://api.guidely.app";
|
|
884
884
|
var PAGE_SCOPED = /* @__PURE__ */ new Set(["page_load", "url_match", "element_click", "element_visible", "delay"]);
|
|
885
885
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -2010,6 +2010,7 @@ var GuidelyClient = class _GuidelyClient {
|
|
|
2010
2010
|
config: rc,
|
|
2011
2011
|
guides: this.config.guides.map((g) => ({ id: g.id, key: g.key, name: g.name, kind: g.kind })),
|
|
2012
2012
|
search: (q) => this.searchResourceCenter(q),
|
|
2013
|
+
audienceIds: () => this.state.audienceIds,
|
|
2013
2014
|
loadArticle: (id) => this.loadArticle(id),
|
|
2014
2015
|
onStartGuide: (id) => this.startGuide(id),
|
|
2015
2016
|
onOpenChecklist: (id) => this.openChecklist(id),
|
|
@@ -2054,6 +2055,7 @@ var GuidelyClient = class _GuidelyClient {
|
|
|
2054
2055
|
pageUrl: () => this.collectUrls() ? location.href : void 0
|
|
2055
2056
|
}),
|
|
2056
2057
|
resourceCenter: this.config.resourceCenter,
|
|
2058
|
+
audienceIds: () => this.state.audienceIds,
|
|
2057
2059
|
guides: this.config.guides.map((g) => ({ id: g.id, key: g.key, name: g.name, kind: g.kind })),
|
|
2058
2060
|
onStartGuide: (idOrKey) => this.startGuide(idOrKey),
|
|
2059
2061
|
onOpenChecklist: (id) => this.openChecklist(id),
|