@screeb/sdk-browser 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.
@@ -533,4 +533,4 @@ exports.surveyClose = surveyClose;
533
533
  exports.surveyStart = surveyStart;
534
534
  exports.targetingCheck = targetingCheck;
535
535
  exports.targetingDebug = targetingDebug;
536
- CONSTANTS.version = '0.2.1'
536
+ CONSTANTS.version = '0.2.2'
@@ -316,7 +316,7 @@ export declare const surveyClose: () => void | Promise<unknown>;
316
316
  * );
317
317
  * ```
318
318
  */
319
- export declare const surveyStart: (surveyId: string, distributionId: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksSurveyStart, language?: string) => void | Promise<unknown>;
319
+ export declare const surveyStart: (surveyId: string, distributionId?: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksSurveyStart, language?: string) => void | Promise<unknown>;
320
320
  /**
321
321
  * Interrupts a running message.
322
322
  *
@@ -316,7 +316,7 @@ export declare const surveyClose: () => void | Promise<unknown>;
316
316
  * );
317
317
  * ```
318
318
  */
319
- export declare const surveyStart: (surveyId: string, distributionId: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksSurveyStart, language?: string) => void | Promise<unknown>;
319
+ export declare const surveyStart: (surveyId: string, distributionId?: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksSurveyStart, language?: string) => void | Promise<unknown>;
320
320
  /**
321
321
  * Interrupts a running message.
322
322
  *
package/dist/es/index.mjs CHANGED
@@ -514,4 +514,4 @@ var targetingCheck = function () { return callScreebCommand("targeting.check");
514
514
  var targetingDebug = function () { return callScreebCommand("targeting.debug"); };
515
515
 
516
516
  export { close, debug, eventTrack, identity, identityGet, identityGroupAssign, identityGroupUnassign, identityProperties, identityReset, init, isLoaded, load, messageClose, messageStart, surveyClose, surveyStart, targetingCheck, targetingDebug };
517
- CONSTANTS.version = '0.2.1'
517
+ CONSTANTS.version = '0.2.2'
package/docs/README.md CHANGED
@@ -1057,7 +1057,7 @@ ___
1057
1057
 
1058
1058
  ### surveyStart
1059
1059
 
1060
- ▸ **surveyStart**(`surveyId`, `distributionId`, `allowMultipleResponses?`, `hiddenFields?`, `hooks?`, `language?`): `void` \| `Promise`\<`unknown`\>
1060
+ ▸ **surveyStart**(`surveyId`, `distributionId?`, `allowMultipleResponses?`, `hiddenFields?`, `hooks?`, `language?`): `void` \| `Promise`\<`unknown`\>
1061
1061
 
1062
1062
  Starts a survey by its ID.
1063
1063
 
@@ -1066,7 +1066,7 @@ Starts a survey by its ID.
1066
1066
  | Name | Type | Default value |
1067
1067
  | :------ | :------ | :------ |
1068
1068
  | `surveyId` | `string` | `undefined` |
1069
- | `distributionId` | `string` | `undefined` |
1069
+ | `distributionId?` | `string` | `undefined` |
1070
1070
  | `allowMultipleResponses` | `boolean` | `true` |
1071
1071
  | `hiddenFields` | [`PropertyRecord`](README.md#propertyrecord) | `{}` |
1072
1072
  | `hooks?` | [`HooksSurveyStart`](README.md#hookssurveystart) | `undefined` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screeb/sdk-browser",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Screeb's browser sdk.",
5
5
  "keywords": [
6
6
  "product discovery",