Socket
Socket
Sign inDemoInstall

crisp-sdk-web

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crisp-sdk-web - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

28

dist/crisp.d.ts

@@ -1,2 +0,2 @@

declare type FileMessage = {
type FileMessage = {
url: string;

@@ -6,7 +6,7 @@ type: string;

};
declare type AnimationMessage = {
type AnimationMessage = {
url: string;
type: string;
};
declare type AudioMessage = {
type AudioMessage = {
url: string;

@@ -16,3 +16,3 @@ type: string;

};
declare type PickerMessage = {
type PickerMessage = {
id: string;

@@ -22,3 +22,3 @@ text: string;

};
declare type PickerMessageChoices = {
type PickerMessageChoices = {
value: string;

@@ -28,3 +28,3 @@ label: string;

};
declare type FieldMessage = {
type FieldMessage = {
id: string;

@@ -34,3 +34,3 @@ text: string;

};
declare type CarouselMessageTargets = {
type CarouselMessageTargets = {
title: string;

@@ -41,7 +41,7 @@ description?: string;

};
declare type CarouselMessageTargetsActions = {
type CarouselMessageTargetsActions = {
label: string;
url: string;
};
declare type CarouselMessage = {
type CarouselMessage = {
text: string;

@@ -73,3 +73,3 @@ targets: CarouselMessageTargets[];

declare type CompanyData = {
type CompanyData = {
url?: string;

@@ -80,7 +80,7 @@ description?: string;

};
declare type CompanyDataEmployment = {
type CompanyDataEmployment = {
title: string;
role?: string;
};
declare type CompanyDataGeolocation = {
type CompanyDataGeolocation = {
country: string;

@@ -151,3 +151,3 @@ city?: string;

onChatOpened(callback: () => void): void;
onChatClose(callback: () => void): void;
onChatClosed(callback: () => void): void;
}

@@ -163,3 +163,3 @@

}
declare type Options = {
type Options = {
clientUrl?: string;

@@ -166,0 +166,0 @@ autoload?: boolean;

@@ -299,3 +299,3 @@ var CrispMessage = /** @class */ (function () {

};
CrispChat.prototype.onChatClose = function (callback) {
CrispChat.prototype.onChatClosed = function (callback) {
this.parent.createSingletonIfNecessary();

@@ -365,3 +365,3 @@ window.$crisp.push(["off", "chat:closed"]);

}
// Autoload Crisp is option is enavled
// Autoload Crisp if option is enabled
if (this.autoload) {

@@ -368,0 +368,0 @@ this.load();

@@ -305,3 +305,3 @@ (function (global, factory) {

};
CrispChat.prototype.onChatClose = function (callback) {
CrispChat.prototype.onChatClosed = function (callback) {
this.parent.createSingletonIfNecessary();

@@ -371,3 +371,3 @@ window.$crisp.push(["off", "chat:closed"]);

}
// Autoload Crisp is option is enavled
// Autoload Crisp if option is enabled
if (this.autoload) {

@@ -374,0 +374,0 @@ this.load();

{
"name": "crisp-sdk-web",
"version": "1.0.18",
"version": "1.0.19",
"description": "Include Crisp chat widget inside web frameworks.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,3 +5,3 @@ # Crisp SDK Web

The Crisp SDK Web allows embedding Crisp chat widget using web frameworks such as React, Vue, or Angular. This SDK wraps the [$crisp](https://docs.crisp.chat/guides/chatbox-sdks/web-sdk/dollar-crisp/) methods and provides Typescript definitions.
The Crisp SDK Web allows embedding Crisp chat widget using web frameworks such as React, Vue, or Angular. This SDK wraps the [$crisp](https://docs.crisp.chat/guides/chatbox-sdks/web-sdk/dollar-crisp/) methods and provides TypeScript definitions.

@@ -8,0 +8,0 @@ Copyright 2023 Crisp IM SAS. See LICENSE for copying information.

@@ -1,2 +0,2 @@

import {CrispClass as Crisp} from "./index";
import { CrispClass as Crisp } from "./index";

@@ -72,3 +72,3 @@ export default class CrispChat {

onChatClose(callback: () => void) {
onChatClosed(callback: () => void) {
this.parent.createSingletonIfNecessary();

@@ -75,0 +75,0 @@

@@ -132,3 +132,3 @@ import CrispMessage from "./message";

// Autoload Crisp is option is enavled
// Autoload Crisp if option is enabled
if (this.autoload) {

@@ -310,2 +310,2 @@ this.load();

Crisp as CrispClass
}
};

@@ -0,4 +1,3 @@

import { CrispClass as Crisp } from "./index";
import {CrispClass as Crisp} from "./index";
export type FileMessage = {

@@ -152,2 +151,2 @@ url: string,

}
}
}

@@ -1,2 +0,2 @@

import {CrispClass as Crisp} from "./index";
import { CrispClass as Crisp } from "./index";

@@ -86,2 +86,2 @@ export enum EventsColors {

}
}
}

@@ -1,2 +0,2 @@

import {CrispClass as Crisp} from "./index";
import { CrispClass as Crisp } from "./index";

@@ -3,0 +3,0 @@ export default class CrispTrigger {

@@ -1,2 +0,2 @@

import {CrispClass as Crisp} from "./index";
import { CrispClass as Crisp } from "./index";

@@ -67,3 +67,3 @@ export type CompanyData = {

if ((data.employment as CompanyDataEmployment).role ) {
if ((data.employment as CompanyDataEmployment).role) {
_payload.employment.push((data.employment as CompanyDataEmployment).role!);

@@ -94,3 +94,3 @@ }

getNickname(): string | null{
getNickname(): string | null {
if (!this.parent.isCrispInjected()) {

@@ -146,2 +146,2 @@ return null;

}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc