@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,9 +1,9 @@
1
1
  export interface QuizInterface {
2
- name: string;
3
- questions: QuizElement;
4
2
  answers: {
5
3
  [key: number]: string[];
6
4
  };
5
+ name: string;
6
+ questions: QuizElement;
7
7
  }
8
8
  export type QuizElement = {
9
9
  [key: number]: string;
@@ -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,9 +1,9 @@
1
1
  export interface QuizInterface {
2
- name: string;
3
- questions: QuizElement;
4
2
  answers: {
5
3
  [key: number]: string[];
6
4
  };
5
+ name: string;
6
+ questions: QuizElement;
7
7
  }
8
8
  export type QuizElement = {
9
9
  [key: number]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/quiz-widget",
3
- "version": "3.0.11",
3
+ "version": "3.0.12",
4
4
  "description": "A React component that gives a possibility to pass quizzes",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",