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.1.14
to
0.2.0
+3
-3
dist/cjs/index.cjs

@@ -302,7 +302,7 @@ 'use strict';

}); }); }, []);
var surveyStart = React__namespace.useCallback(function (surveyId, allowMultipleResponses, hiddenFields, hooks, language) { return __awaiter(void 0, void 0, void 0, function () {
var surveyStart = React__namespace.useCallback(function (surveyId, distributionId, allowMultipleResponses, 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("surveyStart", function () {
return Screeb__namespace.surveyStart(surveyId, allowMultipleResponses, hiddenFields, hooks, language);
return Screeb__namespace.surveyStart(surveyId, distributionId, allowMultipleResponses, hiddenFields, hooks, language);
})];

@@ -398,2 +398,2 @@ case 1: return [2 /*return*/, _a.sent()];

exports.useScreeb = useScreeb;
CONSTANTS.version = '0.1.14'
CONSTANTS.version = '0.2.0'

@@ -295,2 +295,3 @@ import { Hooks, PropertyRecord, ScreebIdentityGetReturn, ScreebOptions } from "@screeb/sdk-browser";

* '<UUID>',
* '<UUID>',
* false,

@@ -304,3 +305,3 @@ * {

*/
export type SurveyStartFunction = (surveyId: string, allowMultipleResponses: boolean, hiddenFields: PropertyRecord, hooks?: Hooks, language?: string) => Promise<unknown>;
export type SurveyStartFunction = (surveyId: string, distributionId: string, allowMultipleResponses: boolean, hiddenFields: PropertyRecord, hooks?: Hooks, language?: string) => Promise<unknown>;
/**

@@ -307,0 +308,0 @@ * Interrupts a running message.

@@ -280,7 +280,7 @@ import { jsx } from 'react/jsx-runtime';

}); }); }, []);
var surveyStart = React.useCallback(function (surveyId, allowMultipleResponses, hiddenFields, hooks, language) { return __awaiter(void 0, void 0, void 0, function () {
var surveyStart = React.useCallback(function (surveyId, distributionId, allowMultipleResponses, 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("surveyStart", function () {
return Screeb.surveyStart(surveyId, allowMultipleResponses, hiddenFields, hooks, language);
return Screeb.surveyStart(surveyId, distributionId, allowMultipleResponses, hiddenFields, hooks, language);
})];

@@ -375,2 +375,2 @@ case 1: return [2 /*return*/, _a.sent()];

export { ScreebProvider, useScreeb };
CONSTANTS.version = '0.1.14'
CONSTANTS.version = '0.2.0'

@@ -295,2 +295,3 @@ import { Hooks, PropertyRecord, ScreebIdentityGetReturn, ScreebOptions } from "@screeb/sdk-browser";

* '<UUID>',
* '<UUID>',
* false,

@@ -304,3 +305,3 @@ * {

*/
export type SurveyStartFunction = (surveyId: string, allowMultipleResponses: boolean, hiddenFields: PropertyRecord, hooks?: Hooks, language?: string) => Promise<unknown>;
export type SurveyStartFunction = (surveyId: string, distributionId: string, allowMultipleResponses: boolean, hiddenFields: PropertyRecord, hooks?: Hooks, language?: string) => Promise<unknown>;
/**

@@ -307,0 +308,0 @@ * Interrupts a running message.

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

Ƭ **SurveyStartFunction**: (`surveyId`: `string`, `allowMultipleResponses`: `boolean`, `hiddenFields`: `PropertyRecord`, `hooks?`: `Hooks`, `language?`: `string`) => `Promise`\<`unknown`\>
Ƭ **SurveyStartFunction**: (`surveyId`: `string`, `distributionId`: `string`, `allowMultipleResponses`: `boolean`, `hiddenFields`: `PropertyRecord`, `hooks?`: `Hooks`, `language?`: `string`) => `Promise`\<`unknown`\>

@@ -600,2 +600,3 @@ Starts a survey by its ID.

'<UUID>',
'<UUID>',
false,

@@ -611,3 +612,3 @@ {

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

@@ -619,2 +620,3 @@ ##### Parameters

| `surveyId` | `string` |
| `distributionId` | `string` |
| `allowMultipleResponses` | `boolean` |

@@ -621,0 +623,0 @@ | `hiddenFields` | `PropertyRecord` |

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

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

"dependencies": {
"@screeb/sdk-browser": "^0.1.18"
"@screeb/sdk-browser": "^0.2.0"
},

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