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

0.8.2 Release #266

Merged
merged 95 commits into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
435c14a
chore(deps): update dependency rollup to v4.10.0
renovate[bot] Feb 10, 2024
3d0ac72
Merge pull request #215 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Feb 10, 2024
080bbc4
chore(deps): update dependency webpack-dev-server to v5
renovate[bot] Feb 12, 2024
c654ce1
Merge pull request #216 from wingkwong/renovate/webpack-dev-server-5.x
wingkwong Feb 12, 2024
e9d6a27
chore(deps): update dependency webpack-dev-server to v5.0.1
renovate[bot] Feb 13, 2024
5c80f12
Merge pull request #217 from wingkwong/renovate/webpack-dev-server-5.…
wingkwong Feb 13, 2024
1efb77d
chore(deps): update dependency rollup to v4.11.0
renovate[bot] Feb 15, 2024
db27e62
Merge pull request #218 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Feb 15, 2024
6dd673c
chore(deps): update dependency webpack to v5.90.2
renovate[bot] Feb 15, 2024
056542a
Merge pull request #219 from wingkwong/renovate/webpack-5.x-lockfile
wingkwong Feb 15, 2024
782b5c7
chore(deps): update dependency webpack-dev-server to v5.0.2
renovate[bot] Feb 16, 2024
a12fa25
chore(deps): update dependency rollup to v4.12.0
renovate[bot] Feb 16, 2024
38cf449
Merge pull request #221 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Feb 17, 2024
1ffed13
Merge pull request #220 from wingkwong/renovate/webpack-dev-server-5.…
wingkwong Feb 17, 2024
17b8752
chore(deps): update dependency webpack to v5.90.3
renovate[bot] Feb 19, 2024
4bd1568
Merge pull request #222 from wingkwong/renovate/webpack-5.x-lockfile
wingkwong Feb 19, 2024
c1d5984
fix(deps): update dependency dompurify to v3.0.9
renovate[bot] Feb 20, 2024
66b7b15
fix(deps): update dependency nanoid to v5.0.6
renovate[bot] Feb 20, 2024
a018543
Merge pull request #224 from wingkwong/renovate/nanoid-5.x-lockfile
wingkwong Feb 21, 2024
9283773
Merge pull request #223 from wingkwong/renovate/dompurify-3.x-lockfile
wingkwong Feb 21, 2024
3452fad
chore(deps): update dependency eslint to v8.57.0
renovate[bot] Feb 23, 2024
f230290
Merge pull request #225 from wingkwong/renovate/eslint-8.x-lockfile
wingkwong Feb 24, 2024
6084ff9
chore(deps): update dependency mini-css-extract-plugin to v2.8.1
renovate[bot] Feb 27, 2024
3e7f503
Merge pull request #226 from wingkwong/renovate/mini-css-extract-plug…
wingkwong Feb 28, 2024
9950946
chore(deps): update dependency @babel/preset-env to v7.24.0
renovate[bot] Feb 28, 2024
68ae793
chore(deps): update dependency eslint-plugin-react to v7.34.0
renovate[bot] Mar 4, 2024
1ee06d1
chore(deps): update dependency rollup to v4.12.1
renovate[bot] Mar 6, 2024
6d27840
Merge pull request #229 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Mar 6, 2024
d4ae59e
Merge pull request #228 from wingkwong/renovate/eslint-plugin-react-7…
wingkwong Mar 11, 2024
417bca8
Merge pull request #227 from wingkwong/renovate/babel-monorepo
wingkwong Mar 11, 2024
aa620a8
chore(deps): update dependency rollup to v4.13.0
renovate[bot] Mar 12, 2024
1c613a3
Merge pull request #230 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Mar 12, 2024
31d825d
chore(deps): update dependency eslint-plugin-react to v7.34.1
renovate[bot] Mar 15, 2024
2a0ba51
Merge pull request #233 from wingkwong/renovate/eslint-plugin-react-7…
wingkwong Mar 16, 2024
68fe16d
fix(deps): update dependency dompurify to v3.0.10
renovate[bot] Mar 19, 2024
d8302ee
Merge pull request #235 from wingkwong/renovate/dompurify-3.x-lockfile
wingkwong Mar 19, 2024
16aff4a
chore(deps): update dependency webpack-dev-server to v5.0.4
renovate[bot] Mar 19, 2024
3f91f19
chore(deps): update babel monorepo
renovate[bot] Mar 20, 2024
236d961
Merge pull request #234 from wingkwong/renovate/babel-monorepo
wingkwong Mar 20, 2024
1fbc031
chore(deps): update dependency webpack to v5.91.0
renovate[bot] Mar 20, 2024
edb3aa5
Merge pull request #236 from wingkwong/renovate/webpack-5.x-lockfile
wingkwong Mar 21, 2024
a787555
fix(deps): update dependency dompurify to v3.0.11
renovate[bot] Mar 21, 2024
20777b2
Merge pull request #237 from wingkwong/renovate/dompurify-3.x-lockfile
wingkwong Mar 21, 2024
590650c
Merge pull request #232 from wingkwong/renovate/webpack-dev-server-5.…
wingkwong Mar 23, 2024
5b69ff9
chore(deps): update dependency rollup to v4.13.1
renovate[bot] Mar 27, 2024
1d5c89c
Merge pull request #238 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Mar 27, 2024
51d50fa
chore(deps): update dependency rollup to v4.13.2
renovate[bot] Mar 28, 2024
b8e83a7
Merge pull request #239 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Mar 28, 2024
3586ba2
chore(deps): update dependency rollup to v4.14.0
renovate[bot] Apr 3, 2024
e391608
Merge pull request #241 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Apr 3, 2024
d9a8dcb
chore(deps): update dependency css-loader to v6.11.0
renovate[bot] Apr 3, 2024
b13885e
chore(deps): update dependency @babel/preset-env to v7.24.4
renovate[bot] Apr 3, 2024
8dadeb0
Merge pull request #243 from wingkwong/renovate/babel-monorepo
wingkwong Apr 4, 2024
45b7855
Merge pull request #242 from wingkwong/renovate/css-loader-6.x-lockfile
wingkwong Apr 4, 2024
8b192fe
chore(deps): update dependency css-loader to v7
renovate[bot] Apr 4, 2024
2c56067
Merge pull request #244 from wingkwong/renovate/css-loader-7.x
wingkwong Apr 5, 2024
2ffc064
chore(deps): update dependency rollup to v4.14.1
renovate[bot] Apr 7, 2024
17ead69
Merge pull request #246 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Apr 7, 2024
c9eeae0
fix(deps): update dependency nanoid to v5.0.7
renovate[bot] Apr 7, 2024
5eb34e1
fix(deps): update dependency dompurify to v3.1.0
renovate[bot] Apr 7, 2024
dd6aba1
Merge pull request #248 from wingkwong/renovate/dompurify-3.x-lockfile
wingkwong Apr 8, 2024
264c551
Merge pull request #247 from wingkwong/renovate/nanoid-5.x-lockfile
wingkwong Apr 8, 2024
9a8f25d
chore(deps): update dependency css-loader to v7.1.0
renovate[bot] Apr 8, 2024
e95b090
Merge pull request #249 from wingkwong/renovate/css-loader-7.x-lockfile
wingkwong Apr 9, 2024
ad25d6f
chore(deps): update dependency css-loader to v7.1.1
renovate[bot] Apr 10, 2024
5b0fbe0
Merge pull request #250 from wingkwong/renovate/css-loader-7.x-lockfile
wingkwong Apr 11, 2024
503e334
chore(deps): update dependency rollup to v4.15.0
renovate[bot] Apr 20, 2024
a6f4e30
Merge pull request #252 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Apr 20, 2024
42e0748
chore(deps): update dependency rollup to v4.16.0
renovate[bot] Apr 21, 2024
7f70a83
Merge pull request #254 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Apr 21, 2024
d878e90
chore(deps): update dependency rollup to v4.16.2
renovate[bot] Apr 22, 2024
96b6221
Merge pull request #255 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Apr 22, 2024
a6de237
chore(deps): update dependency mini-css-extract-plugin to v2.9.0
renovate[bot] Apr 25, 2024
c2fb907
fix(deps): update dependency dompurify to v3.1.1
renovate[bot] Apr 26, 2024
20da4b5
Merge pull request #258 from wingkwong/renovate/dompurify-3.x-lockfile
wingkwong Apr 26, 2024
11ef791
chore(deps): update react monorepo
renovate[bot] Apr 26, 2024
4f456eb
chore(deps): update dependency rollup to v4.17.0
renovate[bot] Apr 27, 2024
88f359e
Merge pull request #256 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Apr 28, 2024
f876880
chore(deps): update dependency rollup to v4.17.1
renovate[bot] Apr 29, 2024
ddf344c
Merge pull request #259 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Apr 29, 2024
2e42d36
chore(deps): update dependency @babel/preset-env to v7.24.5
renovate[bot] Apr 29, 2024
c3240cb
chore(deps): update dependency rollup to v4.17.2
renovate[bot] Apr 30, 2024
a97afac
Merge pull request #261 from wingkwong/renovate/rollup-4.x-lockfile
wingkwong Apr 30, 2024
78e8bd3
chore(deps): update dependency css-minimizer-webpack-plugin to v7
renovate[bot] May 7, 2024
9eae846
Merge pull request #263 from wingkwong/renovate/css-minimizer-webpack…
wingkwong May 8, 2024
8f7daa7
fix(deps): update dependency dompurify to v3.1.3
renovate[bot] May 11, 2024
ae0ec0f
feat(locale): adds locale text to answers dropdown filter
jisazamp May 15, 2024
f08a4c9
Merge pull request #265 from jisazamp/develop
wingkwong May 15, 2024
7c89644
Merge pull request #262 from wingkwong/renovate/dompurify-3.x-lockfile
wingkwong May 19, 2024
8d2bce7
Merge pull request #253 from wingkwong/renovate/mini-css-extract-plug…
wingkwong May 19, 2024
4f1d7a6
Merge pull request #257 from wingkwong/renovate/react-monorepo
wingkwong May 19, 2024
4b3823d
Merge pull request #260 from wingkwong/renovate/babel-monorepo
wingkwong May 19, 2024
d39d64a
chore(deps): bump webpack-cli version
wingkwong May 19, 2024
cd3d256
chore(root): revise devServer
wingkwong May 19, 2024
88fbf7d
0.8.2 Release
wingkwong May 19, 2024
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## 0.8.2

