crisp-sdk-web
Advanced tools
Comparing version 1.0.15 to 1.0.17
@@ -33,3 +33,3 @@ declare type FileMessage = { | ||
label: string; | ||
description: boolean; | ||
description: string; | ||
image?: string; | ||
@@ -36,0 +36,0 @@ actions: CarouselMessageTargetsActions[]; |
@@ -474,3 +474,3 @@ var CrispMessage = /** @class */ (function () { | ||
Crisp.prototype.autoInjectIfNecessasy = function () { | ||
if (this.isCrispInjected() !== true) { | ||
if (!this.isCrispInjected()) { | ||
this.load(); | ||
@@ -497,3 +497,3 @@ } | ||
export { singleton as Crisp, Crisp as CrispClass }; | ||
export { ChatboxColors, ChatboxPosition, singleton as Crisp, Crisp as CrispClass, EventsColors }; | ||
//# sourceMappingURL=crisp.esm.js.map |
@@ -186,3 +186,3 @@ (function (global, factory) { | ||
var EventsColors; | ||
exports.EventsColors = void 0; | ||
(function (EventsColors) { | ||
@@ -199,3 +199,3 @@ EventsColors["Red"] = "red"; | ||
EventsColors["Black"] = "black"; | ||
})(EventsColors || (EventsColors = {})); | ||
})(exports.EventsColors || (exports.EventsColors = {})); | ||
var CrispSession = /** @class */ (function () { | ||
@@ -228,3 +228,3 @@ function CrispSession(crisp) { | ||
if (data === void 0) { data = {}; } | ||
if (color === void 0) { color = EventsColors.Blue; } | ||
if (color === void 0) { color = exports.EventsColors.Blue; } | ||
if (this.parent.isCrispInjected()) { | ||
@@ -316,3 +316,3 @@ window.$crisp.push(["set", "session:event", [[[name, data, color]]]]); | ||
var ChatboxColors; | ||
exports.ChatboxColors = void 0; | ||
(function (ChatboxColors) { | ||
@@ -338,8 +338,8 @@ ChatboxColors["Default"] = "default"; | ||
ChatboxColors["Teal"] = "teal"; | ||
})(ChatboxColors || (ChatboxColors = {})); | ||
var ChatboxPosition; | ||
})(exports.ChatboxColors || (exports.ChatboxColors = {})); | ||
exports.ChatboxPosition = void 0; | ||
(function (ChatboxPosition) { | ||
ChatboxPosition["Left"] = "left"; | ||
ChatboxPosition["Right"] = "right"; | ||
})(ChatboxPosition || (ChatboxPosition = {})); | ||
})(exports.ChatboxPosition || (exports.ChatboxPosition = {})); | ||
var Crisp = /** @class */ (function () { | ||
@@ -455,3 +455,3 @@ function Crisp() { | ||
this.createSingletonIfNecessary(); | ||
$crisp.push(["config", "position:reverse", [position === ChatboxPosition.Left]]); | ||
$crisp.push(["config", "position:reverse", [position === exports.ChatboxPosition.Left]]); | ||
}; | ||
@@ -486,3 +486,3 @@ Crisp.prototype.setAvailabilityTooltip = function (enabled) { | ||
Crisp.prototype.autoInjectIfNecessasy = function () { | ||
if (this.isCrispInjected() !== true) { | ||
if (!this.isCrispInjected()) { | ||
this.load(); | ||
@@ -489,0 +489,0 @@ } |
{ | ||
"name": "crisp-sdk-web", | ||
"version": "1.0.15", | ||
"version": "1.0.17", | ||
"description": "Include Crisp chat widget inside web frameworks.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import {CrispClass as Crisp} from "./index"; | ||
class CrispChat { | ||
export default class CrispChat { | ||
private parent: Crisp; | ||
@@ -79,3 +79,1 @@ | ||
} | ||
export default CrispChat; |
import CrispMessage from "./message"; | ||
import { | ||
export { | ||
AnimationMessage, | ||
@@ -14,3 +14,3 @@ AudioMessage, | ||
import { | ||
export { | ||
CompanyData, | ||
@@ -25,3 +25,3 @@ CompanyDataEmployment, | ||
import { | ||
export { | ||
EventsColors, | ||
@@ -44,3 +44,3 @@ } from "./session"; | ||
type Options = { | ||
export type Options = { | ||
clientUrl?: string | ||
@@ -58,3 +58,3 @@ autoload?: boolean, | ||
enum ChatboxColors { | ||
export enum ChatboxColors { | ||
Default = "default", | ||
@@ -81,3 +81,3 @@ Amber = "amber", | ||
enum ChatboxPosition { | ||
export enum ChatboxPosition { | ||
Left = "left", | ||
@@ -193,3 +193,3 @@ Right = "right", | ||
if (this.safeMode === true) { | ||
this.setSafeMode(true); | ||
this.setSafeMode(true); | ||
} | ||
@@ -288,3 +288,3 @@ | ||
autoInjectIfNecessasy() { | ||
if (this.isCrispInjected() !== true) { | ||
if (!this.isCrispInjected()) { | ||
this.load(); | ||
@@ -316,18 +316,2 @@ } | ||
Crisp as CrispClass | ||
} | ||
export type { | ||
Options, | ||
ChatboxColors, | ||
ChatboxPosition, | ||
AnimationMessage, | ||
AudioMessage, | ||
FileMessage, | ||
PickerMessage, | ||
PickerMessageChoices, | ||
FieldMessage, | ||
CompanyData, | ||
CompanyDataEmployment, | ||
CompanyDataGeolocation, | ||
EventsColors | ||
} | ||
} |
import {CrispClass as Crisp} from "./index"; | ||
type FileMessage = { | ||
export type FileMessage = { | ||
url: string, | ||
@@ -10,3 +10,3 @@ type: string, | ||
type AnimationMessage = { | ||
export type AnimationMessage = { | ||
url: string, | ||
@@ -16,3 +16,3 @@ type: string | ||
type AudioMessage = { | ||
export type AudioMessage = { | ||
url: string, | ||
@@ -23,3 +23,3 @@ type: string, | ||
type PickerMessage = { | ||
export type PickerMessage = { | ||
id: string, | ||
@@ -30,3 +30,3 @@ text: string, | ||
type PickerMessageChoices = { | ||
export type PickerMessageChoices = { | ||
value: string, | ||
@@ -37,3 +37,3 @@ label: string, | ||
type FieldMessage = { | ||
export type FieldMessage = { | ||
id: string, | ||
@@ -44,6 +44,6 @@ text: string, | ||
type CarouselMessageTargets = { | ||
export type CarouselMessageTargets = { | ||
title: string, | ||
label: string, | ||
description: boolean, | ||
description: string, | ||
image?: string | ||
@@ -53,3 +53,3 @@ actions: CarouselMessageTargetsActions[] | ||
type CarouselMessageTargetsActions = { | ||
export type CarouselMessageTargetsActions = { | ||
label: string, | ||
@@ -59,3 +59,3 @@ url: string | ||
type CarouselMessage = { | ||
export type CarouselMessage = { | ||
text: string, | ||
@@ -65,3 +65,3 @@ targets: CarouselMessageTargets[] | ||
class CrispMessage { | ||
export default class CrispMessage { | ||
private parent: Crisp; | ||
@@ -162,13 +162,2 @@ | ||
} | ||
} | ||
export default CrispMessage; | ||
export type { | ||
FileMessage, | ||
AnimationMessage, | ||
AudioMessage, | ||
PickerMessage, | ||
PickerMessageChoices, | ||
FieldMessage | ||
} | ||
} |
import {CrispClass as Crisp} from "./index"; | ||
enum EventsColors { | ||
export enum EventsColors { | ||
Red = "red", | ||
@@ -16,3 +16,3 @@ Orange = "orange", | ||
class CrispSession { | ||
export default class CrispSession { | ||
private parent: Crisp; | ||
@@ -87,8 +87,2 @@ | ||
} | ||
} | ||
export default CrispSession; | ||
export type { | ||
EventsColors | ||
} | ||
} |
import {CrispClass as Crisp} from "./index"; | ||
class CrispTrigger { | ||
export default class CrispTrigger { | ||
private parent: Crisp; | ||
@@ -16,3 +16,1 @@ | ||
} | ||
export default CrispTrigger; |
import {CrispClass as Crisp} from "./index"; | ||
type CompanyData = { | ||
export type CompanyData = { | ||
url?: string, | ||
@@ -10,3 +10,3 @@ description?: string, | ||
type CompanyDataEmployment = { | ||
export type CompanyDataEmployment = { | ||
title: string, | ||
@@ -16,3 +16,3 @@ role?: string | ||
type CompanyDataGeolocation = { | ||
export type CompanyDataGeolocation = { | ||
country: string, | ||
@@ -22,3 +22,3 @@ city?: string | ||
class CrispUser { | ||
export default class CrispUser { | ||
private parent: Crisp; | ||
@@ -147,10 +147,2 @@ | ||
} | ||
} | ||
export default CrispUser; | ||
export type { | ||
CompanyData, | ||
CompanyDataEmployment, | ||
CompanyDataGeolocation | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142784
1814