@atlaskit/quiz-widget 3.0.11 → 3.0.12
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/quiz-widget
|
|
2
2
|
|
|
3
|
+
## 3.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bc7821de4d118`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bc7821de4d118) -
|
|
8
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
9
|
+
|
|
3
10
|
## 3.0.11
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type QuizElement, type QuizInterface } from './types';
|
|
3
3
|
export interface Props {
|
|
4
|
-
quizContent: QuizInterface;
|
|
5
|
-
score: number | null;
|
|
6
4
|
correctAnswers?: QuizElement | null;
|
|
7
|
-
onSubmitButtonClick?: (choosenAnswers: string[]) => void;
|
|
8
5
|
onNextButtonClick?: () => void;
|
|
6
|
+
onSubmitButtonClick?: (choosenAnswers: string[]) => void;
|
|
7
|
+
quizContent: QuizInterface;
|
|
8
|
+
score: number | null;
|
|
9
9
|
}
|
|
10
10
|
export interface State {
|
|
11
|
-
currentQuestionNumber: number;
|
|
12
11
|
checkedAnswers: Map<number, string>;
|
|
12
|
+
currentQuestionNumber: number;
|
|
13
13
|
}
|
|
14
14
|
declare const QuizWidget: (props: Props) => React.JSX.Element;
|
|
15
15
|
export default QuizWidget;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type QuizElement, type QuizInterface } from './types';
|
|
3
3
|
export interface Props {
|
|
4
|
-
quizContent: QuizInterface;
|
|
5
|
-
score: number | null;
|
|
6
4
|
correctAnswers?: QuizElement | null;
|
|
7
|
-
onSubmitButtonClick?: (choosenAnswers: string[]) => void;
|
|
8
5
|
onNextButtonClick?: () => void;
|
|
6
|
+
onSubmitButtonClick?: (choosenAnswers: string[]) => void;
|
|
7
|
+
quizContent: QuizInterface;
|
|
8
|
+
score: number | null;
|
|
9
9
|
}
|
|
10
10
|
export interface State {
|
|
11
|
-
currentQuestionNumber: number;
|
|
12
11
|
checkedAnswers: Map<number, string>;
|
|
12
|
+
currentQuestionNumber: number;
|
|
13
13
|
}
|
|
14
14
|
declare const QuizWidget: (props: Props) => React.JSX.Element;
|
|
15
15
|
export default QuizWidget;
|