- Bumped dependencies
- Fixed missing locale text in answers dropdown filter

## 0.8.1

- Bumped dependencies
Expand Down
4 changes: 2 additions & 2 deletions dist/index.es.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/bundle.js

Large diffs are not rendered by default.

3,068 changes: 1,929 additions & 1,139 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-quiz-component",
"version": "0.8.1",
"version": "0.8.2",
"description": "React Quiz Component",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down Expand Up @@ -31,8 +31,8 @@
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"babel-loader": "^9.1.3",
"css-loader": "^6.0.0",
"css-minimizer-webpack-plugin": "^6.0.0",
"css-loader": "^7.0.0",
"css-minimizer-webpack-plugin": "^7.0.0",
"eslint": "^8.4.1",
"eslint-config-airbnb": "^19.0.2",
"eslint-plugin-import": "^2.25.3",
Expand All @@ -47,8 +47,8 @@
"rollup-plugin-postcss": "^4.0.2",
"terser-webpack-plugin": "^5.3.9",
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4"
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.0"
},
"author": "WK Wong <wingkwong.code@gmail.com>",
"homepage": "https://github.com/wingkwong/react-quiz-component",
Expand Down
14 changes: 12 additions & 2 deletions src/lib/core-components/QuizResultFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,20 @@ function QuizResultFilter({ filteredValue, handleChange, appLocale }) {
};

