Skip to content

Commit

Permalink
v3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudkite committed May 6, 2023
1 parent cd50709 commit 39fe183
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "helphero",
"version": "3.7.0",
"version": "3.8.0",
"description": "Offical HelpHero SDK for browsers",
"repository": "git://github.com/HelpHero/helphero-javascript.git",
"homepage": "https://github.com/HelpHero/helphero-javascript",
Expand Down
26 changes: 26 additions & 0 deletions src/helphero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,22 @@ export type ChecklistEventInfo = {
item?: ChecklistItem;
};

type HotspotEventKind = "hotspot_visited" | "hotspot_dismissed";

export type HotspotEvent = {
kind: HotspotEventKind;
hotspotId: string;
};

export type Hotspot = {
id: string;
name: string;
};

export type HotspotEventInfo = {
hotspot: Hotspot;
};

type Data = {
[key: string]: boolean | number | string | undefined | null;
};
Expand Down Expand Up @@ -96,6 +112,11 @@ export type HelpHero = {
fn: (ev: ChecklistEvent, info: ChecklistEventInfo) => void,
context?: any
): void;
on(
kind: HotspotEventKind,
fn: (ev: HotspotEvent, info: HotspotEventInfo) => void,
context?: any
): void;
off(
fn: (
ev: TourEvent | ChecklistEvent,
Expand All @@ -113,6 +134,11 @@ export type HelpHero = {
fn: (ev: ChecklistEvent, info: ChecklistEventInfo) => void,
context?: any
): void;
off(
kind: HotspotEventKind,
fn: (ev: HotspotEvent, info: HotspotEventInfo) => void,
context?: any
): void;
openChecklist: () => void;
closeChecklist: () => void;
startChecklist: (id: string) => void;
Expand Down

0 comments on commit 39fe183

Please sign in to comment.