@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.
@@ -394,4 +394,4 @@ var useScreeb = function () {
394
394
 
395
395
  exports.ScreebProvider = ScreebProvider;
396
396
  exports.useScreeb = useScreeb;
397
- CONSTANTS.version = '0.2.1'
397
+ CONSTANTS.version = '0.2.2'
@@ -301,7 +301,7 @@ export type SurveyCloseFunction = () => Promise<unknown>;
301
301
  * );
302
302
  * ```
303
303
  */
304
- export type SurveyStartFunction = (surveyId: string, distributionId: string, allowMultipleResponses: boolean, hiddenFields: PropertyRecord, hooks?: HooksSurveyStart, language?: string) => Promise<unknown>;
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
@@ -371,4 +371,4 @@ var useScreeb = function () {
371
371
  };
372
372
 
373
373
  export { ScreebProvider, useScreeb };
374
- CONSTANTS.version = '0.2.1'
374
+ CONSTANTS.version = '0.2.2'
@@ -301,7 +301,7 @@ export type SurveyCloseFunction = () => Promise<unknown>;
301
301
  * );
302
302
  * ```
303
303
  */
304
- export type SurveyStartFunction = (surveyId: string, distributionId: string, allowMultipleResponses: boolean, hiddenFields: PropertyRecord, hooks?: HooksSurveyStart, language?: string) => Promise<unknown>;
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`: `string`, `allowMultipleResponses`: `boolean`, `hiddenFields`: `PropertyRecord`, `hooks?`: `HooksSurveyStart`, `language?`: `string`) => `Promise`\<`unknown`\>
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`, `allowMultipleResponses`, `hiddenFields`, `hooks?`, `language?`): `Promise`\<`unknown`\>
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` | `string` |
618
- | `allowMultipleResponses` | `boolean` |
619
- | `hiddenFields` | `PropertyRecord` |
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.1",
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.1"
44
+ "@screeb/sdk-browser": "^0.2.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@screeb/eslint-config": "^0.1.6",