Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@screeb/sdk-browser

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@screeb/sdk-browser - npm Package Compare versions

Comparing version 0.1.17 to 0.1.18

34

dist/cjs/index.d.ts

@@ -319,2 +319,36 @@ import { Hooks, PropertyRecord, ScreebIdentityGetReturn, ScreebOptions } from "./types";

/**
* Interrupts a running message.
*
* @example
* ```ts
* import * as Screeb from "@screeb/sdk-browser";
*
* Screeb.messageClose();
* ```
*/
export declare const messageClose: () => void | Promise<unknown>;
/**
* Starts a message by its ID.
*
* @example
* ```ts
* import * as Screeb from "@screeb/sdk-browser";
*
* Screeb.messageStart(
* '<UUID>',
* false,
* {
* color: "green",
* article_id: 42
* },
* {
* version: "1.0.0",
* onMessageShowed: (payload) => console.log("Message showed", payload),
* },
* "en"
* );
* ```
*/
export declare const messageStart: (messageId: string, hiddenFields?: PropertyRecord, hooks?: Hooks, language?: string) => void | Promise<unknown>;
/**
* Forces a targeting check.

@@ -321,0 +355,0 @@ *

@@ -319,2 +319,36 @@ import { Hooks, PropertyRecord, ScreebIdentityGetReturn, ScreebOptions } from "./types";

/**
* Interrupts a running message.
*
* @example
* ```ts
* import * as Screeb from "@screeb/sdk-browser";
*
* Screeb.messageClose();
* ```
*/
export declare const messageClose: () => void | Promise<unknown>;
/**
* Starts a message by its ID.
*
* @example
* ```ts
* import * as Screeb from "@screeb/sdk-browser";
*
* Screeb.messageStart(
* '<UUID>',
* false,
* {
* color: "green",
* article_id: 42
* },
* {
* version: "1.0.0",
* onMessageShowed: (payload) => console.log("Message showed", payload),
* },
* "en"
* );
* ```
*/
export declare const messageStart: (messageId: string, hiddenFields?: PropertyRecord, hooks?: Hooks, language?: string) => void | Promise<unknown>;
/**
* Forces a targeting check.

@@ -321,0 +355,0 @@ *

@@ -49,2 +49,4 @@ @screeb/sdk-browser

- [load](README.md#load)
- [messageClose](README.md#messageclose)
- [messageStart](README.md#messagestart)
- [surveyClose](README.md#surveyclose)

@@ -797,2 +799,63 @@ - [surveyStart](README.md#surveystart)

### messageClose
▸ **messageClose**(): `void` \| `Promise`\<`unknown`\>
Interrupts a running message.
#### Returns
`void` \| `Promise`\<`unknown`\>
**`Example`**
```ts
import * as Screeb from "@screeb/sdk-browser";
Screeb.messageClose();
```
___
### messageStart
▸ **messageStart**(`messageId`, `hiddenFields?`, `hooks?`, `language?`): `void` \| `Promise`\<`unknown`\>
Starts a message by its ID.
#### Parameters
| Name | Type |
| :------ | :------ |
| `messageId` | `string` |
| `hiddenFields` | [`PropertyRecord`](README.md#propertyrecord) |
| `hooks?` | [`Hooks`](README.md#hooks) |
| `language?` | `string` |
#### Returns
`void` \| `Promise`\<`unknown`\>
**`Example`**
```ts
import * as Screeb from "@screeb/sdk-browser";
Screeb.messageStart(
'<UUID>',
false,
{
color: "green",
article_id: 42
},
{
version: "1.0.0",
onMessageShowed: (payload) => console.log("Message showed", payload),
},
"en"
);
```
___
### surveyClose

@@ -799,0 +862,0 @@

2

package.json
{
"name": "@screeb/sdk-browser",
"version": "0.1.17",
"version": "0.1.18",
"description": "Screeb's browser sdk.",

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

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