New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@readapt/settings

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@readapt/settings - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

src/defaultProfiles.ts

65

dist/readapt-settings.esm.js

@@ -9,6 +9,6 @@ const fontFamilyOptions = [

const fontSizeOptions = [
{ value: 'inherit', text: 'Default' },
{ value: '140%', text: 'Medium' },
{ value: '170%', text: 'Large' },
{ value: '200%', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '140%', text: 'MEDIUM' },
{ value: '170%', text: 'LARGE' },
{ value: '200%', text: 'EXTRA_LARGE' }
];

@@ -22,13 +22,13 @@

const letterSpacingOptions = [
{ value: 'inherit', text: 'Default' },
{ value: '2px', text: 'Medium' },
{ value: '3.5px', text: 'Large' },
{ value: '5px', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '2px', text: 'MEDIUM' },
{ value: '3.5px', text: 'LARGE' },
{ value: '5px', text: 'EXTRA_LARGE' }
];
const lineSpacingOptions = [
{ value: 'inherit', text: 'Default' },
{ value: '2.1', text: 'Medium' },
{ value: '2.55', text: 'Large' },
{ value: '3', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '2.1', text: 'MEDIUM' },
{ value: '2.55', text: 'LARGE' },
{ value: '3', text: 'EXTRA_LARGE' }
];

@@ -59,6 +59,6 @@

const wordSpacingOptions = [
{ value: 'inherit', text: 'Default' },
{ value: '2px', text: 'Medium' },
{ value: '3.5px', text: 'Large' },
{ value: '5px', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '2px', text: 'MEDIUM' },
{ value: '3.5px', text: 'LARGE' },
{ value: '5px', text: 'EXTRA_LARGE' }
];

@@ -256,5 +256,34 @@

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: opacityOptions[0].value, shadeAlternateLinesActive: false, shadeAlternateLinesOpacity: opacityOptions[0].value, phonemesActive: true, phonemes: buildDefaultPhonemeSettings(language), lettersActive: true, letters: buildDefaultLetterSettings(language) }, frSettings);
return {
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: opacityOptions[0].value,
shadeAlternateLinesActive: false,
shadeAlternateLinesOpacity: opacityOptions[0].value,
phonemesActive: true,
phonemes: buildDefaultPhonemeSettings(language),
lettersActive: true,
letters: buildDefaultLetterSettings(language),
...frSettings
};
};
export { buildDefaultSettings, colors, fontFamilyOptions, fontSizeOptions, getLangConfig, languageOptions, letterSpacingOptions, lineSpacingOptions, opacityOptions, silentLetterOpacityOptions, thicknessOptions, wordSpacingOptions };
/**
* build default Profiles in all available languages
* @return Profiles
*/
const buildDefaultProfiles = () => {
return {
en: buildDefaultSettings('en'),
fr: buildDefaultSettings('fr')
};
};
export { buildDefaultProfiles, buildDefaultSettings, colors, fontFamilyOptions, fontSizeOptions, getLangConfig, languageOptions, letterSpacingOptions, lineSpacingOptions, opacityOptions, silentLetterOpacityOptions, thicknessOptions, wordSpacingOptions };

@@ -13,6 +13,6 @@ 'use strict';

const fontSizeOptions = [
{ value: 'inherit', text: 'Default' },
{ value: '140%', text: 'Medium' },
{ value: '170%', text: 'Large' },
{ value: '200%', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '140%', text: 'MEDIUM' },
{ value: '170%', text: 'LARGE' },
{ value: '200%', text: 'EXTRA_LARGE' }
];

@@ -26,13 +26,13 @@

const letterSpacingOptions = [
{ value: 'inherit', text: 'Default' },
{ value: '2px', text: 'Medium' },
{ value: '3.5px', text: 'Large' },
{ value: '5px', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '2px', text: 'MEDIUM' },
{ value: '3.5px', text: 'LARGE' },
{ value: '5px', text: 'EXTRA_LARGE' }
];
const lineSpacingOptions = [
{ value: 'inherit', text: 'Default' },
{ value: '2.1', text: 'Medium' },
{ value: '2.55', text: 'Large' },
{ value: '3', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '2.1', text: 'MEDIUM' },
{ value: '2.55', text: 'LARGE' },
{ value: '3', text: 'EXTRA_LARGE' }
];

@@ -63,6 +63,6 @@

const wordSpacingOptions = [
{ value: 'inherit', text: 'Default' },
{ value: '2px', text: 'Medium' },
{ value: '3.5px', text: 'Large' },
{ value: '5px', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '2px', text: 'MEDIUM' },
{ value: '3.5px', text: 'LARGE' },
{ value: '5px', text: 'EXTRA_LARGE' }
];

