@constructor-io/constructorio-ui-quizzes 1.19.9 → 1.19.11
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/constructorio-ui-quizzes-bundled.js +13 -13
- package/lib/cjs/components/CioQuiz/ErrorIconSVG.js +9 -0
- package/lib/cjs/components/CioQuiz/actions.js +1 -0
- package/lib/cjs/components/CioQuiz/index.js +12 -3
- package/lib/cjs/components/CioQuiz/quizApiReducer.js +3 -2
- package/lib/cjs/components/CioQuiz/quizLocalReducer.js +5 -0
- package/lib/cjs/components/OpenTextTypeQuestion/OpenTextTypeQuestion.js +4 -0
- package/lib/cjs/components/QuizQuestions/index.js +1 -0
- package/lib/cjs/components/ZeroResults/LightbulbIconSVG.js +9 -0
- package/lib/cjs/components/ZeroResults/ZeroResults.js +5 -1
- package/lib/cjs/hooks/useQuizEvents/index.js +1 -0
- package/lib/cjs/hooks/useQuizEvents/useQuizResetClick.js +4 -2
- package/lib/cjs/utils.js +2 -0
- package/lib/cjs/version.js +1 -1
- package/lib/mjs/components/CioQuiz/ErrorIconSVG.js +5 -0
- package/lib/mjs/components/CioQuiz/actions.js +1 -0
- package/lib/mjs/components/CioQuiz/index.js +12 -3
- package/lib/mjs/components/CioQuiz/quizApiReducer.js +2 -1
- package/lib/mjs/components/CioQuiz/quizLocalReducer.js +5 -0
- package/lib/mjs/components/OpenTextTypeQuestion/OpenTextTypeQuestion.js +4 -0
- package/lib/mjs/components/QuizQuestions/index.js +1 -0
- package/lib/mjs/components/ZeroResults/LightbulbIconSVG.js +5 -0
- package/lib/mjs/components/ZeroResults/ZeroResults.js +5 -1
- package/lib/mjs/hooks/useQuizEvents/index.js +1 -0
- package/lib/mjs/hooks/useQuizEvents/useQuizResetClick.js +4 -2
- package/lib/mjs/utils.js +2 -0
- package/lib/mjs/version.js +1 -1
- package/lib/styles.css +121 -11
- package/lib/types/components/CioQuiz/ErrorIconSVG.d.ts +2 -0
- package/lib/types/components/CioQuiz/actions.d.ts +2 -1
- package/lib/types/components/OpenTextTypeQuestion/OpenTextTypeQuestion.d.ts +4 -0
- package/lib/types/components/ZeroResults/LightbulbIconSVG.d.ts +2 -0
- package/lib/types/hooks/useQuizEvents/useQuizResetClick.d.ts +2 -0
- package/lib/types/types.d.ts +2 -1
- package/lib/types/utils.d.ts +1 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +2 -2
package/lib/types/types.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ export interface QuizSessionStorageState {
|
|
|
115
115
|
skipToResults: boolean;
|
|
116
116
|
hasSessionStorageState: () => boolean;
|
|
117
117
|
}
|
|
118
|
-
export type InputQuestionsTypes = QuestionTypes.OpenText | QuestionTypes.Cover | QuestionTypes.SingleSelect | QuestionTypes.MultipleSelect | QuestionTypes.SingleFilterValue | QuestionTypes.MultipleFilterValues;
|
|
118
|
+
export type InputQuestionsTypes = QuestionTypes.OpenText | QuestionTypes.Cover | QuestionTypes.SingleSelect | QuestionTypes.MultipleSelect | QuestionTypes.SingleFilterValue | QuestionTypes.MultipleFilterValues | QuestionTypes.FreeForm;
|
|
119
119
|
export type CurrentQuestion = NextQuestionResponse & {
|
|
120
120
|
isFirstQuestion: boolean;
|
|
121
121
|
isOpenQuestion: boolean;
|
|
@@ -124,6 +124,7 @@ export type CurrentQuestion = NextQuestionResponse & {
|
|
|
124
124
|
isMultipleQuestion: boolean;
|
|
125
125
|
isSingleFilterQuestion: boolean;
|
|
126
126
|
isMultipleFilterQuestion: boolean;
|
|
127
|
+
isFreeFormQuestion: boolean;
|
|
127
128
|
isSelectQuestion: boolean;
|
|
128
129
|
};
|
|
129
130
|
export declare namespace QuizEventsReturn {
|
package/lib/types/utils.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare const getQuestionTypes: (questionType?: `${QuestionTypes}`) => {
|
|
|
30
30
|
isSelectQuestion: boolean;
|
|
31
31
|
isSingleFilterQuestion: boolean;
|
|
32
32
|
isMultipleFilterQuestion: boolean;
|
|
33
|
+
isFreeFormQuestion: boolean;
|
|
33
34
|
};
|
|
34
35
|
export declare function getPreferredColorScheme(): string;
|
|
35
36
|
export declare function isFunction(fn: any): boolean;
|
package/lib/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.19.
|
|
1
|
+
declare const _default: "1.19.11";
|
|
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.19.
|
|
3
|
+
"version": "1.19.11",
|
|
4
4
|
"description": "Constructor.io Quizzes UI library for web applications",
|
|
5
5
|
"author": "Constructor.io Corporation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"check-license": "license-checker --production --onlyAllow 'Apache-2.0;BSD-3-Clause;MIT;0BSD;BSD-2-Clause' --excludePackages 'picocolors@1.0.0'"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@constructor-io/constructorio-client-javascript": "^2.
|
|
64
|
+
"@constructor-io/constructorio-client-javascript": "^2.73.1",
|
|
65
65
|
"react": ">=16.12.0",
|
|
66
66
|
"react-dom": ">=16.12.0",
|
|
67
67
|
"tslib": "^2.4.0"
|