diff --git a/package.json b/package.json index 089e044..ddaf28d 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "dependencies": { "chrome-storage-promise": "git+https://github.com/blmage/chrome-storage-promise.git#semver:^1.0.0", "classnames": "^2.3.1", - "duo-toolbox": "git+https://github.com/blmage/duo-toolbox.git#semver:^3.5.0", + "duo-toolbox": "git+https://github.com/blmage/duo-toolbox.git#semver:^3.7.0", "lodash.merge": "^4.6.2", "preact": "^10.5.14", "preact-use": "git+https://github.com/blmage/preact-use.git#semver:^17.3.1-patch", diff --git a/src/components/SettingsForm.js b/src/components/SettingsForm.js index 5bd5681..21bbfe4 100644 --- a/src/components/SettingsForm.js +++ b/src/components/SettingsForm.js @@ -30,6 +30,7 @@ import { import { CONTEXT_CHARACTERS, CONTEXT_FORUM_DISCUSSION, + CONTEXT_GUIDEBOOK, CONTEXT_LISTENING_CHALLENGE, CONTEXT_OTHER_CHALLENGE, CONTEXT_UNKNOWN, @@ -145,6 +146,10 @@ const CONTEXT_HEADERS = { icon: PrimeIcons.PENCIL, label: 'Challenge (other)', }, + [CONTEXT_GUIDEBOOK]: { + icon: PrimeIcons.MAP, + label: 'Guidebook', + }, [CONTEXT_STORY]: { icon: PrimeIcons.BOOK, label: 'Story', @@ -280,13 +285,13 @@ const SettingSlider = const SettingsPanel = ({ - context = null, - config, - disabled = false, - activeSetting = null, - onSettingValueChange = noop, - onActiveSettingChange = noop, - }) => { + context = null, + config, + disabled = false, + activeSetting = null, + onSettingValueChange = noop, + onActiveSettingChange = noop, + }) => { const soundSettingPanels = SOUND_SETTINGS.map(setting => { const value = getSettingMainValue(config, setting, context, false); const defaultValue = context && getSettingMainValue(config, setting, null); diff --git a/src/contexts.js b/src/contexts.js index 79ab359..4271169 100644 --- a/src/contexts.js +++ b/src/contexts.js @@ -4,6 +4,7 @@ import { CONTEXT_CHALLENGE, CONTEXT_CHARACTERS, CONTEXT_FORUM_DISCUSSION, + CONTEXT_GUIDEBOOK, CONTEXT_STORY, CONTEXT_UNKNOWN, getCurrentContext as getBaseCurrentContext, @@ -22,6 +23,7 @@ export const CONTEXT_OTHER_CHALLENGE = 'other_challenge'; export { CONTEXT_CHARACTERS, CONTEXT_FORUM_DISCUSSION, + CONTEXT_GUIDEBOOK, CONTEXT_STORY, CONTEXT_UNKNOWN, }; @@ -32,6 +34,7 @@ export { export const CONTEXTS = [ CONTEXT_LISTENING_CHALLENGE, CONTEXT_OTHER_CHALLENGE, + CONTEXT_GUIDEBOOK, CONTEXT_STORY, CONTEXT_FORUM_DISCUSSION, CONTEXT_CHARACTERS, diff --git a/yarn.lock b/yarn.lock index ac863f6..c2d1e47 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1634,9 +1634,9 @@ dom-helpers@^5.0.1: "@babel/runtime" "^7.8.7" csstype "^3.0.2" -"duo-toolbox@git+https://github.com/blmage/duo-toolbox.git#semver:^3.5.0": - version "3.5.0" - resolved "git+https://github.com/blmage/duo-toolbox.git#7394cf37c6f18f00097a7103feff990e24bab0f4" +"duo-toolbox@git+https://github.com/blmage/duo-toolbox.git#semver:^3.7.0": + version "3.7.0" + resolved "git+https://github.com/blmage/duo-toolbox.git#6978864996ad10af33e613f24fd08d45aa5dc4c4" electron-to-chromium@^1.4.202: version "1.4.206"