aboutsummaryrefslogtreecommitdiff
path: root/js/src/util
AgeCommit message (Collapse)AuthorFilesLines
2024-07-19Fix `this` reference for JavaScript functions (#38725)Nathan Sarang-Walters2-2/+2
2024-03-18Fix broken comment link for reflow hack (#39791)Caleb Albritton1-1/+1
2024-02-06Build(deps-dev): Bump eslint-config-xo from 0.43.1 to 0.44.0 (#39651)dependabot[bot]1-1/+3
* Build(deps-dev): Bump eslint-config-xo from 0.43.1 to 0.44.0 Bumps [eslint-config-xo](https://github.com/xojs/eslint-config-xo) from 0.43.1 to 0.44.0. - [Release notes](https://github.com/xojs/eslint-config-xo/releases) - [Commits](https://github.com/xojs/eslint-config-xo/compare/v0.43.1...v0.44.0) --- updated-dependencies: - dependency-name: eslint-config-xo dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update .eslintrc.json * Update .eslintrc.json * autofix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <[email protected]>
2023-11-15Allow `<dl>`, `<dt>` and `<dd>` in JS sanitizer (#39376)Frans de Jonge1-0/+3
Co-authored-by: Julien Déramond <[email protected]>
2023-05-01Update URL sanitizer to allow more protocols (#38531)Kyle Tsang1-42/+36
Co-authored-by: XhmikosR <[email protected]>
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR6-7/+7
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2023-03-27Add js-docs shortcode to ensure consistency between doc and js code (#38316)Hannah Issermann1-2/+4
Co-authored-by: XhmikosR <[email protected]>
2023-03-22Remove version comment from JavaScript src files (#38294)GeoSot9-9/+9
2022-12-24Release v5.3.0-alpha1 (#37661)XhmikosR9-9/+9
* Bump version to 5.3.0-alpha1 * Dist * Add docs versions updates * Update note in homepage hero Co-authored-by: Mark Otto <[email protected]>
2022-11-22Merge branch 'main' into prepare-523XhmikosR8-72/+42
2022-11-21Bump version to 5.2.3XhmikosR9-9/+9
2022-11-13Use `Object.entries` in more places (#37482)XhmikosR1-2/+1
2022-11-12ESLint: enable prefer-template rule (#37484)XhmikosR1-1/+1
2022-11-11fix: change `replaceAll` usage introduced in #35566 (#37473)GeoSot1-1/+1
2022-11-07Properly escape IDs in getSelector() to handle weird IDs (#35565) (#35566)Pierre Souchay1-1/+16
2022-11-06Move `getElementFromSelector` & `getSelectorFromElement` to SelectorEngine ↵GeoSot2-45/+3
(#36027) * Move `getElementFromSelector` & getSelectorFromElement` inside selector-engine.js, in order to use SelectorEngine methods, avoiding raw querySelector usage * add `getMultipleElementsFromSelector` helper Co-authored-by: Julien Déramond <[email protected]>
2022-10-26Use explicit imports in our javascript source files (#36854)GeoSot7-20/+20
2022-10-07Boost `execute` function, being able to handle arguments (#36652)GeoSot2-6/+4
2022-10-03Release v5.2.2 (#37236)XhmikosR9-9/+9
* Bump version to v5.2.2 * Dist
2022-09-07Release v5.2.1 (#37098)XhmikosR9-9/+9
* Bump version to v5.2.1. * Dist
2022-07-19Release v5.2.0 (#36768)XhmikosR9-9/+9
* Bump version to 5.2.0 * Dist * Update masthead.html
2022-07-18Fix typos in code (#36763)Marc Wrobel2-3/+3
Shoutout is correct but has been replaced by its more common form : Shout-out (https://www.merriam-webster.com/dictionary/shout-out).
2022-06-01Re-ordering js default objectslouismaxime.piton4-22/+22
2022-05-13Prepare v5.2.0-beta1Mark Otto9-9/+9
2022-04-21Manipulator: Add JSON parse support (#35077)GeoSot1-0/+3
Support parsing JSON from each component's main element using the `data-bs-config` attribute. The `bs-config` attribute will be reserved and omitted during `getDataAttributes` parsing. With this commit, every component, will create its config object, using: * defaults * data-bs-config * the rest of data attributes * configuration object given during instance initialization Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2022-01-29Rename variablesXhmikosR2-15/+15
2022-01-29backdrop.js: cache `_getElement` callsXhmikosR1-4/+6
2022-01-29Remove a few unneeded variablesXhmikosR1-6/+3
2022-01-13Fix: `isVisible` function behavior in case of a `<details>` element, on ↵Ryan Berliner1-1/+20
chrome 97 (#35682)
2021-12-10Extract Component config functionality to a separate class (#33872)GeoSot6-62/+130
Co-authored-by: XhmikosR <[email protected]>
2021-12-10util/index.js: minor refactoring (#35510)XhmikosR1-27/+25
* rename variables * remove an unused variable * be more explicit * reuse variable
2021-12-09Scrollbar - remove margin/padding properties properly (#35388)GeoSot1-7/+8
Co-authored-by: XhmikosR <[email protected]>
2021-12-09ScrollBar.js. Minor refactoring and add test (#35492)GeoSot1-13/+17
2021-11-25Add a template factory helper to handle all template cases (#34519)GeoSot1-0/+161
Co-authored-by: XhmikosR <[email protected]>
2021-10-13JS: minor refactoring (#35183)XhmikosR5-56/+98
* add missing comments * shorten block comments * reorder constants * reorder public/private methods * sort exports alphabetically in util/index.js * fix a couple of typos
2021-10-12Swipe: add test to ensure that it ignores `pinch` events (#35161)GeoSot1-1/+1
2021-10-11Extract Carousel's swipe functionality to a separate Class (#32999)GeoSot1-0/+122
2021-10-09Merge remote-tracking branch 'remotes/origin/v513'XhmikosR6-6/+6
2021-10-09Bump version to 5.1.3.XhmikosR6-6/+6
2021-10-07Sanitizer: fix logic and add a test. (#35133)XhmikosR1-1/+1
This was broken in 2596c97 inadvertently. Added a test so that we don't hit this in the future.
2021-10-06util/sanitizer.js: use `Array.every()` (#35120)XhmikosR1-9/+2
2021-10-05Enable `unicorn/numeric-separators-style` rule.XhmikosR1-1/+1
This is taken care of by babel via @babel/plugin-proposal-numeric-separator
2021-10-05Enable `unicorn/no-array-for-each` ruleXhmikosR3-6/+10
2021-10-05Enable `unicorn/no-for-loop` ruleXhmikosR1-4/+3
2021-10-05Enable `unicorn/prefer-prototype-methods` ruleXhmikosR1-1/+1
2021-10-05Release v5.1.2 (#35114)XhmikosR6-6/+6
2021-09-29sanitizer: add `sms` in the `SAFE_URL_PATTERN` (#35074)XhmikosR1-3/+3
2021-09-15Minor refactoring (#34980)XhmikosR2-23/+18
Rename variables and remove a temporary one
2021-09-08Remove remaining "master" branch references (#34932)Julien Déramond2-2/+2
2021-09-07Release v5.1.1 (#34869)v5.1.1XhmikosR6-6/+6
* Prepare v5.1.1. * Dist