Comparing version 3.8.0 to 3.9.0
@@ -1,3 +0,3 @@ | ||
declare type TourEventKind = "tour_started" | "tour_completed" | "tour_advanced" | "tour_cancelled" | "tour_interrupted" | "error"; | ||
export declare type TourEvent = { | ||
type TourEventKind = "tour_started" | "tour_completed" | "tour_advanced" | "tour_cancelled" | "tour_interrupted" | "error"; | ||
export type TourEvent = { | ||
kind: TourEventKind; | ||
@@ -8,16 +8,16 @@ details?: string; | ||
}; | ||
export declare type Step = { | ||
export type Step = { | ||
id: string; | ||
name: string; | ||
}; | ||
export declare type Tour = { | ||
export type Tour = { | ||
id: string; | ||
name: string; | ||
}; | ||
export declare type TourEventInfo = { | ||
export type TourEventInfo = { | ||
tour?: Tour; | ||
step?: Step; | ||
}; | ||
declare type ChecklistEventKind = "checklist_completed" | "checklist_item_completed"; | ||
export declare type ChecklistEvent = { | ||
type ChecklistEventKind = "checklist_completed" | "checklist_item_completed"; | ||
export type ChecklistEvent = { | ||
kind: ChecklistEventKind; | ||
@@ -27,7 +27,7 @@ checklistId: string; | ||
}; | ||
export declare type ChecklistItem = { | ||
export type ChecklistItem = { | ||
id: string; | ||
name: string; | ||
}; | ||
export declare type Checklist = { | ||
export type Checklist = { | ||
id: string; | ||
@@ -37,22 +37,22 @@ name: string; | ||
}; | ||
export declare type ChecklistEventInfo = { | ||
export type ChecklistEventInfo = { | ||
checklist: Checklist; | ||
item?: ChecklistItem; | ||
}; | ||
declare type HotspotEventKind = "hotspot_visited" | "hotspot_dismissed"; | ||
export declare type HotspotEvent = { | ||
type HotspotEventKind = "hotspot_visited" | "hotspot_dismissed"; | ||
export type HotspotEvent = { | ||
kind: HotspotEventKind; | ||
hotspotId: string; | ||
}; | ||
export declare type Hotspot = { | ||
export type Hotspot = { | ||
id: string; | ||
name: string; | ||
}; | ||
export declare type HotspotEventInfo = { | ||
export type HotspotEventInfo = { | ||
hotspot: Hotspot; | ||
}; | ||
declare type Data = { | ||
[key: string]: boolean | number | string | undefined | null; | ||
type Data = { | ||
[key: string]: boolean | number | string | Date | undefined | null; | ||
}; | ||
export declare type StartOptions = { | ||
export type StartOptions = { | ||
skipIfAlreadySeen?: boolean; | ||
@@ -62,6 +62,6 @@ redirectIfNeeded?: boolean; | ||
}; | ||
export declare type AdvanceOptions = { | ||
export type AdvanceOptions = { | ||
stepId?: string | number; | ||
}; | ||
export declare type Options = { | ||
export type Options = { | ||
show?: boolean; | ||
@@ -71,3 +71,3 @@ showBeacon?: boolean; | ||
}; | ||
export declare type HelpHero = { | ||
export type HelpHero = { | ||
startTour: (id: string, options?: StartOptions) => void; | ||
@@ -74,0 +74,0 @@ advanceTour: (options?: AdvanceOptions) => void; |
/** | ||
* Flowtype definitions for helphero | ||
* Generated by Flowgen from a Typescript Definition | ||
* Flowgen v1.14.1 | ||
* Flowgen v1.21.0 | ||
*/ | ||
@@ -65,5 +65,5 @@ | ||
|}; | ||
declare type Data = {| | ||
[key: string]: boolean | number | string | void | null, | ||
|}; | ||
declare type Data = { | ||
[key: string]: boolean | number | string | Date | void | null, | ||
}; | ||
export type StartOptions = {| | ||
@@ -70,0 +70,0 @@ skipIfAlreadySeen?: boolean, |
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.helphero = factory()); | ||
}(this, (function () { 'use strict'; | ||
})(this, (function () { 'use strict'; | ||
@@ -27,6 +27,6 @@ var methods = [ | ||
if (typeof appId !== "string" || appId === "") { | ||
throw new Error("Invalid HelpHero App ID: " + appId); | ||
throw new Error("Invalid HelpHero App ID: ".concat(appId)); | ||
} | ||
if (initializedAppId != null && initializedAppId !== appId) { | ||
throw new Error("HelpHero does not support initializing multiple Apps on the same page. Trying to initialize with App ID \"" + appId + "\" which is different from previously used App ID \"" + initializedAppId + "\""); | ||
throw new Error("HelpHero does not support initializing multiple Apps on the same page. Trying to initialize with App ID \"".concat(appId, "\" which is different from previously used App ID \"").concat(initializedAppId, "\"")); | ||
} | ||
@@ -54,3 +54,3 @@ var host = window; | ||
var script = document.createElement("script"); | ||
script.src = "https://app.helphero.co/embed/" + appId; | ||
script.src = "https://app.helphero.co/embed/".concat(appId); | ||
script.async = true; | ||
@@ -64,2 +64,2 @@ document.body.appendChild(script); | ||
}))); | ||
})); |
{ | ||
"name": "helphero", | ||
"version": "3.8.0", | ||
"version": "3.9.0", | ||
"description": "Offical HelpHero SDK for browsers", | ||
@@ -21,3 +21,3 @@ "repository": "git://github.com/HelpHero/helphero-javascript.git", | ||
"prettier-check": "prettier-check 'src/**/*.ts'", | ||
"prepare": "yarn tsc && yarn prettier-check && yarn clean && yarn build && yarn flowgen" | ||
"prepare": "npm run tsc && npm run prettier-check && npm run clean && npm run build && npm run flowgen" | ||
}, | ||
@@ -29,11 +29,11 @@ "files": [ | ||
"devDependencies": { | ||
"del-cli": "^4.0.0", | ||
"flowgen": "^1.14.1", | ||
"prettier": "^2.3.2", | ||
"del-cli": "^5.1.0", | ||
"flowgen": "^1.21.0", | ||
"prettier": "^3.0.3", | ||
"prettier-check": "^2.0.0", | ||
"rollup": "^2.52.8", | ||
"rollup": "^3.29.3", | ||
"rollup-plugin-cleanup": "^3.2.1", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"typescript": "^4.3.5" | ||
"rollup-plugin-typescript2": "^0.35.0", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
11475