Commit graph

464 commits

Author SHA1 Message Date
alistair3149 f87c43e8e4 fix: drop unused variable 2024-11-16 03:19:11 -05:00
alistair3149 8f1cb74e4e refactor: use AbortController for tabbertransclude fetch 2024-11-16 03:19:11 -05:00
alistair3149 724e347ca1 perf: only call one instance of MediaWikiServices 2024-11-16 03:19:11 -05:00
alistair3149 a98f2f7791 refactor: switch TabberTransclude to the new method 2024-11-16 03:19:11 -05:00
github-actions c67ac50f46 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-11-16 03:19:11 -05:00
alistair3149 ab8e306fc6 feat: throw exception when duplicated label is found under legacy ID mode 2024-11-16 03:19:11 -05:00
alistair3149 df9897441a refactor: remove unused function 2024-11-16 03:19:11 -05:00
github-actions 6d3b905200 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-11-16 03:19:11 -05:00
alistair3149 56619bf56f feat: simplify implementation and drop hash usage
Instead of doing JS hashing, just append the tabber count to the end of the ID.
Having the same tab label within the same Tabber breaks in the previous behavior anyways
2024-11-16 03:19:11 -05:00
alistair3149 910f5c72f4 perf: drop incorrect usage of rAF and do not set aria-hidden on tabpanels 2024-11-16 03:19:11 -05:00
alistair3149 e85d4785b1 refactor: convert part of HTML to Mustache 2024-11-16 03:19:11 -05:00
alistair3149 bd5738afe8 feat: use Codex CSS variable directly 2024-11-16 03:19:11 -05:00
github-actions 7477392b69 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-11-16 03:19:11 -05:00
alistair3149 1e1d3de9cd feat: render all HTML server-side 2024-11-16 03:19:11 -05:00
alistair3149 de2ced5a36 feat: assign unique IDs to Tabber container 2024-11-16 03:19:11 -05:00
github-actions 2c306abf79 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-11-16 03:19:11 -05:00
alistair3149 f24ddb58ee feat: only add empty paragraph for wikitext list elements
We don't need the empty paragraph hack for non-list elements.
Related: #151
2024-11-16 03:19:11 -05:00
alistair3149 21ad702ee2
refactor: more function clean up 2024-11-15 00:07:11 -05:00
alistair3149 a6de7f9519
refactor: separate wikitext parsing to a different function 2024-11-14 23:27:54 -05:00
dependabot[bot] 65d840f58f
build(deps-dev): bump @wikimedia/codex from 1.15.0 to 1.16.0 (#187)
Bumps [@wikimedia/codex](https://doc.wikimedia.org/codex/) from 1.15.0 to 1.16.0.

---
updated-dependencies:
- dependency-name: "@wikimedia/codex"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-14 22:20:21 -05:00
dependabot[bot] 5b74b3dbf3
build(deps-dev): bump oojs-ui from 0.51.1 to 0.51.2 (#188)
Bumps [oojs-ui](https://www.mediawiki.org/wiki/OOUI) from 0.51.1 to 0.51.2.

---
updated-dependencies:
- dependency-name: oojs-ui
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-14 22:20:12 -05:00
csalinezh 201238ccd8
fix: keep arrow button icon inside its parent (#186)
If the parent element sets "text-align: center", "position: absolute"
leads to weird offset issue due to "left: auto" calculation rules.
Specifically the rule 2 for "static position" in Chapter 10 of CSS 2:
https://www.w3.org/TR/CSS2/visudet.html#static-position

It's not necessary for these pseudo-elements to be positioned, hence
the simplification.
2024-11-13 19:42:19 -05:00
alistair3149 1b60511ae7
feat: add TabberNeueUseLegacyTabIds config option (#184)
Also fix the issue where disabling TabberNeueEnableAnimation didn't actually work

---------

Co-authored-by: Jayden Bailey <jaydenkieran@gmail.com>
2024-11-10 03:16:11 -05:00
dependabot[bot] dcacc42442
build(deps-dev): bump @wikimedia/codex from 1.11.1 to 1.15.0 (#182)
Bumps [@wikimedia/codex](https://doc.wikimedia.org/codex/) from 1.11.1 to 1.15.0.

---
updated-dependencies:
- dependency-name: "@wikimedia/codex"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 03:13:38 -05:00
dependabot[bot] a48af9a307
build(deps-dev): update mediawiki/mediawiki-codesniffer requirement (#181)
Updates the requirements on [mediawiki/mediawiki-codesniffer](https://github.com/wikimedia/mediawiki-tools-codesniffer) to permit the latest version.
- [Changelog](https://github.com/wikimedia/mediawiki-tools-codesniffer/blob/master/HISTORY.md)
- [Commits](https://github.com/wikimedia/mediawiki-tools-codesniffer/compare/v44.0.0...v45.0.0)

---
updated-dependencies:
- dependency-name: mediawiki/mediawiki-codesniffer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 03:13:27 -05:00
dependabot[bot] dfe0b3824c
build(deps-dev): bump oojs-ui from 0.50.4 to 0.51.1 (#178)
Bumps [oojs-ui](https://www.mediawiki.org/wiki/OOUI) from 0.50.4 to 0.51.1.

---
updated-dependencies:
- dependency-name: oojs-ui
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 03:13:16 -05:00
translatewiki.net e6716910ce
Localisation updates from https://translatewiki.net. 2024-09-19 14:11:00 +02:00
alistair3149 6994c2d641
ci(lint): sync workflow with current standard 2024-09-04 16:14:55 -04:00
alistair3149 ea1c1e97e0
build: release 2.5.0 (#174) 2024-08-31 20:09:28 -04:00
alistair3149 3d86ed5baa
feat: include Codex CSS variables in Tabber variables 2024-08-31 20:03:38 -04:00
Eamon Heffernan 795c76b4bd
fix: ensure that the active tab is set before the tabber event is initialized (#173)
Closes: #167, #172
2024-08-31 19:57:41 -04:00
dependabot[bot] 7c86a299b2
build(deps-dev): update mediawiki/mediawiki-codesniffer requirement (#169)
Updates the requirements on [mediawiki/mediawiki-codesniffer](https://github.com/wikimedia/mediawiki-tools-codesniffer) to permit the latest version.
- [Changelog](https://github.com/wikimedia/mediawiki-tools-codesniffer/blob/master/HISTORY.md)
- [Commits](https://github.com/wikimedia/mediawiki-tools-codesniffer/compare/v43.0.0...v44.0.0)

---
updated-dependencies:
- dependency-name: mediawiki/mediawiki-codesniffer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-31 19:50:11 -04:00
dependabot[bot] 57c87d4012
build(deps-dev): bump @wikimedia/codex from 1.9.0 to 1.11.1 (#170)
Bumps [@wikimedia/codex](https://doc.wikimedia.org/codex/) from 1.9.0 to 1.11.1.

---
updated-dependencies:
- dependency-name: "@wikimedia/codex"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-31 19:50:04 -04:00
dependabot[bot] 29c1fdbf9c
build(deps): bump tj-actions/changed-files from 44 to 45 (#171)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 44 to 45.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/v44...v45)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-31 19:49:58 -04:00
translatewiki.net cf48c11c15
Localisation updates from https://translatewiki.net. 2024-08-15 14:11:31 +02:00
alistair3149 57d3425792
build: release 2.4.0 (#164) 2024-07-17 13:07:49 -04:00
dependabot[bot] fa23c51ada
build(deps-dev): bump oojs-ui from 0.50.3 to 0.50.4 (#163)
Bumps [oojs-ui](https://www.mediawiki.org/wiki/OOUI) from 0.50.3 to 0.50.4.

---
updated-dependencies:
- dependency-name: oojs-ui
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-17 13:06:31 -04:00
dependabot[bot] f6cc69ba56
build(deps-dev): bump @wikimedia/codex from 1.8.0 to 1.9.0 (#162)
Bumps [@wikimedia/codex](https://doc.wikimedia.org/codex/) from 1.8.0 to 1.9.0.

---
updated-dependencies:
- dependency-name: "@wikimedia/codex"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-17 13:06:09 -04:00
Jayden 2f7e652e28
fix: incorrect conditions for shouldShowAnimation (#165) 2024-07-17 13:04:52 -04:00
alistair3149 2037cf38eb
feat: add print styles 2024-07-14 17:55:13 -04:00
alistair3149 1d71c288b4
build: release 2.3.0 (#159) 2024-07-03 17:50:05 -04:00
alistair3149 1e5ad6592b
fix: prevent browser from scrolling to the tab before Tabber updates the aria attributes
Fixes: #161
2024-07-03 17:49:19 -04:00
dependabot[bot] 14becfd4a6
build(deps-dev): bump oojs-ui from 0.50.2 to 0.50.3 (#160)
Bumps [oojs-ui](https://www.mediawiki.org/wiki/OOUI) from 0.50.2 to 0.50.3.

---
updated-dependencies:
- dependency-name: oojs-ui
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-03 13:35:29 -04:00
alistair3149 421c42b6f0
feat: change tab when URL hash matches one of the tabs
Added an event listener to watch for hash change after the page is loaded.
If the hash matches a tabber tab, it will emit a tab click to switch the tab.

Closes: #150
2024-07-03 13:26:16 -04:00
alistair3149 d453adde07
fix: URL hash should be escaped when used as selector 2024-07-03 13:09:11 -04:00
alistair3149 3bacdb7c87
fix: square brackets should be correctly rendered in tab names
Removing some of the legacy string replace code that is used to get around wikitext formatting.
It is not needed anymore.

Fixes: #158
2024-07-02 22:03:36 -04:00
dependabot[bot] 90fa41594a
build(deps-dev): bump oojs-ui from 0.50.0 to 0.50.2 (#157)
Bumps [oojs-ui](https://www.mediawiki.org/wiki/OOUI) from 0.50.0 to 0.50.2.

---
updated-dependencies:
- dependency-name: oojs-ui
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-02 21:54:14 -04:00
dependabot[bot] 1bbab622a8
build(deps-dev): bump @wikimedia/codex from 1.7.0 to 1.8.0 (#154)
Bumps [@wikimedia/codex](https://doc.wikimedia.org/codex/) from 1.7.0 to 1.8.0.

---
updated-dependencies:
- dependency-name: "@wikimedia/codex"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-02 21:54:09 -04:00
translatewiki.net 53659ab377
Localisation updates from https://translatewiki.net. 2024-07-01 14:12:39 +02:00
translatewiki.net c4f3f34714
Localisation updates from https://translatewiki.net. 2024-06-27 14:12:38 +02:00