@constructor-io/constructorio-ui-quizzes 1.9.5 → 1.9.7
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/README.md +5 -2
- package/dist/constructorio-ui-quizzes-bundled.js +10 -10
- package/lib/cjs/components/CioQuiz/index.js +2 -2
- package/lib/cjs/components/CioQuiz/quizLocalReducer.js +7 -8
- package/lib/cjs/components/ControlBar/ControlBar.js +2 -2
- package/lib/cjs/components/SkipButton/SkipButton.js +3 -2
- package/lib/cjs/constants.js +2 -0
- package/lib/cjs/hooks/useQuiz.js +0 -1
- package/lib/cjs/hooks/useQuizEvents/useQuizAnswerChangeHandler.js +0 -3
- package/lib/cjs/hooks/useQuizState/useQuizApiState.js +1 -1
- package/lib/cjs/stories/Quiz/tests/mocks.js +1 -2
- package/lib/cjs/version.js +1 -1
- package/lib/mjs/components/CioQuiz/index.js +2 -2
- package/lib/mjs/components/CioQuiz/quizLocalReducer.js +0 -6
- package/lib/mjs/components/ControlBar/ControlBar.js +2 -2
- package/lib/mjs/components/SkipButton/SkipButton.js +3 -2
- package/lib/mjs/constants.js +2 -0
- package/lib/mjs/hooks/useQuiz.js +0 -1
- package/lib/mjs/hooks/useQuizEvents/useQuizAnswerChangeHandler.js +0 -3
- package/lib/mjs/hooks/useQuizState/useQuizApiState.js +1 -1
- package/lib/mjs/stories/Quiz/tests/mocks.js +1 -2
- package/lib/mjs/version.js +1 -1
- package/lib/styles.css +3 -6
- package/lib/types/components/CioQuiz/actions.d.ts +0 -1
- package/lib/types/components/CioQuiz/quizLocalReducer.d.ts +0 -1
- package/lib/types/components/ControlBar/ControlBar.d.ts +1 -0
- package/lib/types/components/SkipButton/SkipButton.d.ts +1 -0
- package/lib/types/constants.d.ts +1 -1
- package/lib/types/types.d.ts +4 -1
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,8 +52,11 @@ CioQuiz({
|
|
|
52
52
|
includeCSS: true, // Include the default CSS styles. Defaults to true.
|
|
53
53
|
resultsPageOptions: {
|
|
54
54
|
onAddToCartClick: (item) => console.dir(item),
|
|
55
|
-
resultCardRegularPriceKey: 'price'
|
|
55
|
+
resultCardRegularPriceKey: 'price'
|
|
56
56
|
},
|
|
57
|
+
questionsPageOptions: {
|
|
58
|
+
skipQuestionButtonText: 'Skip'
|
|
59
|
+
}
|
|
57
60
|
// ... additional arguments
|
|
58
61
|
});
|
|
59
62
|
```
|
|
@@ -84,7 +87,7 @@ import '@constructor-io/constructorio-ui-quizzes/styles.css';
|
|
|
84
87
|
|
|
85
88
|
**Older Javascript environments**
|
|
86
89
|
|
|
87
|
-
The library provides two different builds. CommonJS (cjs) and ECMAScript Modules (mjs)
|
|
90
|
+
The library provides two different builds. CommonJS (cjs) and ECMAScript Modules (mjs)
|
|
88
91
|
|
|
89
92
|
For ECMAScript Modules (mjs) build. The Javascript version is ESNext which might not be supported by your environment.
|
|
90
93
|
If that's the case and your environment is using an older Javascript version like ES6 (ES2015), you might get this error.
|