Commit graph

490 commits

Author SHA1 Message Date
dependabot[bot] e4ed5d6686
build(deps-dev): update mediawiki/mediawiki-phan-config requirement
Updates the requirements on [mediawiki/mediawiki-phan-config](https://github.com/wikimedia/mediawiki-tools-phan) to permit the latest version.
- [Changelog](https://github.com/wikimedia/mediawiki-tools-phan/blob/master/HISTORY.md)
- [Commits](https://github.com/wikimedia/mediawiki-tools-phan/compare/0.14.0...0.15.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-10 10:00:33 +00:00
dependabot[bot] 2526daa9f8
build(deps-dev): bump eslint-plugin-no-jquery from 3.0.2 to 3.1.0 (#197)
Bumps [eslint-plugin-no-jquery](https://github.com/wikimedia/eslint-plugin-no-jquery) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/wikimedia/eslint-plugin-no-jquery/releases)
- [Changelog](https://github.com/wikimedia/eslint-plugin-no-jquery/blob/master/Changelog.md)
- [Commits](https://github.com/wikimedia/eslint-plugin-no-jquery/compare/v3.0.2...v3.1.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-no-jquery
  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-12-02 23:39:29 -05:00
alistair3149 471665fca9
docs: update note on HTML attributes 2024-11-22 16:06:36 -05:00
alistair3149 799f86514b
build: release 2.7.1 (#196) 2024-11-22 16:05:29 -05:00
alistair3149 786699690c
chore: release 2.7.1
Release-As: 2.7.1
2024-11-22 16:04:26 -05:00
github-actions e4dde4f603 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-11-22 21:03:20 +00:00
alistair3149 f553e95d0a
feat: add support for custom attributes
- Use MW core sanitizer to sanitize attributes to keep feature parity with core sanitizier
- Simplify HTML attribute handling

Closes: #194, #183
2024-11-22 16:02:46 -05:00
paladox 422c60a573
fix: optional parameter $args declared before required parameter $frame is implicitly treated as a required parameter" (#195)
* Fix "Optional parameter $args declared before required parameter $frame is implicitly treated as a required parameter"

> Deprecated: Optional parameter $args declared before required parameter $frame is implicitly treated as a required parameter in /srv/mediawiki/1.43/extensions/TabberNeue/includes/Tabber.php on line 78
> Deprecated: Optional parameter $args declared before required parameter $frame is implicitly treated as a required parameter in /srv/mediawiki/1.43/extensions/TabberNeue/includes/TabberTransclude.php on line 72

* Update TabberTransclude.php
2024-11-21 12:42:47 -05:00
alistair3149 eaa78dbba2
refactor: remove unused var 2024-11-20 13:32:59 -05:00
alistair3149 3dfb8f4352
build: release 2.7.0 (#192) 2024-11-19 16:26:27 -05:00
alistair3149 92ebec87dc
docs: add note on custom ID and classes 2024-11-19 16:24:39 -05:00
alistair3149 d5f9e03d47
feat: allow id and class attributes to be set on Tabber
Closes: #183, #193

Co-Authored-By: Thomas-programmiert <Thomas-programmiert@users.noreply.github.com>
2024-11-19 16:20:05 -05:00
github-actions 0e136945cc ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-11-19 21:05:00 +00:00
alistair3149 2f827857dc
feat: drop Codex tabs
It has never worked correctly and it is difficult to maintain
both MW compatability across versions and Codex
2024-11-19 16:04:26 -05:00
alistair3149 11eb2ac328
refactor: use Mustache to generate HTML 2024-11-19 16:01:11 -05:00
alistair3149 dc1d16c276
fix: properly wrap text in paragraph if it is a wikitext link
Seems to be related to #151
2024-11-19 14:35:19 -05:00
alistair3149 5b5b97c5f7
docs: add notes on tracking category 2024-11-18 03:23:47 -05:00
alistair3149 7cee4f44eb
chore: set installer-name for composer
That should make it easier to install through Composer
2024-11-17 17:49:17 -05:00
alistair3149 27e05c72a6
docs: explain why init module is needed 2024-11-17 17:47:00 -05:00
alistair3149 9d20c75172
build: release 2.6.0 (#185) 2024-11-16 03:22:20 -05:00
alistair3149 41ac35dd8c
docs: update documentation on wgTabberNeueUseLegacyTabIds 2024-11-16 03:20:12 -05:00
alistair3149 1f75afc217 fix: various issues found in code review 2024-11-16 03:19:11 -05:00
alistair3149 9e8ac878cc fix: fix various issues raised by code review 2024-11-16 03:19:11 -05:00
alistair3149 40fe7d2e52 docs: fix incorrect return type 2024-11-16 03:19:11 -05:00
alistair3149 b0670f5df8 refactor: simplify VE tabber condition check 2024-11-16 03:19:11 -05:00
alistair3149 70f632a4db fix: no need to apply hover:hover to active state 2024-11-16 03:19:11 -05:00
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