const selectedOptionClass = isOpen ? 'selected-open' : '';
const selectedValuesLocale = {
all: appLocale.resultFilterAll,
correct: appLocale.resultFilterCorrect,
incorrect: appLocale.resultFilterIncorrect,
unanswered: appLocale.resultFilterUnanswered,
};

useEffect(() => {
const handleOutsideClick = (e) => {
if (isOpen && dropdownRef.current && !dropdownRef.current.contains(e.target)) {
if (
isOpen
&& dropdownRef.current
&& !dropdownRef.current.contains(e.target)
) {
setIsOpen(false);
}
};
Expand All @@ -44,7 +54,7 @@ function QuizResultFilter({ filteredValue, handleChange, appLocale }) {
tabIndex={0}
>
<div className={`selected-option ${selectedOptionClass}`}>
{filteredValue === 'all' ? appLocale.resultFilterAll : filteredValue}
{selectedValuesLocale[filteredValue]}
</div>
<span className={`arrow ${isOpen ? 'up' : 'down'}`} />
</div>
Expand Down
7 changes: 5 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ module.exports = {
extensions: ['', '.js', '.jsx'],
},
devServer: {
static: path.join(__dirname, 'docs'),
port: 8000,
static: {
directory: path.join(__dirname, 'docs'),
},
compress: true,
port: 8080,
},
};