Skip to content

Commit 7bd2c5b

Browse files
authored
[6.0] Remove the web components polyfill (#45019)
* Remove the webcomponent polyfill * Remove dependants, add empty asset entry * move it to the compat removed * Update minify-vendor.mjs * Update removed.asset.json * Update removed.asset.json
1 parent 433bacf commit 7bd2c5b

File tree

8 files changed

+23
-51
lines changed

8 files changed

+23
-51
lines changed

build/build-modules-js/init/minify-vendor.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const folders = [
1313
'media/vendor/es-module-shims/js',
1414
'media/vendor/qrcode/js',
1515
'media/vendor/tinymce/langs',
16-
'media/vendor/webcomponentsjs/js',
1716
];
1817

1918
let allFiles = [];

build/build-modules-js/settings.json

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@
492492
"defer": true
493493
},
494494
"dependencies": [
495-
"wcpolyfill"
495+
"core"
496496
]
497497
},
498498
{
@@ -503,7 +503,7 @@
503503
"type": "module"
504504
},
505505
"dependencies": [
506-
"wcpolyfill"
506+
"core"
507507
]
508508
},
509509
{
@@ -520,7 +520,7 @@
520520
"defer": true
521521
},
522522
"dependencies": [
523-
"wcpolyfill"
523+
"core"
524524
]
525525
},
526526
{
@@ -531,7 +531,7 @@
531531
"type": "module"
532532
},
533533
"dependencies": [
534-
"wcpolyfill"
534+
"core"
535535
]
536536
}
537537
],
@@ -609,28 +609,6 @@
609609
"name": "tinymce",
610610
"licenseFilename": "license.txt"
611611
},
612-
"@webcomponents/webcomponentsjs": {
613-
"name": "webcomponentsjs",
614-
"js": {
615-
"webcomponents-bundle.js": "js/webcomponents-bundle.js"
616-
},
617-
"dependencies": [],
618-
"licenseFilename": "LICENSE.md",
619-
"provideAssets": [
620-
{
621-
"name": "wcpolyfill",
622-
"type": "script",
623-
"uri": "webcomponents-bundle.js",
624-
"attributes": {
625-
"nomodule": true,
626-
"defer": true
627-
},
628-
"dependencies": [
629-
"core"
630-
]
631-
}
632-
]
633-
},
634612
"accessibility": {
635613
"name": "accessibility",
636614
"licenseFilename": "LICENSE",

build/media_source/plg_behaviour_compat6/removed.asset.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
"description": "Joomla CMS Removed Assets b/c entries, the entries are only placeholders without functionality.",
66
"license": "GPL-2.0-or-later",
77
"assets": [
8+
{
9+
"name": "wcpolyfill",
10+
"type": "script",
11+
"uri": ""
12+
}
813
]
914
}

build/media_source/plg_editors_codemirror/joomla.asset.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"dependencies": [
2424
"core",
2525
"codemirror",
26-
"editors",
27-
"wcpolyfill"
26+
"editors"
2827
],
2928
"attributes": {
3029
"type": "module"

build/media_source/system/joomla.asset.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
"defer": true
323323
},
324324
"dependencies": [
325-
"wcpolyfill",
325+
"core",
326326
"choicesjs"
327327
]
328328
},
@@ -358,7 +358,7 @@
358358
"defer": true
359359
},
360360
"dependencies": [
361-
"wcpolyfill"
361+
"core"
362362
]
363363
},
364364
{
@@ -383,7 +383,7 @@
383383
"defer": true
384384
},
385385
"dependencies": [
386-
"wcpolyfill"
386+
"core"
387387
]
388388
},
389389
{
@@ -407,7 +407,7 @@
407407
"defer": true
408408
},
409409
"dependencies": [
410-
"wcpolyfill"
410+
"core"
411411
]
412412
},
413413
{
@@ -436,7 +436,7 @@
436436
"defer": true
437437
},
438438
"dependencies": [
439-
"wcpolyfill"
439+
"core"
440440
]
441441
},
442442
{
@@ -460,7 +460,7 @@
460460
"defer": true
461461
},
462462
"dependencies": [
463-
"wcpolyfill"
463+
"core"
464464
]
465465
},
466466
{
@@ -489,7 +489,7 @@
489489
"defer": true
490490
},
491491
"dependencies": [
492-
"wcpolyfill"
492+
"core"
493493
]
494494
},
495495
{
@@ -513,7 +513,7 @@
513513
"defer": true
514514
},
515515
"dependencies": [
516-
"wcpolyfill"
516+
"core"
517517
]
518518
},
519519
{
@@ -537,7 +537,7 @@
537537
"defer": true
538538
},
539539
"dependencies": [
540-
"wcpolyfill"
540+
"core"
541541
]
542542
},
543543
{
@@ -562,7 +562,7 @@
562562
"defer": true
563563
},
564564
"dependencies": [
565-
"wcpolyfill"
565+
"core"
566566
]
567567
},
568568
{
@@ -586,7 +586,7 @@
586586
"defer": true
587587
},
588588
"dependencies": [
589-
"wcpolyfill"
589+
"core"
590590
]
591591
},
592592
{
@@ -610,7 +610,7 @@
610610
"defer": true
611611
},
612612
"dependencies": [
613-
"wcpolyfill"
613+
"core"
614614
]
615615
},
616616
{
@@ -631,7 +631,6 @@
631631
"uri": "system/joomla-dialog.min.js",
632632
"importmap": true,
633633
"dependencies": [
634-
"wcpolyfill",
635634
"core"
636635
]
637636
},

libraries/src/HTML/Helpers/Select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public static function genericlist(
145145
->registerAndUseScript(
146146
'webcomponent.select-colour',
147147
'system/fields/select-colour.min.js',
148-
['dependencies' => ['wcpolyfill']],
148+
['dependencies' => ['core']],
149149
['type' => 'module']
150150
);
151151
}

package-lock.json

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"@codemirror/view": "^6.38.1",
5656
"@fortawesome/fontawesome-free": "^6.7.2",
5757
"@popperjs/core": "^2.11.8",
58-
"@webcomponents/webcomponentsjs": "^2.8.0",
5958
"accessibility": "^3.0.17",
6059
"awesomplete": "^1.1.7",
6160
"bootstrap": "^5.3.7",

0 commit comments

Comments
 (0)