Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.3.8 #50

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ on:
- "**"
tags-ignore:
- "v*"
pull_request:
branches:
- "**"

env:
AQUASCOPE_VERSION: 0.3.1
AQUASCOPE_TOOLCHAIN: nightly-2023-08-25


jobs:
tests:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/mdbook-quiz-schema/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mdbook-quiz-schema"
version = "0.3.7"
version = "0.3.8"
authors = ["Will Crichton <[email protected]>"]
description = "Schema for quizzes used in mdbook-quiz"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/mdbook-quiz-validate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mdbook-quiz-validate"
version = "0.3.7"
version = "0.3.8"
authors = ["Will Crichton <[email protected]>"]
description = "Input validation for quizzes used in mdbook-quiz"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/mdbook-quiz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "mdbook-quiz"
authors = ["Will Crichton <[email protected]>"]
description = "Interactive quizzes for your mdBook"
license = "MIT OR Apache-2.0"
version = "0.3.7"
version = "0.3.8"
edition = "2021"
include = ["/src", "/js"]
repository = "https://github.com/cognitive-engineering-lab/mdbook-quiz"
Expand Down
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"depot": {
"depot-version": "0.2.17"
"depot-version": "0.2.18"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
Expand Down
2 changes: 1 addition & 1 deletion js/packages/quiz-embed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wcrichto/quiz-embed",
"version": "0.3.5",
"version": "0.3.8",
"depot": {
"platform": "browser"
},
Expand Down
2 changes: 1 addition & 1 deletion js/packages/quiz/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wcrichto/quiz",
"version": "0.3.5",
"version": "0.3.8",
"files": [
"dist"
],
Expand Down
10 changes: 7 additions & 3 deletions js/packages/quiz/src/components/quiz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ interface QuizState {
let loadState = ({
quiz,
answerStorage,
cacheAnswers
cacheAnswers,
autoStart
}: {
quiz: Quiz;
answerStorage: AnswerStorage;
cacheAnswers?: boolean;
autoStart?: boolean;
}): QuizState => {
let stored = answerStorage.load();

Expand All @@ -143,7 +145,7 @@ let loadState = ({
};
} else {
return {
started: false,
started: autoStart || false,
index: 0,
attempt: 0,
confirmedDone: false,
Expand Down Expand Up @@ -301,6 +303,7 @@ export interface QuizViewConfig {
cacheAnswers?: boolean;
allowRetry?: boolean;
showBugReporter?: boolean;
autoStart?: boolean;
}

export type QuizViewProps = QuizViewConfig & {
Expand Down Expand Up @@ -354,7 +357,8 @@ export let QuizView: React.FC<QuizViewProps> = observer(
loadState({
quiz: config.quiz,
answerStorage,
cacheAnswers: config.cacheAnswers
cacheAnswers: config.cacheAnswers,
autoStart: config.autoStart
})
);

Expand Down
Loading