@@ -260,5 +260,35 @@

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: opacityOptions[0].value, shadeAlternateLinesActive: false, shadeAlternateLinesOpacity: opacityOptions[0].value, phonemesActive: true, phonemes: buildDefaultPhonemeSettings(language), lettersActive: true, letters: buildDefaultLetterSettings(language) }, frSettings);
return {
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: opacityOptions[0].value,
shadeAlternateLinesActive: false,
shadeAlternateLinesOpacity: opacityOptions[0].value,
phonemesActive: true,
phonemes: buildDefaultPhonemeSettings(language),
lettersActive: true,
letters: buildDefaultLetterSettings(language),
...frSettings
};
};
/**
* build default Profiles in all available languages
* @return Profiles
*/
const buildDefaultProfiles = () => {
return {
en: buildDefaultSettings('en'),
fr: buildDefaultSettings('fr')
};
};
exports.buildDefaultProfiles = buildDefaultProfiles;
exports.buildDefaultSettings = buildDefaultSettings;

@@ -265,0 +295,0 @@ exports.colors = colors;

@@ -43,8 +43,16 @@ interface ColoredOption {

liaisonsActive?: boolean;
phonemesActive: true;
phonemesActive: boolean;
phonemes: ColoredItem[];
lettersActive: true;
lettersActive: boolean;
letters: ColoredItem[];
}
type SettingsKey = keyof Settings;
interface Profiles {
en: Settings;
fr: Settings;
}
interface StoreModel {
profiles: Profiles;
language: Language;
}
declare const fontFamilyOptions: Option[];

@@ -62,3 +70,8 @@ declare const fontSizeOptions: Option[];

declare const buildDefaultSettings: (language: Language) => Settings;
export { LangConfig, ColoredOption, Language, ColoredItem, Option, Settings, SettingsKey, fontFamilyOptions, fontSizeOptions, languageOptions, letterSpacingOptions, lineSpacingOptions, opacityOptions, thicknessOptions, silentLetterOpacityOptions, wordSpacingOptions, colors, getLangConfig, buildDefaultSettings };
//# sourceMappingURL=readapt-settings.esm.d.ts.map
/**
* build default Profiles in all available languages
* @return Profiles
*/
declare const buildDefaultProfiles: () => Profiles;
export { LangConfig, ColoredOption, Language, ColoredItem, Option, Settings, SettingsKey, Profiles, StoreModel, fontFamilyOptions, fontSizeOptions, languageOptions, letterSpacingOptions, lineSpacingOptions, opacityOptions, thicknessOptions, silentLetterOpacityOptions, wordSpacingOptions, colors, getLangConfig, buildDefaultSettings, buildDefaultProfiles };
//# sourceMappingURL=readapt-settings.d.ts.map
{
"name": "@readapt/settings",
"version": "1.2.0",
"version": "1.3.0",
"main": "dist/readapt-settings.js",

@@ -24,3 +24,3 @@ "module": "dist/readapt-settings.esm.js",

],
"gitHead": "9d0536ba4d1473737d15ef3d6c67f61533997974"
"gitHead": "4ede971994fed7176191dc9eb25b94359b7ad831"
}

@@ -6,1 +6,2 @@ export * from './models'

export * from './defaultSettings'
export * from './defaultProfiles'

@@ -7,1 +7,3 @@ export * from './langConfig'

export { SettingsKey } from './settingsKey'
export { Profiles } from './profiles'
export { StoreModel } from './storeModel'

@@ -21,6 +21,6 @@ import { Language } from './language'

liaisonsActive?: boolean
phonemesActive: true
phonemesActive: boolean
phonemes: ColoredItem[]
lettersActive: true
lettersActive: boolean
letters: ColoredItem[]
}
import { Option } from '../models'
export const fontSizeOptions: Option[] = [
{ value: 'inherit', text: 'Default' },
{ value: '140%', text: 'Medium' },
{ value: '170%', text: 'Large' },
{ value: '200%', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '140%', text: 'MEDIUM' },
{ value: '170%', text: 'LARGE' },
{ value: '200%', text: 'EXTRA_LARGE' }
]
import { Option } from '../models'
export const letterSpacingOptions: Option[] = [
{ value: 'inherit', text: 'Default' },
{ value: '2px', text: 'Medium' },
{ value: '3.5px', text: 'Large' },
{ value: '5px', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '2px', text: 'MEDIUM' },
{ value: '3.5px', text: 'LARGE' },
{ value: '5px', text: 'EXTRA_LARGE' }
]
import { Option } from '../models'
export const lineSpacingOptions: Option[] = [
{ value: 'inherit', text: 'Default' },
{ value: '2.1', text: 'Medium' },
{ value: '2.55', text: 'Large' },
{ value: '3', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '2.1', text: 'MEDIUM' },
{ value: '2.55', text: 'LARGE' },
{ value: '3', text: 'EXTRA_LARGE' }
]
import { Option } from '../models'
export const wordSpacingOptions: Option[] = [
{ value: 'inherit', text: 'Default' },
{ value: '2px', text: 'Medium' },
{ value: '3.5px', text: 'Large' },
{ value: '5px', text: 'Extra Large' }
{ value: 'inherit', text: 'DEFAULT' },
{ value: '2px', text: 'MEDIUM' },
{ value: '3.5px', text: 'LARGE' },
{ value: '5px', text: 'EXTRA_LARGE' }
]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc