UNPKG

@eeacms/volto-anchors

Version:

@eeacms/volto-anchors: Volto add-on

215 lines (145 loc) 17.3 kB
### Changelog All notable changes to this project will be documented in this file. Dates are displayed in UTC. Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). ### [1.0.1](https://github.com/eea/volto-anchors/compare/1.0.0...1.0.1) - 30 January 2025 #### :house: Internal changes - chore: package.json [Alin Voinea - [`3ff940d`](https://github.com/eea/volto-anchors/commit/3ff940df27ffca0068968dd00a9880f617adcbe9)] #### :house: Documentation changes - docs: Added translation docs and link to latest Install methods [valentinab25 - [`44351a3`](https://github.com/eea/volto-anchors/commit/44351a3524333acd35db2f9310e71a669aee239c)] - docs: Added translation docs and link to latest Install methods [valentinab25 - [`4e069e3`](https://github.com/eea/volto-anchors/commit/4e069e37844d3e35a753c79a10629dbbfc0b02ee)] ## [1.0.0](https://github.com/eea/volto-anchors/compare/0.7.0...1.0.0) - 22 April 2024 #### :rocket: New Features - feat: Release 1.0.0: Volto 17 support [alin - [`2c70f96`](https://github.com/eea/volto-anchors/commit/2c70f967245a18af207dbd2dde0ccb9abccf8ab1)] - feat: Volto 17 support - refs #264527 [Teodor Voicu - [`ad9ee1c`](https://github.com/eea/volto-anchors/commit/ad9ee1cfc49095a2ef83f5fb147616aaae576cfc)] #### :hammer_and_wrench: Others - test: modify cypress test [ana-oprea - [`369d5f8`](https://github.com/eea/volto-anchors/commit/369d5f8b2899208ae5b3d6e01c923c16d26e77d6)] - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`9bb0f01`](https://github.com/eea/volto-anchors/commit/9bb0f01309a16c925257d9fe9cd34539db927577)] ### [0.7.0](https://github.com/eea/volto-anchors/compare/0.6.0...0.7.0) - 26 March 2024 #### :bug: Bug Fixes - fix(anchor): error where selector in URL is invalid #32 from eea/265448-fix-invalid-selector [ichim-david - [`8e943b1`](https://github.com/eea/volto-anchors/commit/8e943b119d7073edd2f2d799489fb47fac596db9)] #### :house: Internal changes - chore: Fix newline in package.json [alin - [`15d3ddb`](https://github.com/eea/volto-anchors/commit/15d3ddb7c0a0c339f26002304dc9f2ff9885ca2e)] #### :hammer_and_wrench: Others - bump package version [David Ichim - [`c98459b`](https://github.com/eea/volto-anchors/commit/c98459b9347708a266e16f1c547447a51a783092)] - remove console error [Teodor - [`a0bed8b`](https://github.com/eea/volto-anchors/commit/a0bed8b609fd78f07e2f5b029a332168468c1143)] - update function to validate selector [Teodor - [`64c283b`](https://github.com/eea/volto-anchors/commit/64c283b48b307f76b0781bfa92f35b40dbdf4bdf)] - Ref #265448 Fix error where selector in URL is invalid [Teodor - [`e61425a`](https://github.com/eea/volto-anchors/commit/e61425ac3477c75e8185c8c5eea52eae69c7b717)] ### [0.6.0](https://github.com/eea/volto-anchors/compare/0.5.0...0.6.0) - 19 February 2024 #### :house: Internal changes - chore: package.json [Alin Voinea - [`1bed96f`](https://github.com/eea/volto-anchors/commit/1bed96f3fb4a4a2ad7dd5621822ce9729b4e7683)] #### :hammer_and_wrench: Others - bump version [Razvan - [`db8e899`](https://github.com/eea/volto-anchors/commit/db8e899b29c5ffbe5169d867a3a64af5ee663a22)] - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`2da7976`](https://github.com/eea/volto-anchors/commit/2da79762d9d64ca92049efcc5c89746f69fde403)] - Remove unused target and title attributes from renderLinkElement function [David Ichim - [`5a9d684`](https://github.com/eea/volto-anchors/commit/5a9d684bd468cb44a580758b390007ea2414af52)] - set JEST_USE_SETUP=ON [Miu Razvan - [`97929a3`](https://github.com/eea/volto-anchors/commit/97929a3a3aae2646edabc5b2d973ff869ccc6413)] - test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`ea1f44c`](https://github.com/eea/volto-anchors/commit/ea1f44c9ea68ba37877d9213550ba5c4e4cd841e)] - test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`9fc3606`](https://github.com/eea/volto-anchors/commit/9fc360620c0ce329d48815980439dccaa363d31c)] - test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`f5d57b6`](https://github.com/eea/volto-anchors/commit/f5d57b697830abba5ed739822dc4379f2a581163)] - fix helpers [nileshgulia1 - [`80e5633`](https://github.com/eea/volto-anchors/commit/80e5633bff8265d8d6b5eec78831fdb7955dadd0)] ### [0.5.0](https://github.com/eea/volto-anchors/compare/0.4.2...0.5.0) - 17 January 2024 #### :house: Internal changes - chore: [JENKINS] Refactor automated testing [valentinab25 - [`f7ee961`](https://github.com/eea/volto-anchors/commit/f7ee96101481f457c17bd1927b2b5ec3c31fc1c2)] - chore: husky, lint-staged use fixed versions [valentinab25 - [`2314055`](https://github.com/eea/volto-anchors/commit/231405579af163056c4dc0aebe5ca9f53358b5bc)] - chore:volto 16 in tests, update docs, fix stylint overrides [valentinab25 - [`54ec80c`](https://github.com/eea/volto-anchors/commit/54ec80cf8c8314803cdf75863b13125a33461f33)] #### :hammer_and_wrench: Others - fix tests [Miu Razvan - [`1777cba`](https://github.com/eea/volto-anchors/commit/1777cba0d12a7828c90a447f6076f5feed8db6b0)] - fix jest [Miu Razvan - [`56d727a`](https://github.com/eea/volto-anchors/commit/56d727a2d276daa49df0733e66ab0f8b5b163620)] - fix jest [Miu Razvan - [`8f2fd76`](https://github.com/eea/volto-anchors/commit/8f2fd76d21e59dab6136e59ae054f6ecaa8eb8c8)] - fix jest [Miu Razvan - [`9022f63`](https://github.com/eea/volto-anchors/commit/9022f6343c3d0d2155128c189ee739fab88c8cc9)] - test: [JENKINS] fix jest config, fail with logs on coverage [valentinab25 - [`9722865`](https://github.com/eea/volto-anchors/commit/9722865cc8fc8984c6866e614e2cf407aff43cd8)] - test: [JENKINS] fix jest config, fail with logs on coverage [valentinab25 - [`b1b1189`](https://github.com/eea/volto-anchors/commit/b1b118968f0276bb98fb7aefe33e2ef1299e4f47)] - test: [JENKINS] fix jest config, fail with logs on coverage [valentinab25 - [`aecbc81`](https://github.com/eea/volto-anchors/commit/aecbc8145b377a6d9fc1060edcee7116ac77220d)] - test: use global tool jdk17 [valentinab25 - [`cf22622`](https://github.com/eea/volto-anchors/commit/cf226221ba3134e7ad38751ab95a0bda8433b6f0)] - test: use tools directive in sonarqube [valentinab25 - [`87d0286`](https://github.com/eea/volto-anchors/commit/87d02864bb1f999f9f44b4bf6660aa9b728fb69b)] - test: use java 17 for sonarqubescanner [valentinab25 - [`4fecbdc`](https://github.com/eea/volto-anchors/commit/4fecbdca6201d1fbe46f2910ddd5ce23d004a55c)] - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`18c0899`](https://github.com/eea/volto-anchors/commit/18c08999b6c65d2ab5f529276e16106e50d1e67d)] - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`fdc489b`](https://github.com/eea/volto-anchors/commit/fdc489b3e349b16a8bd9dd965bde09d6bd728471)] - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`e5ceee6`](https://github.com/eea/volto-anchors/commit/e5ceee6cf970f47640841d28b3ad96d7dd70fa17)] - test: [JENKINS] Improve cypress time [valentinab25 - [`afc0e48`](https://github.com/eea/volto-anchors/commit/afc0e487fa89f2c4ff8f95f18cfca70de2b498ed)] - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`7b95732`](https://github.com/eea/volto-anchors/commit/7b9573277ef23f846a13346265a3770047100e61)] ### [0.4.2](https://github.com/eea/volto-anchors/compare/0.4.1...0.4.2) - 29 September 2023 #### :house: Internal changes - style: lint-staged reorder in package.json [Alin Voinea - [`a655b94`](https://github.com/eea/volto-anchors/commit/a655b94aeac7aeb63600c0378a3d7d1f48bad5cf)] #### :house: Documentation changes - docs: Update README and DEVELOP [Alin Voinea - [`c62a2fa`](https://github.com/eea/volto-anchors/commit/c62a2fa5bc20dc895b467c34a63d5e1c2ebdd69c)] #### :hammer_and_wrench: Others - test: EN locales, pre-commit fix, feature PRs checks [valentinab25 - [`675407f`](https://github.com/eea/volto-anchors/commit/675407f2f70ffa2fe65f4a7fecce624e486325f8)] ### [0.4.1](https://github.com/eea/volto-anchors/compare/0.4.0...0.4.1) - 30 August 2023 #### :hammer_and_wrench: Others - i18n: Add en [Alin Voinea - [`1c88331`](https://github.com/eea/volto-anchors/commit/1c88331eb64f337de340e00df4ba1335558d24b3)] - test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`43fdc52`](https://github.com/eea/volto-anchors/commit/43fdc52f539ef1151913655ecccc1d9a7641b9fe)] - Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`9b9bce5`](https://github.com/eea/volto-anchors/commit/9b9bce5c21628c544a5a9c57d948998280292f52)] ### [0.4.0](https://github.com/eea/volto-anchors/compare/0.3.4...0.4.0) - 1 August 2023 #### :bug: Bug Fixes - fix: horizontal table of contents accessibility - refs #256009 [Crețu Mihaela - [`eb513ae`](https://github.com/eea/volto-anchors/commit/eb513aee20606846e78bc6769ccfc4d8c322127f)] #### :house: Documentation changes - docs: Cleanup Makefile, update DEVELOP documentation, i18n - refs #254894 [valentinab25 - [`172b9f1`](https://github.com/eea/volto-anchors/commit/172b9f1e6ef58909577d8f2d9e4141c44b333285)] #### :hammer_and_wrench: Others - Release 0.4.0 [Alin Voinea - [`97b8001`](https://github.com/eea/volto-anchors/commit/97b8001c5927fba8c1416b516b811deba18d49ad)] ### [0.3.4](https://github.com/eea/volto-anchors/compare/0.3.3...0.3.4) - 26 July 2023 #### :rocket: New Features - feat: add dropdown menu for items in toc getting out of viewport - refs #254302 [Crețu Mihaela - [`db39fec`](https://github.com/eea/volto-anchors/commit/db39fecb6a07d4c9476b1fc16c3c7cd77f08f3c3)] #### :hammer_and_wrench: Others - test: Cypress test - refs #253277 [Crețu Mihaela - [`263be0a`](https://github.com/eea/volto-anchors/commit/263be0af99c60f6cad32381f4d95bdf74bd0e329)] - test: Add Cypress tests [Crețu Mihaela - [`5c680b9`](https://github.com/eea/volto-anchors/commit/5c680b9866b5779ad4d573f02fdd3d3a95758694)] ### [0.3.3](https://github.com/eea/volto-anchors/compare/0.3.2...0.3.3) - 24 July 2023 #### :hammer_and_wrench: Others - Add Sonarqube tag using climate-energy-frontend addons list [EEA Jenkins - [`9b77f45`](https://github.com/eea/volto-anchors/commit/9b77f454073bdd01424ea49e9929f6b59626da54)] - test: Add sonarqube check Refs #254461 [valentinab25 - [`9b56878`](https://github.com/eea/volto-anchors/commit/9b5687846b49107f5c865dcfdc0c92a5cb680b1d)] - test: Add sonarqube check Refs #254461 [valentinab25 - [`fcb3d6d`](https://github.com/eea/volto-anchors/commit/fcb3d6df4c9e62a5eb53c91f7cf0d3ff6b192548)] ### [0.3.2](https://github.com/eea/volto-anchors/compare/0.2.2...0.3.2) - 30 June 2023 #### :hammer_and_wrench: Others - Merge pull request #17 from eea/develop [Nilesh - [`c1ce17d`](https://github.com/eea/volto-anchors/commit/c1ce17d026ec6699040d42d6c80224dca43186d7)] - update minor version [nileshgulia1 - [`6d4bbea`](https://github.com/eea/volto-anchors/commit/6d4bbeae721c73ec1e602b4f8153775e01cd6331)] ### [0.2.2](https://github.com/eea/volto-anchors/compare/0.2.1...0.2.2) - 12 June 2023 #### :rocket: New Features - feat: add cypress test for basic functionality and demo gif to README - refs #252543 [ana-oprea - [`6b9484f`](https://github.com/eea/volto-anchors/commit/6b9484fcb1e564bd90dd433e9c3a9fefe695fe23)] #### :house: Internal changes - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`2d163fc`](https://github.com/eea/volto-anchors/commit/2d163fc1dd3d3890ebdca9e75c90a76cb364493d)] #### :hammer_and_wrench: Others - test: Add unit tests for helpers.js and ScrollToAnchor.jsx - refs #253277 [ana-oprea - [`2fdbd93`](https://github.com/eea/volto-anchors/commit/2fdbd93341d72379583834f1f94dce1463f9b7cd)] - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`306c7c9`](https://github.com/eea/volto-anchors/commit/306c7c934f16b0d3338edf5cbb9b2608c1d37c03)] - test: Fix test config, coverage Refs #253277 [valentinab25 - [`41e36b2`](https://github.com/eea/volto-anchors/commit/41e36b240f5d4b65fc272593f86e26b6ab6cb044)] ### [0.2.1](https://github.com/eea/volto-anchors/compare/0.2.0...0.2.1) - 24 April 2023 #### :hammer_and_wrench: Others - Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`3e40ab2`](https://github.com/eea/volto-anchors/commit/3e40ab2e8b0a2d386f22feb88ae27e3a19890834)] ### [0.2.0](https://github.com/eea/volto-anchors/compare/0.1.5...0.2.0) - 27 March 2023 #### :hammer_and_wrench: Others - Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`52e293f`](https://github.com/eea/volto-anchors/commit/52e293fe8fd96a180b6c4d4f59a559d1b46cedaf)] - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`009ff29`](https://github.com/eea/volto-anchors/commit/009ff29753456e4dac568eee7f539f3c8a49deb2)] - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`dd63d34`](https://github.com/eea/volto-anchors/commit/dd63d349477025d60a385df33c8fc40fbf120bcd)] ### [0.1.5](https://github.com/eea/volto-anchors/compare/0.1.4...0.1.5) - 1 March 2023 #### :hammer_and_wrench: Others - add github-slugger dep [Nilesh - [`bbc9408`](https://github.com/eea/volto-anchors/commit/bbc940818fdfc240597e5399da6d3c765cd122fb)] - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`11e48bf`](https://github.com/eea/volto-anchors/commit/11e48bf1856bf37ae4d04fe2ab936d3b9930a19c)] - Add Sonarqube tag using forests-frontend addons list [EEA Jenkins - [`d6c7f98`](https://github.com/eea/volto-anchors/commit/d6c7f9811961f21672aa6bb874114cfce1c91879)] - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`e2ff4ba`](https://github.com/eea/volto-anchors/commit/e2ff4bafd345f36b6b7b6158499e17080808ab97)] - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`c39ac0c`](https://github.com/eea/volto-anchors/commit/c39ac0c5f9fc2d27831595533fd1ec1216dfa5d6)] - Add Sonarqube tag using demo-kitkat-frontend addons list [EEA Jenkins - [`0577260`](https://github.com/eea/volto-anchors/commit/05772604a0e51a5006d6321919091d25c473441b)] - Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`3ac2470`](https://github.com/eea/volto-anchors/commit/3ac2470558a86e0ec74f36fd92e2c470602bb940)] - Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`04e0f56`](https://github.com/eea/volto-anchors/commit/04e0f56da6aa941f8b60e4f46fb6266874a2a555)] ### [0.1.4](https://github.com/eea/volto-anchors/compare/0.1.3...0.1.4) - 8 February 2023 #### :hammer_and_wrench: Others - fix scrollToTop on non hashlinks [nileshgulia1 - [`0bdcf37`](https://github.com/eea/volto-anchors/commit/0bdcf37fc7aac4bc44245c4ecb4827224c53d337)] - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`ac51b58`](https://github.com/eea/volto-anchors/commit/ac51b587d6a1938d3248e8c516478e0546d6b1c9)] ### [0.1.3](https://github.com/eea/volto-anchors/compare/0.1.2...0.1.3) - 8 February 2023 ### [0.1.2](https://github.com/eea/volto-anchors/compare/0.1.1...0.1.2) - 7 February 2023 #### :hammer_and_wrench: Others - convert to slug helper [nileshgulia1 - [`35b5f9d`](https://github.com/eea/volto-anchors/commit/35b5f9d997a6a1d7889b127409b1a48827a3e56a)] - smooth scroll [nileshgulia1 - [`9385373`](https://github.com/eea/volto-anchors/commit/93853730ba5b6e626c53144163ad595cea45565f)] - remove withScrollAnchor hocs [nileshgulia1 - [`93cefdf`](https://github.com/eea/volto-anchors/commit/93cefdfb62d518cfdbc7855622e0323c6790d2a8)] - introduce scrollToAnchor hoc, blocks traversal method [nileshgulia1 - [`415b316`](https://github.com/eea/volto-anchors/commit/415b3165e5856469fefb80f0a06632c159081b26)] - open accordion if anchor heading inside [nileshgulia1 - [`d96d1be`](https://github.com/eea/volto-anchors/commit/d96d1be5fe7dd9e3b025b0619e1fa9625a8c20fe)] - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`a09a99d`](https://github.com/eea/volto-anchors/commit/a09a99d93acf7509c7d47ed705f5cfbdb6e02bce)] - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`941aed2`](https://github.com/eea/volto-anchors/commit/941aed223c905755136ce82c52031bbf325bc0cb)] ### [0.1.1](https://github.com/eea/volto-anchors/compare/0.1.0...0.1.1) - 31 January 2023 #### :hammer_and_wrench: Others - fix override_toc title [nileshgulia1 - [`6219a8a`](https://github.com/eea/volto-anchors/commit/6219a8af774f2afb2f511bee2baef01abbff02c7)] - also account for override_toc [nileshgulia1 - [`7b2a005`](https://github.com/eea/volto-anchors/commit/7b2a0052d477468e9bd818b87f23edb20599d446)] - adapt toc block as slug based [nileshgulia1 - [`3325bf3`](https://github.com/eea/volto-anchors/commit/3325bf38eb8d92a5d40c55e6acde94c4ddfe77ce)] - fix customization paths [nileshgulia1 - [`bd45b10`](https://github.com/eea/volto-anchors/commit/bd45b10c7166545b76688bf55667fb3ee731ad4b)] - slate anchors slug based [nileshgulia1 - [`400404b`](https://github.com/eea/volto-anchors/commit/400404b91dca817e89cf38a4795392c38d776a4a)] ### 0.1.0 - 31 January 2023 #### :hammer_and_wrench: Others - yarn bootstrap [nileshgulia1 - [`15f8811`](https://github.com/eea/volto-anchors/commit/15f8811512603d0afdfea973d93b042835de4ff8)] - Initial commit [Nilesh - [`14ff046`](https://github.com/eea/volto-anchors/commit/14ff046481dbe87aa3174682175f1de64f8b98e0)]