@constructor-io/constructorio-ui-quizzes 1.9.4 → 1.9.5

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.
@@ -46,7 +46,7 @@ const trackQuizResultsLoaded = (cioClient, quizResults) => {
46
46
  };
47
47
  exports.trackQuizResultsLoaded = trackQuizResultsLoaded;
48
48
  const trackQuizResultClick = (cioClient, quizResults, result, position) => {
49
- var _a;
49
+ var _a, _b;
50
50
  if (quizResults.request && quizResults.response) {
51
51
  const { quiz_id, quiz_session_id, quiz_version_id, result_id, request: { section, page, num_results_per_page }, response: { total_num_results }, } = quizResults;
52
52
  cioClient === null || cioClient === void 0 ? void 0 : cioClient.tracker.trackQuizResultClick({
@@ -55,6 +55,7 @@ const trackQuizResultClick = (cioClient, quizResults, result, position) => {
55
55
  quizSessionId: quiz_session_id,
56
56
  itemId: (_a = result.data) === null || _a === void 0 ? void 0 : _a.id,
57
57
  itemName: result === null || result === void 0 ? void 0 : result.value,
58
+ variationId: (_b = result.data) === null || _b === void 0 ? void 0 : _b.variation_id,
58
59
  section,
59
60
  resultCount: total_num_results,
60
61
  resultPage: page,
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '1.9.4';
3
+ exports.default = '1.9.5';
@@ -42,6 +42,7 @@ export const trackQuizResultClick = (cioClient, quizResults, result, position) =
42
42
  quizSessionId: quiz_session_id,
43
43
  itemId: result.data?.id,
44
44
  itemName: result?.value,
45
+ variationId: result.data?.variation_id,
45
46
  section,
46
47
  resultCount: total_num_results,
47
48
  resultPage: page,
@@ -1 +1 @@
1
- export default '1.9.4';
1
+ export default '1.9.5';
@@ -1,2 +1,2 @@
1
- declare const _default: "1.9.4";
1
+ declare const _default: "1.9.5";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-ui-quizzes",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "Constructor.io Quizzes UI library for web applications",
5
5
  "author": "constructor.io",
6
6
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "check-license": "license-checker --production --onlyAllow 'Apache-2.0;BSD-3-Clause;MIT;0BSD;BSD-2-Clause' --excludePackages 'picocolors@1.0.0'"
60
60
  },
61
61
  "peerDependencies": {
62
- "@constructor-io/constructorio-client-javascript": "^2.35.17",
62
+ "@constructor-io/constructorio-client-javascript": "^2.36.4",
63
63
  "react": ">=16.12.0",
64
64
  "react-dom": ">=16.12.0",
65
65
  "tslib": "^2.4.0"