@screeb/sdk-react 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/types.d.ts +1 -1
- package/dist/es/index.mjs +1 -1
- package/dist/es/types.d.ts +1 -1
- package/docs/README.md +5 -5
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
package/dist/cjs/types.d.ts
CHANGED
|
@@ -301,7 +301,7 @@ export type SurveyCloseFunction = () => Promise<unknown>;
|
|
|
301
301
|
* );
|
|
302
302
|
* ```
|
|
303
303
|
*/
|
|
304
|
-
export type SurveyStartFunction = (surveyId: string, distributionId
|
|
304
|
+
export type SurveyStartFunction = (surveyId: string, distributionId?: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksSurveyStart, language?: string) => Promise<unknown>;
|
|
305
305
|
/**
|
|
306
306
|
* Interrupts a running message.
|
|
307
307
|
*
|
package/dist/es/index.mjs
CHANGED
package/dist/es/types.d.ts
CHANGED
|
@@ -301,7 +301,7 @@ export type SurveyCloseFunction = () => Promise<unknown>;
|
|
|
301
301
|
* );
|
|
302
302
|
* ```
|
|
303
303
|
*/
|
|
304
|
-
export type SurveyStartFunction = (surveyId: string, distributionId
|
|
304
|
+
export type SurveyStartFunction = (surveyId: string, distributionId?: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksSurveyStart, language?: string) => Promise<unknown>;
|
|
305
305
|
/**
|
|
306
306
|
* Interrupts a running message.
|
|
307
307
|
*
|
package/docs/README.md
CHANGED
|
@@ -585,7 +585,7 @@ ___
|
|
|
585
585
|
|
|
586
586
|
### SurveyStartFunction
|
|
587
587
|
|
|
588
|
-
Ƭ **SurveyStartFunction**: (`surveyId`: `string`, `distributionId
|
|
588
|
+
Ƭ **SurveyStartFunction**: (`surveyId`: `string`, `distributionId?`: `string`, `allowMultipleResponses?`: `boolean`, `hiddenFields?`: `PropertyRecord`, `hooks?`: `HooksSurveyStart`, `language?`: `string`) => `Promise`\<`unknown`\>
|
|
589
589
|
|
|
590
590
|
Starts a survey by its ID.
|
|
591
591
|
|
|
@@ -607,16 +607,16 @@ surveyStart(
|
|
|
607
607
|
|
|
608
608
|
#### Type declaration
|
|
609
609
|
|
|
610
|
-
▸ (`surveyId`, `distributionId
|
|
610
|
+
▸ (`surveyId`, `distributionId?`, `allowMultipleResponses?`, `hiddenFields?`, `hooks?`, `language?`): `Promise`\<`unknown`\>
|
|
611
611
|
|
|
612
612
|
##### Parameters
|
|
613
613
|
|
|
614
614
|
| Name | Type |
|
|
615
615
|
| :------ | :------ |
|
|
616
616
|
| `surveyId` | `string` |
|
|
617
|
-
| `distributionId
|
|
618
|
-
| `allowMultipleResponses
|
|
619
|
-
| `hiddenFields
|
|
617
|
+
| `distributionId?` | `string` |
|
|
618
|
+
| `allowMultipleResponses?` | `boolean` |
|
|
619
|
+
| `hiddenFields?` | `PropertyRecord` |
|
|
620
620
|
| `hooks?` | `HooksSurveyStart` |
|
|
621
621
|
| `language?` | `string` |
|
|
622
622
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@screeb/sdk-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Screeb's browser sdk, optimized for React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"product discovery",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"test": "echo '@TODO'"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@screeb/sdk-browser": "^0.2.
|
|
44
|
+
"@screeb/sdk-browser": "^0.2.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@screeb/eslint-config": "^0.1.6",
|