Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@screeb/sdk-react

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@screeb/sdk-react - npm Package Compare versions

Comparing version
0.3.0
to
0.4.0
+13
-10
dist/cjs/index.cjs

@@ -321,12 +321,15 @@ 'use strict';

}); }); }, []);
var messageStart = React__namespace.useCallback(function (messageId, hiddenFields, hooks, language) { return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, ensureScreeb("messageStart", function () {
return Screeb__namespace.messageStart(messageId, hiddenFields, hooks, language);
})];
case 1: return [2 /*return*/, _a.sent()];
}
var messageStart = React__namespace.useCallback(function (messageId, allowMultipleResponses, hiddenFields, hooks, language) {
if (allowMultipleResponses === void 0) { allowMultipleResponses = true; }
return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, ensureScreeb("messageStart", function () {
return Screeb__namespace.messageStart(messageId, allowMultipleResponses, hiddenFields, hooks, language);
})];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
}); }, []);
}, []);
var targetingCheck = React__namespace.useCallback(function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {

@@ -416,2 +419,2 @@ switch (_a.label) {

exports.useScreeb = useScreeb;
CONSTANTS.version = '0.3.0'
CONSTANTS.version = '0.4.0'

@@ -333,3 +333,3 @@ import { HooksInit, HooksMessageStart, HooksSurveyStart, PropertyRecord, ScreebIdentityGetReturn, ScreebOptions } from "@screeb/sdk-browser";

*/
export type MessageStartFunction = (messageId: string, hiddenFields: PropertyRecord, hooks?: HooksMessageStart, language?: string) => Promise<unknown>;
export type MessageStartFunction = (messageId: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksMessageStart, language?: string) => Promise<unknown>;
/**

@@ -336,0 +336,0 @@ * Forces a targeting check.

@@ -299,12 +299,15 @@ import { jsx } from 'react/jsx-runtime';

}); }); }, []);
var messageStart = React.useCallback(function (messageId, hiddenFields, hooks, language) { return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, ensureScreeb("messageStart", function () {
return Screeb.messageStart(messageId, hiddenFields, hooks, language);
})];
case 1: return [2 /*return*/, _a.sent()];
}
var messageStart = React.useCallback(function (messageId, allowMultipleResponses, hiddenFields, hooks, language) {
if (allowMultipleResponses === void 0) { allowMultipleResponses = true; }
return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, ensureScreeb("messageStart", function () {
return Screeb.messageStart(messageId, allowMultipleResponses, hiddenFields, hooks, language);
})];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
}); }, []);
}, []);
var targetingCheck = React.useCallback(function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {

@@ -393,2 +396,2 @@ switch (_a.label) {

export { ScreebProvider, useScreeb };
CONSTANTS.version = '0.3.0'
CONSTANTS.version = '0.4.0'

@@ -333,3 +333,3 @@ import { HooksInit, HooksMessageStart, HooksSurveyStart, PropertyRecord, ScreebIdentityGetReturn, ScreebOptions } from "@screeb/sdk-browser";

*/
export type MessageStartFunction = (messageId: string, hiddenFields: PropertyRecord, hooks?: HooksMessageStart, language?: string) => Promise<unknown>;
export type MessageStartFunction = (messageId: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksMessageStart, language?: string) => Promise<unknown>;
/**

@@ -336,0 +336,0 @@ * Forces a targeting check.

@@ -468,3 +468,3 @@ @screeb/sdk-react

Ƭ **MessageStartFunction**: (`messageId`: `string`, `hiddenFields`: `PropertyRecord`, `hooks?`: `HooksMessageStart`, `language?`: `string`) => `Promise`\<`unknown`\>
Ƭ **MessageStartFunction**: (`messageId`: `string`, `allowMultipleResponses?`: `boolean`, `hiddenFields?`: `PropertyRecord`, `hooks?`: `HooksMessageStart`, `language?`: `string`) => `Promise`\<`unknown`\>

@@ -490,3 +490,3 @@ Starts a message by its ID.

▸ (`messageId`, `hiddenFields`, `hooks?`, `language?`): `Promise`\<`unknown`\>
▸ (`messageId`, `allowMultipleResponses?`, `hiddenFields?`, `hooks?`, `language?`): `Promise`\<`unknown`\>

@@ -498,3 +498,4 @@ ##### Parameters

| `messageId` | `string` |
| `hiddenFields` | `PropertyRecord` |
| `allowMultipleResponses?` | `boolean` |
| `hiddenFields?` | `PropertyRecord` |
| `hooks?` | `HooksMessageStart` |

@@ -501,0 +502,0 @@ | `language?` | `string` |

{
"name": "@screeb/sdk-react",
"version": "0.3.0",
"version": "0.4.0",
"description": "Screeb's browser sdk, optimized for React.",

@@ -44,3 +44,3 @@ "keywords": [

"dependencies": {
"@screeb/sdk-browser": "^0.2.2"
"@screeb/sdk-browser": "^0.3.0"
},

@@ -47,0 +47,0 @@ "devDependencies": {