@readapt/settings
Advanced tools
Comparing version
@@ -253,3 +253,3 @@ const fontFamilyOptions = [ | ||
const frSettings = language === 'fr' ? { liaisonsActive: false, liaisonsOpacity: opacityOptions[0].value } : {}; | ||
return Object.assign({ language, fontFamily: fontFamilyOptions[0].value, fontSize: fontSizeOptions[0].value, letterSpacing: letterSpacingOptions[0].value, wordSpacing: wordSpacingOptions[0].value, lineSpacing: lineSpacingOptions[0].value, syllableActive: false, syllableOpacity: opacityOptions[0].value, silentLetterActive: false, silentLetterOpacity: silentLetterOpacityOptions[0].value, shadeAlternateLinesActive: false, shadeAlternateLinesOpacity: opacityOptions[0].value, phonemesActive: true, phonemes: buildDefaultPhonemeSettings(language), lettersActive: true, letters: buildDefaultLetterSettings(language) }, frSettings); | ||
return Object.assign({ language, fontFamily: fontFamilyOptions[0].value, fontSize: fontSizeOptions[0].value, letterSpacing: letterSpacingOptions[0].value, wordSpacing: wordSpacingOptions[0].value, lineSpacing: lineSpacingOptions[0].value, syllableActive: false, syllableColor1: null, syllableColor2: null, syllableOpacity: opacityOptions[0].value, silentLetterActive: false, silentLetterOpacity: silentLetterOpacityOptions[0].value, shadeAlternateLinesActive: false, shadeAlternateLinesOpacity: opacityOptions[0].value, phonemesActive: true, phonemes: buildDefaultPhonemeSettings(language), lettersActive: true, letters: buildDefaultLetterSettings(language) }, frSettings); | ||
}; | ||
@@ -256,0 +256,0 @@ const overrideDefaultColoredItems = (defaultColoredItems, overrides) => defaultColoredItems.map((item) => { |
@@ -257,3 +257,3 @@ 'use strict'; | ||
const frSettings = language === 'fr' ? { liaisonsActive: false, liaisonsOpacity: opacityOptions[0].value } : {}; | ||
return Object.assign({ language, fontFamily: fontFamilyOptions[0].value, fontSize: fontSizeOptions[0].value, letterSpacing: letterSpacingOptions[0].value, wordSpacing: wordSpacingOptions[0].value, lineSpacing: lineSpacingOptions[0].value, syllableActive: false, syllableOpacity: opacityOptions[0].value, silentLetterActive: false, silentLetterOpacity: silentLetterOpacityOptions[0].value, shadeAlternateLinesActive: false, shadeAlternateLinesOpacity: opacityOptions[0].value, phonemesActive: true, phonemes: buildDefaultPhonemeSettings(language), lettersActive: true, letters: buildDefaultLetterSettings(language) }, frSettings); | ||
return Object.assign({ language, fontFamily: fontFamilyOptions[0].value, fontSize: fontSizeOptions[0].value, letterSpacing: letterSpacingOptions[0].value, wordSpacing: wordSpacingOptions[0].value, lineSpacing: lineSpacingOptions[0].value, syllableActive: false, syllableColor1: null, syllableColor2: null, syllableOpacity: opacityOptions[0].value, silentLetterActive: false, silentLetterOpacity: silentLetterOpacityOptions[0].value, shadeAlternateLinesActive: false, shadeAlternateLinesOpacity: opacityOptions[0].value, phonemesActive: true, phonemes: buildDefaultPhonemeSettings(language), lettersActive: true, letters: buildDefaultLetterSettings(language) }, frSettings); | ||
}; | ||
@@ -260,0 +260,0 @@ const overrideDefaultColoredItems = (defaultColoredItems, overrides) => defaultColoredItems.map((item) => { |
@@ -11,4 +11,4 @@ import { Language } from './language'; | ||
lineSpacing: LineSpacingOption; | ||
syllableColor1?: ColorOption; | ||
syllableColor2?: ColorOption; | ||
syllableColor1: ColorOption | null; | ||
syllableColor2: ColorOption | null; | ||
syllableActive: boolean; | ||
@@ -15,0 +15,0 @@ syllableOpacity: OpacityOption; |
{ | ||
"name": "@readapt/settings", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"main": "dist/readapt-settings.js", | ||
@@ -24,3 +24,3 @@ "module": "dist/readapt-settings.esm.js", | ||
], | ||
"gitHead": "749a03ec8c071e43ed7a9c8a5ae9ada6f14cf9a3" | ||
"gitHead": "68fd10172d8953f7cd727e74fb1bf6c1c08ac763" | ||
} |
@@ -42,2 +42,4 @@ import { ColoredItem, ColoredOption, Language, Settings } from './models' | ||
syllableActive: false, | ||
syllableColor1: null, | ||
syllableColor2: null, | ||
syllableOpacity: opacityOptions[0].value, | ||
@@ -44,0 +46,0 @@ silentLetterActive: false, |
@@ -21,4 +21,4 @@ import { Language } from './language' | ||
lineSpacing: LineSpacingOption | ||
syllableColor1?: ColorOption | ||
syllableColor2?: ColorOption | ||
syllableColor1: ColorOption | null | ||
syllableColor2: ColorOption | null | ||
syllableActive: boolean | ||
@@ -25,0 +25,0 @@ syllableOpacity: OpacityOption |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
85657
0.2%1120
0.18%1
Infinity%