@screeb/sdk-react
Advanced tools
@@ -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. |
+4
-2
@@ -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` | |
+2
-2
| { | ||
| "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": { |
83408
0.27%1624
0.12%+ Added
- Removed
Updated