font-picker
Advanced tools
Comparing version 3.1.0 to 3.2.0
{ | ||
"name": "font-picker", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Font selector component for Google Fonts", | ||
"author": "Samuel Meuli <me@samuelmeuli.com>", | ||
"repository": "github:samuelmeuli/font-picker", | ||
"homepage": "https://samuelmeuli.github.io/font-picker", | ||
"homepage": "https://font-picker.samuelmeuli.com", | ||
"license": "MIT", | ||
@@ -18,7 +18,7 @@ "keywords": [ | ||
], | ||
"main": "dist/font-picker/font-picker/FontPicker.js", | ||
"module": "dist/font-picker/font-picker/FontPicker.es.js", | ||
"types": "dist/font-picker/font-picker/index.d.ts", | ||
"main": "./dist/FontPicker.js", | ||
"module": "./dist/FontPicker.es.js", | ||
"types": "./dist/FontPicker.d.ts", | ||
"files": [ | ||
"dist/" | ||
"./dist/" | ||
], | ||
@@ -28,7 +28,6 @@ "scripts": { | ||
"start:rollup": "rollup --config --sourcemap --watch", | ||
"start:serve": "serve demo --listen 3000", | ||
"start:serve": "serve ./demo --listen 3000", | ||
"build": "run-s build:*", | ||
"build:clean": "rm -rf dist/ demo/dist/", | ||
"build:clean": "rm -rf ./dist/ ./demo/dist/", | ||
"build:rollup": "rollup --config", | ||
"build:scss": "node-sass --output-style compressed src/font-picker/styles/styles.scss dist/styles.min.css", | ||
"format": "prettier --write", | ||
@@ -42,8 +41,10 @@ "lint:css": "stylelint --fix --max-warnings 0", | ||
}, | ||
"dependencies": { | ||
"@samuelmeuli/font-manager": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@samuelmeuli/eslint-config": "~2.0.0", | ||
"@samuelmeuli/stylelint-config": "~1.0.0", | ||
"@samuelmeuli/eslint-config": "^2.1.0", | ||
"@samuelmeuli/stylelint-config": "^1.0.2", | ||
"@typescript-eslint/eslint-plugin": "^1.4.2", | ||
"@typescript-eslint/parser": "^1.4.2", | ||
"autoprefixer": "^9.5.0", | ||
"eslint": "5.16.0", | ||
@@ -55,19 +56,27 @@ "eslint-config-airbnb-base": "13.1.0", | ||
"lint-staged": "^8.1.3", | ||
"node-sass": "^4.10.0", | ||
"np": "^5.0.2", | ||
"npm-run-all": "^4.1.3", | ||
"postcss": "^7.0.14", | ||
"prettier": "^1.16.4", | ||
"rollup": "^1.1.2", | ||
"rollup-plugin-postcss": "^2.0.3", | ||
"rollup-plugin-node-resolve": "^5.0.2", | ||
"rollup-plugin-typescript2": "^0.21.0", | ||
"serve": "^11.0.0", | ||
"stylelint": "^10.0.1", | ||
"stylelint": "^10.1.0", | ||
"typescript": "^3.3.3333" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
"eslintConfig": { | ||
"root": true, | ||
"extends": [ | ||
"@samuelmeuli/eslint-config/base-typescript", | ||
"prettier", | ||
"prettier/@typescript-eslint" | ||
], | ||
"env": { | ||
"browser": true | ||
} | ||
}, | ||
"prettier": { | ||
"printWidth": 100, | ||
"trailingComma": "all" | ||
}, | ||
"lint-staged": { | ||
@@ -98,3 +107,8 @@ "*.{js,jsx}": [ | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
} | ||
} |
@@ -10,3 +10,3 @@ # Font Picker | ||
→ **[Demo](https://samuelmeuli.github.io/font-picker)** | ||
→ **[Demo](https://font-picker.samuelmeuli.com)** | ||
@@ -27,3 +27,3 @@ _If you use React, see [**Font Picker for React**](https://github.com/samuelmeuli/font-picker-react)._ | ||
- **Using script tags:** Download the `FontPicker.js` file from the [releases page](https://github.com/samuelmeuli/font-picker/releases/latest), save it in your project and include it in your HTML: | ||
- **Using script tags:** Download the `FontPicker.js` file from the [releases page](https://github.com/samuelmeuli/font-picker/releases/latest) and save it in your project. Include the script in your HTML at the end of the document `<body>`: | ||
@@ -106,2 +106,3 @@ ```html | ||
- **`setActiveFont(fontFamily: string)`**: Sets the provided font as the active font | ||
- **`setOnChange(onChange: (font: Font) => void)`**: Update the `onChange` function after the font picker has been initialized | ||
@@ -108,0 +109,0 @@ ## Development |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
19
0
116
69760
1
7
1162
1
+ Added@babel/runtime@7.25.6(transitive)
+ Added@samuelmeuli/font-manager@1.4.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)